You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TASK [opennebula.deploy.opennebula/leader : Get Zone] *********************************************************************************************
task path: /stor/asd/_git/one-deploy/ansible_collections/opennebula/deploy/roles/opennebula/leader/tasks/main.yml:27
Friday 14 June 2024 09:35:42 +0200 (0:00:00.315) 0:00:17.374 ***********
Using module file /home/asd/.cache/pypoetry/virtualenvs/one-deploy-zyWWq5iB-py3.11/lib/python3.11/site-packages/ansible/modules/command.py
Pipelining is enabled.
<10.2.50.86> ESTABLISH SSH CONNECTION FOR USER: ubuntu
<10.2.50.86> SSH: EXEC ssh -q -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="ubuntu"' -o ConnectTimeout=30 -o 'ControlPath="/home/asd/.ansible/cp/cfeaabda9e"' 10.2.50.86 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-olhlneagxydwxjhonwzahjtejgjcdsec ; /usr/bin/python3'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Using module file /home/asd/.cache/pypoetry/virtualenvs/one-deploy-zyWWq5iB-py3.11/lib/python3.11/site-packages/ansible/modules/command.py
Pipelining is enabled.
<10.2.50.86> ESTABLISH SSH CONNECTION FOR USER: ubuntu
<10.2.50.86> SSH: EXEC ssh -q -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="ubuntu"' -o ConnectTimeout=30 -o 'ControlPath="/home/asd/.ansible/cp/cfeaabda9e"' 10.2.50.86 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-zpqlsguihcfsiaaybptojlmjtexsdwhq ; /usr/bin/python3'"'"'"'"'"'"'"'"' && sleep 0'"'"''
fatal: [f1 -> 10.2.50.86]: UNREACHABLE! => changed=false
msg: 'Data could not be sent to remote host "10.2.50.86". Make sure this host can be reached over ssh: '
unreachable: true
fatal: [f2 -> 10.2.50.86]: UNREACHABLE! => changed=false
msg: 'Data could not be sent to remote host "10.2.50.86". Make sure this host can be reached over ssh: '
unreachable: true
The problem is that when one_vip is used to contact the Leader delegate_to does not know which ansible_user should be used for the SSH connection, so it takes whatever it finds in hostvars.
To Reproduce
Define "global" ansible_user in the inventory.
Override ansible_user (different value) for all Front-ends (HA).
Run ansible-playbook.
Expected behavior
No error, delegate_to uses the correct SSH user.
Details
Ansible version: N/A
Linux OS distro in your cluster: N/A
Version: 1.1.0
Additional context
N/A
Progress Status
Code committed
Testing - QA
Documentation (Release notes - resolved issues, compatibility, known issues)
The text was updated successfully, but these errors were encountered:
Description
The following inventory:
Causes this errror:
The problem is that when one_vip is used to contact the Leader
delegate_to
does not know whichansible_user
should be used for the SSH connection, so it takes whatever it finds in hostvars.To Reproduce
ansible_user
in the inventory.ansible_user
(different value) for all Front-ends (HA).Expected behavior
No error,
delegate_to
uses the correct SSH user.Details
Additional context
N/A
Progress Status
The text was updated successfully, but these errors were encountered: