【 使用环境 】测试环境
【 OB or 其他组件 】ob / ocp
【 使用版本 】oceanbase-ce-3.1.4 / ocp-3.3.0-ce-bp1-x86_64
【问题描述】部署OCP失败
【复现路径】执行安装复现
【问题现象及影响】
已经成功部署了OB之后,OB集群使用root用户部署的,进程运行用户为admin;
准备部署OCP,OCP配置如下:
precheck_ignore: false
create_metadb_cluster: false
clean_metadb_cluster: false
ob_cluster:
name: obce
home_path: /home/admin/oceanbase-ce
root_password: 'xxxx'
data_path: /home/admin/data
redo_path: /home/admin/redo
sql_port: 2881
rpc_port: 2882
zones:
- name: zone1
servers:
- 192.168.1x.231
- name: zone2
servers:
- 192.168.1x.232
- name: zone3
servers:
- 192.168.1x.233
meta:
tenant: meta_tenant
user: meta_user
password: meta_password
database: meta_database
cpu: 2
memory: 1
monitor:
tenant: monitor_tenant
user: monitor_user
password: monitor_password
database: monitor_database
cpu: 2
memory: 1
obproxy:
home_path: /home/admin/obproxy
port: 2883
servers:
- 192.168.138.231
ssh:
port: 22
user: root
auth_method: password
timeout: 10
password: XXXX
ocp:
name: 'ocp'
process:
port: 8080
log_dir: /tmp/ocp/log
servers:
- 192.168.138.231
resource:
cpu: 1
memory: 2
auth:
user: admin
password: XXXX
metadb:
host: 192.168.138.231
port: 2883
meta_password: XXXX
meta_database: meta_database
monitor_password: XXXX
monitor_database: monitor_database
配置中的XXXX为密码。
已经手工创建了两个租户并设置了密码:
meta_tenant
monitor_tenant
执行安装命令:
./ocp_installer.sh install -v -c ocp.yaml -k /root/.ssh/id_rsa -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: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/ocp_precheck.py", line 23, in run
raise Exception("put precheck script to {0} failed".format(ip))
Exception: put precheck script to 192.168.x.231 failed
检查OCP安装目录下的log目录,只有一个文件,但是文件没有任何信息,大小为0.
请问该问题应该如何排查和解决。