Add snapshot list when failing to delete volume because of snapshot

Bug #1276101 reported by Dafna Ron
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Cinder
Won't Fix
Undecided
sandeep mane

Bug Description

when we fail to delete a volume because of snapshot dependency, error message should print the snapshot ID:

root@opens-vdsb ~(keystone_admin)]# cinder list
+--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
| ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
| 7b7acdc1-c1fe-4654-93f9-7c3afc03b395 | available | test | 10 | None | false | |
| fece4bd4-0a96-4bd3-8661-101dcbce8e28 | available | bla | 10 | None | false | |
+--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
[root@opens-vdsb ~(keystone_admin)]# cinder delete 7b7acdc1-c1fe-4654-93f9-7c3afc03b395
ERROR: Invalid volume: Volume still has 2 dependent snapshots

Changed in cinder:
assignee: nobody → sandeep mane (sandeep-mane)
Changed in cinder:
status: New → In Progress
Revision history for this message
sandeep mane (sandeep-mane) wrote :

done with code changes, facing some issues in git review, not able to connect review.openstack.org

i'll mark for review once done with commit & review step

Thanks,
Sandeep

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/79237

Revision history for this message
Mike Perez (thingee) wrote :

Sandeep, thanks for this! I believe this is more appropriate to be a blueprint. https://wiki.openstack.org/wiki/Blueprints

Changed in cinder:
status: In Progress → Invalid
Changed in cinder:
status: Invalid → In Progress
Changed in cinder:
status: In Progress → Fix Committed
Revision history for this message
Huang Zhiteng (zhiteng-huang) wrote :

The review https://review.openstack.org/#/c/79237/ is still in progress. Why did you mark this bug as Fix Committed?

Changed in cinder:
status: Fix Committed → Invalid
Revision history for this message
sandeep mane (sandeep-mane) wrote :

Hi,

I have committed code as well as testcase in tempest
please let me know, what are pending task now

--Thanks,
Sandeep

Changed in cinder:
status: Invalid → In Progress
Revision history for this message
sandeep mane (sandeep-mane) wrote :

also updated code,testcase with review comment

--sandeep

Revision history for this message
Huang Zhiteng (zhiteng-huang) wrote :

Code change is only considered 'committed' when it is merged into master branch. 'In Progress' is proper state for the bug. https://review.openstack.org/#/c/79237/ is still in review and far from being merged and I did not see any test case in it and the last negative review opinion hasn't been addressed yet.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on cinder (master)

Change abandoned by Duncan Thomas (<email address hidden>) on branch: master
Review: https://review.openstack.org/79237
Reason: Abandoning change: No update for more than 14 days

Eric Harney (eharney)
Changed in cinder:
status: In Progress → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.