yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #52315
[Bug 1589916] Re: "glance location-add" failed when url is "cinder://volume-id"
Thank you, wangxiyuan, Kairat.
That openstack is not exist and my new openstack has no this error.
** Changed in: glance
Status: New => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1589916
Title:
"glance location-add" failed when url is "cinder://volume-id"
Status in Glance:
Invalid
Bug description:
The version is mitaka.
Glance Configuration:
show_image_direct_url=True
show_multiple_locations=True.
Steps:
1. Upload a image (cirros-0.3.1-x86_64-disk.img, f71dff58-36ca-46ea-8258-0f3c9a4cd747);
2. Create a volume(id:123fb906-bed5-4b55-8a82-1f2e6bed424b) from the image(backend is fujitsu, others same);
3. Add a location to the image(url:http), success;
#glance location-add --url http://10.43.176.8/images/cirros-0.3.1-x86_64-disk.img f71dff58-36ca-46ea-8258-0f3c9a4cd747
4. Add a location to the image(url:cinder//volume-id) failed;
#glance location-add --url cinder://123fb906-bed5-4b55-8a82-1f2e6bed424b f71dff58-36ca-46ea-8258-0f3c9a4cd747
400 Bad Request
Invalid location
(HTTP 400)
The glance-api log is:
2016-06-08 01:38:04.265 DEBUG eventlet.wsgi.server [-] (30577) accepted ('10.43.203.135', 58926) from (pid=30577) server /usr/lib/python2.7/site-packages/eventlet/wsgi.py:868
2016-06-08 01:38:04.267 DEBUG glance.api.middleware.version_negotiation [-] Determining version of request: GET /versions Accept: */* from (pid=30577) process_request /opt/stack/glance/glance/api/middleware/version_negotiation.py:46
2016-06-08 01:38:04.269 INFO eventlet.wsgi.server [-] 10.43.203.135 - - [08/Jun/2016 01:38:04] "GET /versions HTTP/1.1" 200 793 0.001778
2016-06-08 01:38:04.373 DEBUG eventlet.wsgi.server [-] (30577) accepted ('10.43.203.135', 58929) from (pid=30577) server /usr/lib/python2.7/site-packages/eventlet/wsgi.py:868
2016-06-08 01:38:04.374 DEBUG glance.api.middleware.version_negotiation [-] Determining version of request: PATCH /v2/images/f71dff58-36ca-46ea-8258-0f3c9a4cd747 Accept: */* from (pid=30577) process_request /opt/stack/glance/glance/api/middleware/version_negotiation.py:46
2016-06-08 01:38:04.375 DEBUG glance.api.middleware.version_negotiation [-] Using url versioning from (pid=30577) process_request /opt/stack/glance/glance/api/middleware/version_negotiation.py:58
2016-06-08 01:38:04.375 DEBUG glance.api.middleware.version_negotiation [-] Matched version: v2 from (pid=30577) process_request /opt/stack/glance/glance/api/middleware/version_negotiation.py:70
2016-06-08 01:38:04.376 DEBUG glance.api.middleware.version_negotiation [-] new path /v2/images/f71dff58-36ca-46ea-8258-0f3c9a4cd747 from (pid=30577) process_request /opt/stack/glance/glance/api/middleware/version_negotiation.py:71
2016-06-08 01:38:04.604 INFO eventlet.wsgi.server [req-fe0ec689-75f0-4f11-b7ff-692ec84c3a2d 346ce385360c43588f48349ed8f4159e 97330b92c2144c0ea9b8826038d3abe3] 10.43.203.135 - - [08/Jun/2016 01:38:04] "PATCH /v2/images/f71dff58-36ca-46ea-8258-0f3c9a4cd747 HTTP/1.1" 400 254 0.229389
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1589916/+subscriptions
References