validate owner for `openstack image set`

Bug #1517134 reported by xiexs
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Fix Released
Medium
xiexs

Bug Description

An unexisted owner will be set to the image while the OSC "openstack image set" running with an unexisted project name.
For instance:
$ openstack image list --long
| 7f15502e-de7c-4ebc-b869-04b9798e0418 | cirros-0.3.4-x86_64-uec-ramdisk | ari | ari | 3740163 | active | public | False | 4f46400aeed14ce7a70d08fd4d94213

$ openstack image set --owner=unexisted_owner cirros-0.3.4-x86_64-uec-ramdisk
$ openstack image list --long
| 7f15502e-de7c-4ebc-b869-04b9798e0418 | cirros-0.3.4-x86_64-uec-ramdisk | ari | ari | 3740163 | active | public | False | unexisted_owner

And obviously the omitted owner validation caused this issue.

xiexs (xiexs)
Changed in python-openstackclient:
assignee: nobody → xiexs (xiexs)
Changed in python-openstackclient:
status: New → In Progress
summary: - Unexisted owner can be set with the OSC "openstack image set"
+ validate owner for `openstack image set`
Changed in python-openstackclient:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-openstackclient (master)

Reviewed: https://review.openstack.org/246459
Committed: https://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=0a444fc949584c9ac2a555bfa9ad221913ad4779
Submitter: Jenkins
Branch: master

commit 0a444fc949584c9ac2a555bfa9ad221913ad4779
Author: xiexs <email address hidden>
Date: Sat Dec 5 19:25:30 2015 +0800

    Add owner validation for "openstack image create/set"

    Owner validation is necessary if a new image owner
    will be created/set.

    Change-Id: I621774e02866bfa98a31b613deff5d7b6a962737
    Closes-Bug: #1517134

Changed in python-openstackclient:
status: In Progress → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/python-openstackclient 2.1.0

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