← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1620748] [NEW] In placement when an attempt is made to write to missing inventory the error message is ugly

 

Public bug reported:

The error message from the exception is:

    Inventory for 'set([0, 2])' on resource provider 'set(['a7774b97
-838c-4b36-9cda-cfe6cbba0f0f'])' invalid

This is because the data given to the exception has not been stringified
from sets nor turned from resource class ids to resource class strings.
Change needed near here:

https://github.com/openstack/nova/blob/985c7ca4dc15176dc9cccf0ebcabaa18ea98ca2a/nova/objects/resource_provider.py#L715

** Affects: nova
     Importance: Undecided
     Assignee: Chris Dent (cdent)
         Status: New


** Tags: api placement scheduler

-- 
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/1620748

Title:
  In placement when an attempt is made to write to missing inventory the
  error message is ugly

Status in OpenStack Compute (nova):
  New

Bug description:
  The error message from the exception is:

      Inventory for 'set([0, 2])' on resource provider 'set(['a7774b97
  -838c-4b36-9cda-cfe6cbba0f0f'])' invalid

  This is because the data given to the exception has not been
  stringified from sets nor turned from resource class ids to resource
  class strings. Change needed near here:

  https://github.com/openstack/nova/blob/985c7ca4dc15176dc9cccf0ebcabaa18ea98ca2a/nova/objects/resource_provider.py#L715

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


Follow ups