ocp4.0 部署运行配置文件失败

【 使用环境 】 测试环境
【 OB or 其他组件 】
【 使用版本 】4.0
【问题描述】
【复现路径】
【问题现象及影响】
root@inspur:/home/ocp-4.0.0-ce-bp1-x86_64# /home/ocp-4.0.0-ce-bp1-x86_64/ocp_installer.sh install -c config.yaml -i /home/ocp-4.0.0-ce-bp1-x86_64/ocp-installer.tar.gz -o /home/ocp-4.0.0-ce-bp1-x86_64/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.0-ce-x86_64
make log dir
make obd dir
Traceback (most recent call last):
File “pipeline/install_ocp.py”, line 38, in
context = yaml.load(f)
File “/usr/local/lib64/python3.6/site-packages/yaml/init.py”, line 114, in load
return loader.get_single_data()
File “/usr/local/lib64/python3.6/site-packages/yaml/constructor.py”, line 49, in get_single_data
node = self.get_single_node()
File “/usr/local/lib64/python3.6/site-packages/yaml/composer.py”, line 36, in get_single_node
document = self.compose_document()
File “/usr/local/lib64/python3.6/site-packages/yaml/composer.py”, line 55, in compose_document
node = self.compose_node(None, None)
File “/usr/local/lib64/python3.6/site-packages/yaml/composer.py”, line 84, in compose_node
node = self.compose_mapping_node(anchor)
File “/usr/local/lib64/python3.6/site-packages/yaml/composer.py”, line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
File “/usr/local/lib64/python3.6/site-packages/yaml/composer.py”, line 84, in compose_node
node = self.compose_mapping_node(anchor)
File “/usr/local/lib64/python3.6/site-packages/yaml/composer.py”, line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
File “/usr/local/lib64/python3.6/site-packages/yaml/composer.py”, line 64, in compose_node
if self.check_event(AliasEvent):
File “/usr/local/lib64/python3.6/site-packages/yaml/parser.py”, line 98, in check_event
self.current_event = self.state()
File “/usr/local/lib64/python3.6/site-packages/yaml/parser.py”, line 449, in parse_block_mapping_value
if not self.check_token(KeyToken, ValueToken, BlockEndToken):
File “/usr/local/lib64/python3.6/site-packages/yaml/scanner.py”, line 116, in check_token
self.fetch_more_tokens()
File “/usr/local/lib64/python3.6/site-packages/yaml/scanner.py”, line 227, in fetch_more_tokens
return self.fetch_alias()
File “/usr/local/lib64/python3.6/site-packages/yaml/scanner.py”, line 610, in fetch_alias
self.tokens.append(self.scan_anchor(AliasToken))
File “/usr/local/lib64/python3.6/site-packages/yaml/scanner.py”, line 924, in scan_anchor
% ch, self.get_mark())
yaml.scanner.ScannerError: while scanning an alias
in “/root/installer/config.yaml”, line 100, column 13
expected alphabetic or numeric character, but found ‘(’
in “/root/installer/config.yaml”, line 100, column 14

【附件】

看着像是config.yaml的问题,可以麻烦上传脱敏后的config.yaml文件么

config.txt (3.8 KB)
这是config.yaml配置文件

可能是ssh下的password内部有(导致的格式问题,可以尝试下"${password}"的方式

1 个赞

嗯,改了以后又报新错了
error.txt (6.4 KB)

看下填写的’192.168.91.51:2883’ 这个地址的obproxy是不是没起来,我看create_metadb_cluster这个配置你填的false,意味着你使用现有db作为metadb

obproxy 不是在执行完配置文件 会自动起来吗?
需要先手动运行起来吗?
手动运行的话,怎么运行?

image

这边配置文件看的,或者你可以把create_metadb_cluster改为true

改为true后,又报如下错误,但是做了通信的,ssh也可以直接连到52的
install start
check docker on host
load installer docker image
Loaded image: reg.docker.alibaba-inc.com/ocp2/ocp-installer:4.0.0-ce-x86_64
make log dir
make obd dir
Traceback (most recent call last):
File “pipeline/install_ocp.py”, line 43, in
run(context)
File “pipeline/install_ocp.py”, line 33, 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 26, in run
raise Exception(“put precheck script to {0} failed”.format(ip))
Exception: put precheck script to 192.168.91.52 failed

滴滴,有人吗

现在完整的yaml文件能再发下么,看下最新的配置是不是有问题

config1.txt (3.7 KB)

有对192.168.91.52这个机器配置免密么,建议检查下涉及的机器的许可

免密都做了,ssh都可以直接跳过去

安排了相关的同学后续继续处理


把配置文件的内容放在 https://yamlchecker.com 验证了一下,应该是密码的特殊字符配置识别出错了,可以前后加一下’’, 都加了之后验证通过之后再部署