Ask Your Question
0

Cinder volume creating error

asked 2013-11-22 01:54:09 -0600

oyc gravatar image

cinder create 1 --display-name volume1 --image-id d752ce4d-7921-4560-ac51-e9042181bc54 --availability-zone nova

I typed above to create cinder volume, and I got a message like :

ERROR: Unable to establish connection: HTTPConnectionPool(host='controller', port=8776): Max retries exceeded with url: /v1/08a07e7ae5c042a5b6cf10eceb8ac8f9/volumes (Caused by <class 'socket.error'="">: [Errno 111] Connection refused)</class>

edit retag flag offensive close merge delete

Comments

Start by checking the firewall on the controller node (make sure port 8776 is open). Make sure the endpoint exists by doing 'keystone endpoint-list' and look for port 8776. Check '/etc/cinder.conf' and make sure the cinder username/password are correct. Also make sure cinder services are running.

dtaylor gravatar imagedtaylor ( 2014-02-06 20:18:53 -0600 )edit

3 answers

Sort by ยป oldest newest most voted
0

answered 2017-06-14 23:07:42 -0600

Prasanta Dey gravatar image

I had faced similar issue.

root@srv1:~# cinder list ERROR: Unable to establish connection to http://192.0.2.25:8776/v2/7bd7c0c8a9ee4c84ab09b7b22ff91d4f/volumes/detail (http://192.0.2.25:8776/v2/7bd7c0c8a9e...)

To rectify the issue. I have edited parameter "osapi_volume_listen = " of cinder.conf, the osapi IP changed from 0.0.0.0 to 192.0.2.25(IP of the cinder node). Also populated /etc/hosts file with ip and host name of all nodes.

root@srv1:~# cinder list +----+--------+------+------+-------------+----------+-------------+ | ID | Status | Name | Size | Volume Type | Bootable | Attached to | +----+--------+------+------+-------------+----------+-------------+ +----+--------+------+------+-------------+----------+-------------+ root@srv1:~#

Thanks

edit flag offensive delete link more
0

answered 2014-02-06 13:17:41 -0600

Napo Mokoetle gravatar image

updated 2014-02-06 16:03:15 -0600

I was experiencing the same error. After a week I related that the error message has host=controller in it, which I found puzzling because my Nova Controller uses a different hostname. I searched all the configuration files under /etc to see if any of them define "controller" as a host name but found none. Nonetheless to work-around the problem, I simply added another ip/hostname entry in /etc/hosts for hostname 'controller', and the problem immediately disappeared. Hope that helps.

========================= [Thu Feb 06 21:55:16.481916 2014] [:error] [pid 30060:tid 140292521580288] raise exceptions.ConnectionError(msg) [Thu Feb 06 21:55:16.481923 2014] [:error] [pid 30060:tid 140292521580288] ConnectionError: Unable to establish connection: HTTPConnectionPool(host='controller', port=8776): Max retries exceeded with url: /v1/6eece3e2a2bf4a36a719e2e61adf1f6d/volumes/detail?all_tenants=True (Caused by <class 'socket.gaierror'="">: [Errno -2] Name or service not known)

=========================

Can some one please explain to me what configuration files determines the host='controller' value and port=8776 as reflected by the extract from error.log above. It's seems to me these values just flip at will with varying service denial messages. With my changing anything, the message all of a sudden appears as follows when I click on items within the Horizon web interface...

======================== [Thu Feb 06 22:01:22.267529 2014] [:error] [pid 30060:tid 140292563543808] raise ConnectionError(e) [Thu Feb 06 22:01:22.267535 2014] [:error] [pid 30060:tid 140292563543808] ConnectionError: HTTPConnectionPool(host='196.13.145.180', port=8774): Max retries exceeded with url: /v2/6eece3e2a2bf4a36a719e2e61adf1f6d/servers/detail?limit=21&all_tenants=True (Caused by <class 'socket.error'="">: [Errno 111] Connection refused)

=======================

edit flag offensive delete link more
0

answered 2013-11-22 06:28:53 -0600

simone.tiraboschi gravatar image

updated 2013-11-22 06:29:08 -0600

Cider is the service that should listen on port 8776, in your case it seams off. Please check

/var/log/cinder/cinder-*.log

and

/etc/init.d/openstack-cinder-api status
/etc/init.d/openstack-cinder-volume status

ciao

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2013-11-22 01:54:09 -0600

Seen: 3,632 times

Last updated: Feb 06 '14