Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore uuid if already set in ComputeNode.update_from_virt_driver
Change Ia69fabce8e7fd7de101e291fe133c6f5f5f7056a sets the ComputeNode.uuid to whatever the virt driver reports if the virt driver reports a uuid, like in the case of ironic. However, that breaks upgrades for any pre-existing compute node records which have a random uuid since ComputeNode.uuid is a read-only field once set. This change simply ignores the uuid from the virt driver resources dict if the ComputeNode.uuid is already set. The bug actually shows up in the ironic grenade CI job logs in stable/rocky but didn't fail the nova-compute startup because ComputeManager._update_available_resource_for_node() catches and just logs the error, but it doesn't kill the service. Change-Id: Id02f501feefca358d36f39b24d426537685e425c Closes-Bug: #1798172 (cherry picked from commit 4984130)
- Loading branch information