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
This commit is contained in:
parent
5548f0b98b
commit
9fe3f82bcf
|
@ -62,6 +62,15 @@
|
|||
roles:
|
||||
- tripleo-inventory
|
||||
|
||||
# Make sure the undercloud is up before we collect facts
|
||||
- name: Wait until ssh is available on undercloud node
|
||||
gather_facts: false
|
||||
hosts: undercloud
|
||||
tasks:
|
||||
- name: Wait for undercloud to be ssh-able
|
||||
wait_for_connection:
|
||||
timeout: 300
|
||||
|
||||
# Setup the virtual bmc
|
||||
# This must be done after inventory is run for the first time
|
||||
- name: Create the virtual BMC
|
||||
|
|
Loading…
Reference in New Issue