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.
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
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
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
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 20Griffin 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]'
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
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