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 1962961 - Upgrading satellite from 6.8 to 6.9 failed, as the installer check/query the rpm packages which present in /var/www/html/pub/
Summary: Upgrading satellite from 6.8 to 6.9 failed, as the installer check/query the ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Installation
Version: 6.9.0
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: 6.10.0
Assignee: Eric Helms
QA Contact: Devendra Singh
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-20 21:17 UTC by Ganesh Payelkar
Modified: 2024-12-20 20:06 UTC (History)
7 users (show)

Fixed In Version: foreman-installer-2.5.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-16 14:11:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 32700 0 Normal New Steps to Reproduce:* 2021-06-03 00:31:42 UTC
Red Hat Knowledge Base (Solution) 6078481 0 None None None 2021-06-28 18:32:56 UTC
Red Hat Product Errata RHSA-2021:4702 0 None None None 2021-11-16 14:11:28 UTC

Description Ganesh Payelkar 2021-05-20 21:17:01 UTC
Description of problem:

Upgrading satellite from 6.8 to 6.9 failed, as the installer check/query the rpm packages which present in /var/www/html/pub/

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

How reproducible:
New upgrade

Steps to Reproduce:
1. Keep any rpm package in /var/www/html/pub/
2. Run upgrade: satellite-maintain upgrade run --target-version 6.9
3.

Actual results:

2021-05-21 01:41:33 [ERROR ] [configure] /Stage[main]/Foreman_proxy_content::Bootstrap_rpm/Bootstrap_rpm[katello-ca-consumer-satellite.example.com]: Could not evaluate: No such file or directory @ rb_sysopen - /var/www/html/pub/sos-3.9-5.el7_9.4.src.rpm


Expected results:
The installer should not query or check rpms apart from katello-ca-consumer*, if there are any rpm pkg available in /pub


Additional info:

To test I copied the below packages in /pub, change one of the pkg ownership for testing purposes. 

# ls -l /var/www/html/pub/

-rw-r--r--. 1 apache apache 460200 May 21 00:24 firewalld-0.6.3-13.el7_9.noarch.rpm
-rw-r--r--. 1 root   root   554188 May 21 00:24 sos-3.9-5.el7_9.4.noarch.rpm

Comment 2 Eric Helms 2021-06-03 00:31:41 UTC
Created redmine issue https://projects.theforeman.org/issues/32700 from this bug

Comment 3 Bryan Kearney 2021-06-03 12:06:01 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/32700 has been resolved.

Comment 6 Devendra Singh 2021-07-08 20:42:59 UTC
Verified on 6.10 Snap8

Verification points:

1- Prepared the 6.9 setups.
2- Ran the pulp migration and it has completed successfully.
3- Copied the package in /var/www/html/pub/

#ls -l /var/www/html/pub/crudini-0.9.3-1.el8.noarch.rpm 
-rw-r--r--. 1 root   root    29648 Jul  8 15:14 /var/www/html/pub/crudini-0.9.3-1.el8.noarch.rpm
#ls -l /var/www/html/pub/rubygem-foreman_maintain-0.8.3-1.el7sat.noarch.rpm 
-rw-r--r--. 1 apache apache 168740 Jul  8 15:14 /var/www/html/pub/rubygem-foreman_maintain-0.8.3-1.el7sat.noarch.rpm

4- Ran the upgrade from 6.9 to 6.10 and it completed successfully.

5- Verified in-fixed version.

# rpm -q foreman-installer-2.5.1
foreman-installer-2.5.1-1.el7sat.noarch

Comment 10 errata-xmlrpc 2021-11-16 14:11:19 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.10 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-2021:4702


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