Bug 1777781 - [cinder] Connot delete snapshot after an instance was spawned from it and then deleted
Summary: [cinder] Connot delete snapshot after an instance was spawned from it and the...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-cinder
Version: 14.0 (Rocky)
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Sofia Enriquez
QA Contact: Tzach Shefi
Chuck Copello
URL:
Whiteboard:
Depends On: 1703939
Blocks: 1791829 1795959
TreeView+ depends on / blocked
 
Reported: 2019-11-28 10:33 UTC by Mauro Oddi
Modified: 2022-08-23 16:04 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1703939
: 1791829 (view as bug list)
Environment:
Last Closed: 2020-01-16 15:01:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-3530 0 None None None 2022-08-23 16:04:11 UTC

Comment 2 Mauro Oddi 2019-11-29 11:16:15 UTC
  - Request with --debug:

REQ: curl -g -i -X GET http://10.0.0.122:8776/v3/9ac71c235b15485da8e84bccae2f14e2/snapshots/c47eb196-9fd2-45ae-8507-96
13f0754169 -H "Accept: application/json" -H "User-Agent: python-cinderclient" -H "X-Auth-Token: {SHA1}9ca6b47b49856dee
f8e997a943902b9c7c946c12"
Starting new HTTP connection (1): 10.0.0.122
http://10.0.0.122:8776 "GET /v3/9ac71c235b15485da8e84bccae2f14e2/snapshots/c47eb196-9fd2-45ae-8507-9613f0754169 HTTP/1
.1" 200 283
RESP: [200] Content-Encoding: gzip Content-Length: 283 Content-Type: application/json Date: Thu, 28 Nov 2019 10:21:25 
GMT OpenStack-API-Version: volume 3.0 Server: Apache Vary: OpenStack-API-Version,Accept-Encoding x-compute-request-id:
 req-c11d2312-daa9-41bc-a66a-888e5945ee07 x-openstack-request-id: req-c11d2312-daa9-41bc-a66a-888e5945ee07
RESP BODY: {"snapshot": {"status": "available", "description": "", "updated_at": "2019-11-28T10:21:03.000000", "volume
_id": "7cb6aba6-8a73-4613-8cc1-8dcb25ca443f", "id": "c47eb196-9fd2-45ae-8507-9613f0754169", "size": 10, "os-extended-s
napshot-attributes:progress": "100%", "name": "snapshot for snap-from-test-1", "os-extended-snapshot-attributes:projec
t_id": "9ac71c235b15485da8e84bccae2f14e2", "created_at": "2019-11-28T10:14:31.000000", "metadata": {}}}
GET call to volumev3 for http://10.0.0.122:8776/v3/9ac71c235b15485da8e84bccae2f14e2/snapshots/c47eb196-9fd2-45ae-8507-
9613f0754169 used request id req-c11d2312-daa9-41bc-a66a-888e5945ee07
REQ: curl -g -i -X DELETE http://10.0.0.122:8776/v3/9ac71c235b15485da8e84bccae2f14e2/snapshots/c47eb196-9fd2-45ae-8507
-9613f0754169 -H "Accept: application/json" -H "User-Agent: python-cinderclient" -H "X-Auth-Token: {SHA1}9ca6b47b49856
deef8e997a943902b9c7c946c12" -H "X-OpenStack-Request-ID: req-c11d2312-daa9-41bc-a66a-888e5945ee07"
http://10.0.0.122:8776 "DELETE /v3/9ac71c235b15485da8e84bccae2f14e2/snapshots/c47eb196-9fd2-45ae-8507-9613f0754169 HTT
P/1.1" 202 0
RESP: [202] Content-Length: 0 Content-Type: text/html; charset=UTF-8 Date: Thu, 28 Nov 2019 10:21:25 GMT OpenStack-API
-Version: volume 3.0 Server: Apache Vary: OpenStack-API-Version x-openstack-request-id: req-ce59d7a8-4061-42d3-b4e4-5e
f5e2538136
RESP BODY: Omitted, Content-Type is set to text/html; charset=UTF-8. Only application/json responses have their bodies
 logged.
DELETE call to volumev3 for http://10.0.0.122:8776/v3/9ac71c235b15485da8e84bccae2f14e2/snapshots/c47eb196-9fd2-45ae-85
07-9613f0754169 used request id req-ce59d7a8-4061-42d3-b4e4-5ef5e2538136


 - Record looks like this:

MariaDB [cinder]> select * from snapshots where id = "c47eb196-9fd2-45ae-8507-9613f0754169" \G;
*************************** 1. row ***************************
         created_at: 2019-11-28 10:14:31
         updated_at: 2019-11-29 10:35:45
         deleted_at: NULL
            deleted: 0
                 id: c47eb196-9fd2-45ae-8507-9613f0754169
          volume_id: 7cb6aba6-8a73-4613-8cc1-8dcb25ca443f
            user_id: fde3a8d8d2ea49a68244ff7dfecda969
         project_id: 9ac71c235b15485da8e84bccae2f14e2
             status: available
           progress: 100%
        volume_size: 10
       scheduled_at: NULL
       display_name: snapshot for snap-from-test-1
display_description: 
  provider_location: NULL
  encryption_key_id: NULL
     volume_type_id: 0f123a52-1729-461e-b94b-045cfebea095
      cgsnapshot_id: NULL
        provider_id: NULL
      provider_auth: NULL
  group_snapshot_id: NULL
1 row in set (0.00 sec)

Comment 5 Sofia Enriquez 2020-01-16 15:01:16 UTC
OSP14 is EOL. According the comments in the customer case, the bug is reproducible on 13 so I've opened https://bugzilla.redhat.com/show_bug.cgi?id=1791829.


Note You need to log in before you can comment on or make changes to this bug.