glance-manage db load_metadefs does not load all resource_type_associations

Bug #1434761 reported by Wayne
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Critical
Wayne

Bug Description

The glance-manage db load_metadefs should create metadef_namespace_resource_types entries for all resource_type_associations listed in a given .json file. Unfortunately, load_metadefs only creates a metadef_namespace_resource_types entry if the associated resource_type is new.

There are 6 resource_types and as a result only 6 metadef_namespace_resource_types records are generated instead of the expected 31 (as of this writing).

The bug fix should generate all metadef_namespace_resource_types.

Wayne (wayne-okuma)
Changed in glance:
assignee: nobody → Wayne (wayne-okuma)
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/166501

Changed in glance:
status: New → In Progress
tags: added: metadef
Changed in glance:
importance: Undecided → High
Changed in glance:
importance: High → Critical
tags: added: kilo-rc-potential
Changed in glance:
milestone: none → kilo-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

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

commit 66f68ac09d0a740d58c9b2d7af64329ce6f5a025
Author: Wayne Okuma <email address hidden>
Date: Fri Mar 20 21:09:17 2015 -0700

    glance-manage db load_metadefs does not load all resource_type_associations

    The glance-manage db load_metadefs should create
    metadef_namespace_resource_types entries for all resource_type_associations
    listed in a given .json file. Unfortunately, load_metadefs currently,
    only creates a metadef_namespace_resource_types entry if the associated
    resource_type is new.

    There are 6 resource_types and as a result only 6
    metadef_namespace_resource_types records are generated instead of the
    expected 31 (as of this writing).

    The fix will now generate all metadef_namespace_resource_types.

    Change-Id: I645f05620c134eac816cd9baf739b4305b307667
    Closes-Bug: 1434761

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