Owner change doesn't work in v2

Bug #1420008 reported by Feilong Wang on 2015-02-09
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Feilong Wang

Bug Description

v2 is incompatible with v1 for owner change

Need more test to confirm if it's still existing in master branch

Feilong Wang (flwang) on 2015-02-09
Changed in glance:
assignee: nobody → Fei Long Wang (flwang)
Louis Taylor (kragniz) wrote :

Confirmed on master.

$ glance --os-image-api-version 2 image-update 6b0fab13-503f-46fb-b04e-be750afc51f9 --owner alice
  <title>403 Forbidden</title>
  <h1>403 Forbidden</h1>
  Attribute 'owner' is reserved.<br /><br />

</html> (HTTP 403)

Changed in glance:
status: New → Confirmed
importance: Undecided → High
Feilong Wang (flwang) wrote :

Thanks, Louis.

Feilong Wang (flwang) on 2015-02-10
summary: - [stable/icehouse] Owner change doesn't work in v2
+ Owner change doesn't work in v2

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

Changed in glance:
status: Confirmed → In Progress
David Moreau Simard (dmsimard) wrote :

Just for the record, this also prevents an image from being created with a specified owner - not just for image update.

Reviewed: https://review.openstack.org/154695
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=46666826c98915499e15572125798dcff3f69314
Submitter: Jenkins
Branch: master

commit 46666826c98915499e15572125798dcff3f69314
Author: Fei Long Wang <email address hidden>
Date: Wed Feb 11 00:53:56 2015 +1300

    Fix image owner can't be changed issue in v2

    It is incompatible with v1 for owner change in v2. Image owner
    should be able to be changed, and only by admin user. This patch
    fixes the issue and add some test cases for that.

    Closes-Bug: #1420008

    Change-Id: Ief9dc3329d7df07e1da32bb5ccc557096f73624f

Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx) on 2015-09-01
Changed in glance:
milestone: none → liberty-3
Thierry Carrez (ttx) on 2015-09-04
Changed in glance:
status: Fix Committed → Fix Released
Thierry Carrez (ttx) on 2015-10-15
Changed in glance:
milestone: liberty-3 → 11.0.0
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers