Ignore VirtDriverNotReady in _sync_power_states periodic task
Change Ib0ec1012b74e9a9e74c8879f3feed5f9332b711f introduced
a new VirtDriverNotReady exception which the ironic driver raises
when asked to retrieve a list of nodes and ironic-api is not
available, like if nova-compute is started before ironic-api.
This is normal and meant to be self-healing, but we can get it
in other periodic tasks besides update_available_resource which
leads to ugly exception traces on startup in the logs. This adds
handling for the exception in the _sync_power_states periodic
task.
Reviewed: https:/ /review. openstack. org/604376 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=6eb32bc4034 0fed631b9fce124 5326e0ebc1c540
Committed: https:/
Submitter: Zuul
Branch: master
commit 6eb32bc40340fed 631b9fce1245326 e0ebc1c540
Author: Matt Riedemann <email address hidden>
Date: Fri Sep 21 10:44:51 2018 -0400
Ignore VirtDriverNotReady in _sync_power_states periodic task
Change Ib0ec1012b74e9a 9e74c8879f3feed 5f9332b711f introduced available_ resource which
a new VirtDriverNotReady exception which the ironic driver raises
when asked to retrieve a list of nodes and ironic-api is not
available, like if nova-compute is started before ironic-api.
This is normal and meant to be self-healing, but we can get it
in other periodic tasks besides update_
leads to ugly exception traces on startup in the logs. This adds
handling for the exception in the _sync_power_states periodic
task.
Change-Id: Iaf29b9e7a92705 ac8a2e7ef338b92 f7f1203506d
Closes-Bug: #1793768