Bug 2081280 - Bootdisks are left in privatetmp of httpd
Summary: Bootdisks are left in privatetmp of httpd
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Bootdisk Plugin
Version: 6.11.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.11.0
Assignee: Lukas Zapletal
QA Contact: Roman Plevka
URL:
Whiteboard:
: 2059566 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-05-03 09:40 UTC by Lukas Zapletal
Modified: 2022-07-05 14:35 UTC (History)
2 users (show)

Fixed In Version: tfm-rubygem-foreman_bootdisk-19.0.4
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-07-05 14:35:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2022:5498 0 None None None 2022-07-05 14:35:58 UTC

Description Lukas Zapletal 2022-05-03 09:40:54 UTC
This problem was reported as https://bugzilla.redhat.com/show_bug.cgi?id=1936946 but it was not properly fixed.

When generating any bootdisk for host it will stay forever in PrivateTmp.

for example:

# ls -al /tmp/systemd-private-97a048f3f7074e34b204f5f3ccd867f8-httpd.service-mk41vo/tmp/
total 4
drwxrwxrwt. 10 root    root    4096  9. bře 15.03 .
drwx------.  3 root    root      17  3. bře 11.56 ..
drwx------.  3 foreman foreman   19  5. bře 14.51 bootdisk-iso-20210305-31878-1820308
drwx------.  3 foreman foreman   37  9. bře 13.53 bootdisk-iso-20210309-17692-1gzp36
drwx------.  3 foreman foreman   37  9. bře 13.53 bootdisk-iso-20210309-17692-svhj11
drwx------.  3 foreman foreman   37  9. bře 13.54 bootdisk-iso-20210309-17692-xgh2jm
drwx------.  3 foreman foreman   37  9. bře 14.28 bootdisk-iso-20210309-21133-ka0iql
drwx------.  3 foreman foreman   37  9. bře 13.52 bootdisk-iso-20210309-30111-bo7bsp
drwxr-xr-x.  3 foreman foreman   18  3. bře 11.56 bundler
drwx------.  2 foreman foreman   71  5. bře 14.51 d20210305-31878-1n0nvh9

The final fix is in 19.0.4 of the package.

Comment 1 Lukas Zapletal 2022-05-03 09:41:50 UTC
*** Bug 2059566 has been marked as a duplicate of this bug. ***

Comment 2 Roman Plevka 2022-05-16 16:20:11 UTC
verified on sat6.11.0-0.11.beta

The old bootdisk (older than 30mins) are removed on generating a new one, however i found mine stored in /run/foreman

```
[root@dhcp-3-199 foreman]# ll
total 428
drwx------.  3 foreman foreman     80 May 16 11:45 bootdisk-iso-20220516-38394-1w772sf
drwx------.  3 foreman foreman     80 May 16 11:46 bootdisk-iso-20220516-38394-dxmmyi
drwx------.  3 foreman foreman     80 May 16 11:47 bootdisk-iso-20220516-38400-16slf14
drwxr-xr-x. 19 foreman foreman    380 May 16 12:17 cache
-rw-------.  1 foreman foreman 426814 May 16 09:47 import_d267748606766faeaf2b.zip
-rw-r--r--.  1 foreman foreman      0 May 16 12:00 katello_event_daemon.lock
drwxr-xr-x.  2 foreman foreman     80 May 16 03:43 pids
-rw-r--r--.  1 foreman foreman    167 May 16 03:37 puma.state
-rw-------.  1 foreman foreman    128 May 14 14:02 secret_token
drwxr-xr-x.  2 foreman foreman     60 May 16 03:37 sockets
[root@dhcp-3-199 foreman]# ll
total 428
drwx------.  3 foreman foreman     80 May 16 12:17 bootdisk-iso-20220516-38394-1a5lnl6
drwx------.  3 foreman foreman     80 May 16 11:47 bootdisk-iso-20220516-38400-16slf14
drwxr-xr-x. 19 foreman foreman    380 May 16 12:17 cache
-rw-------.  1 foreman foreman 426814 May 16 09:47 import_d267748606766faeaf2b.zip
-rw-r--r--.  1 foreman foreman      0 May 16 12:00 katello_event_daemon.lock
drwxr-xr-x.  2 foreman foreman     80 May 16 03:43 pids
-rw-r--r--.  1 foreman foreman    167 May 16 03:37 puma.state
-rw-------.  1 foreman foreman    128 May 14 14:02 secret_token
drwxr-xr-x.  2 foreman foreman     60 May 16 03:37 sockets
[root@dhcp-3-199 foreman]# 

```

Comment 5 errata-xmlrpc 2022-07-05 14:35:32 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 (Moderate: Satellite 6.11 Release), 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/RHSA-2022:5498


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