1. 程式人生 > >生效admin環境變數後執行cinder service-list報錯ERROR: Unable to establish connection to http://controller:35357/

生效admin環境變數後執行cinder service-list報錯ERROR: Unable to establish connection to http://controller:35357/

ERROR: Unable to establish connection to http://controller:35357/

一、報錯資訊

[[email protected] ~]# . admin-openrc
[[email protected] ~]# cinder service-list
ERROR: Unable to establish connection to http://controller:35357/v3/auth/tokens
[[email protected]

~]# . admin-openrc
[[email protected] ~]# cinder service-list
ERROR: Unable to establish connection to http://controller:35357/v3/auth/tokens
[[email protected] ~]# openstack server list
Discovering versions from the identity service failed when creating the password plugin. Attempting to determine version from URL.
Unable to establish connection to
http://controller:35357/v3/auth/tokens

在這裡插入圖片描述

二、解決方法

1.檢查兩個節點修改的配置檔案是否有誤。
2.重啟httpd、memcached服務

Controller節點

:由the identity service failed可知可能是認證服務有問題

# systemctl restart httpd.service
# systemctl restart memcached.service

3.重啟兩個節點相應的cinder服務

Controller節點

# systemctl restart openstack-cinder-scheduler.service openstack-cinder-api.service

Compute節點

# systemctl restart openstack-cinder-volume.service target.service