Fix newly-introduced 'Wait until nodes will be manageable' task

In change I5a35ca95c5f0e7b295f7bcf76e2ebb530e73c1a0 we added the
'Wait until nodes will be manageable' in order to cope for slow
environments. That change always assumed that step_introspect is
set to true. When step_introspect is set to false, then
tripleo_overcloud_node_import_provide is set to true and that means that
the nodes get imported with 'openstack overcloud node import
instackenv.json --provide'. Having --provide means the nodes will
show up with 'available' and not 'manageable'.

Change-Id: I1d31343161b6a228426f3b63f477ed839a2fbef9
This commit is contained in:
Michele Baldessari 2020-06-30 14:53:36 +02:00
parent 08081fafba
commit a585b509b1
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@
- name: Wait until nodes will be manageable
shell: >-
set -o pipefail &&
openstack --os-cloud undercloud baremetal node list -f value -c "Provisioning State" | grep -v manageable
openstack --os-cloud undercloud baremetal node list -f value -c "Provisioning State" | grep -v -e manageable -e available
register: result
until: result.stdout == ''
failed_when: result.rc == 0