Ask Your Question

Revision history [back]

Glance deleting the snapshot images(saving Status) automatically!

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/middleware.py:103
2015-12-10 18:18:04.236 27980 DEBUG glance.common.client [757f0436-27c1-4f64-8f12-27efe5dada65 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:04.282 27980 DEBUG glance.registry.client.v1.client [757f0436-27c1-4f64-8f12-27efe5dada65 cfdeb6d3c6d6478f8986ab67276348e2 c1f8805125f24633ae6e0f67f4d5e773 - - -] Registry request GET /images/23dd45b8-6fa8-451d-9086-d088af8445b7 HTTP 200 request id req-781379da-b97b-4ecc-b2c1-50bbc517abbb do_request /usr/lib/python2.7/dist-packages/glance/registry/client/v1/client.py:122
2015-12-10 18:18:04.285 27980 DEBUG glance.registry.client.v1.api [757f0436-27c1-4f64-8f12-27efe5dada65 cfdeb6d3c6d6478f8986ab67276348e2 c1f8805125f24633ae6e0f67f4d5e773 - - -] Updating image metadata for image 23dd45b8-6fa8-451d-9086-d088af8445b7... update_image_metadata /usr/lib/python2.7/dist-packages/glance/registry/client/v1/api.py:166
2015-12-10 18:18:04.286 27980 DEBUG glance.common.client [757f0436-27c1-4f64-8f12-27efe5dada65 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:04.608 27980 DEBUG glance.registry.client.v1.client [757f0436-27c1-4f64-8f12-27efe5dada65 cfdeb6d3c6d6478f8986ab67276348e2 c1f8805125f24633ae6e0f67f4d5e773 - - -] Registry request PUT /images/23dd45b8-6fa8-451d-9086-d088af8445b7 HTTP 200 request id req-ecb479b4-08f6-4faf-9e98-cb5687db6685 do_request /usr/lib/python2.7/dist-packages/glance/registry/client/v1/client.py:122
2015-12-10 18:18:04.612 27980 DEBUG glance.common.client [757f0436-27c1-4f64-8f12-27efe5dada65 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:04.708 27980 DEBUG glance.registry.client.v1.client [757f0436-27c1-4f64-8f12-27efe5dada65 cfdeb6d3c6d6478f8986ab67276348e2 c1f8805125f24633ae6e0f67f4d5e773 - - -] Registry request GET /images/23dd45b8-6fa8-451d-9086-d088af8445b7 HTTP 200 request id req-683eebe5-b00a-4767-90b0-fc9726d79005 do_request /usr/lib/python2.7/dist-packages/glance/registry/client/v1/client.py:122
2015-12-10 18:18:04.712 27980 DEBUG glance.api.v1.images [757f0436-27c1-4f64-8f12-27efe5dada65 cfdeb6d3c6d6478f8986ab67276348e2 c1f8805125f24633ae6e0f67f4d5e773 - - -] Setting image 23dd45b8-6fa8-451d-9086-d088af8445b7 to status 'saving' _upload /usr/lib/python2.7/dist-packages/glance/api/v1/images.py:617
2015-12-10 18:18:04.713 27980 DEBUG glance.registry.client.v1.api [757f0436-27c1-4f64-8f12-27efe5dada65 cfdeb6d3c6d6478f8986ab67276348e2 c1f8805125f24633ae6e0f67f4d5e773 - - -] Updating image metadata for image 23dd45b8-6fa8-451d-9086-d088af8445b7... update_image_metadata /usr/lib/python2.7/dist-packages/glance/registry/client/v1/api.py:166
2015-12-10 18:18:04.714 27980 DEBUG glance.common.client [757f0436-27c1-4f64-8f12-27efe5dada65 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:04.846 27980 DEBUG glance.registry.client.v1.client [757f0436-27c1-4f64-8f12-27efe5dada65 cfdeb6d3c6d6478f8986ab67276348e2 c1f8805125f24633ae6e0f67f4d5e773 - - -] Registry request PUT /images/23dd45b8-6fa8-451d-9086-d088af8445b7 HTTP 200 request id req-68319259-3dc0-4d69-8342-4deb29866764 do_request /usr/lib/python2.7/dist-packages/glance/registry/client/v1/client.py:122
2015-12-10 18:18:04.849 27980 DEBUG glance.api.v1.images [757f0436-27c1-4f64-8f12-27efe5dada65 cfdeb6d3c6d6478f8986ab67276348e2 c1f8805125f24633ae6e0f67f4d5e773 - - -] Uploading image data for image 23dd45b8-6fa8-451d-9086-d088af8445b7 to swift store _upload /usr/lib/python2.7/dist-packages/glance/api/v1/images.py:623
2015-12-10 18:18:05.208 27980 DEBUG glance_store._drivers.swift.store [757f0436-27c1-4f64-8f12-27efe5dada65 cfdeb6d3c6d6478f8986ab67276348e2 c1f8805125f24633ae6e0f67f4d5e773 - - -] Adding image object '23dd45b8-6fa8-451d-9086-d088af8445b7' to Swift add /usr/lib/python2.7/dist-packages/glance_store/_drivers/swift/store.py:465
2015-12-10 18:18:46.580 27975 DEBUG glance.api.middleware.version_negotiation [-] Determining version of request: DELETE /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:46.583 27975 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:46.834 27975 DEBUG routes.middleware [69e6f920-7b35-4a66-96dc-00d901dd94cd cfdeb6d3c6d6478f8986ab67276348e2 c1f8805125f24633ae6e0f67f4d5e773 - - -] Matched DELETE /images/23dd45b8-6fa8-451d-9086-d088af8445b7 __call__ /usr/lib/python2.7/dist-packages/routes/middleware.py:100
2015-12-10 18:18:46.835 27975 DEBUG routes.middleware [69e6f920-7b35-4a66-96dc-00d901dd94cd cfdeb6d3c6d6478f8986ab67276348e2 c1f8805125f24633ae6e0f67f4d5e773 - - -] Match dict: {'action': u'delete', '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:46.836 27975 DEBUG glance.common.client [69e6f920-7b35-4a66-96dc-00d901dd94cd 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:47.054 27975 DEBUG glance.registry.client.v1.client [69e6f920-7b35-4a66-96dc-00d901dd94cd cfdeb6d3c6d6478f8986ab67276348e2 c1f8805125f24633ae6e0f67f4d5e773 - - -] Registry request GET /images/23dd45b8-6fa8-451d-9086-d088af8445b7 HTTP 200 request id req-db13900d-70f0-4ecb-8767-40493d618f99 do_request /usr/lib/python2.7/dist-packages/glance/registry/client/v1/client.py:122
2015-12-10 18:18:47.057 27975 DEBUG glance.registry.client.v1.api [69e6f920-7b35-4a66-96dc-00d901dd94cd cfdeb6d3c6d6478f8986ab67276348e2 c1f8805125f24633ae6e0f67f4d5e773 - - -] Updating image metadata for image 23dd45b8-6fa8-451d-9086-d088af8445b7... update_image_metadata /usr/lib/python2.7/dist-packages/glance/registry/client/v1/api.py:166
2015-12-10 18:18:47.059 27975 DEBUG glance.common.client [69e6f920-7b35-4a66-96dc-00d901dd94cd 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:47.212 27975 DEBUG glance.registry.client.v1.client [69e6f920-7b35-4a66-96dc-00d901dd94cd cfdeb6d3c6d6478f8986ab67276348e2 c1f8805125f24633ae6e0f67f4d5e773 - - -] Registry request PUT /images/23dd45b8-6fa8-451d-9086-d088af8445b7 HTTP 200 request id req-a9617d5a-0924-4765-8056-434f61dcb549 do_request /usr/lib/python2.7/dist-packages/glance/registry/client/v1/client.py:122
2015-12-10 18:18:47.215 27975 DEBUG glance.registry.client.v1.api [69e6f920-7b35-4a66-96dc-00d901dd94cd cfdeb6d3c6d6478f8986ab67276348e2 c1f8805125f24633ae6e0f67f4d5e773 - - -] Deleting image metadata for image 23dd45b8-6fa8-451d-9086-d088af8445b7... delete_image_metadata /usr/lib/python2.7/dist-packages/glance/registry/client/v1/api.py:173
2015-12-10 18:18:47.217 27975 DEBUG glance.common.client [69e6f920-7b35-4a66-96dc-00d901dd94cd 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:47.343 27975 DEBUG glance.registry.client.v1.client [69e6f920-7b35-4a66-96dc-00d901dd94cd cfdeb6d3c6d6478f8986ab67276348e2 c1f8805125f24633ae6e0f67f4d5e773 - - -] Registry request DELETE /images/23dd45b8-6fa8-451d-9086-d088af8445b7 HTTP 200 request id req-d251a111-8124-419a-aa7b-b56bba9c53e8 do_request /usr/lib/python2.7/dist-packages/glance/registry/client/v1/client.py:122
2015-12-10 18:18:47.349 27975 INFO glance.wsgi.server [69e6f920-7b35-4a66-96dc-00d901dd94cd cfdeb6d3c6d6478f8986ab67276348e2 c1f8805125f24633ae6e0f67f4d5e773 - - -] 172.31.4.14,172.31.4.12 - - [10/Dec/2015 18:18:47] "DELETE /v1/images/23dd45b8-6fa8-451d-9086-d088af8445b7 HTTP/1.1" 200 200 0.771122
2015-12-10 18:20:09.276 27980 DEBUG glance.registry.client.v1.api [757f0436-27c1-4f64-8f12-27efe5dada65 cfdeb6d3c6d6478f8986ab67276348e2 c1f8805125f24633ae6e0f67f4d5e773 - - -] Updating image metadata for image 23dd45b8-6fa8-451d-9086-d088af8445b7... update_image_metadata /usr/lib/python2.7/dist-packages/glance/registry/client/v1/api.py:166
2015-12-10 18:20:09.277 27980 DEBUG glance.common.client [757f0436-27c1-4f64-8f12-27efe5dada65 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:20:09.367 27980 INFO glance.registry.client.v1.client [757f0436-27c1-4f64-8f12-27efe5dada65 cfdeb6d3c6d6478f8986ab67276348e2 c1f8805125f24633ae6e0f67f4d5e773 - - -] Registry client request PUT /images/23dd45b8-6fa8-451d-9086-d088af8445b7 raised NotFound
2015-12-10 18:20:09.368 27980 ERROR glance.api.v1.upload_utils [757f0436-27c1-4f64-8f12-27efe5dada65 cfdeb6d3c6d6478f8986ab67276348e2 c1f8805125f24633ae6e0f67f4d5e773 - - -] Unable to kill image 23dd45b8-6fa8-451d-9086-d088af8445b7: 
2015-12-10 18:20:09.380 27980 INFO glance.wsgi.server [757f0436-27c1-4f64-8f12-27efe5dada65 cfdeb6d3c6d6478f8986ab67276348e2 c1f8805125f24633ae6e0f67f4d5e773 - - -] 172.31.4.14,172.31.4.12 - - [10/Dec/2015 18:20:09] "PUT /v1/images/23dd45b8-6fa8-451d-9086-d088af8445b7 HTTP/1.1" 400 0 125.408602

Thanks in advance,

Vinoth