Extra Provider summary returned from AllocationCandidates.get_by_filters

Bug #1702275 reported by Alex Xu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Alex Xu

Bug Description

The case is there are three resource providers, only two RPs have enough resources. But the return of AllocationCandidates.get_by_filters includes the provider summary of the RP without enough resource.

This is due to miss a filter like the comment said https://github.com/openstack/nova/blob/3863eca0ac5a9437354288de673c831d5dc20f2e/nova/objects/resource_provider.py#L2364 in the code

Tags: placement
Alex Xu (xuhj)
Changed in nova:
assignee: nobody → Alex Xu (xuhj)
tags: added: placement
Changed in nova:
status: New → In Progress
Changed in nova:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/480130
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=0e6cac5fde830f1de0ebdd4eebc130de1eb0198d
Submitter: Jenkins
Branch: master

commit 0e6cac5fde830f1de0ebdd4eebc130de1eb0198d
Author: He Jie Xu <email address hidden>
Date: Tue Jul 4 18:51:06 2017 +0800

    placement: filter usage records by resource provider id

    The usage records are used to build the provider summary in the
    AllocationCandidates.get_by_filters. Due to miss a filter on the
    resource provider id, the extra resource provider summary returned.

    Change-Id: Idc27e3ab3d4e1d2c6ade2f719572cbc2f5eee133
    Closes-Bug: #1702275

Changed in nova:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/nova 16.0.0.0b3

This issue was fixed in the openstack/nova 16.0.0.0b3 development milestone.

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.