Glance-manage db_export_metadefs generate inappropriate json files

Bug #1377947 reported by Bartosz Fic
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Low
Bartosz Fic

Bug Description

Json files generated in metadata seeding using "glance-manage db_export_metadefs" are inappropriate.

Object related to resource_type_associations after exporting to json has a not necessary (useless) attribute 'protected'.
Database record in metadef_namespace_resource_types doesn't have attribute 'proteced'.

Other issue related to this bug is 'prefix' attribute. It should be generated for resource_type_associations in json file but it isn't.

Tags: metadef
Changed in glance:
assignee: nobody → Bartosz Fic (bartosz-fic)
status: New → In Progress
tags: added: glance
tags: added: metadefs
Dolph Mathews (dolph)
Changed in glance:
importance: Undecided → Low
tags: removed: glance
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/127278

tags: added: metadef
removed: metadefs
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/127278
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=60a402e24367f98fa40ec54b835b0c188eac7cb9
Submitter: Jenkins
Branch: master

commit 60a402e24367f98fa40ec54b835b0c188eac7cb9
Author: Bartosz Fic <email address hidden>
Date: Thu Oct 9 17:50:36 2014 +0200

    db_export_metadefs generates inappropriate json files

    Json files generated in metadata seeding using "glance-manage
    db_export_metadefs" are inappropriate. Attribute 'owner' for namespace
    is useless and shouldn't be generated.

    Object related to resource_type_associations after exporting to json has
    a not necessary (useless) attribute 'protected'. Database record in
    metadef_namespace_resource_types doesn't have attribute 'proteced'.

    Other issue related to this bug are 'prefix' and 'properties_target'
    attributes. They should be generated for resource_type_associations
    in json file but they aren't.

    Change-Id: I1d5077485aa86cd63fed3aa852f633d5c95e89ad
    Closes-Bug: #1377947

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.