问题描述
创建虚拟机实例的时候出现错误:
查看一下日志tail /var/log/nova/nova-api.log
问题分析
Nova-api日志
grep ERROR /var/log/nova/nova-api.log
[root@controller ~]# grep ERROR /var/log/nova/nova-api.log
2021-04-01 16:15:24.574 3204 ERROR nova.network.neutronv2.api [req-8bb9c202-121e-4b11-be29-44c4692ad834 30709782dc3f4a45b4bac74403169b96 094eb73877b0415fa451ded44c969d44 - default default] The [neutron] section of your nova configuration file must be configured for authentication with the networking service endpoint. See the networking service install guide for details: https://docs.openstack.org/neutron/latest/install/
实例日志
grep ERROR /var/log/neutron/server.log
linuxbridge 日志文件
grep ERROR /var/log/neutron/linuxbridge-agent.log
l3 日志文件
grep ERROR /var/log/neutron/l3-agent.log
dhcp 日志文件
grep ERROR /var/log/neutron/dhcp-agent.log
metadata 日志文件
grep ERROR /var/log/neutron/metadata-agent.log
计算节点 linuxbridge 日志文件
grep ERROR /var/log/neutron/linuxbridge-agent.log
查看服务状态
systemctl status \
openstack-nova-api.service \
openstack-nova-scheduler.service \
openstack-nova-conductor.service \
openstack-nova-novncproxy.service
问题解决
分析日志以后发现nova-api的错误而导致其他的网络服务器超时。
根据提示“The [neutron] section of your nova configuration file must be configured for authentication with the networking service endpoint.”大概意思是 必须将nova配置文件的[neutron]部分配置为与网络服务端点进行身份验证。
按照错误提示打开官方按照文档:
https://docs.openstack.org/neutron/latest/install/
具体解决:
1、修改控制节点nova.conf文件,添加[neutron]相关配置
vim /etc/nova/nova.conf
[neutron]
# ...
auth_url=http://controller:5000
auth_type=password
project_domain_name=default
user_domain_name=default
region_name=RegionOne
project_name=service
username=neutron
password=NEUTRON_PASS
service_metadata_proxy=true
metadata_proxy_shared_secret=METADATA_SECRET
2、在控制节点重启nova计算服务
systemctl restart \
openstack-nova-api.service \
openstack-nova-scheduler.service \
openstack-nova-conductor.service \
openstack-nova-novncproxy.service
再次重新创建虚拟机实例问题解决。
文章评论