image create --volume command (v1) will attempt to create two images

Bug #1497221 reported by Niall Bunting
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Fix Released
High
Niall Bunting

Bug Description

When running the following command:

openstack image create MyNewImage --volume 1d283b0c-b38d-4773-9df4-18a49f305c43

Openstack client will return the following:
ERROR: openstack create() got an unexpected keyword argument 'volume'

What has happened:
The image was created by the cinder upload to image command. Then it tried to create an image but the keyword volume causes this to error out.

Consequences:
The user will think the command has not worked, when in fact they created the image.

Changed in python-openstackclient:
assignee: nobody → Niall Bunting (niall-bunting)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-openstackclient (master)

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

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

Reviewed: https://review.openstack.org/225195
Committed: https://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=1afd8f62cd5b59c9bd3042af6dbc4ba94717c023
Submitter: Jenkins
Branch: master

commit 1afd8f62cd5b59c9bd3042af6dbc4ba94717c023
Author: NiallBunting <email address hidden>
Date: Fri Sep 18 15:21:59 2015 +0000

    Image fix bug with --volume

    Currently after calling the cinderclient to create an image from a volume,
    it also then tries to create another image. This fails as the keyword
    volume is unexpected. This add checks so the image is not created in
    this case. Allowing --volume to not throw an error when it has worked.

    Change-Id: I67e650eb0b8c331d86515e3e326c39a5d6dad5e1
    Closes-Bug: 1497221

Changed in python-openstackclient:
status: In Progress → Fix Committed
Changed in python-openstackclient:
importance: Undecided → High
Dean Troyer (dtroyer)
Changed in python-openstackclient:
milestone: none → next
Dean Troyer (dtroyer)
summary: - Glance v1 --volume command will attempt to create two images.
+ image create --volume command (v1) will attempt to create two images
Revision history for this message
Steve Martinelli (stevemar) wrote :

this was released in 1.8.0

Changed in python-openstackclient:
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.