微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

无法将计算节点添加到Devstack设置

如何解决无法将计算节点添加到Devstack设置

我有一个Devstack设置,并且控制器工作正常。我尝试通过链接https://docs.openstack.org/devstack/latest/guides/multinode-lab.html添加一个额外的计算节点(Ubuntu 18.04)。

但是,当我尝试./stack.sh时,它会运行一段时间,并失败,并显示以下错误日志:

2020-10-20 05:46:54.310 | Oct 20 05:46:53 u1804-112-24 neutron-openvswitch-agent[3287]: INFO neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent [None req-47e3eb01-530b-46d5-b65f-94fc1326b586 None None] Agent rpc_loop - iteration:5 started
2020-10-20 05:46:54.310 | Oct 20 05:46:53 u1804-112-24 neutron-openvswitch-agent[3287]: DEBUG neutron.plugins.ml2.drivers.openvswitch.agent.openflow.native.ofswitch [None req-47e3eb01-530b-46d5-b65f-94fc1326b586 None None] ofctl request version=0x4,msg_type=0x12,msg_len=0x38,xid=0x76d23e88,OFPFlowStatsRequest(cookie=0,cookie_mask=0,flags=0,match=OFPMatch(oxm_fields={}),out_group=4294967295,out_port=4294967295,table_id=23,type=1) result [OFPFlowStatsReply(body=[OFPFlowStats(byte_count=0,cookie=5488791196782774601,duration_nsec=147000000,duration_sec=11,hard_timeout=0,idle_timeout=0,instructions=[],length=56,packet_count=0,priority=0,table_id=23)],type=1)] {{(pid=3287) _send_msg /opt/stack/neutron/neutron/plugins/ml2/drivers/openvswitch/agent/openflow/native/ofswitch.py:113}}
2020-10-20 05:46:54.310 | Oct 20 05:46:53 u1804-112-24 neutron-openvswitch-agent[3287]: DEBUG neutron.agent.linux.utils [None req-47e3eb01-530b-46d5-b65f-94fc1326b586 None None] Found cmdline ['ovsdb-client','monitor','tcp:127.0.0.1:6640','Interface','name,ofport,external_ids','--format=json'] for process with PID 6648. {{(pid=3287) get_cmdline_from_pid /opt/stack/neutron/neutron/agent/linux/utils.py:345}}
2020-10-20 05:46:54.310 | Oct 20 05:46:53 u1804-112-24 neutron-openvswitch-agent[3287]: INFO neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent [None req-47e3eb01-530b-46d5-b65f-94fc1326b586 None None] Agent rpc_loop - iteration:5 completed. Processed ports statistics: {'regular': {'added': 0,'updated': 0,'removed': 0}}. Elapsed:0.005
2020-10-20 05:46:54.318 | +^[[3242mfunctions-common:service_check:1600      ^[(B^[[m for service in ${ENABLED_SERVICES//,/ }
2020-10-20 05:46:54.327 | +^[[3242mfunctions-common:service_check:1602      ^[(B^[[m sudo systemctl is-enabled devstack@c-vol.service
2020-10-20 05:46:54.344 | enabled
2020-10-20 05:46:54.354 | +^[[3242mfunctions-common:service_check:1606      ^[(B^[[m sudo systemctl status devstack@c-vol.service --no-pager
2020-10-20 05:46:54.390 | ● devstack@c-vol.service - Devstack devstack@c-vol.service
2020-10-20 05:46:54.390 |    Loaded: loaded (/etc/systemd/system/devstack@c-vol.service; enabled; vendor preset: enabled)
2020-10-20 05:46:54.390 |    Active: Failed (Result: exit-code) since Tue 2020-10-20 05:46:51 UTC; 3s ago
2020-10-20 05:46:54.390 |   Process: 8630 ExecStart=/usr/local/bin/cinder-volume --config-file /etc/cinder/cinder.conf (code=exited,status=1/FAILURE)
2020-10-20 05:46:54.390 |  Main PID: 8630 (code=exited,status=1/FAILURE)
2020-10-20 05:46:54.390 |
2020-10-20 05:46:54.390 | Oct 20 05:46:50 u1804-112-24 cinder-volume[8630]: ERROR cinder.cmd.volume   File "/usr/local/lib/python3.6/dist-packages/pyMysqL/protocol.py",line 223,in raise_for_error
2020-10-20 05:46:54.390 | Oct 20 05:46:50 u1804-112-24 cinder-volume[8630]: ERROR cinder.cmd.volume     err.raise_MysqL_exception(self._data)
2020-10-20 05:46:54.390 | Oct 20 05:46:50 u1804-112-24 cinder-volume[8630]: ERROR cinder.cmd.volume   File "/usr/local/lib/python3.6/dist-packages/pyMysqL/err.py",line 107,in raise_MysqL_exception
2020-10-20 05:46:54.390 | Oct 20 05:46:50 u1804-112-24 cinder-volume[8630]: ERROR cinder.cmd.volume     raise errorclass(errno,errval)
2020-10-20 05:46:54.390 | Oct 20 05:46:50 u1804-112-24 cinder-volume[8630]: ERROR cinder.cmd.volume sqlalchemy.exc.OperationalError: (pyMysqL.err.OperationalError) (1045,"Access denied for user 'root'@'xxx.xxx.112.24' (using password: YES)")
2020-10-20 05:46:54.391 | Oct 20 05:46:50 u1804-112-24 cinder-volume[8630]: ERROR cinder.cmd.volume (Background on this error at: http://sqlalche.me/e/13/e3q8)
2020-10-20 05:46:54.391 | Oct 20 05:46:50 u1804-112-24 cinder-volume[8630]: ERROR cinder.cmd.volume
2020-10-20 05:46:54.391 | Oct 20 05:46:50 u1804-112-24 cinder-volume[8630]: ERROR cinder.cmd.volume [None req-bf29d05b-7078-40f2-9b94-ee63e2e67bb1 None None] No volume service(s) started successfully,terminating.
2020-10-20 05:46:54.391 | Oct 20 05:46:51 u1804-112-24 systemd[1]: devstack@c-vol.service: Main process exited,code=exited,status=1/FAILURE
2020-10-20 05:46:54.391 | Oct 20 05:46:51 u1804-112-24 systemd[1]: devstack@c-vol.service: Failed with result 'exit-code'.
2020-10-20 05:46:54.402 | +^[[3242mfunctions-common:service_check:1         ^[(B^[[m exit_trap
2020-10-20 05:46:54.412 | +^[[3242m./stack.sh:exit_trap:491                 ^[(B^[[m local r=3
2020-10-20 05:46:54.424 | ++^[[3242m./stack.sh:exit_trap:492                 ^[(B^[[m jobs -p
2020-10-20 05:46:54.435 | +^[[3242m./stack.sh:exit_trap:492                 ^[(B^[[m jobs=
2020-10-20 05:46:54.445 | +^[[3242m./stack.sh:exit_trap:495                 ^[(B^[[m [[ -n '' ]]
2020-10-20 05:46:54.455 | +^[[3242m./stack.sh:exit_trap:501                 ^[(B^[[m '[' -f /tmp/tmp.7lsjW6Tcav ']'
2020-10-20 05:46:54.465 | +^[[3242m./stack.sh:exit_trap:502                 ^[(B^[[m rm /tmp/tmp.7lsjW6Tcav
2020-10-20 05:46:54.478 | +^[[3242m./stack.sh:exit_trap:506                 ^[(B^[[m kill_spinner
2020-10-20 05:46:54.488 | +^[[3242m./stack.sh:kill_spinner:401              ^[(B^[[m '[' '!' -z '' ']'
2020-10-20 05:46:54.499 | +^[[3242m./stack.sh:exit_trap:508                 ^[(B^[[m [[ 3 -ne 0 ]]
2020-10-20 05:46:54.509 | +^[[3242m./stack.sh:exit_trap:509                 ^[(B^[[m echo 'Error on exit'
2020-10-20 05:46:54.509 | Error on exit
2020-10-20 05:46:54.520 | +^[[3242m./stack.sh:exit_trap:511                 ^[(B^[[m type -p generate-subunit
2020-10-20 05:46:54.531 | +^[[3242m./stack.sh:exit_trap:512                 ^[(B^[[m generate-subunit 1603172632 182 fail
2020-10-20 05:46:55.547 | +^[[3242m./stack.sh:exit_trap:514                 ^[(B^[[m [[ -z /opt/stack/logs ]]
2020-10-20 05:46:55.557 | +^[[3242m./stack.sh:exit_trap:517                 ^[(B^[[m /usr/bin/python3.6 /opt/stack/devstack/tools/worlddump.py -d /opt/stack/logs
2020-10-20 05:46:55.754 | Command "-6" is unkNown,try "ip route help".
2020-10-20 05:46:56.509 | nova-compute: no process found
2020-10-20 05:46:56.595 | neutron-openvswitch-agent: no process found
2020-10-20 05:46:56.633 | +^[[3242m./stack.sh:exit_trap:526                 ^[(B^[[m exit 3

有人可以帮我找出问题所在吗?据我调试,我认为

ERROR cinder.cmd.volume sqlalchemy.exc.OperationalError: (pyMysqL.err.OperationalError) (1045,"Access denied for user 'root'@'xxx.xxx.112.24' (using password: YES)")

表示它正在尝试连接到xxx.xxx.112.24 MysqL。但是,只有我的OpenStack控制器(xxx.xxx.112.21)具有Myssql安装,但是./stack.sh试图连接到Compute节点(xxx.xxx.112.24)的MysqL安装。我可能在这里错了。

任何人都可以帮助我完成此部署并将我的计算节点添加到Devstack控制器中。

谢谢。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。