安装ocp报错, for server in zone['servers']: KeyError: 'servers'

【 使用环境 】 测试环境
【 使用版本 】OCP-4.0.3-ce
【问题描述】安装时报错
[root@OCPserver ocp-4.0.3-ce-x86_64]# ./ocp_installer.sh install -c config.yaml -i ./ocp-installer.tar.gz -o ./ocp.tar.gz
install start
check docker on host
load installer docker image
Loaded image: reg.docker.alibaba-inc.com/ocp2/ocp-installer:4.0.3-ce-x86_64
make log dir
make obd dir
Traceback (most recent call last):
File “pipeline/install_ocp.py”, line 47, in
run(context)
File “pipeline/install_ocp.py”, line 37, in run
install_ocp_pipeline.run()
File “/root/installer/core/pipeline.py”, line 10, in run
task.run()
File “/root/installer/task/ob_precheck.py”, line 17, in run
for server in zone[‘servers’]:
KeyError: ‘servers’

配置文件

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: true

Create an obcluster as OCP’s metadb

create_metadb_cluster: true

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: ‘Zwj3204569’

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.2.101.236

custom obd config for obcluster

custom_config:

- key: devname

value: ens192

- key: cpu_count

value: 0

- key: memory_limit

value: 0G

- key: system_memory

value: 30G

- key: __min_full_resource_pool_memory

value: 5368709120

- key: datafile_maxsize

value: 0

- key: datafile_next

value: 0

Meta user info

meta:
tenant: meta_tenant
user: meta_user
password: Zwj3204569
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: Zwj3204569
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.2.101.236

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: admin

auth method, support password and pubkey

auth_method: password
timeout: 10
password: Zwj3204569

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.2.101.236

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: Zwj3204569
options:
# enable front-end tracking, non-business sensitive data such as system information, user behavior, and front-end anomalies will be collected to improve the product experience and stability
enable_web_tracking: true

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.2.101.236
port: 2883
meta_user: meta_user@meta_tenant#obcluster
meta_password: Zwj3204569
meta_database: meta_database
monitor_user: monitor_user@monitor_tenant#obcluster
monitor_password: Zwj3204569
monitor_database: monitor_database

【附件】配置文件已上传为附件
配置文件.txt (3.6 KB)

以附件的方式传一下配置文件吧,看起来很可能是格式不太对

已经上传附件

有没有大佬能解答一下

可以先使用白屏方式部署,格式问题我测验下。
白屏指定网卡名称方式

custom obd config for obcluster

custom_config:
- key: devname
value: eth0

黑屏部署报错原因是 - key: devname 这块格式对齐的不正确,导致把 - key识别成servers信息

custom obd config for obcluster

custom_config:

- key: devname

value: ens192

- key: cpu_count