Glance deleting the snapshot images(saving Status) automatically! [closed]

asked 2015-12-11 07:18:27 -0500

Vinoth gravatar image

Hi, I have configured glance with swift as backend storage. Uploading a new image to the glance works fine. I have tested uploading the new images and it was successfully uploaded to glance and also got reflected in swift storage glance container.

The issue is with snapshotting the VMs. I have noticed that when I initiated the snapshot creation for the VM it got reflected in the glance image-list as saving. same time I also checked the swift container for the new image with its UUID. But no container got listed with that UUID name. Then all of the sudden the image listed in "Saving" status got vanished. I wonder why the glance deleted the snapshot automatically.

Below Log shows that the glance automatically triggers the DELETE call after sending the object upload request to the swift.

cat /var/log/glance/glance-api.log.1 | grep 23dd45b8-6fa8-451d-9086-d088af8445b7
2015-12-10 18:18:00.309 27964 DEBUG glance.api.middleware.version_negotiation [-] Determining version of request: HEAD /v1/images/23dd45b8-6fa8-451d-9086-d088af8445b7 Accept: */* process_request /usr/lib/python2.7/dist-packages/glance/api/middleware/version_negotiation.py:44
2015-12-10 18:18:00.312 27964 DEBUG glance.api.middleware.version_negotiation [-] new path /v1/images/23dd45b8-6fa8-451d-9086-d088af8445b7 process_request /usr/lib/python2.7/dist-packages/glance/api/middleware/version_negotiation.py:70
2015-12-10 18:18:00.588 27964 DEBUG routes.middleware [0025f418-2f34-4956-8062-90e3fad48bcc cfdeb6d3c6d6478f8986ab67276348e2 c1f8805125f24633ae6e0f67f4d5e773 - - -] Matched HEAD /images/23dd45b8-6fa8-451d-9086-d088af8445b7 __call__ /usr/lib/python2.7/dist-packages/routes/middleware.py:100
2015-12-10 18:18:00.588 27964 DEBUG routes.middleware [0025f418-2f34-4956-8062-90e3fad48bcc cfdeb6d3c6d6478f8986ab67276348e2 c1f8805125f24633ae6e0f67f4d5e773 - - -] Match dict: {'action': u'meta', 'controller': <glance.common.wsgi.Resource object at 0x7f9c64dd3fd0>, 'id': u'23dd45b8-6fa8-451d-9086-d088af8445b7'} __call__ /usr/lib/python2.7/dist-packages/routes/middleware.py:103
2015-12-10 18:18:00.590 27964 DEBUG glance.common.client [0025f418-2f34-4956-8062-90e3fad48bcc cfdeb6d3c6d6478f8986ab67276348e2 c1f8805125f24633ae6e0f67f4d5e773 - - -] Constructed URL: https://api-internal.cloudenablers.net:9191/images/23dd45b8-6fa8-451d-9086-d088af8445b7 _construct_url /usr/lib/python2.7/dist-packages/glance/common/client.py:398
2015-12-10 18:18:00.637 27964 DEBUG glance.registry.client.v1.client [0025f418-2f34-4956-8062-90e3fad48bcc cfdeb6d3c6d6478f8986ab67276348e2 c1f8805125f24633ae6e0f67f4d5e773 - - -] Registry request GET /images/23dd45b8-6fa8-451d-9086-d088af8445b7 HTTP 200 request id req-c057cbe0-52ba-4318-a379-499a8fa0beee do_request /usr/lib/python2.7/dist-packages/glance/registry/client/v1/client.py:122
2015-12-10 18:18:00.642 27964 INFO glance.wsgi.server [0025f418-2f34-4956-8062-90e3fad48bcc cfdeb6d3c6d6478f8986ab67276348e2 c1f8805125f24633ae6e0f67f4d5e773 - - -] 172.31.4.14,172.31.4.12 - - [10/Dec/2015 18:18:00] "HEAD /v1/images/23dd45b8-6fa8-451d-9086-d088af8445b7 HTTP/1.1" 200 1460 0.334535
2015-12-10 18:18:03.974 27980 DEBUG glance.api.middleware.version_negotiation [-] Determining version of request: PUT /v1/images/23dd45b8-6fa8-451d-9086-d088af8445b7 Accept: */* process_request /usr/lib/python2.7/dist-packages/glance/api/middleware/version_negotiation.py:44
2015-12-10 18:18:03.976 27980 DEBUG glance.api.middleware.version_negotiation [-] new path /v1/images/23dd45b8-6fa8-451d-9086-d088af8445b7 process_request /usr/lib/python2.7/dist-packages/glance/api/middleware/version_negotiation.py:70
2015-12-10 18:18:04.233 27980 DEBUG routes.middleware [757f0436-27c1-4f64-8f12-27efe5dada65 cfdeb6d3c6d6478f8986ab67276348e2 c1f8805125f24633ae6e0f67f4d5e773 - - -] Matched PUT /images/23dd45b8-6fa8-451d-9086-d088af8445b7 __call__ /usr/lib/python2.7/dist-packages/routes/middleware.py:100
2015-12-10 18:18:04.234 27980 DEBUG routes.middleware [757f0436-27c1-4f64-8f12-27efe5dada65 cfdeb6d3c6d6478f8986ab67276348e2 c1f8805125f24633ae6e0f67f4d5e773 - - -] Match dict: {'action': u'update', 'controller': <glance.common.wsgi.Resource object at 0x7f9c64dd3fd0>, 'id': u'23dd45b8-6fa8-451d-9086-d088af8445b7'} __call__ /usr/lib/python2.7/dist-packages/routes ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Vinoth
close date 2015-12-15 03:37:54.436382

Comments

Snapshot size is larger ? Can you make sure, you have enough settings in swift for this ?

grep -inr swift_store_large_object /etc/glance/*

Regards

Bipin gravatar imageBipin ( 2015-12-12 21:54:03 -0500 )edit

Thanks for your response Bipin.

We got this issue resolved. We found the nova-compute service was unable to reach the glance service.

Vinoth gravatar imageVinoth ( 2015-12-15 03:37:18 -0500 )edit