ansible-test uses hardcoded /tmp
with tempfile.mkdtemp() instead of relying on env vars
#82214
Open
1 task done
Labels
Summary
when executing ansible-test on a Linux system having mounted /tmp with the options
noexec,nosuid
, the following error appears:from my point of view, the code in question should rather use
os.environment.get('TMPDIR', '/tmp')
instead of just/tmp
withtempfile.mkdtemp()
:https://github.com/ansible/ansible/blob/devel/test/lib/ansible_test/_internal/util_common.py#L296
Issue Type
Bug Report
Component Name
ansible-test
Ansible Version
Configuration
OS / Environment
RHEL 7, any Linux distribution
Steps to Reproduce
execute
ansible-test sanity
on any Linux system having/tmp
mounted with the optionsnoexec,nosuid,nodev
:Expected Results
respect the environment variable
TMPDIR
to point to a file-system not having the restrictions ofnoexec,nosuid,nodev
when using ansible-testActual Results
Code of Conduct
The text was updated successfully, but these errors were encountered: