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 1919428

Summary: [RFE] satellite maintain should verify the presence of "satellite" or "satellite-capsule" package installed on the server as a pre-upgrade check
Product: Red Hat Satellite Reporter: James Jeffers <jjeffers>
Component: Satellite MaintainAssignee: Amit Upadhye <aupadhye>
Status: CLOSED ERRATA QA Contact: Gaurav Talreja <gtalreja>
Severity: unspecified Docs Contact:
Priority: high    
Version: 6.8.0CC: ahumbe, apatel, aupadhye, egolov, ehelms, gtalreja, kgaikwad, mmccune, pcreech, sokeeffe, thadzhie
Target Milestone: 6.8.4Keywords: FutureFeature
Target Release: Unused   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: rubygem-foreman_maintain-0.6.15 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 1886031 Environment:
Last Closed: 2021-02-24 12:53:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Comment 2 Gaurav Talreja 2021-02-15 11:11:09 UTC
Verified.

Tested on Satellite 6.8.4 Snap 1.0
Version: rubygem-foreman_maintain-0.6.15-1.el7sat.noarch

Steps:
1. foreman-maintain upgrade list-versions
2. foreman-maintain upgrade check --target-version 6.8.z
3. foreman-maintain upgrade run --target-version 6.8.z

Observation:
satellite-maintain verifies the presence of "satellite" or "satellite-capsule" package installed on the server as a primary check, which runs exactly before the self-upgrade primary check.
And if these packages are missing then gives respective messages for upgrade subcommands as per the satellite-installer scenarios of Satellite and Capsule, like,

Error: Important rpm package satellite/satellite-capsule is not installed!
Install satellite/satellite-capsule rpm to ensure system consistency.

Comment 5 errata-xmlrpc 2021-02-24 12:53:52 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 (Satellite Maintenance 6.8.4 Async Bug Fix Update), 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/RHBA-2021:0653