commit 3c217acb9c55d647ca362320d697e80d7cfa5ceb
Author: Jay Pipes <email address hidden>
Date: Thu Dec 22 11:09:15 2016 -0500
placement: Do not save 0-valued inventory
Ironic nodes that are not available or operable have 0 values for vcpus,
memory_mb, and local_gb in the returned dict from the Ironic virt driver's
get_available_resource() call. Don't try to save these 0 values in the
placement API inventory records, since the placement REST API will return an
error. Instead, attempt to delete any inventory records for that Ironic node
resource provider by PUT'ing an empty set of inventory records to the placement
API.
Reviewed: https:/ /review. openstack. org/414214 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=3c217acb9c5 5d647ca362320d6 97e80d7cfa5ceb
Committed: https:/
Submitter: Jenkins
Branch: master
commit 3c217acb9c55d64 7ca362320d697e8 0d7cfa5ceb
Author: Jay Pipes <email address hidden>
Date: Thu Dec 22 11:09:15 2016 -0500
placement: Do not save 0-valued inventory
Ironic nodes that are not available or operable have 0 values for vcpus, available_ resource( ) call. Don't try to save these 0 values in the
memory_mb, and local_gb in the returned dict from the Ironic virt driver's
get_
placement API inventory records, since the placement REST API will return an
error. Instead, attempt to delete any inventory records for that Ironic node
resource provider by PUT'ing an empty set of inventory records to the placement
API.
Closes-bug: #1651678
Change-Id: I10b22606f704ab cb970939fb2cd77 f026d4d6322