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 2128256 - Insights recommendation sync failing in Satelliite
Summary: Insights recommendation sync failing in Satelliite
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: RH Cloud - Insights
Version: 6.11.2
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: 6.13.0
Assignee: Shimon Shtein
QA Contact: Griffin Sullivan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-09-20 12:05 UTC by Riya Banerjee
Modified: 2023-05-03 13:22 UTC (History)
11 users (show)

Fixed In Version: rubygem-foreman_rh_cloud-6.0.44
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2150111 2166762 (view as bug list)
Environment:
Last Closed: 2023-05-03 13:22:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Hotfix RPM for Satellite 6.11.4 on RHEL7 (2.75 MB, application/x-rpm)
2022-12-06 21:30 UTC, wclark
no flags Details
Hotfix RPM for Satellite 6.11.4 on RHEL8 (2.76 MB, application/x-rpm)
2022-12-06 21:32 UTC, wclark
no flags Details
Hotfix RPM for Satellite 6.12.0 (2.82 MB, application/x-rpm)
2022-12-08 10:46 UTC, wclark
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github theforeman foreman_rh_cloud pull 772 0 None Merged Allow empty fqdn in cloud response 2022-11-21 10:59:38 UTC
Red Hat Issue Tracker SAT-13236 0 None None None 2022-11-28 15:23:35 UTC
Red Hat Knowledge Base (Solution) 6995006 0 None None None 2023-03-31 04:03:14 UTC
Red Hat Product Errata RHSA-2023:2097 0 None None None 2023-05-03 13:22:15 UTC

Description Riya Banerjee 2022-09-20 12:05:27 UTC
Description of problem:
Insights recommendation sync is failing with NilClass error.
It worked when Satellite was still in version 6.8

Version-Release number of selected component (if applicable): satellite-installer-6.11.0.7-1.el7sat.noarch , Insights {"core_version": "3.0.293-1", "client_version": "3.1.7"}


Steps to Reproduce:
Navigate to Satellite UI > RH Cloud > Inventory Upload > Click 'Sync inventory status'


Actual results: Fails with NilClass error.


Expected results: Inventory sync should complete successfully

Comment 17 wclark 2022-12-06 21:30:16 UTC
Created attachment 1930612 [details]
Hotfix RPM for Satellite 6.11.4 on RHEL7

INSTALL INSTRUCTIONS:

1. Take a complete backup or snapshot of Satellite 6.11.4 server

2. Download the hotfix RPM attached to this BZ and copy it to Satellite server

3. # yum install ./tfm-rubygem-foreman_rh_cloud-5.0.43-2.HOTFIXRHBZ2128256.el7sat.noarch.rpm --disableplugin=foreman-protector

4. # satellite-maintain service restart

Comment 18 wclark 2022-12-06 21:32:11 UTC
Created attachment 1930613 [details]
Hotfix RPM for Satellite 6.11.4 on RHEL8

INSTALL INSTRUCTIONS:

1. Take a complete backup or snapshot of Satellite 6.11.4 server

2. Download the hotfix RPM attached to this BZ and copy it to Satellite server

3. # dnf install ./rubygem-foreman_rh_cloud-5.0.43-2.HOTFIXRHBZ2128256.el8sat.noarch.rpm --disableplugin=foreman-protector

4. # satellite-maintain service restart

Comment 19 wclark 2022-12-08 10:46:50 UTC
Created attachment 1931029 [details]
Hotfix RPM for Satellite 6.12.0

INSTALL INSTRUCTIONS:

1. Take a complete backup or snapshot of Satellite 6.12.0 server

2. Download the hotfix RPM attached to this BZ and copy it to Satellite server

3. # dnf install ./rubygem-foreman_rh_cloud-6.0.42.2-2.HOTFIXRHBZ2128256.el8sat.noarch.rpm --disableplugin=foreman-protector

4. # satellite-maintain service restart

Comment 20 Griffin Sullivan 2023-01-17 16:49:48 UTC
Verified with:
- Satellite 6.13 snap 6
- rubygem-foreman_rh_cloud-6.0.44-1.el8sat.noarch

Test steps:
- Have an inventory host(registered with Satellite) with fqdn set to null.
- Go to Configure > Inventory upload > Click 'Sync inventory status'

Observations:
- No error
- 'Sync inventory status' task was completed successfully.

Additional info:
Use the following steps to get a host with null fqdn in inventory.

- Get a fresh host(not uploaded to inventory or delete existing one from inventory)
- insights-client --no-upload --keep-archive
- cp /var/cache/insights-client/insights-host.example.com-20230103095159.tar.gz .
- tar -xzf *.tar.gz
- vi insights-host.example.com-20230103095159/data/insights_commands/hostname* (emptied the files)
- rm insights-host.example.com-20230103095159.tar.gz 
- tar -czf insights-host.example.com-20230103095159.tar.gz insights-host.example.com-20230103095159
- insights-client --payload=insights-host.example.com-20230103095159.tar.gz --content-type="application/vnd.redhat.advisor.payload+tgz"
- curl -sSu "username:password" "https://console.redhat.com/api/inventory/v1/hosts/<id-of-host>" | jq '.results[0]'

Comment 23 errata-xmlrpc 2023-05-03 13:22:03 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 (Important: Satellite 6.13 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-2023:2097


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