← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1693353] Re: resource provider links list shows 'traits' in all microversions and should not

 

Reviewed:  https://review.openstack.org/468923
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=72960a33e094f74de76f23d75dbaaae07332fa6f
Submitter: Jenkins
Branch:    master

commit 72960a33e094f74de76f23d75dbaaae07332fa6f
Author: Chris Dent <cdent@xxxxxxxxxxxxx>
Date:   Mon May 29 16:38:59 2017 +0000

    [placement] adjust resource provider links by microversion
    
    The resource provider representation includes links to other related
    resources. Those links should vary depending on microversion as some
    of the related resources did not show up until a later microversion.
    
    This change makes it so 'aggregates' show up at microverison 1.1 and
    beyond and traits in microversion 1.6 and beyond. A new gabbit has
    been added, resource-provider-links which exercises this. Only the
    single resource provider representation is tested because the same
    code is used for single and collection representations.
    
    Change-Id: Ife64922ee91a775fabdcf718e6eb0e0c7ddfde7a
    Closes-Bug: #1693353


** 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/1693353

Title:
  resource provider links list shows 'traits' in all microversions and
  should not

Status in OpenStack Compute (nova):
  Fix Released

Bug description:
  When listing single or multiple resource providers, the JSON response
  includes a list of 'links' with each provider. These link to
  'inventories', 'aggregates', 'usages' and 'traits'. Since 'traits'
  only showed up in microversion 1.6 the link to them should only be
  presented if the microversion is 1.6 or above.

  The change to fix this is in the '_serialize_links' method in
  nova.api.openstack.placement.handlers.resource_provider.

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


References