Logging install fails while copying file configmap_new_file when deploy user !=root.
Issue
- Logging install playbook fails with below logs:
TASK [openshift_logging : copy] ***************************************************************************************************************************************
task path: /usr/share/ansible/openshift-ansible/roles/openshift_logging/tasks/patch_configmap_file.yaml:51
...
...
The full traceback is:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/ansible/plugins/action/copy.py", line 448, in run
source = self._find_needle('files', source)
File "/usr/lib/python2.7/site-packages/ansible/plugins/action/__init__.py", line 999, in _find_needle
return self._loader.path_dwim_relative_stack(path_stack, dirname, needle)
File "/usr/lib/python2.7/site-packages/ansible/parsing/dataloader.py", line 322, in path_dwim_relative_stack
raise AnsibleFileNotFound(file_name=source, paths=[to_text(p) for p in search])
AnsibleFileNotFound: Could not find or access '/tmp/openshift-logging-ansible-adcyWu/configmap_new_file'
fatal: [host.example.com]: FAILED! => {
"changed": false,
"msg": "Could not find or access '/tmp/openshift-logging-ansible-adcyWu/configmap_new_file'"
}
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.
