Bug 1643732

Summary: Logging installs failed at TASK [openshift_logging : Cleaning up temp dir]
Product: OpenShift Container Platform Reporter: ggore
Component: LoggingAssignee: ewolinet
Status: CLOSED ERRATA QA Contact: Anping Li <anli>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.9.0CC: aos-bugs, ewolinet, jcantril, rmeggins
Target Milestone: ---   
Target Release: 3.9.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: Inconsistent user usage when creating and removing temp dirs. Consequence: Removing can fail if user does not have proper access. Fix: Update so tasks use same become:false settings Result: Removing doesn't fail when using different user.
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-12-13 19:27:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description ggore 2018-10-28 02:40:38 UTC
Description of problem:
Logging installs failed at TASK [openshift_logging : Cleaning up temp dir] with below logs
~~~
TASK [openshift_logging : Cleaning up temp dir] ***************************************************************************
task path: /usr/share/ansible/openshift-ansible/roles/openshift_logging/tasks/main.yaml:42
Friday 26 October 2018  07:47:07 +0000 (0:00:00.129)       0:00:37.305 ******** 
Friday 26 October 2018  07:47:07 +0000 (0:00:00.129)       0:00:37.305 ******** 
Using module file /usr/lib/python2.7/site-packages/ansible/modules/files/file.py
...
...
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'"
}
~~~

Version-Release number of selected component (if applicable):
openshift-ansible-3.9.43-1.git.0.d0bc600.el7.noarch         Thu Oct  4 17:56:37 2018
openshift-ansible-docs-3.9.43-1.git.0.d0bc600.el7.noarch    Thu Oct  4 17:56:37 2018
openshift-ansible-playbooks-3.9.43-1.git.0.d0bc600.el7.noarch Thu Oct  4 17:56:37 2018
openshift-ansible-roles-3.9.43-1.git.0.d0bc600.el7.noarch   Thu Oct  4 17:56:37 2018

How reproducible:


Steps to Reproduce:
1. Install logging
2.
3.

Actual results:


Expected results:


Additional info:

Comment 8 Anping Li 2018-11-29 10:20:05 UTC
The playbook works well . openshift3/ose-ansible/images/v3.9.54-1

Comment 10 errata-xmlrpc 2018-12-13 19:27:16 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:3748