OpenStack:Nova组件 排错
来自CloudWiki
目录
因虚拟化没开引起的
错误描述
无法用nova命令创建云主机
解决方案
查看vmware虚拟机虚拟化功能是否打开:
因Keystone引起的故障
错误描述
报错
source /etc/keystone/admin-openrc.sh
[root@controller ~]# nova secgroup-create test 'test the nova command about the rules'
No handlers could be found for logger "keystoneauth.identity.generic.base" ERROR (ConnectFailure): Unable to establish connection to http://controller:35357/v3/auth/tokens
解决方案
systemctl restart httpd
因Neutron引起的故障
错误描述
[root@controller ~]# nova secgroup-create test 'test the nova command about the rules'
ERROR (clientException): unexpected API Error. please report this at http://bugs.launchpad.net/nova/ and attach the Nova ,API _1og if possible.___ -、 <class 'keystoneauth1.exceptions. connection.connectFaiure 's (HTTP 500)(Request-ID: req-4ff3ee61-9f13-4e08-9d60-68ce1leaed91)
解决方案
[root@controller ~]# tailf /var/1og/nova/nova-api.log
2021-12-01 22:45:16.000 3892 ERROR nova.api.openstack.extensions 2021-12-01 22:45:16.008 3892 INFO nova.api.openstack.wsgi [req-30768ebb-3efc-4196-8b3d-441b89cc634dObefa70f767848e39df8224107b71858 f9ff39ba9daa4e5a8fee1fc50e2d2b34 ,- - -] HTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova APr logif_possib1e. <class 'keystoneauth1.exceptions.connection.connectFailure '> 2021-12-01 _22:45:16.011.3892.INFO nova.osapi_compute .wsgi .server [req-30768ebb-3efc-4196-8b3d-441b89cc634d Obefa70f767848e39df8224107b71858 f9ff39ba9daa4e5a8feelfc50e2d2b34 -- -] 192.168.100.10 "PoST/v2.1/f9ff39ba9daa4e5a8feelfc50e2d2b34/servers HTTP/1.1" status: 500 1en:527'time:0.1990910
排查发现是网络组件neutron的问题
systemctl status neutron-server.service 状态为dead
systemctl restart neutron-server.service 即可