snowdrop / team

Repository hosting daily tasks, general information, wiki, tricks, ...
3 stars 0 forks source link

Check Charles error when deploying VM on RHOSP #1087

Closed jacobdotcosta closed 1 year ago

jacobdotcosta commented 1 year ago

The log shows the following error.

TASK [Gathering Facts] **********************************************************************************************************************************************************************************************************
task path: ${HOME}/code/janedoe/k8s-infra/ansible/playbook/openstack/openstack_vm_create_passwordstore.yml:115
...
<x.x.x.x> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o Port=22 -o 'IdentityFile="${HOME}/.ssh/id_rsa_janedoe_openstack"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="janedoe"' -o ConnectTimeout=10 -o 'ControlPath="${HOME}/.ansible/cp/34e03d638c"' x.x.x.x '/bin/sh -c '"'"'rm -f -r /home/janedoe/.ansible/tmp/ansible-tmp-1698747132.195044-1534-84321512014681/ > /dev/null 2>&1 && sleep 0'"'"''
<x.x.x.x> (0, b'', b"OpenSSH_9.0p1, LibreSSL 3.3.6
debug1: Reading configuration data ${HOME}/.ssh/config
debug3: ${HOME}/.ssh/config line 1: Including file ${HOME}/.orbstack/ssh/config depth 0
debug1: Reading configuration data ${HOME}/.orbstack/ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/* matched no files
debug1: /etc/ssh/ssh_config line 54: Applying options for *
debug2: resolve_canonicalize: hostname x.x.x.x is address
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '${HOME}/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '${HOME}/.ssh/known_hosts2'
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug1: auto-mux: Trying existing master
debug2: fd 3 setting O_NONBLOCK
debug2: mux_client_hello_exchange: master version 4
debug3: mux_client_forwards: request forwardings: 0 local, 0 remote
debug3: mux_client_request_session: entering
debug3: mux_client_request_alive: entering
debug3: mux_client_request_alive: done pid = 1538
debug3: mux_client_request_session: session request sent
debug1: mux_client_request_session: master session id: 2
debug3: mux_client_read_packet: read header failed: Broken pipe
debug2: Received exit status from master 0
")
fatal: [some_test]: FAILED! => {
    "ansible_facts": {},
    "changed": false,
    "failed_modules": {
        "ansible.legacy.setup": {
            "failed": true,
            "module_stderr": "OpenSSH_9.0p1, LibreSSL 3.3.6
debug1: Reading configuration data ${HOME}/.ssh/config
debug3: ${HOME}/.ssh/config line 1: Including file ${HOME}/.orbstack/ssh/config depth 0
debug1: Reading configuration data ${HOME}/.orbstack/ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/* matched no files
debug1: /etc/ssh/ssh_config line 54: Applying options for *
debug2: resolve_canonicalize: hostname x.x.x.x is address
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '${HOME}/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '${HOME}/.ssh/known_hosts2'
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug1: auto-mux: Trying existing master
debug2: fd 3 setting O_NONBLOCK
debug2: mux_client_hello_exchange: master version 4
debug3: mux_client_forwards: request forwardings: 0 local, 0 remote
debug3: mux_client_request_session: entering
debug3: mux_client_request_alive: entering
debug3: mux_client_request_alive: done pid = 1538
debug3: mux_client_request_session: session request sent
debug1: mux_client_request_session: master session id: 2
debug3: mux_client_read_packet: read header failed: Broken pipe
debug2: Received exit status from master 127
Shared connection to x.x.x.x closed.
",
            "module_stdout": "/bin/sh: line 1: ${HOME}/code/janedoe/k8s-infra/.janedoe-venv/bin/python3.11: No such file or directory
",
            "msg": "The module failed to execute correctly, you probably need to set the interpreter.\nSee stdout/stderr for the exact error",
            "rc": 127
        }
    },
    "msg": "The following modules failed to execute: ansible.legacy.setup\n"
}
jacobdotcosta commented 1 year ago

Executing the playbook alone, that executes that, seemed to have worked.

ansible-playbook ansible/playbook/openstack/openstack_vm_init.yml -e vm_name=some_test

...
TASK [openstack/init_vm : Remove erroneous certs] *************************************************************
changed: [some_test]

TASK [openstack/init_vm : Reboot instance] ********************************************************************
changed: [some_test]

PLAY RECAP ****************************************************************************************************
some_test               : ok=7    changed=5    unreachable=0    failed=0    skipped=3    rescued=0    ignored=0
jacobdotcosta commented 1 year ago

Improved the resources assigned to the OCP Node that the Virtualization infrastructure was using.

jacobdotcosta commented 1 year ago

Cluster is working properly now.