Bug 2165092
Summary: | Wrong port specified when `rails_cache_store` is set to `redis` | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Pablo Mendez Hernandez <pmendezh> |
Component: | Installation | Assignee: | Ewoud Kohl van Wijngaarden <ekohlvan> |
Status: | CLOSED ERRATA | QA Contact: | Jameer Pathan <jpathan> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.13.0 | CC: | ehelms, ekohlvan, fperalta, jhutar, jpathan |
Target Milestone: | 6.15.0 | Keywords: | Performance, Triaged, WorkAround |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
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:19 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
Pablo Mendez Hernandez
2023-01-27 16:18:19 UTC
Modifying the template like this before running `satellite-installer` makes the installation succeed: ~~~ sed -i.orig \ 's#^\( - redis://localhost:\)\(8479\)\(/0\)$#\16379\3#' \ /usr/share/foreman-installer/modules/foreman/templates/settings.yaml.erb ~~~ In a diff format: ~~~ diff -u /usr/share/foreman-installer/modules/foreman/templates/settings.yaml.erb.orig /usr/share/foreman-installer/modules/foreman/templates/settings.yaml.erb --- /usr/share/foreman-installer/modules/foreman/templates/settings.yaml.erb.orig 2023-01-17 16:36:05.000000000 +0000 +++ /usr/share/foreman-installer/modules/foreman/templates/settings.yaml.erb 2023-01-30 10:40:43.873993118 +0000 @@ -106,7 +106,7 @@ - redis://<%= url %> <% end -%> <% else -%> - - redis://localhost:8479/0 + - redis://localhost:6379/0 <% end -%> :options: <% if scope["foreman::rails_cache_store"].key?("options") -%> ~~~ Upstream bug assigned to ekohlvan Upstream bug assigned to ekohlvan The code in https://github.com/theforeman/puppet-foreman/pull/1109 fixes the issue for me as well. Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/36037 has been resolved. Verified: Verified with: - Satellite 6.14.0 snap 4 - foreman-redis-3.7.0-0.5.rc3.el8sat.noarch Test steps: - Run "satellite-installer --foreman-rails-cache-store type:redis" Observations: - Satellite-installer completed successfully. It should be noted that by default it uses db 0. Dynflow defaults to db 6 while Pulp defaults to db 8. Satellite doesn't support other services on the same host, but it still may have been better to avoid db 0 just to be sure. I opened https://github.com/theforeman/puppet-foreman/pull/1122 to do that. Bulk setting Target Milestone = 6.15.0 where sat-6.15.0+ is set. 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 |