Bug 1119879
| Summary: | Image could not be found after upload when ceph backend | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | bkopilov <bkopilov> | ||||
| Component: | openstack-cinder | Assignee: | Eric Harney <eharney> | ||||
| Status: | CLOSED UPSTREAM | QA Contact: | nlevinki <nlevinki> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 5.0 (RHEL 7) | CC: | eharney, fpercoco, scohen, yeylon | ||||
| Target Milestone: | --- | ||||||
| Target Release: | 5.0 (RHEL 7) | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2014-07-16 16:03:23 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
bkopilov
2014-07-15 17:53:58 UTC
I think this is a failure on the Glance side... I'm not sure from the log what the exact reason is but it looks like a failure to write data to the rbd backend. It looks like there may be a bug in error handling for this case, though. 2014-07-15 10:19:48.814 18627 DEBUG glance.store.rbd [15ecac81-da92-45cd-abb8-76cff563aeed 8e185a6055d945c98098e7151137b52d 8d44d3c0b1114621b30653cb49063d99 - - -] resizing image to 2097152 KiB add /usr/lib/python2.7/site-packages/glance/store/rbd.py:354 2014-07-15 10:19:49.193 18627 DEBUG glance.store.rbd [15ecac81-da92-45cd-abb8-76cff563aeed 8e185a6055d945c98098e7151137b52d 8d44d3c0b1114621b30653cb49063d99 - - -] writing chunk at offset 2139095040 add /usr/lib/python2.7/site-packages/glance/store/rbd.py:357 2014-07-15 10:19:51.954 18627 DEBUG glance.db.sqlalchemy.api [15ecac81-da92-45cd-abb8-76cff563aeed 8e185a6055d945c98098e7151137b52d 8d44d3c0b1114621b30653cb49063d99 - - -] No image found with ID 6931741c-53c2-43f5-9983-a8bbcf04bc40 _image_get /usr/lib/python2.7/site-packages/glance/db/sqlalchemy/api.py:182 2014-07-15 10:19:51.955 18627 WARNING glance.api.v2.image_data [15ecac81-da92-45cd-abb8-76cff563aeed 8e185a6055d945c98098e7151137b52d 8d44d3c0b1114621b30653cb49063d99 - - -] Image 6931741c-53c2-43f5-9983-a8bbcf04bc40 could not be found after upload.The image may have been deleted during the upload: No image found with ID 6931741c-53c2-43f5-9983-a8bbcf04bc40 Cleaning up the chunks uploaded 2014-07-15 10:20:00.082 18627 ERROR glance.api.v2.image_data [15ecac81-da92-45cd-abb8-76cff563aeed 8e185a6055d945c98098e7151137b52d 8d44d3c0b1114621b30653cb49063d99 - - -] Failed to upload image data due to HTTP error A delete happens somewhere before the _restore() is called which results in: InvalidImageStatusTransition: Image status transition from deleted to queued is not allowed This is not a Glance issue. TBH, it sounds more like a tempest race condition. I think the scenario causing this issue is:
1. Image created
2. Volume upload called
3. Test ends before the volume upload completes and deletes the image.
Here's a chunk of log that supports the above scenario:
2014-07-15 10:18:52.877 18626 DEBUG routes.middleware [afd7910a-653a-49ff-b382-323e21b0b74b 8e185a6055d945c98098e7151137b52d 8d44d3c0b1114621b30653cb49063d99 - - -] Matched DELETE /images/6931741c-53c2-43f5-9983-a8bbcf04bc40 __call__ /usr/lib/python2.7/site-packages/routes/middleware.py:100
2014-07-15 10:18:52.878 18626 DEBUG routes.middleware [afd7910a-653a-49ff-b382-323e21b0b74b 8e185a6055d945c98098e7151137b52d 8d44d3c0b1114621b30653cb49063d99 - - -] Route path: '/images/{id}', defaults: {'action': u'delete', 'controller': <glance.common.wsgi.Resource object at 0x2754710>} __call__ /usr/lib/python2.7/site-packages/routes/middleware.py:102
2014-07-15 10:18:52.878 18626 DEBUG routes.middleware [afd7910a-653a-49ff-b382-323e21b0b74b 8e185a6055d945c98098e7151137b52d 8d44d3c0b1114621b30653cb49063d99 - - -] Match dict: {'action': u'delete', 'controller': <glance.common.wsgi.Resource object at 0x2754710>, 'id': u'6931741c-53c2-43f5-9983-a8bbcf04bc40'} __call__ /usr/lib/python2.7/site-packages/routes/middleware.py:103
2014-07-15 10:18:52.878 18626 DEBUG glance.common.client [afd7910a-653a-49ff-b382-323e21b0b74b 8e185a6055d945c98098e7151137b52d 8d44d3c0b1114621b30653cb49063d99 - - -] Constructed URL: http://0.0.0.0:9191/images/6931741c-53c2-43f5-9983-a8bbcf04bc40 _construct_url /usr/lib/python2.7/site-packages/glance/common/client.py:411
2014-07-15 10:18:52.896 18626 DEBUG glance.registry.client.v1.client [afd7910a-653a-49ff-b382-323e21b0b74b 8e185a6055d945c98098e7151137b52d 8d44d3c0b1114621b30653cb49063d99 - - -] Registry request GET /images/6931741c-53c2-43f5-9983-a8bbcf04bc40 HTTP 200 request id req-db87266e-0eee-4dfe-a07b-66032d1b9de5 do_request /usr/lib/python2.7/site-packages/glance/registry/client/v1/client.py:114
2014-07-15 10:18:52.896 18626 DEBUG glance.registry.client.v1.api [afd7910a-653a-49ff-b382-323e21b0b74b 8e185a6055d945c98098e7151137b52d 8d44d3c0b1114621b30653cb49063d99 - - -] Updating image metadata for image 6931741c-53c2-43f5-9983-a8bbcf04bc40... update_image_metadata /usr/lib/python2.7/site-packages/glance/registry/client/v1/api.py:166
2014-07-15 10:18:52.897 18626 DEBUG glance.common.client [afd7910a-653a-49ff-b382-323e21b0b74b 8e185a6055d945c98098e7151137b52d 8d44d3c0b1114621b30653cb49063d99 - - -] Constructed URL: http://0.0.0.0:9191/images/6931741c-53c2-43f5-9983-a8bbcf04bc40 _construct_url /usr/lib/python2.7/site-packages/glance/common/client.py:411
2014-07-15 10:18:52.925 18626 DEBUG glance.registry.client.v1.client [afd7910a-653a-49ff-b382-323e21b0b74b 8e185a6055d945c98098e7151137b52d 8d44d3c0b1114621b30653cb49063d99 - - -] Registry request PUT /images/6931741c-53c2-43f5-9983-a8bbcf04bc40 HTTP 200 request id req-2f1bded0-0d62-4b3a-916c-936a41647c39 do_request /usr/lib/python2.7/site-packages/glance/registry/client/v1/client.py:114
2014-07-15 10:18:52.925 18626 DEBUG glance.registry.client.v1.api [afd7910a-653a-49ff-b382-323e21b0b74b 8e185a6055d945c98098e7151137b52d 8d44d3c0b1114621b30653cb49063d99 - - -] Deleting image metadata for image 6931741c-53c2-43f5-9983-a8bbcf04bc40... delete_image_metadata /usr/lib/python2.7/site-packages/glance/registry/client/v1/api.py:173
2014-07-15 10:18:52.926 18626 DEBUG glance.common.client [afd7910a-653a-49ff-b382-323e21b0b74b 8e185a6055d945c98098e7151137b52d 8d44d3c0b1114621b30653cb49063d99 - - -] Constructed URL: http://0.0.0.0:9191/images/6931741c-53c2-43f5-9983-a8bbcf04bc40 _construct_url /usr/lib/python2.7/site-packages/glance/common/client.py:411
2014-07-15 10:18:52.945 18626 DEBUG glance.registry.client.v1.client [afd7910a-653a-49ff-b382-323e21b0b74b 8e185a6055d945c98098e7151137b52d 8d44d3c0b1114621b30653cb49063d99 - - -] Registry request DELETE /images/6931741c-53c2-43f5-9983-a8bbcf04bc40 HTTP 200 request id req-59e72df9-c6be-40bd-996d-7c6a1d25faf4 do_request /usr/lib/python2.7/site-packages/glance/registry/client/v1/client.py:114
2014-07-15 10:18:52.946 18626 INFO glance.wsgi.server [afd7910a-653a-49ff-b382-323e21b0b74b 8e185a6055d945c98098e7151137b52d 8d44d3c0b1114621b30653cb49063d99 - - -] 192.168.2.20 - - [15/Jul/2014 10:18:52] "DELETE /v1/images/6931741c-53c2-43f5-9983-a8bbcf04bc40 HTTP/1.1" 200 200 0.072712
2014-07-15 10:18:53.365 18627 DEBUG glance.store.rbd [15ecac81-da92-45cd-abb8-76cff563aeed 8e185a6055d945c98098e7151137b52d 8d44d3c0b1114621b30653cb49063d99 - - -] resizing image to 1851392 KiB add /usr/lib/python2.7/site-packages/glance/store/rbd.py:354
2014-07-15 10:18:53.444 18627 DEBUG glance.store.rbd [15ecac81-da92-45cd-abb8-76cff563aeed 8e185a6055d945c98098e7151137b52d 8d44d3c0b1114621b30653cb49063d99 - - -] writing chunk at offset 1887436800 add /usr/lib/python2.7/site-packages/glance/store/rbd.py:357
2014-07-15 10:18:54.410 18627 DEBUG glance.store.rbd [15ecac81-da92-45cd-abb8-76cff563aeed 8e185a6055d945c98098e7151137b52d 8d44d3c0b1114621b30653cb49063d99 - - -] resizing image to 1859584 KiB add /usr/lib/python2.7/site-packages/glance/store/rbd.py:354
2014-07-15 10:18:55.298 18627 DEBUG glance.store.rbd [15ecac81-da92-45cd-abb8-76cff563aeed 8e185a6055d945c98098e7151137b52d 8d44d3c0b1114621b30653cb49063d99 - - -] writing chunk at offset 1895825408 add /usr/lib/python2.7/site-packages/glance/store/rbd.py:357
2014-07-15 10:18:56.274 18627 DEBUG glance.store.rbd [15ecac81-da92-45cd-abb8-76cff563aeed 8e185a6055d945c98098e7151137b52d 8d44d3c0b1114621b30653cb49063d99 - - -] resizing image to 1867776 KiB add /usr/lib/python2.7/site-packages/glance/store/rbd.py:354
Please, open the bug upstream on tempest to have tempest folks digging into this.
|