Glance Metadata Object update doesn't work from python glance client

Bug #1433884 reported by Lakshmi N Sampath
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance Client
Fix Released
High
Lakshmi N Sampath
Nominated for Kilo by Erno Kuvaja

Bug Description

Updating Metadef namespace object from python glanceclient throws an 403 error

Assuming you have an existing namespace("namespace1") and existing object("object1") within that namespace, try this command to update the object properties.

glance --os-image-api-version 2 md-object-update --name object1 --schema '{"name": "object1","properties": {"prop1": {"type": "string","title": "My object20 property1"}}}' namespace1 object1

Above command will result in 403 error.
"403 Forbidden: Attribute 'schema' is read-only. (HTTP 403)"

python-glanceclient version: Latest master branch.

Changed in glance:
assignee: nobody → Lakshmi N Sampath (lakshmi-sampath)
affects: glance → python-glanceclient
Changed in python-glanceclient:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-glanceclient (master)

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

Revision history for this message
Kamil Rykowski (kamil-rykowski) wrote :

This one should be considered at least as High priority, as without the proposed fix it's not possible to update metadef object. User using the glanceclient is not able to update object schema, or even change its name.

Changed in python-glanceclient:
importance: Undecided → High
tags: added: metadef
Erno Kuvaja (jokke)
tags: added: kilo-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-glanceclient (master)

Reviewed: https://review.openstack.org/165695
Committed: https://git.openstack.org/cgit/openstack/python-glanceclient/commit/?id=5d933b0dd59b6340147d1f2307df98c1b66d76f7
Submitter: Jenkins
Branch: master

commit 5d933b0dd59b6340147d1f2307df98c1b66d76f7
Author: Lakshmi N Sampath <email address hidden>
Date: Wed Mar 18 22:21:19 2015 -0700

    Fix Metadef Object update issue with python-glanceclient

    Disallowed fields(schema, created_at and updated_at) were
    getting deleted from Metadef namespace instead of Metadef object.

    Change-Id: Id80e204c7af1ac6926c66627d290a15c4e6b00d9
    Closes-Bug: #1433884

Changed in python-glanceclient:
status: In Progress → Fix Committed
Changed in python-glanceclient:
milestone: none → 0.19.0
Changed in python-glanceclient:
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-glanceclient (stable/kilo)

Fix proposed to branch: stable/kilo
Review: https://review.openstack.org/199486

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-glanceclient (stable/kilo)

Reviewed: https://review.openstack.org/199486
Committed: https://git.openstack.org/cgit/openstack/python-glanceclient/commit/?id=1990e76ba1647b3267f16b12f63e635541160326
Submitter: Jenkins
Branch: stable/kilo

commit 1990e76ba1647b3267f16b12f63e635541160326
Author: Lakshmi N Sampath <email address hidden>
Date: Wed Mar 18 22:21:19 2015 -0700

    Fix Metadef Object update issue with python-glanceclient

    Disallowed fields(schema, created_at and updated_at) were
    getting deleted from Metadef namespace instead of Metadef object.

    Change-Id: Id80e204c7af1ac6926c66627d290a15c4e6b00d9
    Closes-Bug: #1433884
    (cherry picked from commit 5d933b0dd59b6340147d1f2307df98c1b66d76f7)

tags: added: in-stable-kilo
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.