-
Notifications
You must be signed in to change notification settings - Fork 663
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
SSHException with latest testinfra #2069
Comments
Thanks for the report! AFAICT, both are still supported in Ansible: I did take a look into testinfra and it seems to be making a decision on this: So, it looks like we have a mismatch from testinfra then? We should perhaps try to patch testinfra to support both since Ansible advertises that as well. What do you think @sassoo? |
Took a stab in pytest-dev/pytest-testinfra#448. |
I took a quick glance at the ansible documentation here & only saw a reference to ansible_ssh_private_key_file. Also, many of the other ssh related keys include 'ssh' in the name so for consistency & easy googling I'd probably migrate toward that. If it's a PITA then no big deal but it was the absence of any google results for |
Also, thanks for the rapid feedback & testinfra issue! Super cool. |
Cool! Testinfra change is merged now so it's possible to test against latest Testinfra HEAD. I've asked for a release and will close this when that is officially on PyPi. Thanks again for this early testing and feedback. |
Please reopen #2077 - its not a duplicate |
Issue Type
Molecule and Ansible details
Molecule installation method (one of):
Ansible installation method (one of):
Desired Behavior
molecule verify
with the vagrant driver using virtualbox should successfully ssh into the guest vm created by molecule. This worked before upgrading to latest molecule & testinfra without changing anything else.Actual Behaviour
The error is:
SSHException: No authentication methods available
. If I change the molecule generated ansible inventory filesansible_private_key_file
key toansible_ssh_private_key_file
it works. Additionally,molecule login
works without issue. This worked before upgrading to latest molecule & testinfra without changing anything else.Another workaround in a simple test file is:
I'm unsure if molecule or testinfra is at fault so posting here first. Let me know if I should post a testinfra issue.
The text was updated successfully, but these errors were encountered: