There's a race condition that compute record might be created
and updated through objects.compute_node.update_from_virt_driver
function, but some fields free_disk_gb are not updated yet
so accessing from scheduler service will find a 'None' value
and lead to exception
Reviewed: https:/ /review. openstack. org/352317 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=36a0ba9c814 1b445f2c6bfc093 fde4cc98d229b2
Committed: https:/
Submitter: Jenkins
Branch: master
commit 36a0ba9c8141b44 5f2c6bfc093fde4 cc98d229b2
Author: jichenjc <email address hidden>
Date: Sat Jul 23 23:21:39 2016 +0800
Avoid update resource if compute node not updated
There's a race condition that compute record might be created compute_ node.update_ from_virt_ driver
and updated through objects.
function, but some fields free_disk_gb are not updated yet
so accessing from scheduler service will find a 'None' value
and lead to exception
Change-Id: Ia68298a3f01d89 bbf302ac734389f 7282176c553
Closes-Bug: 1610679