OCP部署失败

【 使用环境 】测试环境
【 OB or 其他组件 】OCP
【 使用版本 】ocp-3.3.0-ce-bp1-x86_64
【问题描述】OCP部署失败

config.yaml配置信息

# OCP deploy config
# Note:
# Do not use 127.0.0.1 or hostname as server address
# When a server has both public ip and private ip, if private ip is connectable, use private ip for faster connection
# If a vip is configured, it should be already created and bonded to the right server and port, the installation script won't do any work with vip maintainance, just use it to connect to the service

# Ignore precheck errors
# It's recommanded to not ignore precheck errors
precheck_ignore: false

# Create an obcluster as OCP's metadb
create_metadb_cluster: false

# Clean OCP's metadb cluster when uninstall
clean_metadb_cluster: false

# Metadb cluster deploy config
ob_cluster:
  name: obcluster
  home_path: /home/admin/oceanbase
  root_password: 'rootpass'
  # The directory for data storage, it's recommanded to use an independent path
  data_path: /data/1
  # The directory for clog, ilog, and slog, it's recommanded to use an independent path.
  redo_path: /data/log1
  sql_port: 2881
  rpc_port: 2882
  zones:
    - name: zone1
      servers:
        - 10.137.112.3
  ## custom obd config for obcluster
  # custom_config:
  #   - key: devname
  #     value: eth0

  # Meta user info
  meta:
    tenant: meta_tenant
    user: meta_user
    password: meta_password
    database: meta_database
    cpu: 2
    # Memory configs in GB, 4 means 4GB
    memory: 4

  # Monitor user info
  monitor:
    tenant: monitor_tenant
    user: monitor_user
    password: monitor_password
    database: monitor_database
    cpu: 4
    # Memory configs in GB, 8 means 8GB
    memory: 8

# Obproxy to connect metadb cluster
obproxy:
  home_path: /home/admin/obproxy
  port: 2883
  servers:
    - 10.137.112.3

  ## custom config for obproxy
  # custom_config:
  #   - key: clustername
  #     value: obcluster


  ## Vip is optional, if vip is not configured, one of obproxy servers's address will be used
  # vip:
  #   address: 1.1.1.1
  #   port: 2883

# Ssh auth config
ssh:
  port: 22
  user: root
  # auth method, support password and pubkey
  auth_method: password
  timeout: 10
  password: 123456

# OCP config
ocp:
  # ocp container's name
  name: 'ocp'

  # OCP process listen port and log dir on host
  process:
    port: 8080
    log_dir: /tmp/ocp/log
  servers:
    - 10.137.112.3
  # OCP container's resource
  resource:
    cpu: 4
    # Memory configs in GB, 8 means 8GB
    memory: 8
  # Vip is optional, if vip is not configured, one of ocp servers's address will be used
  # vip:
  #   address: 1.1.1.1
  #   port: 8080
  # OCP basic auth config, used when upgrade ocp
  auth:
    user: admin
    password: root
  # OCP metadb config, for ocp installation, if "create_metadb_cluster" is configured true, this part will be replaced with the configuration of metadb cluster and obproxy
  metadb:
    host: 10.137.112.3
    port: 2883
    meta_user: meta_user@meta_tenant#obcluster
    meta_password: meta_password
    meta_database: meta_database
    monitor_user: monitor_user@monitor_tenant#obcluster
    monitor_password: monitor_password
    monitor_database: monitor_database

安装过程信息

install start
check docker on host
load installer docker image
Loaded image: reg.docker.alibaba-inc.com/ocp2/ocp-installer:3.3.0-x86_64
make log dir
make obd dir
2022-09-03 11:37:21 - INFO - 1 - [ocp_precheck.py:25] - ocp precheck using command: sudo /tmp/precheck-7aabcdd7-1518-4568-9a64-eb4bf476b8a4.sh -m ocp
2022-09-03 11:37:21 - INFO - 1 - [ocp_precheck.py:29] - precheck for ocp on host 10.137.112.3 failed
2022-09-03 11:37:21 - INFO - 1 - [ocp_precheck.py:32] - ocp precheck result: Machine Role: ocp 
Peer IP List:  
Machine Type: PHY 
Inspect Mode: FALSE 

check CPU count: 40 > 8 ... PASS 
check total MEM: 125 GB > 32 GB ... PASS 
check linux version: CNware Linux release 8.2.0 (Core)  ... EXPECT release 7.x ... WARN 
TIPS: OS is not standard RedHat release, if it is compatible with RHEL 7.x, you can ignore this warnning
check SELinux status: Disabled ... PASS 
check account [admin] and home dir, exist ... PASS 
check service [firewalld]: inactive ... PASS 
check service [firewalld]: disabled ... PASS 
check docker version: 20.10.17 ... PASS 


### SUMMARY OF ISSUES IN PRE-CHECK ###
check linux version: CNware Linux release 8.2.0 (Core)  ... EXPECT release 7.x ... WARN 
TIPS: OS is not standard RedHat release, if it is compatible with RHEL 7.x, you can ignore this warnning
, 
Traceback (most recent call last):
  File "install_ocp.py", line 43, in <module>
    run(context)
  File "install_ocp.py", line 33, in run
    install_ocp_pipeline.run()
  File "/root/installer/pipeline.py", line 10, in run
    task.run()
  File "/root/installer/task/ocp_precheck.py", line 35, in run
    raise Exception("ocp precheck failed")
Exception: ocp precheck failed

麻烦各位大佬指点一下,非常感谢!

2 个赞

可能是操作系统的问题,换成centos7看看

CNware Linux release 8.2.0 (Core) … EXPECT release 7.x … WARN
TIPS: OS is not standard RedHat release, if it is compatible with RHEL 7.x, you can ignore this warnning

可以将ocp config.yaml里的预检查关闭了再试试
precheck_ignore: true

真是好多坑啊