Cinder snapshot-delete doesn't recognize snapshot name

Bug #1513201 reported by Nate Potter
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-cinderclient
Fix Released
Undecided
Nate Potter

Bug Description

When I try to use the Cinder snapshot-delete command using the name of a snapshot rather than its ID, it fails saying that there is no snapshot with a name or ID of 'snapshot-name'. If I then try to delete it using its ID the command succeeds. This is using the master branch of Cinder on a devstack environment.

Here are the commands I ran and their output:

root@server-02:/opt/stack/cinder# cinder snapshot-create test --name test-snapshot
+-------------+---------------------------------------------------------------------+
| Property | Value |
+-------------+---------------------------------------------------------------------+
| created_at | 2015-11-04T20:16:23.350000 |
| description | None |
| id | bcd3ce2d-372f-44d6-ae40-894586323299 |
| metadata | {} |
| name | test-snapshot |
| size | 1 |
| status | creating |
| updated_at | None |
| volume_id | d5a5f19c-26f3-446c-8e2a-70b385018841 |
+-------------+--------------------------------------+
root@server-02:/opt/stack/cinder# cinder snapshot-list
+---------------------------------------------------------------+----------------------------------------------------------------+-------------+--------------------+------+
| ID | Volume ID | Status | Name | Size |
+---------------------------------------------------------------+----------------------------------------------------------------+------------+---------------------+------+
| bcd3ce2d-372f-44d6-ae40-894586323299 | d5a5f19c-26f3-446c-8e2a-70b385018841 | available | test-snapshot | 1 |
+----------------------------------------------------------------+---------------------------------------------------------------+------------+----------------------+------+
root@server-02:/opt/stack/cinder# cinder snapshot-delete test-snapshot
Delete for snapshot test-snapshot failed: No snapshot with a name or ID of 'test-snapshot' exists.
ERROR: Unable to delete any of the specified snapshots.

Nate Potter (ntpttr)
Changed in cinder:
assignee: nobody → Nate Potter (ntpttr)
description: updated
Revision history for this message
Nate Potter (ntpttr) wrote :

It looks like this is true for all snapshot-* commands that are supposed to accept a snapshot name as a parameter (e.g. snapshot-show, snapshot-metadata-show, etc.)

Nate Potter (ntpttr)
affects: cinder → python-cinderclient
Revision history for this message
Nate Potter (ntpttr) wrote :

It looks like this has already been fixed in the cinderclient, the change just wasn't showing up in my devstack.

Changed in python-cinderclient:
status: New → Fix Released
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.