Ask Your Question
0

cinder create volume fails with http 400 image inactive

asked 2016-09-26 09:45:30 -0500

SudhirH gravatar image

Hi,

I have deployed an openstack kilo single node environment. When I am trying to create a cinder volume from a glance image it gives an error [root@localhost ~(keystone_admin)]# cinder -d create 1 --display-name cirrvol --image-id 65b24757-163c-40a0-9285-337a246d5660 --availability-zone nova ERROR: Invalid input received: Image 65b24757-163c-40a0-9285-337a246d5660 is not active. (HTTP 400) (Request-ID: req-cad4d502-d0f4-4bd3-b9e0-c6348eadb41d)

[root@localhost ~(keystone_admin)]# glance image-list +--------------------------------------+------------+-------------+------------------+----------+--------+ | ID | Name | Disk Format | Container Format | Size | Status | +--------------------------------------+------------+-------------+------------------+----------+--------+ | 53622f06-b937-43e8-bb6b-568178a9f5d1 | cirros | qcow2 | bare | 13200896 | active | | 65b24757-163c-40a0-9285-337a246d5660 | cirrostest | qcow2 | bare | 13287936 | active | +--------------------------------------+------------+-------------+------------------+----------+--------+

When I look at the cinder debug logs from api.log file I can see the below errors captured

2016-09-26 20:05:58.212 4583 INFO eventlet.wsgi.server [-] (4583) accepted ('10.105.12.251', 40593) 2016-09-26 20:05:58.217 4583 INFO cinder.api.openstack.wsgi [-] GET http://10.105.12.251:8776/ 2016-09-26 20:05:58.217 4583 DEBUG cinder.api.openstack.wsgi [-] Empty body provided in request get_body /usr/lib/python2.7/site-packages/cinder/api/openstack/wsgi.py:870 2016-09-26 20:05:58.219 4583 INFO cinder.api.openstack.wsgi [-] http://10.105.12.251:8776/ returned with HTTP 200 2016-09-26 20:05:58.220 4583 INFO eventlet.wsgi.server [-] 10.105.12.251 - - [26/Sep/2016 20:05:58] "GET / HTTP/1.1" 200 431 0.003641 2016-09-26 20:05:58.350 4583 DEBUG keystoneclient.session [-] REQ: curl -g -i -X GET http://10.105.12.251:35357/v3/auth/to... -H "X-Subject-Token: {SHA1}f02e708a02d76ab3e45b087f70aae3e555091cf7" -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}df1cd1b0d65ef0e4757d447d867ecd4fcc758bd6" _http_log_request /usr/lib/python2.7/site-packages/keystoneclient/session.py:195 2016-09-26 20:05:58.444 4583 DEBUG keystoneclient.session [-] RESP: [200] X-Subject-Token: {SHA1}f02e708a02d76ab3e45b087f70aae3e555091cf7 Vary: X-Auth-Token Content-Type: application/json Content-Length: 7065 X-Openstack-Request-Id: req-6a1d7f9f-f8fd-4576-a862-1f49534da83a Date: Mon, 26 Sep 2016 14:35:58 GMT Connection: keep-alive RESP BODY: {"token": {"methods": ["password", "token"], "roles": [{"id": "851784401cf24f46a5878ba2f57934a4", "name": "admin"}], "expires_at": "2016-09-26T15:35:58.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "4b37935108134de1b3d1a7e9d716df42", "name": "admin"}, "catalog": "", "extras": {}, "user": {"domain": {"id": "default", "name": "Default"}, "id": "8fede32987354877ad0ef896443c9948", "name": "admin"}, "audit_ids": ["fuLG7tTXQN2blutmWL8TSA"], "issued_at": "2016-09-26T14:35:58.336796"}} _http_log_response /usr/lib/python2.7/site-packages/keystoneclient/session.py:224 2016-09-26 20:05:58.449 4583 INFO cinder.api.openstack.wsgi [req-cad4d502-d0f4-4bd3-b9e0-c6348eadb41d 8fede32987354877ad0ef896443c9948 4b37935108134de1b3d1a7e9d716df42 - - -] POST http://10.105.12.251:8776/v1/4b379351... 2016-09-26 20:05:58.451 4583 DEBUG cinder.api.v1.volumes [req-cad4d502-d0f4-4bd3-b9e0-c6348eadb41d 8fede32987354877ad0ef896443c9948 4b37935108134de1b3d1a7e9d716df42 - - -] Create volume request body: {u'volume': {u'status': u'creating', u'user_id': None, u'imageRef': u'65b24757-163c-40a0-9285-337a246d5660', u'availability_zone': u'nova', 'scheduler_hints': {}, u'attach_status': u'detached', u'display_description': None, u'metadata': {}, u'source_volid': None, u'snapshot_id': None, u'display_name': u'cirrvol', u'project_id': None, u'volume_type': None, u'size': 1}} create /usr/lib/python2.7/site-packages/cinder/api/v1/volumes.py:328 2016-09-26 20:05:58.451 4583 INFO cinder.api.v1.volumes [req-cad4d502-d0f4-4bd3-b9e0-c6348eadb41d 8fede32987354877ad0ef896443c9948 4b37935108134de1b3d1a7e9d716df42 - - -] Create volume of 1 GB 2016-09-26 20:05:58.465 4583 DEBUG cinder.volume.api [req-4c8c2ee3-2426-4193-9d72-863a5c359ed2 - - - - -] Availability zone cache updated, next update will occur around 2016-09-26 15:35:58.464714. list_availability_zones /usr/lib/python2.7/site-packages/cinder/volume/api.py ... (more)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-09-27 09:22:34 -0500

SudhirH gravatar image

This was a bug in the python-glance client https://bugs.launchpad.net/python-gla... Fixed by downloading the latest files.

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

1 follower

Stats

Asked: 2016-09-26 09:45:30 -0500

Seen: 469 times

Last updated: Sep 27 '16