tripleo-quickstart/playbooks
Michele Baldessari 9fe3f82bcf Fix 'System is booting up' error on undercloud
When running oooq from master I constantly hit the following error:
PLAY [Create the virtual BMC]
TASK [Gathering Facts]

task path: /tmp/bruce-ha/hab-03.ha.lab.eng.bos.redhat.com/run/playbooks/quickstart.yml:67
Tuesday 30 June 2020  03:33:53 -0400 (0:00:00.030)       0:07:39.141 **********
...
<undercloud> ssh_retry: attempt: 3, ssh return code is 255. cmd (['ssh', '-F', '/tmp/bruce-ha/hab-03.ha.lab.eng.bos.redhat.com/run/ssh.config.ansible', '-o', 'StrictHostKeyChecking=no', '-o', 'IdentityFile="/tmp
/bruce-ha/hab-03.ha.lab.eng.bos.redhat.com/run/id_rsa_undercloud"', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuth
entication=no', '-o', 'User="stack"', '-o', 'ConnectTimeout=10', '-F', '/tmp/bruce-ha/hab-03.ha.lab.eng.bos.redhat.com/run/ssh.config.ansible', 'undercloud', "/bin/sh -c '/usr/bin/python3 && sleep 0'"]...), paus
ing for 3 seconds
fatal: [undercloud]: UNREACHABLE! => {
    "changed": false,
    "unreachable": true
}

MSG:

Data could not be sent to remote host "undercloud". Make sure this host can be reached over ssh: Warning: Permanently added 'undercloud' (ECDSA) to the list of known hosts. "System is booting up. Unprivileged users are not permitted to log in yet. Please come back later. For technical details, see pam_nologin(8)." Authentication failed.

The reason is that we run gather_facts on the undercloud vm, but we are
not really 100% guaranteed that it is up and accessible just yet.
Let's make sure that is the case before proceeding.

Tested this and now I correctly pass the problematic step.

Change-Id: Iddc2e7ba0ffbb85231f7ec4bafe9f3c27918456b
2020-07-02 08:29:21 +02:00
..
build-images-and-quickstart.yml Lint fixes for playbooks and roles 2019-01-08 15:27:54 +00:00
build-images.yml Lint fixes for playbooks and roles 2019-01-08 15:27:54 +00:00
libvirt-nodepool.yml Lint fixes for playbooks and roles 2019-01-08 15:27:54 +00:00
libvirt-setup.yml Lint fixes for playbooks and roles 2019-01-08 15:27:54 +00:00
libvirt-teardown.yml Lint fixes for playbooks and roles 2019-01-08 15:27:54 +00:00
noop.yml Lint fixes for playbooks and roles 2019-01-08 15:27:54 +00:00
provision.yml Make the playbook's yaml file start with "---" 2019-07-14 21:11:50 +08:00
quickstart.yml Fix 'System is booting up' error on undercloud 2020-07-02 08:29:21 +02:00
repo-setup-virthost.yml Lint fixes for playbooks and roles 2019-01-08 15:27:54 +00:00
teardown-environment.yml Lint fixes for playbooks and roles 2019-01-08 15:27:54 +00:00
teardown-nodes.yml Lint fixes for playbooks and roles 2019-01-08 15:27:54 +00:00
teardown-provision.yml Lint fixes for playbooks and roles 2019-01-08 15:27:54 +00:00
teardown.yml Lint fixes for playbooks and roles 2019-01-08 15:27:54 +00:00