Bug 1821457
Summary: | [RFE] Capsules shouldn't update hosts' "Registered through" facts on the Satellite server in a load-balanced configuration. | |||
---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Jessica Hanley <jhanley> | |
Component: | Subscription Management | Assignee: | satellite6-bugs <satellite6-bugs> | |
Status: | CLOSED ERRATA | QA Contact: | Cole Higgins <chiggins> | |
Severity: | medium | Docs Contact: | ||
Priority: | high | |||
Version: | 6.5.0 | CC: | arahaman, aruzicka, bkearney, darin.lively, dgross, ehelms, iballou, inecas, mmccune, pcreech, sokeeffe | |
Target Milestone: | 6.8.0 | Keywords: | FutureFeature, Patch, Triaged | |
Target Release: | Unused | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | rubygem-katello-3.16.0-0.16.rc4.1 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1851151 (view as bug list) | Environment: | ||
Last Closed: | 2020-10-27 13:01:16 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: |
Description
Jessica Hanley
2020-04-06 21:08:44 UTC
Please add "without_auditing" around that code: SubscriptionFacet.without_auditing do host.subscription_facet.update_attribute(:registered_through, parent_host) end The customer can easily do this as hotfix, warning this is untested need someone from Katello team to confirm. Should work. Moving to proper BZ component for further triage. Customer contacted me to stress that he wasn't asking that this *NOT* be audited. Only that it not update flapping values between Load-Balanced capsules. He did some testing and confirmed that changing HTTP_X_FORWARDED_SERVER to HTTP_X_FORWARDED_HOST will successfully record the client's rhsm.conf hostname value in the "registered through" attribute of the content host. I also added the bit to strip out the port number. The audit entry was also successfully reflects the same value. ~~~ def get_parent_host(headers) hostnames = headers["HTTP_X_FORWARDED_HOST"] host = hostnames.split(/[^\w.]/)[0] if hostnames host || SETTINGS[:fqdn] end ~~~" Connecting redmine issue https://projects.theforeman.org/issues/29986 from this bug Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/29986 has been resolved. 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.8 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-2020:4366 |