Cinder attachment-* commands does not support names

Bug #1661043 reported by Erlon R. Cruz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-cinderclient
Fix Released
Undecided
NidhiMittalHada

Bug Description

The commands added by Attach/Detach V2 in Cinderclient[1] does not support the specification of resources (volumes) by their names. This syntax works for other Cinder commands and should also work for this one as well.

How to reproduce:
1 - cinder create --name v1 10
2 - nova boot --flavor small --image cirros i1
3 - cinder attachment-create --instance i1 v1

ERROR: Volume v1 could not be found. (HTTP 404) (Request-ID: req-4a436d33-8fe9-4d64-bb92-66fd444d5524)

Expected:
If i1 and v1 are unique for the tenant, the command should succed.

[1] https://review.openstack.org/#/c/387716/

wangxiyuan (wangxiyuan)
affects: cinder → python-cinderclient
wangxiyuan (wangxiyuan)
Changed in python-cinderclient:
assignee: nobody → wangxiyuan (wangxiyuan)
Changed in python-cinderclient:
assignee: wangxiyuan (wangxiyuan) → NidhiMittalHada (nidhimittal19)
Revision history for this message
NidhiMittalHada (nidhimittal19) wrote :

Working on this.

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/469830

Changed in python-cinderclient:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-cinderclient (master)

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

commit f81518df07266a7e4ebe882d968f045e45742ddd
Author: nidhimittalhada <email address hidden>
Date: Thu Jun 1 15:41:05 2017 +0530

    Cinder attachment-* does not support names

    Added capability to recognize volume name
    too in command. It can work with both name
    and id now.

    Change-Id: If0fc63042d76beb354e6961e1f2d2936021c3d8e
    Closes-Bug: #1661043

Changed in python-cinderclient:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-cinderclient 3.0.0

This issue was fixed in the openstack/python-cinderclient 3.0.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.