本文主要是介绍openstack报错:openstack volume service list The server is currently unavailable.,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
openstack报错:
[root@controller ~]# openstack volume service list
The server is currently unavailable. Please try again at a later time.<br /><br />
The Keystone service is temporarily unavailable.(HTTP 503)
操作:做cinder
报错原因:未在控制节点中的/etc/cinder/cinder.conf中配置[keystone_authtoken]内容:
[keystone_authtoken]
www_authenticate_uri = http://controller:5000
auth_url = http://controller:5000
memcached_servers = controller:11211
auth_type = password
project_domain_id = default
user_domain_id = default
project_name = service
username = cinder
password = 123456
初始化数据库:
[root@controller cinder]# su -s /bin/sh -c "cinder-manage db sync" cinder
重启服务:控制节点
# systemctl restart openstack-nova-api.service
# systemctl enable openstack-cinder-api.service openstack-cinder-scheduler.service
# systemctl restart openstack-cinder-api.service openstack-cinder-scheduler.service
报错的日志:
[root@controller cinder]# cat api.log | grep Error
2024-05-25 07:34:45.457 4030 CRITICAL keystonemiddleware.auth_token [-] Unable to validate token: Unable to establish connection to http://127.0.0.1:35357: HTTPConnectionPool(host='127.0.0.1', port=35357): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7b572c8a10>: Failed to establish a new connection: [Errno 111] ECONNREFUSED',)): ConnectFailure: Unable to establish connection to http://127.0.0.1:35357: HTTPConnectionPool(host='127.0.0.1', port=35357): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7b572c8a10>: Failed to establish a new connection: [Errno 111] ECONNREFUSED',))
2024-05-25 07:35:06.418 4029 CRITICAL keystonemiddleware.auth_token [-] Unable to validate token: Unable to establish connection to http://127.0.0.1:35357: HTTPConnectionPool(host='127.0.0.1', port=35357): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7b572c8a50>: Failed to establish a new connection: [Errno 111] ECONNREFUSED',)): ConnectFailure: Unable to establish connection to http://127.0.0.1:35357: HTTPConnectionPool(host='127.0.0.1', port=35357): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7b572c8a50>: Failed to establish a new connection: [Errno 111] ECONNREFUSED',))
2024-05-25 07:37:07.306 4029 CRITICAL keystonemiddleware.auth_token [-] Unable to validate token: Unable to establish connection to http://127.0.0.1:35357: HTTPConnectionPool(host='127.0.0.1', port=35357): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7b572c8a50>: Failed to establish a new connection: [Errno 111] ECONNREFUSED',)): ConnectFailure: Unable to establish connection to http://127.0.0.1:35357: HTTPConnectionPool(host='127.0.0.1', port=35357): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7b572c8a50>: Failed to establish a new connection: [Errno 111] ECONNREFUSED',))
2024-05-25 07:37:43.755 4029 CRITICAL keystonemiddleware.auth_token [-] Unable to validate token: Unable to establish connection to http://127.0.0.1:35357: HTTPConnectionPool(host='127.0.0.1', port=35357): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7b572c88d0>: Failed to establish a new connection: [Errno 111] ECONNREFUSED',)): ConnectFailure: Unable to establish connection to http://127.0.0.1:35357: HTTPConnectionPool(host='127.0.0.1', port=35357): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7b572c88d0>: Failed to establish a new connection: [Errno 111] ECONNREFUSED',))
[root@controller cinder]#
解决后查看:
[root@controller cinder]# openstack volume service list
+------------------+-------------+------+---------+-------+----------------------------+
| Binary | Host | Zone | Status | State | Updated At |
+------------------+-------------+------+---------+-------+----------------------------+
| cinder-scheduler | controller | nova | enabled | up | 2024-05-25T12:07:46.000000 |
| cinder-volume | compute@lvm | nova | enabled | up | 2024-05-25T12:08:18.000000 |
+------------------+-------------+------+---------+-------+----------------------------+
[root@controller cinder]#
这篇关于openstack报错:openstack volume service list The server is currently unavailable.的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!