Bug 2158959
Summary: | Error "Capsule content source not found" when using global registration method to register a system using CNAME\SAN\LB-FQDN | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Sayan Das <saydas> |
Component: | Registration | Assignee: | Leos Stejskal <lstejska> |
Status: | CLOSED ERRATA | QA Contact: | Shweta Singh <shwsingh> |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | 6.11.4 | CC: | ahumbe, lstejska, shwsingh, zhunting |
Target Milestone: | 6.15.0 | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2024-04-23 17:13:03 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
Sayan Das
2023-01-07 06:10:49 UTC
I confirm that 6.13 works fine due to https://github.com/Katello/katello/pull/10315 and https://github.com/theforeman/foreman/pull/9464 ( and some other fixes ) Feature #35627: Use proxy template URL in registration - Katello - Foreman https://projects.theforeman.org/issues/35627 Feature #35626: Use registration_url setting exposed by the Smart Proxy - Foreman https://projects.theforeman.org/issues/35626 Feature #35639: registration_url setting for Registration module - Smart Proxy - Foreman https://projects.theforeman.org/issues/35639 I thought I could at least get the curl part working using https://github.com/Katello/katello/pull/10315.patch but for some really odd reasons, Satellite 6.11 and 6.12 is unable to detect or use "auth_smart_proxy" from Foreman::Controller::SmartProxyAuth when called inside "registration_controller_extensions" 2023-01-07T11:17:04 [W|app|33bf406b] Action failed 2023-01-07T11:17:04 [I|app|33bf406b] Backtrace for 'Action failed' error (NameError): undefined local variable or method `auth_smart_proxy' for #<Api::V2::RegistrationController:0x00007f84842a5728> 33bf406b | Did you mean? auth_source_path 33bf406b | /usr/share/gems/gems/katello-4.5.0.20/app/controllers/katello/concerns/api/v2/registration_controller_extensions.rb:49:in `find_smart_proxy' 33bf406b | /usr/share/gems/gems/katello-4.5.0.20/app/controllers/katello/concerns/api/v2/registration_controller_extensions.rb:39:in `smart_proxy' 33bf406b | /usr/share/gems/gems/katello-4.5.0.20/app/controllers/katello/concerns/api/v2/registration_controller_extensions.rb:32:in `context_urls' 33bf406b | /usr/share/foreman/app/controllers/concerns/foreman/controller/registration.rb:41:in `global_registration_vars' 33bf406b | /usr/share/foreman/app/controllers/concerns/foreman/controller/registration.rb:7:in `find_global_registration' 33bf406b | /usr/share/foreman/app/controllers/api/v2/registration_controller.rb:29:in `global' The request from the end-user is to provide them with a workaround that they can use on Satellite 6.11 ( or 6.12 ) to be able to use CNAME or else, It affects their existing automation workflow. Hi Leos, Can you take a look at this bugzilla? If the issue is resolved by the fixes cited above, can you link the appropriate redmine issue(s) and update the status accordingly? (We didn't want to change the status during triage without knowing which change would be needed to resolve the issue, as it may be desirable to include in the zstream). Thanks! Hi Sayan, can you share with me your 6.11 site where you tried to apply the patch https://github.com/Katello/katello/pull/10315.patch? I'd like to investigate why that patch didn't helped, from what I've seen it should be enough to make it work. I suggest to remove the issue from SAT 6.13 and keep it only in 6.12. In SAT 6.13 we introduce load balancing as a feature for registration and it's fully supported there. For 6.12 these two PRs needs to be cherry-picked: https://github.com/Katello/katello/pull/10315 https://github.com/Katello/katello/pull/10409 Verified. Version Tested: Satellite 6.15.0 Snap 8.0 Verification Steps: 1. Configure Satellite with FQDN and Capsule with FQDN and CNAME. 2. Generate global registration command selecting Capsule server as the Capsule. 3. Replace capsule FQDN with Capsule CNAME in the URL. 4. Update /etc/hosts for capsule FQDN and CNAME and run the modified command on host. Result: Command works without error. 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.15.0 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-2024:2010 |