← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1760276] Re: "provider_summaries" doesn't include resources that are not requested

 

Reviewed:  https://review.openstack.org/558045
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=97530c2ca38228dcebeb231a187806f1e66d4570
Submitter: Zuul
Branch:    master

commit 97530c2ca38228dcebeb231a187806f1e66d4570
Author: Tetsuro Nakamura <nakamura.tetsuro@xxxxxxxxxxxxx>
Date:   Sat Mar 31 18:27:11 2018 +0900

    Return all resources in provider_summaries
    
    The response of ``GET /allocation_candidates`` API provides two fields
    of ``allocation_requests`` and ``provider_summaries``. The callers,
    like the filter scheduler in nova, would use information in
    ``provider_summaries`` in sorting or filtering providers to allocate
    consumers. However, currently ``provider_summaries`` doesn't contain
    resource classes that aren't requested.
    
    With this patch, ``GET /allocation_candidates`` API returns all
    resource classes with a new microversion.
    
    Change-Id: Ic491f190ebd97d94c18931a0e78d779a55ee47a1
    Closes-Bug: #1760276
    Blueprint: placement-return-all-resources


** Changed in: nova
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1760276

Title:
  "provider_summaries" doesn't include resources that are not requested

Status in OpenStack Compute (nova):
  Fix Released

Bug description:
  Description
  ============

  In ``GET /allocation_candidates`` API, ``provider_summaries`` should show all the inventories for all the resource classes in all the resource providers.
  However, ``provider_summaries`` doesn't contain resources that aren't requested.

  Steps to reproduce
  ==================
  Here's one example:

  CN1 has inventory in VCPU, MEMORY_MB, and DISK_GB.
  I make a request for only VCPU resource.

  Expected result
  ===============

  In API response, 
  * "allocation_requests" shows "allocation" of VCPU resource of CN1.
  * "provider_summaries" shows "resources" of VCPU, MEMORY_MB, and DISK_GB  of CN1.

  Actual result
  =============

  In API response, 
  * "allocation_requests" shows "allocation" of VCPU resource of CN1.
  * "provider_summaries" shows "resources" of only VCPU of CN1.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1760276/+subscriptions


References