Author: Chris Dent <cd...@anticdent.org>
Date: Tue Sep 20 14:36:37 2016 +0000
[placement] Stringify class and provider uuid in error
When attempting to make an allocation of a particular class of
resource against a resource provider which has no inventory for that
class, an InvalidInventory exception is raised. This was workign
okay but the associated message was displaying stringified sets
of resource class ids, and not the resource classes names.
This changes joins the sets into strings for both resource classes
and provider uuids and turns the class indexes into their names.
A functional test which was checking for the exception has been
updated to also check the exception's message.
** 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).
In placement when an attempt is made to write to missing inventory the
error message is ugly
Status in OpenStack Compute (nova):
The error message from the exception is:
Inventory for 'set([0, 2])' on resource provider 'set(['a7774b97
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:
To manage notifications about this bug go to:
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : email@example.com
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help : https://help.launchpad.net/ListHelp