This bug has been migrated to another issue tracking site. It has been closed here and may no longer be being monitored.

Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1782790 - Plugins leave behind empty directories when upgraded
Summary: Plugins leave behind empty directories when upgraded
Keywords:
Status: CLOSED MIGRATED
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Installation
Version: 6.6.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: Unspecified
Assignee: Suraj Patil
QA Contact: Satellite QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-12-12 10:48 UTC by Stefan Nemeth
Modified: 2024-06-05 21:34 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-06-05 21:34:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 18539 0 Normal Ready For Testing Katello RPM package leaves empty directories 2023-10-05 12:58:01 UTC
Foreman Issue Tracker 29739 0 Normal Ready For Testing Satellite6 Add cleanup step to foreman-maintain for old rubygems before executing upgrade 2020-12-09 12:25:42 UTC

Description Stefan Nemeth 2019-12-12 10:48:27 UTC
Description of problem:

In /opt/theforeman/tfm/root/usr/share/gems/gems

empty folders of older versions of gems are left after upgrades. 
In some cases it may happen, that older rubygem is not cleaned up and may cause issues. 

Add step for foreman-maintain, to "health check" this directory and ask user if he wants to cleanup old unused gems or not. (yes/no input)

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


How reproducible:

100%

Steps to Reproduce:
1. Install satellite 6.5
2. upgrade to 6.6 
3. ls /opt/theforeman/tfm/root/usr/share/gems/gems

Actual results:

Old directories are left and not deleted. 

Expected results:

Implement check, which will identify folders/rubygems which are not owned by any package.


Additional info:

To identify such gems

#cd /opt/theforeman/tfm/root/usr/share/gems/gems
#ls | xargs rpm -qf * | grep -i 'not owned by any package'

Comment 3 Suraj Patil 2020-05-12 11:48:25 UTC
Created redmine issue https://projects.theforeman.org/issues/29739 from this bug

Comment 6 Eric Helms 2021-11-17 15:15:55 UTC
Moving to packaging and updating the request to address this within packaging so this gets handled properly.

Comment 7 Evgeni Golov 2021-11-17 15:17:35 UTC
Example from a 6.8 machine (but the problem is not version specific):

# ls -R foreman_templates-7.0.7/public/
foreman_templates-7.0.7/public/:
apipie-cache  assets  webpack

foreman_templates-7.0.7/public/apipie-cache:
plugin

foreman_templates-7.0.7/public/apipie-cache/plugin:

foreman_templates-7.0.7/public/assets:

foreman_templates-7.0.7/public/webpack:

# ls -R katello-3.14.0.32/public/
katello-3.14.0.32/public/:
apipie-cache  assets  webpack

katello-3.14.0.32/public/apipie-cache:
plugin

katello-3.14.0.32/public/apipie-cache/plugin:

katello-3.14.0.32/public/assets:

katello-3.14.0.32/public/webpack:

Comment 8 Bryan Kearney 2022-05-12 08:01:23 UTC
Upstream bug assigned to supatil

Comment 9 Bryan Kearney 2022-05-12 08:01:26 UTC
Upstream bug assigned to supatil

Comment 10 Bryan Kearney 2022-05-19 16:01:15 UTC
Upstream bug assigned to supatil

Comment 11 Bryan Kearney 2022-05-19 16:01:18 UTC
Upstream bug assigned to supatil

Comment 12 Bryan Kearney 2023-10-05 16:00:45 UTC
Upstream bug assigned to supatil

Comment 14 Bryan Kearney 2024-03-28 16:01:46 UTC
Upstream bug assigned to supatil

Comment 15 Eric Helms 2024-06-05 21:34:37 UTC
This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there.

Due to differences in account names between systems, some fields were not replicated.  Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information.

To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "SAT-" followed by an integer.  You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like:

"Bugzilla Bug" = 1234567

In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information.


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