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

SSH connection failing from ubuntu machine to power vsi #116

Open
ashwinik30 opened this issue Aug 24, 2023 · 1 comment
Open

SSH connection failing from ubuntu machine to power vsi #116

ashwinik30 opened this issue Aug 24, 2023 · 1 comment

Comments

@ashwinik30
Copy link

ashwinik30 commented Aug 24, 2023

Hi @kavya498 , @jaywcarman

Problem Description:
Trying to connect to power vsi from ubuntu 22.04 machine is failing
Running a simple-vm-power-vs create.yml playbook and can see creation od vsi is successfull
when wait_for_connection stage is trying to connect the newly created vsi it fails to connect with error timed out

But when we use the some workarounds like reducing MTU to 1500 => 1100 and ciphering flag ctr-128 it able to cnnect locally from cli

manually workaround tried by reducing MTU
First reducing MTU
image

Second using cipher flag
image

issue details

TASK [Save new Power VSI fact] *************************************************
ok: [localhost]

TASK [Print Public IP Address] *************************************************
ok: [localhost] => {
    "pi_instance.addresses[0].external_ip": "163.68.64.77"
}

TASK [Add VSI to Ansible inventory] ********************************************
changed: [localhost]

PLAY [Connect to VSI] **********************************************************

TASK [Wait for VSI to become reachable over SSH] *******************************
**fatal: [163.68.64.77]: FAILED! => {"changed": false, "elapsed": 606, "msg": "timed out waiting for ping module test: Failed to connect to the host via ssh: Connection closed by 163.68.64.77 port 22"}**

PLAY RECAP *********************************************************************
163.68.64.77               : ok=0    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0
localhost                  : ok=14   changed=3    unreachable=0    failed=0    skipped=4    rescued=0    ignored=0

ubuntu@acs-jammy-x86:~/ansible-collection-ibm/examples/simple-vm-power-vs$

OS description :
ubuntu@acs-jammy-x86:~/ansible-collection-ibm/examples/simple-vm-power-vs$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.1 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

@jaywcarman
Copy link
Collaborator

I don't think this has anything to do with these Ansible modules.

My guess is that your problem lies within the network path from your ubuntu host and the AIX VM. Something (firewall, router, etc?) doesn't like the larger packets resulting from higher MTU or longer cipher key length.

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

2 participants