ansible: (when running an ansible playbook, the process doesn't end itself. I have to press CONTROL C to end it.) #331
Comments
Here's my pip list of virtualenv in case it helps
|
Pasting the logs here same as attached file above
|
Verified, this is happening in ansible version 2.4.0 and 2.5.0 as well with same mitogen 0.2.2 |
Hi @prateekj201, thanks for reporting! Would you mind emailing a full -vvv log if possible to dw@botanicus.net, otherwise, can you please at least scan the log for any "ERROR!" messages or lines like " E mitogen". Please also include "ansible-config dump --only-changed", this may be related to another plugin |
mitogen-bug.txt Also,
|
@dw Hey, i emailed you a file right now with all the logs. The log files attached here are the last few main lines related to this issue. |
Ok so i verified and this issue is happening when with any ansible playbook execution i am using more than two 'v' for extra verbosity. When i use less than 3 v(verbosity) it is working fine and when using three or more 'v' for extra verbosity the pid remains visible even after the playbook execution is finished |
Hi @prateekj201! So sorry for the delay in replying, I've been deep in design mode for the next version of the project. I reviewed your log, and it looks like this is just a known issue:
Can you confirm that after pressing ENTER to re-display the shell prompt, that the prompt does indeed actually appear, without needing CTRL+C? If it does appear, then it is just the connection multiplexer spamming debug output during shutdown. It is because Ansible exposes no hook that would allow the multiplexer process to be shut down gracefully before Ansible exits, so its exit only begins when it notices that Ansible has already quit. It's annoying ,but in the current extension, it seems the best we can do. I am going to keep this bug open, so other people will see the same explanation. I am going to try and fix at least debug output as part of the stable series -- by hiding most of it behind the ANSIBLE_DEBUG environment variable. That would more or less 'fix' the issue :) |
If you look at the log file you sent, notice that on line 5096, your prompt is being printed :) This is definitely the same issue as in the docs. Sorry for the trouble! I'll find a way to tidy this up as part of #316. |
yea i verified , after pressing enter or Control C , it takes us to the shell prompt |
This is soon be on the master branch (end of weekend) 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/ Thanks for reporting this! |
ansible version=2.6.1
Python 2.7.12
Virtualenv 15.0.1
Machine: Ubuntu 16.04.3 LTS
Mitogen=mitogen-0.2.2
I am using virtualenv for execution of all playbooks.
ansible.cfg is updated for the path of strategic plugin with mitogen_linear.
When i execute the playbook (ansible-playbook test.yml -i hosts --key ~/.ssh/my-key.pem -u centos -vvvv) the playbook executes and definitely with better speed than usual. And irrespective of failure or success at the end the process doesn't end but simply left unfinished. Asin i have to press CONTROL C to end the process and come back to terminal to type.
Last few lines of output are attached with here, i have replced the host ip address with x.x.x.x and port number is 3257 here for reference.
mitogen-bug.txt
The text was updated successfully, but these errors were encountered: