[Ironic]Not count available resources of deployed ironic node
Changing node's properties in Ironic after node is deployed will
count as available resources in Nova, as nova's resource_tracker
will override the *_used keys we set in the driver.
This patch changes the caculation of available resources based on
the instance flavor instead of node to avoid the issue.
Reviewed: https:/ /review. openstack. org/204088 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=b99fb0a51c6 58301188bbc729d 1437a9c8b75d00
Committed: https:/
Submitter: Jenkins
Branch: master
commit b99fb0a51c65830 1188bbc729d1437 a9c8b75d00
Author: Zhenguo Niu <email address hidden>
Date: Tue Jul 21 21:16:22 2015 +0800
[Ironic]Not count available resources of deployed ironic node
Changing node's properties in Ironic after node is deployed will
count as available resources in Nova, as nova's resource_tracker
will override the *_used keys we set in the driver.
This patch changes the caculation of available resources based on
the instance flavor instead of node to avoid the issue.
Change-Id: I1a6e4501122c47 81e103fd83a146e 0914c7671c9
Closes-Bug: #1301279