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 1514383 - After restoring satellite backup using satellite-clone utility, upon login to webui/accessing "All Hosts" and "Content Hosts" page fails with error "ActiveRecord::SubclassNotFound:" for HostStatus::ExecutionStatus
Summary: After restoring satellite backup using satellite-clone utility, upon login to...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Satellite Clone
Version: 6.3.0
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: Unspecified
Assignee: John Mitsch
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-11-17 09:35 UTC by Ashish Humbe
Modified: 2019-09-26 14:04 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-19 17:23:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 3350271 0 None None None 2018-02-12 20:55:15 UTC
Red Hat Product Errata RHBA-2018:0330 0 normal SHIPPED_LIVE Satellite Maintenance bug fix update 2018-02-19 22:22:51 UTC

Description Ashish Humbe 2017-11-17 09:35:25 UTC
Description of problem:

After restoring satellite backup using satellite-clone utility, upon login to webui/accessing "All Hosts" and "Content Hosts" page fails with error : 

2017-11-17 14:53:59 1663b3d9 [app] [W] Action failed
 | ActiveRecord::SubclassNotFound: The single-table inheritance mechanism failed to locate the subclass: 'HostStatus::ExecutionStatus'. This error is raised because the column 'type' is reserved for storing the class in case of inheritance. Please rename this column if you didn't intend it to be used for storing the inheritance class or overwrite HostStatus::Status.inheritance_column to use another column for that information.
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/inheritance.rb:161:in `rescue in find_sti_class'
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/inheritance.rb:155:in `find_sti_class'
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/inheritance.rb:144:in `discriminate_class_for_record'


- Is this a possible bug with clone utility? 
- Tried to execute satellite-installer with --upgrade and it was successful but issue still persists

Version-Release number of selected component (if applicable):
Satellite 6.3 Snap 24


Steps to Reproduce:
1. Took backup of working satellite v 6.2 using katello-backup
2. Installed fresh RHEL 7 system and executed satellite-clone task "ansible-playbook satellite-clone-playbook.yml" 
3. Login worked successfully but unable to access "All Hosts" and "Content Hosts" page.

While accessing it fails with above traceback.

Comment 13 John Mitsch 2017-11-30 18:22:52 UTC
After some discussion, REX can be enabled in a clone w/o issue. This change was added here: https://github.com/RedHatSatellite/satellite-clone/pull/273

Comment 14 John Mitsch 2017-12-18 14:43:14 UTC
This actually didn't make it into 1.2.0, but is merged upstream 

https://github.com/RedHatSatellite/satellite-clone/pull/273

Comment 17 sthirugn@redhat.com 2018-02-04 21:51:25 UTC
Verified in satellite-clone-1.2.1-1.el7sat.noarch

All Hosts, Content Hosts pages are now accessible in the cloned server.

Comment 21 errata-xmlrpc 2018-02-19 17:23:12 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, 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-2018:0330


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