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.
Change-Id: Iaf29b9e7a92705ac8a2e7ef338b92f7f1203506d
Closes-Bug: #1793768
(cherry picked from commit 6eb32bc40340fed631b9fce1245326e0ebc1c540)
(cherry picked from commit 220796807396ad6aa8cc8f1fc9ff905253681896)
Reviewed: https:/ /review. openstack. org/607730 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=0163783382c 4825a6f18e346d1 7b9e67e98ed1a2
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 0163783382c4825 a6f18e346d17b9e 67e98ed1a2
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 631b9fce1245326 e0ebc1c540) aa8cc8f1fc9ff90 5253681896)
Closes-Bug: #1793768
(cherry picked from commit 6eb32bc40340fed
(cherry picked from commit 220796807396ad6