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 2144057

Summary: Satellite 6.11 to 6.12 Upgrade fails silently if the RHEL8 Satellite module is not enabled.
Product: Red Hat Satellite Reporter: mithun kalyat <mkalyat>
Component: Satellite MaintainAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Gaurav Talreja <gtalreja>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.12.0CC: ehelms
Target Milestone: 6.13.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-12-12 21:24:36 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 mithun kalyat 2022-11-18 19:49:35 UTC
Description of problem:

Satellite module is disabled.

# dnf module list | grep satellite
satellite-5-client   1.0 [d]         common [d], gui                          Red Hat Satellite 5 client packages                                                                                                                                                                                                       
satellite            el8 [x]                                                  Satellite module                                                                                                                                                                 

The Upgrade command gets completed without any errors and there is an 'Upgrade finished' message in the end.

[root@satellite ~]# satellite-maintain upgrade run --target-version 6.12
Checking for new version of satellite-maintain...
Nothing to update, can't find new version of satellite-maintain.
Running preparation steps required to run the next scenarios
================================================================================
Check whether system has any non Red Hat repositories (e.g.: EPEL) enabled:
| Checking repositories enabled on the system                         [OK]
--------------------------------------------------------------------------------


Running Checks before upgrading to Satellite 6.12
================================================================================
Check number of fact names in database:                               [OK]
--------------------------------------------------------------------------------
Check whether all services are running:                               [OK]
--------------------------------------------------------------------------------
Check whether all services are running using the ping call:           [OK]
--------------------------------------------------------------------------------
Check for paused tasks:                                               [OK]
--------------------------------------------------------------------------------
Check to verify no empty CA cert requests exist:                      [OK]
--------------------------------------------------------------------------------
Check whether system is self-registered or not:                       [OK]
--------------------------------------------------------------------------------
Check to make sure root(/) partition has enough space:                [OK]
--------------------------------------------------------------------------------
Check to make sure /var/lib/candlepin has enough space:               [OK]
--------------------------------------------------------------------------------
Check to validate candlepin database:
--------------------------------------------------------------------------------
Check for running tasks:                                              [OK]
--------------------------------------------------------------------------------
Check for old tasks in paused/stopped state:                          [OK]
--------------------------------------------------------------------------------
Check for pending tasks which are safe to delete:                     [OK]
--------------------------------------------------------------------------------
Check for tasks in planning state:                                    [OK]
--------------------------------------------------------------------------------
Check to verify if any hotfix installed on system:
- Checking for presence of hotfix(es). It may take some time to verify.Reading Foreman protector configuration
*** Excluded total: 0

Nothing excluded by foreman-protector!

- Checking for presence of hotfix(es). It may take some time to verify.
                                                                      [OK]
--------------------------------------------------------------------------------
Check whether system has any non Red Hat repositories (e.g.: EPEL) enabled:
\ Checking repositories enabled on the system                         [OK]
--------------------------------------------------------------------------------
Check if TMOUT environment variable is set:                           [OK]
--------------------------------------------------------------------------------
Check if any upstream repositories are enabled on system:
| Checking for presence of upstream repositories                      [OK]
--------------------------------------------------------------------------------
Check for roles that have filters with multiple resources attached:   [OK]
--------------------------------------------------------------------------------
Check for duplicate permissions from database:                        [OK]
--------------------------------------------------------------------------------
Check if system has any non Red Hat RPMs installed (e.g.: Fedora):    [WARNING]
Found 15 unexpected non Red Hat Package(s) installed!
Package : Vendor
--------------------------------------------------------------------------------
Check whether reports have correct associations:                      [OK]
--------------------------------------------------------------------------------
Check to validate yum configuration before upgrade:                   [OK]
--------------------------------------------------------------------------------
Check if checkpoint_segments configuration exists on the system:      [OK]
--------------------------------------------------------------------------------
Validate availability of repositories:
\ Validating availability of repositories for 6.12                    [OK]
--------------------------------------------------------------------------------
Scenario [Checks before upgrading to Satellite 6.12] failed.

The following steps ended up in warning state:

  [non-rh-packages]

The steps in warning state itself might not mean there is an error,
but it should be reviewed to ensure the behavior is expected



Continue with [Procedures before migrating to Satellite 6.12], [y(yes), n(no), q(quit)]
y
Running Procedures before migrating to Satellite 6.12
================================================================================
disable active sync plans:
/ Total 2 sync plans are now disabled.                                [OK]
--------------------------------------------------------------------------------
Add maintenance_mode tables/chain to nftables/iptables:               [OK]
--------------------------------------------------------------------------------
Stop applicable services:
Stopping the following service(s):
redis, postgresql, pulpcore-api, pulpcore-content, qdrouterd, qpidd, pulpcore-api.socket, pulpcore-content.socket, pulpcore-worker, pulpcore-worker, pulpcore-worker, pulpcore-worker, tomcat, dynflow-sidekiq@orchestrator, foreman, httpd, puppetserver, foreman.socket, dynflow-sidekiq@worker-1, dynflow-sidekiq@worker-hosts-queue-1, foreman-proxy
\ All services stopped                                                [OK]
--------------------------------------------------------------------------------


Running Migration scripts to Satellite 6.12
================================================================================
Setup repositories:
| Configuring repositories for 6.12                                   [OK]
--------------------------------------------------------------------------------
Unlock packages:                                                      [OK]
--------------------------------------------------------------------------------
Update package(s) :                                                   [OK]
--------------------------------------------------------------------------------
Procedures::Installer::Upgrade: 2022-11-17 08:00:06 [NOTICE] [root] Loading installer configuration. This will take some time.
2022-11-17 08:00:10 [NOTICE] [root] Running installer with log based terminal output at level NOTICE.
2022-11-17 08:00:10 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
2022-11-17 08:00:13 [WARN  ] [pre] Skipping system checks.
2022-11-17 08:00:13 [WARN  ] [pre] Skipping system checks.
2022-11-17 08:00:22 [NOTICE] [configure] Starting system configuration.
2022-11-17 08:00:37 [NOTICE] [configure] 250 configuration steps out of 2116 steps complete.
2022-11-17 08:00:42 [NOTICE] [configure] 500 configuration steps out of 2120 steps complete.
2022-11-17 08:00:43 [NOTICE] [configure] 750 configuration steps out of 2122 steps complete.
2022-11-17 08:00:46 [NOTICE] [configure] 1000 configuration steps out of 2127 steps complete.
2022-11-17 08:00:47 [NOTICE] [configure] 1250 configuration steps out of 2131 steps complete.
2022-11-17 08:01:36 [NOTICE] [configure] 1500 configuration steps out of 2132 steps complete.
2022-11-17 08:02:25 [NOTICE] [configure] 1750 configuration steps out of 2132 steps complete.
022-11-17 08:03:34 [NOTICE] [configure] 2000 configuration steps out of 2132 steps complete.
2022-11-17 08:04:41 [NOTICE] [configure] System configuration has finished.
  Success!
  * Satellite is running at https://satellite.example.com

  * To install an additional Capsule on separate machine continue by running:

      capsule-certs-generate --foreman-proxy-fqdn "$CAPSULE" --certs-tar "/root/$CAPSULE-certs.tar"
  * Capsule is running at https://satellite.example.com:9090

  The full log is at /var/log/foreman-installer/satellite.log
Package versions are being locked.
                                      [OK]
--------------------------------------------------------------------------------
Execute upgrade:run rake task: 
                                       [OK]
--------------------------------------------------------------------------------


Running Procedures after migrating to Satellite 6.12
================================================================================
Refresh detected features:                                            [OK]
--------------------------------------------------------------------------------
Start applicable services:

Starting the following service(s):
redis, postgresql, pulpcore-api, pulpcore-content, qdrouterd, qpidd, pulpcore-worker, pulpcore-worker, pulpcore-worker, pulpcore-worker, tomcat, dynflow-sidekiq@orchestrator, foreman, httpd, puppetserver, dynflow-sidekiq@worker-1, dynflow-sidekiq@worker-hosts-queue-1, foreman-proxy
| All services started                                                [OK]
--------------------------------------------------------------------------------
re-enable sync plans:
| Total 2 sync plans are now enabled.                                 [OK]
--------------------------------------------------------------------------------
Remove maintenance mode table/chain from nftables/iptables:           [OK]
--------------------------------------------------------------------------------


Running Checks after upgrading to Satellite 6.12
================================================================================
Check number of fact names in database:                               [OK]
--------------------------------------------------------------------------------
Check whether all services are running:                               [OK]
--------------------------------------------------------------------------------
Check whether all services are running using the ping call:           [OK]
--------------------------------------------------------------------------------
Check for paused tasks:                                               [OK]
--------------------------------------------------------------------------------
Check to verify no empty CA cert requests exist:                      [OK]
--------------------------------------------------------------------------------
Check whether system is self-registered or not:                       [OK]
--------------------------------------------------------------------------------
Check if only installed assets are present on the system:
- Checking for presence of non-original assets...                     [OK]
--------------------------------------------------------------------------------


--------------------------------------------------------------------------------
Upgrade finished.
[root@satellite ~]# rpm -q satellite
satellite-6.11.4-2.el8sat.noarch


Expected results:

It would be nice if the upgrade command returns an error or includes a precheck for whether the Satellite module is enabled or not.

Comment 1 Eric Helms 2022-12-12 21:24:36 UTC

*** This bug has been marked as a duplicate of bug 2143451 ***