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 1245771

Summary: [RFE] Method by which to check for schema version discrepancies for debugging purposes.
Product: Red Hat Satellite Reporter: Corey Welton <cwelton>
Component: UpgradesAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: high    
Version: 6.1.0CC: bkearney, cdonnell, ktordeur, sthirugn
Target Milestone: UnspecifiedKeywords: FutureFeature, Triaged, UserExperience
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-22 19:49:31 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:
Bug Depends On:    
Bug Blocks: 1115190    

Description Corey Welton 2015-07-22 17:35:05 UTC
Description of problem:

We should have some method, executed ($how?) that

* Checks the appropriate schema version per Satellite packages installed
* Checks to see what schema version is currently running on an existing satellite.

If a mismatch is encountered, a warning is thrown that reads something like

WARNING: Schema Mismatch! Satellite package indicate schema xxx.yyz should be used, you are using schema xxx.yyy.  Please follow appropriate upgrade steps from documentation"

$how - I am not sure.  Is it something you'd want to run periodically?  Almost certainly something that might be useful in foreman-debug, and perhaps `katello-service status` as well...

Comment 1 Corey Welton 2015-07-22 17:37:11 UTC
Rationale:

Doing something like

`katello-service stop && yum -y update && katello-service start` w/o running `katello-installer --upgrade` may put the system in a state of confusion.  We should be able to determine  (and perhaps check from time to time) whether everything is just so.

Comment 2 Bryan Kearney 2015-07-23 15:23:32 UTC
Satellite 5 has a batch job which loooks for out of date schemas. Perhaps we look at this type of model.

Comment 5 Bryan Kearney 2016-07-08 20:22:54 UTC
Per 6.3 planning, moving out non acked bugs to the backlog

Comment 9 sthirugn@redhat.com 2018-03-22 14:04:54 UTC
this issue also has related bugs like https://bugzilla.redhat.com/show_bug.cgi?id=1459358

Comment 10 Bryan Kearney 2018-03-22 19:49:31 UTC
Per meeting with rjerrido We are going to focus on fixing https://bugzilla.redhat.com/show_bug.cgi?id=1459358 which is the root cause, not on this.