【 使用环境 】
测试环境
【 OB or 其他组件 】
ocp-3.3.0-ce-bp2-x86_64.tar
【 使用版本 】
v3.3.0
【问题描述】
安装环境一台是(8C,64G)的vmware环境centos 7.9的主机
安装的配置文件如下:
# 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: true
# Metadb cluster deploy config
ob_cluster:
name: obcluster
home_path: /home/admin/oceanbase
root_password: 'redhat'
# 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:
- 192.168.1.9
## custom obd config for obcluster
custom_config:
- key: devname
value: ens32
# Meta user info
meta:
tenant: meta_tenant
user: meta_user
password: meta_password
database: meta_database
cpu: 1
# Memory configs in GB, 4 means 4GB
memory: 2
# Monitor user info
monitor:
tenant: monitor_tenant
user: monitor_user
password: monitor_password
database: monitor_database
cpu: 1
# Memory configs in GB, 8 means 8GB
memory: 2
# Obproxy to connect metadb cluster
obproxy:
home_path: /home/admin/obproxy
port: 2883
servers:
- 192.168.1.9
## 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: redhat
# 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:
- 192.168.1.9
# OCP container's resource
resource:
cpu: 2
# 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: admin
# 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: 192.168.1.9
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
【问题现象及影响】
安装报错如下:
[root@ocp ocp]# ./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
174f56854903: Loading layer [==================================================>] 211.7 MB/211.7 MB
998d7efb3ee5: Loading layer [==================================================>] 2.048 kB/2.048 kB
457113e28038: Loading layer [==================================================>] 3.072 kB/3.072 kB
f3cb6fc838d4: Loading layer [==================================================>] 2.048 kB/2.048 kB
a9988590ee00: Loading layer [==================================================>] 2.56 kB/2.56 kB
be5fb02e6df2: Loading layer [==================================================>] 2.56 kB/2.56 kB
3c6ca5b84fcd: Loading layer [==================================================>] 2.56 kB/2.56 kB
370d3d972549: Loading layer [==================================================>] 2.56 kB/2.56 kB
327da332d3b8: Loading layer [==================================================>] 24.13 MB/24.13 MB
40cf5b9db208: Loading layer [==================================================>] 269.5 MB/269.5 MB
a351fb77e417: Loading layer [==================================================>] 16.01 MB/16.01 MB
20d17932af47: Loading layer [==================================================>] 9.878 MB/9.878 MB
2f88c3101f69: Loading layer [==================================================>] 292.7 MB/292.7 MB
b8a6a67f9da6: Loading layer [==================================================>] 6.265 MB/6.265 MB
49e5fe4bfefc: Loading layer [==================================================>] 2.56 kB/2.56 kB
e8e34e7f75b8: Loading layer [==================================================>] 140.8 MB/140.8 MB
4a8a83df278d: Loading layer [==================================================>] 59.68 MB/59.68 MB
9fb29d90a224: Loading layer [==================================================>] 60.35 MB/60.35 MB
e533153cd3d7: Loading layer [==================================================>] 18.43 kB/18.43 kB
d43f9f34b3b5: Loading layer [==================================================>] 4.608 kB/4.608 kB
09e61b8eb146: Loading layer [==================================================>] 26.11 MB/26.11 MB
a58af37f2db6: Loading layer [==================================================>] 56.07 MB/56.07 MB
f927693e48ba: Loading layer [==================================================>] 5.12 kB/5.12 kB
66c47857d7bc: Loading layer [==================================================>] 16.38 kB/16.38 kB
5e17f725c151: Loading layer [==================================================>] 18.43 kB/18.43 kB
ae9d163f3cff: Loading layer [==================================================>] 18.43 kB/18.43 kB
05aa66bc91ce: Loading layer [==================================================>] 7.168 kB/7.168 kB
3e0a7c2f34e7: Loading layer [==================================================>] 5.12 kB/5.12 kB
b6fc164e739b: Loading layer [==================================================>] 4.096 kB/4.096 kB
9a746bfbc839: Loading layer [==================================================>] 3.072 kB/3.072 kB
e61c6ab43de9: Loading layer [==================================================>] 93.7 kB/93.7 kB
266a1735634c: Loading layer [==================================================>] 59.39 kB/59.39 kB
54728381e290: Loading layer [==================================================>] 4.096 kB/4.096 kB
e7dee81c2afd: Loading layer [==================================================>] 3.584 kB/3.584 kB
c49b97cf9ea7: Loading layer [==================================================>] 4.096 kB/4.096 kB
9398ba1740c5: Loading layer [==================================================>] 3.584 kB/3.584 kB
f580ecbfdb60: Loading layer [==================================================>] 55.3 kB/55.3 kB
610545845209: Loading layer [==================================================>] 1.925 MB/1.925 MB
626e477da5c3: Loading layer [==================================================>] 3.072 kB/3.072 kB
14771117ff37: Loading layer [==================================================>] 1.612 MB/1.612 MB
Loaded image: reg.docker.alibaba-inc.com/ocp2/ocp-installer:3.3.0-x86_64
make log dir
make obd dir
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/ob_precheck.py", line 26, in run
raise Exception("put precheck script to {0} failed".format(ip))
Exception: put precheck script to 192.168.1.9 failed
[/quote]