执行命令openstack compute service list提示鉴权失败的解决方法

问题现象描述

在Nova执行命令openstack compute service list查看service list时提示“The server is currently unavailable. The Keystone service is temporarily unavailable.”。

关键过程、根本原因分析

nova密码不正确。

结论、解决方案及效果

  1. 重新配置nova密码。

    openstack user set --password NEW_PASSWORD USERNAME

  2. 检查配置文件“/etc/nova/nova.conf”的[keystone_authtoken]字段内容,并修改为正确的信息。

  3. 重启服务,使修改后的配置生效。

    systemctl restart openstack-nova-api.service openstack-nova-scheduler.service openstack-nova-conductor.service