nova/nova/virt/ironic
Hironori Shiina 15aed7e0e0 ironic: Get correct inventory for deployed node
_node_resources_unavailable() is supposed to be called after
_node_resources_used() returns False. Because get_inventory() doesn't
satisfy this condition, this method returns an empty inventory for a
deployed bare metal node. It causes the resource tracker to try
removing an allocated inventory from placement. This removal results
in periodic unexpected errors.

This patch calls _node_resources_used() prior to
_node_resources_unanvailable() for getting a proper inventory.

Change-Id: I6717ce19f6005c8ebb7af75437a72876c5a53f34
Closes-Bug: 1751472
(cherry picked from commit ac20fc22ad)
(cherry picked from commit 525ea3cfac)
2018-04-17 14:20:42 +00:00
..
__init__.py Import Ironic Driver & supporting files - part 1 2014-09-05 19:00:12 -04:00
client_wrapper.py Ironic: Support boot from Cinder volume 2017-07-25 03:57:51 +00:00
driver.py ironic: Get correct inventory for deployed node 2018-04-17 14:20:42 +00:00
ironic_states.py Ironic: Call unprovison for nodes in DEPLOYING state 2015-09-09 10:38:22 +01:00
patcher.py Ironic: Support boot from Cinder volume 2017-07-25 03:57:51 +00:00