openstack compute service list报错(HTTP 503)

[root@controller ~]# openstack compute service list
Unknown Error (HTTP 503) (Request-ID: req-b4bedf97-115c-401d-9775-b97ec09d9d20)

Unknown Error (HTTP 503)

未知错误(HTTP 503)

/var/log/nova/nova-api.log错误日志显示

2017-11-16 11:54:46.259 16440 ERROR keystonemiddleware.auth_token [-] Bad response code while validating token: 400
2017-11-16 11:54:46.259 16440 WARNING keystonemiddleware.auth_token [-] Identity response: {"error": {"message": "Expecting to find username or userId in passwordCredentials - the server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error.", "code": 400, "title": "Bad Request"}}
2017-11-16 11:54:46.260 16440 CRITICAL keystonemiddleware.auth_token [-] Unable to validate token: Failed to fetch token data from identity server
2017-11-16 11:54:46.263 16440 INFO nova.osapi_compute.wsgi.server [-] 192.168.100.10 "GET /v2.1/af24a3c94886470183c864ef0f161b4c/os-services HTTP/1.1" status: 503 len: 323 time: 0.0119650

说是验证令牌问题

检查配置文件中[keystone_authtoken]设置是否有误

确认无误后重启服务

修改配置文件[keystone_autoken]确认是否无误
[root@controller ~]# vi /etc/nova/nova.conf 
重启服务
[root@controller ~]# systemctl restart openstack-nova-api.service openstack-nova-consoleauth.service openstack-nova-scheduler.service   openstack-nova-conductor.service openstack-nova-novncproxy.service
显示正常
[root@controller ~]# openstack compute service list
+----+------------------+------------+----------+---------+-------+----------------------------+
| Id | Binary           | Host       | Zone     | Status  | State | Updated At                 |
+----+------------------+------------+----------+---------+-------+----------------------------+
|  1 | nova-scheduler   | controller | internal | enabled | up    | 2017-11-16T16:59:41.000000 |
|  2 | nova-conductor   | controller | internal | enabled | up    | 2017-11-16T16:59:41.000000 |
|  3 | nova-consoleauth | controller | internal | enabled | up    | 2017-11-16T16:59:46.000000 |
|  6 | nova-compute     | compute    | nova     | enabled | up    | 2017-11-16T16:59:42.000000 |
+----+------------------+------------+----------+---------+-------+----------------------------+

你可能感兴趣的:(OpenStack错误整理)