openstack kolla 安装报错

在prechecks阶段报错

1.rabbit报错

报错信息

TASK [rabbitmq : Check if each rabbit hostname resolves uniquely to the proper IP address] ******************************************************************************************************************
failed: [localhost] (item=[{'cmd': ['getent', 'ahostsv4', 'localhost'], 'stdout': '127.0.0.1       STREAM localhost\n127.0.0.1       DGRAM  \n127.0.0.1       RAW    \n192.168.130.203 STREAM \n192.168.130.203 DGRAM  \n192.168.130.203 RAW    ', 'stderr': '', 'rc': 0, 'start': '2020-12-07 02:24:32.350705', 'end': '2020-12-07 02:24:32.355117', 'delta': '0:00:00.004412', 'changed': False, 'invocation': {'module_args': {'_raw_params': 'getent ahostsv4 localhost', 'warn': True, '_uses_shell': False, 'stdin_add_newline': True, 'strip_empty_ends': True, 'argv': None, 'chdir': None, 'executable': None, 'creates': None, 'removes': None, 'stdin': None}}, 'stderr_lines': [], 'failed': False, 'item': 'localhost', 'ansible_loop_var': 'item'}, '127.0.0.1       STREAM localhost']) => {"ansible_loop_var": "item", "changed": false, "item": [{"ansible_loop_var": "item", "changed": false, "cmd": ["getent", "ahostsv4", "localhost"], "delta": "0:00:00.004412", "end": "2020-12-07 02:24:32.355117", "failed": false, "invocation": {"module_args": {"_raw_params": "getent ahostsv4 localhost", "_uses_shell": false, "argv": null, "chdir": null, "creates": null, "executable": null, "removes": null, "stdin": null, "stdin_add_newline": true, "strip_empty_ends": true, "warn": true}}, "item": "localhost", "rc": 0, "start": "2020-12-07 02:24:32.350705", "stderr": "", "stderr_lines": [], "stdout": "127.0.0.1       STREAM localhost\n127.0.0.1       DGRAM  \n127.0.0.1       RAW    \n192.168.130.203 STREAM \n192.168.130.203 DGRAM  \n192.168.130.203 RAW    "}, "127.0.0.1       STREAM localhost"], "msg": "Hostname has to resolve uniquely to the IP address of api_interface"}

原因和解决方法:

hosts文件被ansible添加了‘192.168.130.203 localhost’的hostname,将‘127.0.0.1 localhost’注释掉即可

 

2.cinder节点报错

报错信息:

TASK [cinder : Checking LVM volume group exists for Cinder] *************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "cmd": ["vgs", "cinder-volumes"], "delta": "0:00:00.045743", "end": "2020-12-07 02:27:49.501416", "failed_when_result": true, "msg": "non-zero return code", "rc": 5, "start": "2020-12-07 02:27:49.455673", "stderr": "  Volume group \"cinder-volumes\" not found.\n  Cannot process volume group cinder-volumes", "stderr_lines": ["  Volume group \"cinder-volumes\" not found.", "  Cannot process volume group cinder-volumes"], "stdout": "", "stdout_lines": []}

原因和解决方法:

未创建cinder-volumes的vg信息

pvcreate /dev/sdb

vgcreate cinder-volumes /dev/sdb

 

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值