Metadef property API doesn't include readonly flag

Bug #1406235 reported by Kamil Rykowski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Low
Kamil Rykowski

Bug Description

Spec: https://review.openstack.org/#/c/98554/14/specs/juno/metadata-schema-catalog.rst

According to metadata definition spec, properties can include readonly flag (field), but in current implementation this information is not returned by the API v2.

Example seed which defines readonly flag is located at etc/metadefs/compute-host-capabilities.json and following properties are setup as non-readonly:
- cpu_info:topology:cores
- cpu_info:topology:threads
- cpu_info:topology:sockets

To reproduce this issue simply send GET request to Glance API v2 and query for OS::Compute::HostCapabilities namespace. Properties which defines readonly flag (shown above) has no information about it displayed in result.

Sample URL: http://localhost:9292/v2/metadefs/namespaces/OS::Compute::HostCapabilities

Tags: api metadef
Changed in glance:
assignee: nobody → Kamil Rykowski (kamil-rykowski)
Changed in glance:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (master)

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

Ian Cordasco (icordasc)
Changed in glance:
importance: Undecided → Low
Changed in glance:
milestone: none → kilo-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

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

commit ffcbaf0ff1528713c90e8e462451d8ad89ebdadd
Author: Kamil Rykowski <email address hidden>
Date: Wed Dec 31 10:33:11 2014 +0100

    Include readonly flag in metadef API

    Current API does not return readonly flag for properties included when
    querying for metadef namespaces. The readonly field is included in both
    the spec and the schema definition, so it should be returned in API
    results as well.

    DocImpact
    APIImpact

    Change-Id: I0db4491e8b44c8aa591a21fd95c7a0713bff9d4c
    Closes-Bug: 1406235

Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in glance:
milestone: kilo-3 → 2015.1.0
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.