ironic-python-agent/ironic_python_agent/tests/functional
Lucas Alvares Gomes 3189c16a5e Fix waiting for target disk to appear
This patch is changing the _wait_for_disks() method behavior to wait to
a specific disk if any device hints is specified. There are cases where
the deployment might fail or succeed randomly depending on the order and
time that the disks shows up.

If no root device hints is specified, the method will just wait for any
suitable disk to show up, like before.

The _wait_for_disks call was made into a proper hardware manager method.
It is now also called each time the cached node is updated, not only
on start up. This is to ensure that we wait for the device, matching
root device hints (which are part of the node).

The loop was corrected to avoid redundant sleeps and warnings.

Finally, this patch adds more logging around detecting the root device.

Co-Authored-By: Dmitry Tantsur <dtantsur@redhat.com>
Change-Id: I10ca70d6a390ed802505c0d10d440dfb52beb56c
Closes-Bug: #1670916
2017-10-16 15:39:25 +02:00
..
__init__.py Add base for IPA functional tests 2015-08-18 16:19:47 +00:00
base.py Agent: Listen for connections on both IPv4 and IPv6 ports 2017-01-19 15:24:11 +00:00
test_commands.py Fix waiting for target disk to appear 2017-10-16 15:39:25 +02:00