Inconsistancy in using "aggregate_instance_extra_specs" prefix in glance/etc/metadefs/compute-host-capabilities.json

Bug #1390031 reported by Bartosz Fic
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Medium
Roman Vasilets

Bug Description

In file glance/etc/metadefs/compute-host-capabilities.json there is a part of schema:

    "resource_type_associations": [
        {
            "name": "OS::Nova::Flavor",
            "prefix": "capabilities:"
        },
        {
            "name": "OS::Nova::Aggregate",
            "prefix": "aggregate_instance_extra_spec:"
        }
    ],

It's important to notice aggegate prefix: "aggregate_instance_extra_spec:".

But in nova scheduler filters (/nova/scheduler/filters/aggregate_instance_extra_specs.py) there is this line of code:

_SCOPE = 'aggregate_instance_extra_specs'

So in order not to touch nova filter prefix (which is ok), glance schema file should be fixed.
/etc/metadefs/compute-host-capabilities.json should be corrected by adding 's' after 'aggregate_instance_extra_spec'

tags: added: low-hanging-fruit
tags: added: metadef
tags: added: metadefs
removed: metadef
tags: added: metadef
removed: metadefs
Changed in glance:
assignee: nobody → Roman Vasilets (rvasilets)
Changed in glance:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

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

commit 0b40a1b954edec54db7801ac5a9a40f4ef6ff13e
Author: George Peristerakis <email address hidden>
Date: Mon Nov 10 15:30:38 2014 -0500

    Typo correction of the prefix value in compute-host-capabilities

    Simple typo correction.

    Change-Id: I6f37a992e4841400be8d71050796b7c526d29864
    Closes-Bug: #1390031

Changed in glance:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on glance (master)

Change abandoned by Roman Vasilets (<email address hidden>) on branch: master
Review: https://review.openstack.org/135378

Thierry Carrez (ttx)
Changed in glance:
milestone: none → kilo-1
status: Fix Committed → Fix Released
Changed in glance:
importance: Undecided → Medium
Thierry Carrez (ttx)
Changed in glance:
milestone: kilo-1 → 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.