-
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
ansible: environment difference while running debops playbooks #122
Comments
had that debops.sshd issue as well here. Just fyi. |
If it works with Mitogen (I wonder how) but doesn't work without it, it seems like the Perhaps setting the environment as |
I just pushed issue_122.yml which I was using earlier to try and reproduce the difference. Running vimdiff on the output with/without Mitogen shows no environment difference. Probably I'm still doing something wrong to reproduce the original scenario, will look at it later in the week. No matter what the current behaviour is, Mitogen needs to emulate it. It needs to let both the SSH invocation and the sudo invocation do whatever horridness is done to the environment and reproduce exactly that, otherwise more playbooks will be broken behind closed doors |
@dw Ah, so you want to make sure that Mitogen fails the same way that Ansible fails with the same environment, good idea. |
Discoveries so far:
As usual the correct behaviour isn't exactly clear. I dislike having bits of the environment leak into the tooling (it makes it impossible to test), but we have to emulate Ansible. Relevant bugs:
Relevant spaghetti:
Sphaghetti round 2:
Can't reproduce this locally, going to have to setup two Gcloud boxes again |
@stefangweichinger do you still have access to your setup that triggered the locale error? If so, can you please --start-at="Check if OpenSSH is installed (or half-installed)" and attach "-vvv" output both for Ansible and for Mitogen. If not don't worry, I'll pick this up next week |
@dw yes, I have. pls more details: with or without your new debug variable exported, mitogen.log from controller? |
Just -vvv is fine, MITOGEN_ROUTER_DEBUG is only useful for lower level IO issues |
ansible-playbook ~/.local/share/debops/debops/ansible/playbooks/common.yml -vvv --start-at="Check if OpenSSH is installed (or half-installed)" -l tx100 > debops_common.log can't find a mitogen.log in /tmp now, though note: afk soon ... |
Signed-off-by: Dhaval <dhaval.indrodiya@spearline.com>
Found while working on #110. My bashrc environment sets en_GB.UTF-8. When running with Mitogen, the run completes, but with non-Mitogen, then run fails with:
Because the Ansible master's environment is getting copied across somehow, and the locale data was missing on the target box. Figure out what's happening
The text was updated successfully, but these errors were encountered: