Project

General

Profile

Actions

Bug #30518

closed

Ansible temporary files are not removed from the /tmp directory.

Added by Suraj Patil over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1837717

Description of problem:

Ansible temporary files are not removed from the /tmp directory when running ansible job roles via remote execution on Satellite 6.7.

Version-Release number of selected component (if applicable):

Satellite 6.6+

How reproducible:

Run the Ansible Job template on the Satellite 6.6 against the Satellite Clients.

Steps to Reproduce:
1. Hosts > Job Template > Ansible Roles - Ansible Default > Run
2. Select some hosts via Search Query
3. Submit

Actual results:

The temporary ansible-files are not removed from the TMP directory, in some cases where the remote execution is used many times the file system that the /tmp is mounted is growing up.

Expected results:

This file would be removed after the task finishes.

Additional info:

  1. From Satellite 6.6
    ~~
    [root@sat66b ~]# ls lht /tmp |grep foreman-proxy | head
    drwxr-xr-x. 2 foreman-proxy foreman-proxy 24K May 19 13:54 foreman-inventories
    -rw-r--r-
    . 1 foreman-proxy foreman-proxy 150 May 19 13:54 foreman-playbook-a395c352-43ce-4c99-83c9-2aaffefffddf.yml
    rw-r--r-. 1 foreman-proxy foreman-proxy 150 May 19 13:54 foreman-playbook-bae7e93b-ab43-4ca5-850b-5e38abce697c.yml
    rw-r--r-. 1 foreman-proxy foreman-proxy 150 May 19 13:54 foreman-playbook-4c24f7da-3efd-4481-8917-08d0e7793964.yml
    rw-r--r-. 1 foreman-proxy foreman-proxy 150 May 19 13:54 foreman-playbook-ccde61f5-3395-4392-871c-40889a6a03be.yml
    rw-r--r-. 1 foreman-proxy foreman-proxy 150 May 19 13:54 foreman-playbook-65a7c49d-7ab3-4877-be5d-21240a31df25.yml
    rw-r--r-. 1 foreman-proxy foreman-proxy 150 May 19 13:54 foreman-playbook-41f59b9b-2fb2-4c22-8daa-86edccbb3bbf.yml
    rw-r--r-. 1 foreman-proxy foreman-proxy 150 May 19 13:54 foreman-playbook-76f64005-a025-4f1b-938a-f1cf65b3dcf5.yml
    rw-r--r-. 1 foreman-proxy foreman-proxy 150 May 19 13:54 foreman-playbook-3585cf90-d073-428a-a54a-cba244cf9918.yml
    rw-r--r-. 1 foreman-proxy foreman-proxy 150 May 19 13:54 foreman-playbook-eba18bf5-b674-4f4c-b90d-b36f38cab0cb.yml
    [root@sat66b ~]# ls -lht /tmp |grep foreman-proxy | wc -l
    ~~
  1. From Satellite 6.7
    ~~
    [root@sat67a ~]# ls lht /tmp | grep foreman-proxy
    drwx-----
    . 5 foreman-proxy foreman-proxy 67 May 19 13:45 d20200519-20798-bo32v
    drwx------. 5 foreman-proxy foreman-proxy 67 May 19 13:45 d20200519-20798-8m3wmo
    drwx------. 5 foreman-proxy foreman-proxy 67 May 19 13:44 d20200519-20798-1g197z0
    ~~
Actions #1

Updated by Suraj Patil over 3 years ago

  • Assignee set to Suraj Patil
Actions #2

Updated by The Foreman Bot over 3 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_ansible/pull/354 added
Actions #3

Updated by Suraj Patil over 3 years ago

  • Status changed from Ready For Testing to Closed
Actions #4

Updated by Adam Ruzicka over 3 years ago

  • Fixed in Releases foreman_ansible-5.1.2 added
Actions #5

Updated by Ondřej Ezr over 3 years ago

  • Fixed in Releases foreman_ansible-6.0.0 added
  • Fixed in Releases deleted (foreman_ansible-5.1.2)
Actions

Also available in: Atom PDF