-
Notifications
You must be signed in to change notification settings - Fork 199
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
Mitogen fails on RHEL8 server with bash: /usr/bin/python: No such file or directory #673
Comments
duplicate of #597 ? |
I downloaded your patch from https://github.com/s1113950/mitogen/tree/complexAnsiblePythonInterpreterArg Hoping that it's correct way of testing you patch. Unfortunately the result is as before, python version is not detected on RHEL8 destination servers. Let me know if there is more that I can test for you? `ansible-playbook 2.9.2 PLAYBOOK: manage_splunk_forwarders.yml ********************************************************************************************************************** PLAY [heavy_forwarders:&heavy_forwarders_dmz] *************************************************************************************************************** PLAY [heavy_forwarders:&heavy_forwarders_blue] ************************************************************************************************************** TASK [setup] ************************************************************************************************************************************************ |
That's the correct way; @rlinq can you run your playbook again with - |
Sure, I though I ran it with -vvv last time, now with -vvvvv. Unfortunately I don't think you get what you want as I can't see any discovery messages in the output. Let me know what you find and I will rerun the tests for you. |
You're correct; there wasn't much in that log :/ I got it passing tests on a |
Unfortunately both Azure and Travis only support Ubuntu (according to https://docs.travis-ci.com/user/reference/overview/#linux and https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops#use-a-microsoft-hosted-agent ), so the best we have is to run tests targeting a container rather than baremetal |
aHa! @rlinq I can reproduce the error running |
@s1113950 Great that you were able to reproduce it, I didn't see this coming, python differences between RHEL8 and CentOS 8. Let me know if I can assist when you got your tests to run through successfully |
#658 (comment) this is proving to be a pain 😓 I'm gonna have to rethink some things in order to get it to work on RHEL8 (might end up with a loop of the different python interpreters around a try/catch statement to avoid infinite recursion 😞 ) |
@rlinq I gotta get my PR passing tests again but I got specifically the interpreter discovery tests running on |
@s1113950 I downloaded your latest patch and it's working great, I really appreciate your work! Looking at your code, I think one optimization can be done in the list of potential python versions. Tested it and it works, unfortunately I have no access from where I work to do a pull request.
RHEL8 linked python binaries from /usr/bin/python3 |
np, glad to read that it's working for you! :D I'll add in Since I call |
@rlinq can you try my patch one more time? I got it passing tests/made some more tweaks. Sorry it took so long; I just switched jobs and didn't have as much time as before to work on it til now. |
Another person confirmed it worked for them as well so I went ahead and merged the patch after tests passed. |
Where i can find this patch? https://github.com/s1113950/mitogen/tree/complexAnsiblePythonInterpreterArg I've the same issue with RHEL8. It doesnt work for me with the acctually version (latest)... |
oh shoot 🤔 someone else also reported it didn't work for them either, and I suggested #658 (comment) . Can you try the suggestions I put in that comment and see if it works? |
not sure I understand what is being said. @joinmaster66 are you running the latest mitogen release version (0.2.9), the latest mitogen github master, or .... ? |
yes i use the latest mitogen version (0.2.9). In my case i use mitogen for multiple systems (rhel7, rhel8, etc.) in each case it works but in Rhel8 it doesnt. The ansible version i use (2.9.3) @bradh352 |
That is your problem, the patch is NOT in a release. You need to install mitogen from master. Something like this: |
i have same issue on willhallonline/ansible:2.9-alpine container |
@oliverlj I'll try and repro with that container this weekend |
here is the ansible.cfg is used
and the inventory workaround
|
@oliverlj I'm able to run Mitogen |
I encountered the same problem on Ubuntu 20.04, but installing Mitogen from master with That said, I've already been bitten in the past by not pinning versions. I saw from your comment on your PR (#658 (comment)) that we can pin to a commit, but would you consider to release a patch version |
Ansible 2.10 was released few months ago. Can you release it, please? |
New rc available here: https://github.com/dw/mitogen/releases/tag/v0.3.0-rc.0 for Ansible 2.10+ |
Incorrect identification of python interpreter on Red Hat Enterprise Linux 8.0. Cause playbook to fail instantly.
Hope this issue is easy to find and solve, this is a awesome plugin that speeds up our Ansible playbooks with 9x, absolutely mind blowing, can't live without it. Great work!
2.8.5
No
module_utils
loaded?No
No, but latest released version mitogen-0.2.9 is used in this issue report.
Reviewed diff between 0.2.9 and master found nothing related to python version detection.
Install a RHEL8 or possible a CENTOS8 server (haven't been able to test on CENTOS8 but should be the same)
Download mitogen 0.2.9 and extract that in a path of your choice. Configure this path in your ansible.cfg file in
strategy_plugin
. Setstrategy = mitogen_linear
Create a simple ansible playbook that connects to your self using hostname.
Result
Running against localhost, this results in an OK identification of python3 version
Included only snippet until python path is identified and connection is setup.
Redhat 8 Server doesn't have /usr/bin/python, the mitogen code handles remote connection different from localhost. Where localhost successfully identifies correct python path a remote connection to the same host fails.
Mention your host and target OS and versions
Same behavior seen using RHEL7 or RHEL8 as host towards a RHEL8 target. Logs only include from RHEL8 -> RHEL8. Tests conducted from RHEL7-RHEL8 with the same result.
Host1
Host2
Target
Mention your host and target Python versions
Host1
Host2
Target
If reporting a performance issue, mention the number of targets and a rough
description of your workload (lots of copies, lots of tiny file edits, etc.)
If reporting a crash or hang in Ansible, please rerun with -vvv and include
200 lines of output around the point of the error, along with a full copy of
any traceback or error text in the log. Beware "-vvv" may include secret
data! Edit as necessary before posting.
If reporting any kind of problem with Ansible, please include the Ansible
version along with output of "ansible-config dump --only-changed".
The text was updated successfully, but these errors were encountered: