Ask Your Question
0

Invalid image identifier or unable to access requested image.

asked 2017-05-02 07:48:26 -0600

bertly gravatar image

updated 2017-05-04 02:37:26 -0600

Hi, I did an upgrade from Mitaka to Newton and running into a problem to start a virtual machine. As storage we are using ceph. It seems that cinder cannot access glance, but the glance api responds with 200er and I see a different error in the nova-compute logs.

UPDATE: When I enable glance api v1 in glance-api then it is working again. Any ideas why version 2 is not working?

glance-api.conf ... enable_v1_api=True enable_v2_api=True ...

cinder-api.log

2017-05-02 14:35:52.845 3769 INFO cinder.api.openstack.wsgi [req-ce751821-c230-49d6-a5f3-4e003043607a 217ce8c543b3495fa23b48a99cf9e4c5 3723cf7355e946efbf40f4f29ff845f6 - default default] POST http://controller:8776/v2/3723cf7355e946efbf40f4f29ff845f6/volumes
2017-05-02 14:35:52.847 3769 INFO cinder.api.v2.volumes [req-ce751821-c230-49d6-a5f3-4e003043607a 217ce8c543b3495fa23b48a99cf9e4c5 3723cf7355e946efbf40f4f29ff845f6 - default default] Create volume of 1 GB
2017-05-02 14:35:52.865 3769 INFO cinder.api.openstack.wsgi [req-ce751821-c230-49d6-a5f3-4e003043607a 217ce8c543b3495fa23b48a99cf9e4c5 3723cf7355e946efbf40f4f29ff845f6 - default default] HTTP exception thrown: Invalid image identifier or unable to access requested image. <-------------------
2017-05-02 14:35:52.867 3769 INFO cinder.api.openstack.wsgi [req-ce751821-c230-49d6-a5f3-4e003043607a 217ce8c543b3495fa23b48a99cf9e4c5 3723cf7355e946efbf40f4f29ff845f6 - default default] http://controller:8776/v2/3723cf7355e946efbf40f4f29ff845f6/volumes returned with HTTP 400
2017-05-02 14:35:52.869 3769 INFO eventlet.wsgi.server [req-ce751821-c230-49d6-a5f3-4e003043607a 217ce8c543b3495fa23b48a99cf9e4c5 3723cf7355e946efbf40f4f29ff845f6 - default default] 172.16.102.99 "POST /v2/3723cf7355e946efbf40f4f29ff845f6/volumes HTTP/1.1" status: 400  len: 392 time: 0.0301850

glance-api.log

2017-05-02 14:35:50.490 3678 INFO eventlet.wsgi.server [req-701563e7-c5cc-4c24-afeb-48696ee01d03 217ce8c543b3495fa23b48a99cf9e4c5 3723cf7355e946efbf40f4f29ff845f6 - default default] 172.16.102.99 - - [02/May/2017 14:35:50] "GET /v2/images/d5dcdfa0-1638-4c53-9d2f-27781ff5c76b HTTP/1.1" 200 907 0.026464
2017-05-02 14:35:50.500 3678 INFO eventlet.wsgi.server [req-e5b3420a-741c-44e7-afb2-6e88c11957f9 217ce8c543b3495fa23b48a99cf9e4c5 3723cf7355e946efbf40f4f29ff845f6 - default default] 172.16.102.99 - - [02/May/2017 14:35:50] "GET /v2/schemas/image HTTP/1.1" 200 4364 0.006064
2017-05-02 14:35:51.004 3679 INFO eventlet.wsgi.server [-] 172.16.102.99 - - [02/May/2017 14:35:51] "OPTIONS / HTTP/1.0" 200 94 0.002375
2017-05-02 14:35:51.017 3679 INFO eventlet.wsgi.server [-] 172.16.102.99 - - [02/May/2017 14:35:51] "OPTIONS / HTTP/1.0" 200 94 0.001645
2017-05-02 14:35:51.062 3679 INFO eventlet.wsgi.server [req-4cb01749-2138-4e09-a15b-3c25628b919b 217ce8c543b3495fa23b48a99cf9e4c5 3723cf7355e946efbf40f4f29ff845f6 - default default] 172.16.102.99 - - [02/May/2017 14:35:51] "GET /v2/images/d5dcdfa0-1638-4c53-9d2f-27781ff5c76b HTTP/1.1" 200 907 0.043746
2017-05-02 14:35:51.076 3679 INFO eventlet.wsgi.server [req-87b96c28-b3ba-4dd6-a507-16a7c5bd13ea 217ce8c543b3495fa23b48a99cf9e4c5 3723cf7355e946efbf40f4f29ff845f6 - default default] 172.16.102.99 - - [02/May/2017 14:35:51] "GET /v2/schemas/image HTTP/1.1" 200 4364 0.007997
2017-05-02 14:35:51.945 3680 INFO eventlet.wsgi.server [req-e108571a-2775-4c74-9399-f0141ba61c86 217ce8c543b3495fa23b48a99cf9e4c5 3723cf7355e946efbf40f4f29ff845f6 - default default] 172.16.102.99 - - [02/May/2017 14:35:51] "GET /v2/images?limit=1000&sort_key=created_at&sort_dir=desc HTTP/1.1" 200 2661 0.056409
2017-05-02 14:35:51.958 3680 INFO eventlet.wsgi.server [req-52ed314c-921d-427f-bdcd-9e002e9ee6f2 217ce8c543b3495fa23b48a99cf9e4c5 3723cf7355e946efbf40f4f29ff845f6 - default default] 172.16.102.99 - - [02/May/2017 14:35:51] "GET /v2/schemas/image HTTP/1.1" 200 4364 0.007294

nova-compute.log

2017-05-02 14:35:56.575 30849 ERROR nova.compute ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-05-16 11:27:00 -0600

It seems cinder by default uses glance api v1, so in /etc/cinder/cinder.conf you have to put:

glance_api_version = 2

And restart cinder-api.

At least that worked for me.

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: 2017-05-02 07:48:26 -0600

Seen: 1,372 times

Last updated: May 04 '17