-
Bug
-
Resolution: Duplicate
-
Normal
-
None
-
6.15.0
Description of problem:
--------------------------------
Satellite Server upgrade leaves many katello-4* gems directories on the system. The old directories have all the same pattern that a public directory is left in it preventing the rpm package process to do the cleanup.
Version-Release number of selected component (if applicable):
--------------------------------------------------------------------------------------
Red Hat Satellite 6.x
Actual results:
-------------------
Katello upgrades leave several old katello directories on the system.
Expected results:
-----------------------
Improvement in the RPM upgrade process to clean these empty directories and remove the empty directory tree.
Additional info:
--------------------
Following are the leftovers in the directory -
~~~
root@host:/usr/share/gems/gems# ls -ld katello-4.*
drwxr-xr-x. 10 root root 124 May 23 15:12 katello-4.11.0.9
drwxr-xr-x. 3 root root 20 Sep 29 2022 katello-4.3.0.47
drwxr-xr-x. 3 root root 20 Nov 1 2022 katello-4.3.0.49
drwxr-xr-x. 3 root root 20 Nov 25 2022 katello-4.3.0.50
drwxr-xr-x. 3 root root 20 Jan 19 2023 katello-4.5.0.20
drwxr-xr-x. 3 root root 20 Feb 9 2023 katello-4.5.0.22
drwxr-xr-x. 3 root root 20 Apr 5 2023 katello-4.5.0.24
drwxr-xr-x. 3 root root 20 May 2 2023 katello-4.5.0.32
drwxr-xr-x. 3 root root 20 May 24 2023 katello-4.5.0.33
drwxr-xr-x. 3 root root 20 Jun 19 2023 katello-4.7.0.23
drwxr-xr-x. 3 root root 20 Jul 21 2023 katello-4.7.0.25
drwxr-xr-x. 3 root root 20 Aug 8 2023 katello-4.7.0.29
drwxr-xr-x. 3 root root 20 Sep 15 2023 katello-4.7.0.31
drwxr-xr-x. 3 root root 20 Oct 20 2023 katello-4.7.0.32
drwxr-xr-x. 3 root root 20 Nov 9 2023 katello-4.7.0.33
drwxr-xr-x. 3 root root 20 Jan 2 09:26 katello-4.9.0.16
drwxr-xr-x. 3 root root 20 Feb 14 11:39 katello-4.9.0.18
drwxr-xr-x. 3 root root 20 Apr 8 09:40 katello-4.9.0.21
drwxr-xr-x. 3 root root 20 May 10 09:15 katello-4.9.0.23
drwxr-xr-x. 3 root root 20 May 23 15:17 katello-4.9.0.25
root@host:/usr/share/gems/gems# ls -l katello-4.*/
katello-4.11.0.9/:
total 24
drwxr-xr-x. 14 root root 185 May 23 15:12 app
drwxr-xr-x. 2 root root 28 May 23 15:12 ca
drwxr-xr-x. 5 root root 118 May 23 15:12 config
drwxr-xr-x. 6 root root 69 May 23 15:12 db
drwxr-xr-x. 4 root root 44 May 23 15:12 engines
drwxr-xr-x. 5 root root 85 May 23 15:12 lib
rw-rr-. 1 root root 18092 Mar 25 16:14 LICENSE.txt
drwxr-xr-x. 50 root root 4096 May 23 15:12 locale
drwxr-xr-x. 4 root root 35 May 23 15:12 public
katello-4.3.0.47/:
total 0
drwxr-xr-x. 5 root root 55 Sep 13 2022 public
katello-4.3.0.49/:
total 0
drwxr-xr-x. 5 root root 55 Sep 29 2022 public
katello-4.3.0.50/:
total 0
drwxr-xr-x. 5 root root 55 Nov 1 2022 public
katello-4.5.0.20/:
total 0
drwxr-xr-x. 4 root root 35 Nov 25 2022 public
katello-4.5.0.22/:
total 0
drwxr-xr-x. 4 root root 35 Jan 19 2023 public
katello-4.5.0.24/:
total 0
drwxr-xr-x. 4 root root 35 Feb 9 2023 public
katello-4.5.0.32/:
total 0
drwxr-xr-x. 4 root root 35 Apr 5 2023 public
katello-4.5.0.33/:
total 0
drwxr-xr-x. 4 root root 35 May 2 2023 public
katello-4.7.0.23/:
total 0
drwxr-xr-x. 4 root root 35 May 24 2023 public
katello-4.7.0.25/:
total 0
drwxr-xr-x. 4 root root 35 Jun 19 2023 public
katello-4.7.0.29/:
total 0
drwxr-xr-x. 4 root root 35 Jul 21 2023 public
katello-4.7.0.31/:
total 0
drwxr-xr-x. 4 root root 35 Aug 8 2023 public
katello-4.7.0.32/:
total 0
drwxr-xr-x. 4 root root 35 Sep 15 2023 public
katello-4.7.0.33/:
total 0
drwxr-xr-x. 4 root root 35 Oct 20 2023 public
katello-4.9.0.16/:
total 0
drwxr-xr-x. 4 root root 35 Nov 9 2023 public
katello-4.9.0.18/:
total 0
drwxr-xr-x. 4 root root 35 Jan 2 09:24 public
katello-4.9.0.21/:
total 0
drwxr-xr-x. 4 root root 35 Feb 14 11:38 public
katello-4.9.0.23/:
total 0
drwxr-xr-x. 4 root root 35 Apr 8 09:39 public
katello-4.9.0.25/:
total 0
drwxr-xr-x. 4 root root 35 May 10 09:14 public
~~~
Example of 4.9.0.23 that shows that only empty directorues are left over that are also not owned by the package:
~~~
root@host:/usr/share/gems/gems# find katello-4.9.0.23 -ls
18889362 0 drwxr-xr-x 3 root root 20 May 10 09:15 katello-4.9.0.23
54567673 0 drwxr-xr-x 4 root root 35 Apr 8 09:39 katello-4.9.0.23/public
56639447 0 drwxr-xr-x 2 root root 6 May 10 09:15 katello-4.9.0.23/public/assets
142704192 0 drwxr-xr-x 2 root root 6 May 10 09:15 katello-4.9.0.23/public/webpack
root@host:/usr/share/gems/gems# find katello-4.9.0.23 | xargs -n1 rpm -qf
file /usr/share/gems/gems/katello-4.9.0.23 is not owned by any package
file /usr/share/gems/gems/katello-4.9.0.23/public is not owned by any package
file /usr/share/gems/gems/katello-4.9.0.23/public/assets is not owned by any package
file /usr/share/gems/gems/katello-4.9.0.23/public/webpack is not owned by any package
~~~
- duplicates
-
SAT-2533 Plugins leave behind empty directories when upgraded
- Backlog