Bug 1643732 - Logging installs failed at TASK [openshift_logging : Cleaning up temp dir]
Summary: Logging installs failed at TASK [openshift_logging : Cleaning up temp dir]
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Logging
Version: 3.9.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 3.9.z
Assignee: ewolinet
QA Contact: Anping Li
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-10-28 02:40 UTC by ggore
Modified: 2021-12-10 18:05 UTC (History)
4 users (show)

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.
Clone Of:
Environment:
Last Closed: 2018-12-13 19:27:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:3748 0 None None None 2018-12-13 19:27:27 UTC

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


Note You need to log in before you can comment on or make changes to this bug.