Skip to content

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

@lpalovsky

Description

@lpalovsky

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', '}']

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions