Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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

Summary: Upgrading satellite from 6.8 to 6.9 failed, as the installer check/query the rpm packages which present in /var/www/html/pub/
Product: Red Hat Satellite Reporter: Ganesh Payelkar <gpayelka>
Component: InstallationAssignee: Eric Helms <ehelms>
Status: CLOSED ERRATA QA Contact: Devendra Singh <desingh>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.9.0CC: ajambhul, egolov, ehelms, nlager, osousa, pdwyer, sadas
Target Milestone: 6.10.0Keywords: Triaged, Upgrades
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: foreman-installer-2.5.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-16 14:11:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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