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.
Currently today, Insights uses the CDN URL as an indicator of whether or
not the Satellite can reach the Insights service. In _most_ scenarios
this is correct, there are customer deployments which aren't disconnected, but does get Red Hat content from somewhere other than cdn.redhat.com, this heuristic isn't as accurate.
Today for these customers, we ensure that they:
(1)Must be able to connect to https://cert-api.access.redhat.com
(2) Must have a valid production manifest (Insights uses the
remote consumer TLS certificate embedded in the manifest to
authenticate to the Insights service)
(3) Must be patched to override disconnected
check (/opt/theforeman/tfm/root/usr/share/gems/gems/redhat_access-
2.0.13/app/services/redhat_access/telemetry/look_ups.rb )
In Satellite 6.4, we have a new setting
(https://www.awesomescreenshot.com/image/3525939/10bb3f2f8d7a0ba5f310fe3df14e3624)
that is to be used to denote disconnected Satellites.
I would like to update the Insights plugin to use this value in lieu of keying off of the CDN URL.
Adding info for a RFE/support exception for a customer.
Old duplicated case that was closed ,
due to this case as prime / head case / new case -> https://bugzilla.redhat.com/show_bug.cgi?id=1611621
Old duplicated case: https://bugzilla.redhat.com/show_bug.cgi?id=1702081
As there is not much difference from a disconnected sat to a hub/cdn sat and disconnected sat / spoke, as is is the same pattern ,
the only level of detail is the governance / compliance of the transport of the CDN repos aka import via http or file system (nfs, sneaker net , etc) .
wclark 2019-04-22 22:13:43 UTC
The RFE is for full support of a Hub/Spoke architecture where multiple 'spoke' Satellites are synced from a single 'Hub' Satellite which syncs from the CDN.
Currently limited support requires the following change to rubygem-foreman-redhat_access, which gets overwritten every time the package is updated (due to the path changing when the version is updated):
/opt/theforeman/tfm/root/usr/share/gems/gems/redhat_access-2.2.0/app/services/redhat_access/telemetry/look_ups.rb
Here is the diff:
# diff look_ups.rb look_ups.rb.041919
68c68,73
< return false
---
> if org
> # TODO: fix hard coding
> org.redhat_repository_url != 'https://cdn.redhat.com'
> else
> raise(RecordNotFound, 'Organization not found or invalid')
> end
Marek,
The fix for this got entangled with some other work I was doing but that other work is dragging on so I'm just going to refactor things and push a gem with the fix for this hopefully this afternoon.
- Rex
Verified:
Verified with:
- Satellite 6.10.0 snap 13
- tfm-rubygem-foreman_rh_cloud-4.0.25.1-2.el7sat.noarch
Observations:
- If "Disconnected mode" setting is enabled then RH cloud plugin won't upload inventory reports and
satellite will show "Upload was stopped since disconnected mode setting is enabled for content on this instance." message.
- If "host_registration_insights" parameter is set to false for content hosts then insights-client uploads
from those hosts will be rejected by satellite.
[root@dhcp-2-136 ~]# insights-client
Unable to fetch egg url. Defaulting to /release
ERROR: Could not download dynamic configuration
Debug Info:
Conf status: 403
Debug Info:
Conf message: {"message":"Telemetry is not enabled for this host"}
This machine has not yet been registered. Use --register to register this machine.
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 (Moderate: Satellite 6.10 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-2021:4702