qq_39170130
wwys
2019-04-09 20:48

openstack验证nova时执行openstack host list命令报错

  • linux
  • centos
  • 云计算

这是执行命令后报的错误
The server is currently unavailable. Please try again at a later time.

(HTTP 503) (Request-ID: req-cc86ee4c-b854-4577-ba9a-57190d2cf39c)

这是日志中报的错误
2019-04-09 20:37:56.792 1778 WARNING keystonemiddleware.auth_token [-] Identity response: {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}
2019-04-09 20:37:56.793 1778 CRITICAL keystonemiddleware.auth_token [-] Unable to validate token: Identity server rejected authorization necessary to fetch token data

这是我改的配置文件(基于n版)
[root@bogon ~]# egrep "^[a-z]" /etc/nova/nova.conf
use_neutron=True
firewall_driver = nova.virt.firewall.NoopFirewallDriver
enabled_apis=osapi_compute,metadata
auth_strategy=keystone
connection=mysql+pymysql://nova:nova@192.168.131.129/nova_api
connection=mysql+pymysql://nova:nova@192.168.131.129/nova
api_servers=http://192.168.131.129:9292
auth_uri = http://192.168.131.129:5000
auth_url = http://192.168.131.129:35357
memcached_servers = 192.168.131.129:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = nova
password = nova
lock_path=/var/lib/nova/tmp
transport_url=rabbit://openstack:openstack@192.168.131.129
vncserver_listen=0.0.0.0
vncserver_proxyclient_address=192.168.131.129

我确定nova的用户和密码是正确的,以及服务也创建成功了的

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答