OpenStack-Train版-创建实例错误: neutronclient.common.exceptions.Unauthorized

记录一次OpenStack-Train的创建实例错误。

问题描述
创建虚拟机实例的时候出现错误:

Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'keystoneauth1.exceptions.http.Unauthorized'> (HTTP 500) (Request-ID: req-89a91418-1eff-497e-a3f6-e92d9a61cd9f)

问题分析
Nova-api日志

2021-08-07 18:51:10.263 20866 ERROR nova.network.neutronv2.api [req-7975a767-8612-4d8f-928f-fc56cdd079a4 8186828629f241ee98a33dd99edd1c2a 51054bfb82f24faa9e5f9647aa70821a - 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/


分析日志以后发现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

  



再次重新创建虚拟机实例问题解决。

 

posted @ 2021-08-09 10:05  RoyFans  阅读(1379)  评论(0编辑  收藏  举报