Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OpenQA][GCP] - Ansible fails with SSH connection #63

Open
lpalovsky opened this issue Sep 6, 2022 · 0 comments
Open

[OpenQA][GCP] - Ansible fails with SSH connection #63

lpalovsky opened this issue Sep 6, 2022 · 0 comments

Comments

@lpalovsky
Copy link
Collaborator

OpenQA job: https://mordor.suse.cz/tests/4383#
Log files: https://mordor.suse.cz/tests/4383#downloads

Running ansible deployment inside OpenQA qcow image fails with nodes being not available via SSH.
Test fails at playbook "sap-hana-cluster.yaml"

# /root/qe_sap_deployment/scripts/qesap/qesap.py --verbose -c /root/qe_sap_deployment/scripts/qesap/hanasr_gcp.yaml -b /root/qe_sap_deployment ansible; echo LWYJi-$?-
INFO:QESAPDEP:Running Ansible...
DEBUG:QESAPDEP:playbook:registration.yaml -e reg_code=***CENSORED
DEBUG:QESAPDEP:playbook:pre-cluster.yaml
DEBUG:QESAPDEP:playbook:sap-hana-preconfigure.yaml -e use_sapconf=${SAPCONF}
DEBUG:QESAPDEP:Replace value True in use_sapconf=${SAPCONF}
DEBUG:QESAPDEP:playbook:cluster_sbd_prep.yaml
DEBUG:QESAPDEP:playbook:sap-hana-storage.yaml
DEBUG:QESAPDEP:playbook:sap-hana-download-media.yaml
DEBUG:QESAPDEP:playbook:sap-hana-install.yaml
DEBUG:QESAPDEP:playbook:sap-hana-system-replication.yaml
DEBUG:QESAPDEP:playbook:sap-hana-system-replication-hooks.yaml
DEBUG:QESAPDEP:playbook:sap-hana-cluster.yaml
INFO:QESAPDEP:Run:       ansible -vvvv -i /root/qe_sap_deployment/terraform/gcp/inventory.yaml all -a true --ssh-extra-args="-l cloudadmin -o UpdateHostKeys=yes -o StrictHostKeyChecking=accept-new"
DEBUG:QESAPDEP:Split:['ansible [core 2.11.12] ', '  config file = None', "  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']", '  ansible python module location = /usr/lib/python3.6/site-packages/ansible', '  ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections', '  executable location = /usr/bin/ansible', '  python version = 3.6.15 (default, Sep 23 2021, 15:41:43) [GCC]', '  jinja version = 3.0.3', '  libyaml = False']
DEBUG:QESAPDEP:Split:['hanasrb90f-vmhana01 | UNREACHABLE! => {', '    "changed": false,', '    "msg": "Failed to connect to the host via ssh: OpenSSH_8.4p1, OpenSSL 1.1.1d  10 Sep 2019\\r\\ndebug1: Reading configuration data /etc/ssh/ssh_config\\r\\ndebug1: /etc/ssh/ssh_config line 20: Applying options for *\\r\\ndebug2: resolve_canonicalize: hostname 34.90.119.184 is address\\r\\ndebug3: expanded UserKnownHostsFile \'~/.ssh/known_hosts\' -> \'/root/.ssh/known_hosts\'\\r\\ndebug3: expanded UserKnownHostsFile \'~/.ssh/known_hosts2\' -> \'/root/.ssh/known_hosts2\'\\r\\ndebug1: auto-mux: Trying existing master\\r\\ndebug1: Control socket \\"/root/.ansible/cp/6ff7edfb7a\\" does not exist\\r\\ndebug2: ssh_connect_direct\\r\\ndebug1: Connecting to ***CENSORED
 port 22.\\r\\ndebug2: fd 3 setting O_NONBLOCK\\r\\ndebug1: connect to address ***CENSORED
 port 22: Connection refused\\r\\nssh: connect to host ***CENSORED
 port 22: Connection refused",', '    "unreachable": true', '}']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant