Logging install fails at TASK [openshift_logging : Cleaning up temp dir]
Issue
- Logging install fails at TASK [openshift_logging : Cleaning up temp dir] with below ansible logs
TASK [openshift_logging : Cleaning up temp dir]
******************************************************************************
...
...
The full traceback is:
File "/tmp/ansible_PIcLxk/ansible_module_file.py", line 278, in main
shutil.rmtree(b_path, ignore_errors=False)
File "/usr/lib64/python2.7/shutil.py", line 239, in rmtree
onerror(os.listdir, path, sys.exc_info())
File "/usr/lib64/python2.7/shutil.py", line 237, in rmtree
names = os.listdir(path)
fatal: [hostname]: FAILED! => {
"changed": false,
"failed": true,
"invocation": {
"module_args": {
"attributes": null,
"backup": null,
"content": null,
"delimiter": null,
"diff_peek": null,
"directory_mode": null,
"follow": false,
"force": false,
"group": null,
"mode": null,
"original_basename": null,
"owner": null,
"path": "/tmp/openshift-logging-ansible-5OkQZz",
"recurse": false,
"regexp": null,
"remote_src": null,
"selevel": null,
"serole": null,
"setype": null,
"seuser": null,
"src": null,
"state": "absent",
"unsafe_writes": null,
"validate": null
}
},
"msg": "rmtree failed: [Errno 13] Permission denied: '/tmp/openshift-logging-ansible-5OkQZz'"
}
Environment
- OpenShift Container Platform
- 3.9
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
