SSH authentication is incorrect on gather_facts task #404
Comments
ansible-config dump
|
Hi there, Thanks for opening a ticket. Would it be possible to include the SSH command line executed? It appears in the log just before the permission denied error. You might also find some useful debug info from SSH itself by setting This might be related to #334 which I've just fixed -- but maybe it is a separate bug. |
Hi ! Sorry for the late reply, I was on holiday. I figured that this issue could be related to the fact that passwordless SSH authentification was not setup on other nodes than the one which is launching the playbook (master-1 => worker-1 was setup but not worker-1 => master-1) which could explain However, I ended up with another error ( I've used
I'm gonna try to pull the last version of master branch to see if it's working better (here I used the mitogen included on kubespray playbook because I believed that they would have test it before) |
This reverts commit 316cdb8. CI with terraform is impacted by mitogen-hq/mitogen#404
This reverts commit 316cdb8. CI with Terraform is impacted by mitogen-hq/mitogen#404
So, I've had a similar one (log at https://gist.github.com/palfrey/b7bfb2c921d9d04595d6e45ea6442dd3). Reading through parts of the log, it looks like it's trying to login to the delegated machine as "parkert" (my username) not "ubuntu" (username that should be used on both the original machine and the delegated machine). Any thoughts on this? |
I hadn't spotted the delegate_to! There is a huge bug right now that should be fixed for 0.2.4, hopefully in the coming week. Thanks for the tip @palfrey. The ticket to watch is #412, which I've now pinned since it's basically 70% of new reports in the past few months :) |
Hi @palfrey and @myssa91, I have checked in a (huge) fix relating to delegate_to and the problem should now be solved on master (in about 10 minutes). A new connection debugging facility is included to help diagnose future issues like this, @palfrey in your log were also visible tracebacks during shutdown, they are also gone on current master. There are still some (soft) errors generated due to how routing messages have changed in 0.2.4, they will be fixed shortly. This should now be fixed on the master branch and will make it into the next release. To be updated when a new release is made, subscribe to https://networkgenomics.com/mail/mitogen-announce/ If you are still experiencing the problem on the current master branch, please do not hesitate to reopen this issue. Thanks for reporting this! |
* origin/dmw: issue #404: add to Changelog. issue #251: readd to Changelog. tests: add exact test for issue 251; closes #251. issue #412: pad out debugging docs, add get_stack to changelog. issue #412: force-verbose output for mitogen_get_stack. issue #412: promote "mitogen_get_stack" to the main extension. issue #412: add docstrings/boilerplate to transport_config.py. issue #251, #412, #434: fix connection configuration brainwrong issue #434: tests: set a default remote_user in ansible.cfg. tests: CI should symlink all contents of ansible/hosts/ ansible: fix test failure during process exit. tests: use assert_equal in more places. tests: make assert_equal work on newer Ansibles. tests: convert stack_construction.yml to assert_equal. tests: make fork_histogram optional tests: use assert_equal in delegate_to_template.yml. tests: import assert_equal action. tests: rename 'delegation/' to 'connection_delegation/' core: replace ancient YOLO loop in fire(). tests: some more utility function tests + flake8. tests: clean up / deduplicate Ansible inventory. tests: add some more helper function tests.
Hi !
I'm trying to improve my deployement time on Kubespray and I have the following error on a gather_facts task with ansible_ssh_pipelining: true
Log
ansible.cfg
Task
Command used for launching the playbook
ansible-playbook -i inventory/mimispray/hosts.ini cluster.yml -b
I have also tried to setup
strategy = mitogen_linear
but I had the same error.Also, of course, I've got no errors when not using Mitogen.
Here is my setup
Thanks for your help :)
The text was updated successfully, but these errors were encountered: