mirror of
https://github.com/proxmoxer/proxmoxer.git
synced 2026-04-25 07:06:00 +03:00
[GH-ISSUE #14] incompatible ssh peer in asa_command module in Ansible 2.9 #7
Labels
No labels
backend:https
backend:local
backend:openssh
backend:ssh_paramiko
pull-request
status:ansible-issue
status:help-wanted
status:info-needed
status:proxmox-issue
status:review-needed
type:bug 🐞
type:dependency ⛓️
type:docs 📝
type:enhancement ⏫
type:maintenance 🛠️
type:meta
type:question ❓
type:request ✋
type:testing 🧪
version:1.x
version:latest
version:py2
version:py3
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/proxmoxer#7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @badjaoX on GitHub (Mar 23, 2020).
Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/14
Hi,
Need assistance regarding error on ssh. Incompatible ssh peer (no acceptable kex algorithm).
Appreciate your response. Thank you.
Details:
The full traceback is:
Traceback (most recent call last):
File "/.ansible/tmp/ansible-local-/ansible-tmp-1584690763.67-219997475427451/AnsiballZ_asa_command.py", line 102, in
_ansiballz_main()
File "/.ansible/tmp/ansible-local-/ansible-tmp-1584690763.67-219997475427451/AnsiballZ_asa_command.py", line 94, in ansiba llz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File "/.ansible/tmp/ansible-local-/ansible-tmp-1584690763.67-219997475427451/AnsiballZ_asa_command.py", line 40, in invoke module
runpy.run_module(mod_name='ansible.modules.network.asa.asa_command', init_globals=None, run_name='main', alter_sys=True)
File "/usr/lib64/python2.7/runpy.py", line 176, in run_module
fname, loader, pkg_name)
File "/usr/lib64/python2.7/runpy.py", line 82, in _run_module_code
mod_name, mod_fname, mod_loader, pkg_name)
File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/tmp/ansible_asa_command_payload_K0V1WV/ansible_asa_command_payload.zip/ansible/modules/network/asa/asa_command.py", line 186, in
File "/tmp/ansible_asa_command_payload_K0V1WV/ansible_asa_command_payload.zip/ansible/modules/network/asa/asa_command.py", line 156, in mai n
File "/tmp/ansible_asa_command_payload_K0V1WV/ansible_asa_command_payload.zip/ansible/module_utils/network/asa/asa.py", line 125, in run_co mmands
File "/tmp/ansible_asa_command_payload_K0V1WV/ansible_asa_command_payload.zip/ansible/module_utils/connection.py", line 185, in rpc
ansible.module_utils.connection.ConnectionError: Incompatible ssh peer (no acceptable kex algorithm)
fatal: [ios01]: FAILED! => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python"
},
"changed": false,
"module_stderr": "Traceback (most recent call last):\n File "/.ansible/tmp/ansible-local-/ansible-tmp-1584690763.67-219 997475427451/AnsiballZ_asa_command.py", line 102, in \n _ansiballz_main()\n File "/.ansible/tmp/ansible-local-/ ansible-tmp-1584690763.67-219997475427451/AnsiballZ_asa_command.py", line 94, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, A NSIBALLZ_PARAMS)\n File "/.ansible/tmp/ansible-local-/ansible-tmp-1584690763.67-219997475427451/AnsiballZ_asa_command.py", line 40, in invoke_module\n runpy.run_module(mod_name='ansible.modules.network.asa.asa_command', init_globals=None, run_name='main', alter_sys=True)\n File "/usr/lib64/python2.7/runpy.py", line 176, in run_module\n fname, loader, pkg_name)\n File "/usr/lib64/python2 .7/runpy.py", line 82, in _run_module_code\n mod_name, mod_fname, mod_loader, pkg_name)\n File "/usr/lib64/python2.7/runpy.py", line 7 2, in _run_code\n exec code in run_globals\n File "/tmp/ansible_asa_command_payload_K0V1WV/ansible_asa_command_payload.zip/ansible/modul es/network/asa/asa_command.py", line 186, in \n File "/tmp/ansible_asa_command_payload_K0V1WV/ansible_asa_command_payload.zip/ansi ble/modules/network/asa/asa_command.py", line 156, in main\n File "/tmp/ansible_asa_command_payload_K0V1WV/ansible_asa_command_payload.zip /ansible/module_utils/network/asa/asa.py", line 125, in run_commands\n File "/tmp/ansible_asa_command_payload_K0V1WV/ansible_asa_command_p ayload.zip/ansible/module_utils/connection.py", line 185, in rpc\nansible.module_utils.connection.ConnectionError: Incompatible ssh peer (no acceptable kex algorithm)\n",
"module_stdout": "",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 1
}
@morph027 commented on GitHub (Mar 23, 2020):
Hi! Proxmoxer is using https://github.com/paramiko/paramiko for ssh connections. I guess, the problem is raised in this module.
Which versions of proxmoxer and paramiko are you using?
@badjaoX commented on GitHub (Mar 23, 2020):
Hi,
Thanks fro prompt response.
I am using paramiko version 2.1.1, but not user the issue is on paramiko since the module stated as connection.py.
Can help on how to force to use kexalgorithm?
Kind Regards,
Michael
From: morph027 notifications@github.com
Sent: Monday, 23 March 2020 3:13 PM
To: proxmoxer/proxmoxer proxmoxer@noreply.github.com
Cc: badjaoX Mhike_minguez@hotmail.com; Author author@noreply.github.com
Subject: Re: [proxmoxer/proxmoxer] incompatible ssh peer in asa_command module in Ansible 2.9 (#14)
Hi! Proxmoxer is using https://github.com/paramiko/paramiko for ssh connections. I guess, the problem is raised in this module.
Which versions of proxmoxer and paramiko are you using?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/proxmoxer/proxmoxer/issues/14#issuecomment-602423958, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANABRIHSZUASLV4HOBZNSUDRI4DYLANCNFSM4LRTOIRQ.
@morph027 commented on GitHub (Mar 23, 2020):
Can you show me an example playbook?
@badjaoX commented on GitHub (Mar 23, 2020):
Hi,
Here is the sample play.
For Network CLI
hosts: ASA1
connection: network_cli
vars:
cli:
host: "{{ inventory_hostname }}"
username: "{{ username }}"
password: "{{ password }}"
authorize: yes
tasks:
cli_command:
command: show run | i crypto
For ASA command
hosts: ASA1
connection: local
vars:
cli:
host: "{{ inventory_hostname }}"
username: "{{ username }}"
password: "{{ password }}"
authorize: yes
tasks:
asa_command:
commands: show run | i crypto
provider: cli
From: morph027 notifications@github.com
Sent: Monday, 23 March 2020 7:24 PM
To: proxmoxer/proxmoxer proxmoxer@noreply.github.com
Cc: badjaoX Mhike_minguez@hotmail.com; Author author@noreply.github.com
Subject: Re: [proxmoxer/proxmoxer] incompatible ssh peer in asa_command module in Ansible 2.9 (#14)
Can you show me an example playbook?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/proxmoxer/proxmoxer/issues/14#issuecomment-602533988, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANABRIE32CLJEUUU6KX536TRI5BHPANCNFSM4LRTOIRQ.
@morph027 commented on GitHub (Mar 24, 2020):
Hm, i'm confused, this does not look like something related to proxmoxer module, i see
asa_commandonly. This repo is for the proxmoxer requirement in proxmox module only.