Position of metadata on cinder create call influences cmd parsing

Bug #1379486 reported by John Griffith
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
python-cinderclient
Fix Released
Low
rajiv

Bug Description

Trying to create a volume with metadata doing like:
    cinder create --metadata mykey=myval 1

Fails for "error: too few arguments"

--metadata arg needs to be followed up with another arg in order for the delimiting to work correctly:
    cinder create --metadata mykey=myval --name foo 1

Changed in python-cinderclient:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Eric Harney (eharney) wrote :

Workaround:

cinder create --metadata mykey=myval -- 1

Ivan Kolodyazhny (e0ne)
Changed in python-cinderclient:
assignee: nobody → Ivan Kolodyazhny (e0ne)
Revision history for this message
rajiv (rajiv-kumar) wrote :

Hi Ivan

Have you started working on this bug. If you have not started, i want to work on this.

rajiv (rajiv-kumar)
Changed in python-cinderclient:
assignee: Ivan Kolodyazhny (e0ne) → rajiv (rajiv-kumar)
Changed in python-cinderclient:
status: Triaged → In Progress
Revision history for this message
rajiv (rajiv-kumar) wrote :

Patch has been submitted

To view, visit https://review.openstack.org/156499

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-cinderclient (master)

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

commit 57c9bf17b3ed9c5a2818163085704175f9324527
Author: rajiv <email address hidden>
Date: Tue Feb 17 13:45:34 2015 +0530

    cinderclient accepts arguments after metadata without -- separator

    Added a function, which parse arguments and add -- separator
    after metadata subcommand

    Change-Id: I907eb89209d549dcdad361d88352491110eaadb9
    Closes-Bug: #1379486

Changed in python-cinderclient:
status: In Progress → Fix Committed
Changed in python-cinderclient:
milestone: none → 1.3.1
status: Fix Committed → 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.