-
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
Play fails if temp directory is deleted mid-play #1061
Comments
I'm attempting to reproduce this. Step 4 of https://github.com/markafarrell/mitogen-repro-issue-1061 doesn't leave a running container. Instead it immediately exits.
|
|
Can you try adding |
That did it, and I see the
|
So I think this will happen regardless of OS, systemd etc. The issue is that https://github.com/mitogen-hq/mitogen/blob/master/ansible_mitogen/runner.py#L361 we are essentially doing
If The existence of this (
It should be very easy to reproduce for both localhost and any other image by using a playbook similar to what i have in my reproduction repo. If you can point me to where the test should live i can quickly create one. |
There are unit tests that mention
Integration tests should probably be added amongst https://github.com/mitogen-hq/mitogen/blob/bb9c51b3e9cc39fceddd55578bb89680fa4e1acc/tests/ansible/integration/runner/all.yml. For running tests I'm relying on the Azure CI, and (force) pushing changes. We can squash any interim/WIP commits afterwards. |
A factor I previously missed: the repro playbook in https://github.com/markafarrell/mitogen-repro-issue-1061/blob/262591aecadb3ae255c904de17617519f8389673/playbook.yml is explicitly deleting |
If the ansible temp directory is removed mid-play mitogen does not recreate it and the play fails.
Using the normal ansible strategy the temp directory is recreated and the play succeeds.
Ansible version: 2.14.15
Host OS: Ubuntu (WSL2)
Target OS: Debian12 (docker)
Host Python: Python 3.10.12
Target Python: Python 3.11.2
See https://github.com/markafarrell/mitogen-repro-issue-1061 for reproduction instructions
The text was updated successfully, but these errors were encountered: