nova/nova/virt/ironic
EdLeafe c46f037a0f Handle ironicclient failures in Ironic driver
The ironic driver uses ironicclient to get the list of nodes from the
Ironic service. If that service is not running, or something otherwise
prevents the ironicclient's call from succeeding, and unhandled
exception will occur. This patch adds a generic exception handler for
this call, logging an error and continuing.

Co-Authored-By: Lucas Alvares Gomes <lucasagomes@gmail.com>

Closes-Bug: #1706772

Conflicts:
      nova/tests/unit/virt/ironic/test_driver.py

NOTE(mriedem): The conflicts in the tests can be ignored since they
were just around some boot from volume and flavor migration tests
in Pike which don't exist in Ocata. Also, the _LE translation marker
has to be added back in for LOG.error in Ocata due to hacking checks.

Change-Id: I4ebebcf221dfe29e2aa125f5956aec10108f8fbe
(cherry picked from commit c2d33c3271)
2017-08-08 11:14:53 -04:00
..
__init__.py Import Ironic Driver & supporting files - part 1 2014-09-05 19:00:12 -04:00
client_wrapper.py Merge "Removes unnecessary utf-8 encoding" 2017-02-03 06:00:47 +00:00
driver.py Handle ironicclient failures in Ironic driver 2017-08-08 11:14:53 -04:00
ironic_states.py Ironic: Call unprovison for nodes in DEPLOYING state 2015-09-09 10:38:22 +01:00
patcher.py Merge "Removes unnecessary utf-8 encoding" 2017-02-03 06:00:47 +00:00