Bug 2155083
Summary: | "change Puppet Master" option does not work in v6.10/v6.11 | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | tharring |
Component: | Puppet | Assignee: | satellite6-bugs <satellite6-bugs> |
Status: | CLOSED ERRATA | QA Contact: | Gaurav Talreja <gtalreja> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.10.0 | CC: | ekohlvan, gtalreja, lstejska, rlavi, shwsingh, smajumda, zhunting |
Target Milestone: | 6.15.0 | Keywords: | Regression, Triaged, WorkAround |
Target Release: | Unused | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
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:12:58 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
tharring
2022-12-19 22:44:28 UTC
Created redmine issue https://projects.theforeman.org/issues/35949 from this bug Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/35949 has been resolved. Hi Ron, I tried reproducing this on Satellite 6.12.5 where this fix isn't present as you've mentioned, change_puppet_master gets stuck there and we see mentioned output in production logs, but along with it I've observed one more option change_puppet_ca, which seem to be missing in stream snaps Earlier, change_puppet_master and change_puppet_ca option changes puppet_proxy_id and puppet_ca_proxy_id respectively, but now change_puppet_master changes both puppet_proxy_id and puppet_ca_proxy_id at same time and change_puppet_ca is missing, so just want to confirm, shouldn't we keep both options available for hosts? Thanks, Gaurav (In reply to Gaurav Talreja from comment #5) > I tried reproducing this on Satellite 6.12.5 where this fix isn't present as > you've mentioned, change_puppet_master gets stuck there and we see mentioned > output in production logs, but along with it I've observed one more option > change_puppet_ca, which seem to be missing in stream snaps > Earlier, change_puppet_master and change_puppet_ca option changes > puppet_proxy_id and puppet_ca_proxy_id respectively, but now > change_puppet_master changes both puppet_proxy_id and puppet_ca_proxy_id at > same time and change_puppet_ca is missing, so just want to confirm, > shouldn't we keep both options available for hosts? Yes we should have both. It's a valid setup to have your Satellite configured as the Puppet CA but a Capsule as the Puppetserver. Yes, You're right, I was thinking the same way about the setup, but as this option is missing now, so should we move this to ASSIGNED/FailedQA? Also, looking at the linked PRs we moved `app/views/hosts/select_multiple_puppet_proxy.html.erb` from foreman core to foreman_puppet, but we also removed `app/helpers/puppet_related_helper.rb` from foreman but it wasn't added to foreman_puppet, so just guessing if this is what is causing it? Hi Gaurav, I have an upstream fix for the problem with missing action, can you try it on stream and verify that it works as expected? https://github.com/theforeman/foreman_puppet/pull/376 Hey Leos, Yes, this PR appears to be closed, let me know if you open any other PRs and I will be happy to assist with testing. New PR in core: https://github.com/theforeman/foreman/pull/9932 I've tested the above PR from core and it works, Change Puppet CA option is back and it works to set only Puppet CA Capsule for selected hosts But with Change Puppet Master option I've observed it changes both Puppet Capsule and Puppet CA Capsule at the same time, which isn't intended I guess, so not sure if this is due to this changes? https://github.com/theforeman/foreman/pull/9932 has been merged (In reply to Gaurav Talreja from comment #17) > I've tested the above PR from core and it works, Change Puppet CA option is > back and it works to set only Puppet CA Capsule for selected hosts > > But with Change Puppet Master option I've observed it changes both Puppet > Capsule and Puppet CA Capsule at the same time, which isn't intended I > guess, so not sure if this is due to this changes? I saw the same thing, and was also confused. I thought it was me doing something wrong in my hacked up test environment, but I don't think this is how it's supposed to work. Though I think later I couldn't reproduce it anymore. Perhaps it has something to do with fields being empty. However, from reading the code I can't really explain why. Testing this I can see a few things. First scenario: * Host has no Puppet Capsule and no Puppet CA Capsule * Go to All Hosts * Select Host * Use Assign Puppet master bulk action * Select one server (either Satellite or Capsule) * Submit Actual result: * The host has the desired Puppet Capsule * The host also has a Puppet CA Capsule Now I can see some logic for there always being a Puppet CA Capsule set if the Puppet Capsule is set. I just can't find the code for it. Second scenario * Host has a Puppet Capsule set * Go to All Hosts * Select Host * Use Assign Puppet master bulk action * Select *Clear Puppet Capsule* * Submit Actual result: The submit button is disabled. The *Clear Puppet Capsule* option is preselected. I can set it to some other value and select it back. Then submit is enabled and I can perform the action. When I submit, the Host no longer has a Puppet Capsule set. It still has the Puppet CA Capsule set. Third scenario I can't test now: * The host has no Puppet Capsule set but Puppet CA Capsule set to some Puppet CA Capsule (like a Capsule) Then use the bulk action to set the Puppet Capsule to some other value (like the Satellite). I'd want this to only set the Puppet CA Capsule, but don't change the Puppet CA Capsule. If that last scenario passes then I'd consider this as verified. The broken submit button on clear can be considered a separate bug that probably was already present prior to this. Yes, Thanks for confirming, I've also tried this scenarios on Satellite 6.15, and with this scenarios here are my observations, With first scenario, here "change Puppet Master" option changes both Puppet Capsule and Puppet CA Capsule at same time, which I'm not sure if is expected, and it notifies that only puppet capsule changed always like "The Puppet Capsule of the selected hosts was set to sat.example.com", doesn't mention about Puppet CA Capsule field update here, reported BZ to track it separately https://bugzilla.redhat.com/show_bug.cgi?id=2263190 With second scenario, Yes, submit button is disabled here for preselected *Clear Puppet Capsule* or *Clear Puppet CA Capsule* options from the dropdown of Change Puppet Master or Change Puppet CA bulk actions, reported BZ to track it separately https://bugzilla.redhat.com/show_bug.cgi?id=2263188 With third scenario, I used additional Puppet-enabled Capsule with Satellite, - Tried "change Puppet Master" option for Satellite which changed both fields to Satellite as mentioned in first scenario. - Tried "Change Puppet CA" option to Capsule which changed only Puppet CA Capsule field to Capsule, (also tried this bulk action first when Host has no Puppet Capsule and no Puppet CA Capsule) - After this again tried "change Puppet Master" option, so when we've both Puppet Capsule and Puppet CA Capsule fields set already on host, and if we try "change Puppet Master" option then it only changes Puppet Capsule field for host, but no change to Puppet CA Capsule field as expected. Therefore, I think we're good to verify this BZ. Verified on Satellite 6.15.0 Snap 8.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.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 |