diff options
| author | Radosław Piliszek <radoslaw.piliszek@gmail.com> | 2020-04-26 16:02:43 +0200 |
|---|---|---|
| committer | Radosław Piliszek <radoslaw.piliszek@gmail.com> | 2020-04-26 16:05:03 +0200 |
| commit | 1243337a1ccfe59031aa635ff7dbe9a4afda39c4 (patch) | |
| tree | dc8c07dffd4b1e890de511886888df77a1243d14 /tests | |
| parent | b1db4f5c3bc14d4e9a501c32fb73a2bf2aa2a37e (diff) | |
| download | kolla-ansible-1243337a1ccfe59031aa635ff7dbe9a4afda39c4.tar.gz kolla-ansible-1243337a1ccfe59031aa635ff7dbe9a4afda39c4.zip | |
CI: Discern between Ironic client and grep failure
Pipe hid an issue that Ironic client was not available in CI,
making it look as if fake-hardware driver was not usable.
This commit applies separation of concerns to easily discern
between the two failures and provide better debugging experience.
Change-Id: Iac3d84b7d707b84a8426c8d787b29a368ff7ae85
Related-Bug: #1872481
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/test-ironic.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/test-ironic.sh b/tests/test-ironic.sh index f92c8222c..b92c1407f 100755 --- a/tests/test-ironic.sh +++ b/tests/test-ironic.sh @@ -99,12 +99,16 @@ function test_ironic_logged { . ~/openstackclient-venv/bin/activate # Smoke test ironic API. - if ! openstack baremetal driver list | grep fake-hardware; then + local baremetal_driver_list + baremetal_driver_list=$(openstack baremetal driver list) + openstack baremetal node list + openstack baremetal port list + + # Sanity check. + if ! echo "$baremetal_driver_list" | grep fake-hardware; then echo "No active conductors with fake-hardware driver" exit 1 fi - openstack baremetal node list - openstack baremetal port list create_resources wait_for_placement_resources |
