-
Notifications
You must be signed in to change notification settings - Fork 65
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
run-tree-smoketest: create a tmpdir to use with Ansible #339
Conversation
I didn't test this locally... |
@jlebon @cgwalters Anyone with merge privs want to have a look? |
Hmm, odd why this would fail now though. Wonder if it's a recent ansible update. The error message says "did not have permissions on the remote directory", so this sounds like it's about access to a directory on the remote, rather than locally, no? |
I have a feeling it's related instead to:
If we're not becoming root on the remote system correctly then that looks like an error message we'd get. Or to say it conversely, the problem seems to relate to permissions remotely, not locally. But that said I'm happy to just try this out. |
@cgwalters that deprecation warning is coming from running ---
- hosts: all
sudo: no
... In the sanity test we are using - name: Improved Sanity Test - Pre-Upgrade
hosts: "{{ subjects | default('all') }}"
become: true
... |
@jlebon you are right. I don't know how I confused that. There doesn't seem to be a env var for configuring the remote tmp directory, though. I guess I'll have to change this to write out an |
The 'smoketest' job was failing while running the sanity test because it was unable to copy a file from the host under test to the host running the playbook. The error message suggested to use a temp directory under `/tmp` as a mitigation. This creates an `ansible.cfg` in the current directory with the `remote_tmp` configured.
d4005f4
to
0fe9a55
Compare
Force pushed a new solution ⬆️ |
Looks sane to me! Worth a try. |
Perhaps not coincidentally I started hitting this recently running the ostree installed tests which also use Ansible. Using
However, when I log into the machine after Ansible has failed, |
Or wait...maybe it is about the local directory, since I'm running as non-root in my pet container. |
(And yeah, updating my f28 dev container fixed it) |
Strangely, the |
The 'smoketest' job was failing while running the sanity test because
it was unable to copy a file from the host under test to the host
running the playbook. The error message suggested to use a temp
directory under
/tmp
as a mitigation.This creates a random temp directory and sets an env var to tell
Ansible to use said temp directory.