cascade delete in cinderclient is working incorrect

Bug #1585441 reported by wanghao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-cinderclient
Fix Released
Medium
wanghao

Bug Description

Now we have implemented cascade deleting in cinderclient, but argument "--cascade" is not working correctly.

Reproduce step:

1.Create volume and snapshot with it:

cinder snapshot-list
+--------------------------------------+--------------------------------------+-----------+------+------+
| ID | Volume ID | Status | Name | Size |
+--------------------------------------+--------------------------------------+-----------+------+------+
| 0be3d952-a1a2-4d42-b6f2-66aa64f3191a | 6ede3a57-5d0d-4dd4-9642-3b70cb7bc5c9 | available | - | 1 |
+--------------------------------------+--------------------------------------+-----------+------+------+

2.Delete this volume with "--cascade false/False", it should be failed, but now we can delete the volume and snapshot successfully:

cinder delete --cascade false 6ede3a57-5d0d-4dd4-9642-3b70cb7bc5c9
Request to delete volume 6ede3a57-5d0d-4dd4-9642-3b70cb7bc5c9 has been accepted.

cinder snapshot-list
+--------------------------------------+--------------------------------------+----------+------+------+
| ID | Volume ID | Status | Name | Size |
+--------------------------------------+--------------------------------------+----------+------+------+
| 0be3d952-a1a2-4d42-b6f2-66aa64f3191a | 6ede3a57-5d0d-4dd4-9642-3b70cb7bc5c9 | deleting | - | 1 |
+--------------------------------------+--------------------------------------+----------+------+------+

wanghao (wanghao749)
Changed in cinder:
assignee: nobody → wanghao (wanghao749)
milestone: none → newton-1
Cao ShuFeng (caosf-fnst)
affects: cinder → python-cinderclient
Changed in python-cinderclient:
milestone: newton-1 → none
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-cinderclient (master)

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

Changed in python-cinderclient:
status: New → In Progress
wanghao (wanghao749)
tags: added: python-cinderclient
Changed in python-cinderclient:
importance: Undecided → High
Eric Harney (eharney)
Changed in python-cinderclient:
importance: High → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-cinderclient (master)

Reviewed: https://review.openstack.org/320809
Committed: https://git.openstack.org/cgit/openstack/python-cinderclient/commit/?id=86fe5617aaaf3344dc399a946d29ad7ec3414511
Submitter: Jenkins
Branch: master

commit 86fe5617aaaf3344dc399a946d29ad7ec3414511
Author: wanghao <email address hidden>
Date: Wed May 25 15:11:37 2016 +0800

    Fixing parsing problem of cascade in client

    We have implemented cascade deleting volume in CLI now,
    but there's still something that should be improved:

    1. A parsing problem of cascade is existing that always
    evaluate parameter to True.

    So now change the cascade parameter to a flag that don't
    accept value anymore.

    If user want to delete volume with snapshot, just need to
    use 'cinder delete --cascade [volume_id]'.

    Change-Id: I92e9400d5d7fbb741607bdbde7ac0c0667fca85d
    Closes-Bug: #1585441
    Implements: blueprint support-deleting-vols-with-snps-in-cli

Changed in python-cinderclient:
status: In Progress → Fix Released
wanghao (wanghao749)
Changed in python-cinderclient:
milestone: none → 1.7.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-cinderclient 1.9.0

This issue was fixed in the openstack/python-cinderclient 1.9.0 release.

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.