Bug 2130872

Summary: undefined method with_indifferent_access for true:TrueClass when refreshing Capsule features
Product: Red Hat Satellite Reporter: Evgeni Golov <egolov>
Component: CapsuleAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED NOTABUG QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.12.0CC: aruzicka, ehelms
Target Milestone: UnspecifiedKeywords: Triaged
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: 2023-08-10 12:57:57 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 Evgeni Golov 2022-09-29 08:53:57 UTC
Description of problem:
Error when trying to refresh features of the internal capsule

Version-Release number of selected component (if applicable):
foreman-3.3.0.15-1.el8sat.noarch
foreman-proxy-3.3.0-1.el8sat.noarch
satellite-6.12.0-3.el8sat.noarch

How reproducible:
100%

Steps to Reproduce:
1. go to https://satelite.example.com/smart_proxies
2. click "Refresh" from the "Actions" menu of the internal capsule

Actual results:
Error popup: Unable to communicate with the Capsule: undefined method `with_indifferent_access' for true:TrueClass, Please check the Capsule is configured and running on the host., Unable to communicate with the Capsule: undefined method `with_indifferent_access' for true:TrueClass, and Please check the Capsule is configured and running on the host.

production.log reads:
2022-09-29T08:50:57 [I|app|b6fd2a6a] Started PUT "/smart_proxies/1-sat-6-12-qa-rhel8-tanso-example-com/refresh" for 192.168.122.1 at 2022-09-29 08:50:57 +0000
2022-09-29T08:50:57 [I|app|b6fd2a6a] Processing by SmartProxiesController#refresh as HTML
2022-09-29T08:50:57 [I|app|b6fd2a6a]   Parameters: {"authenticity_token"=>"DHzv6aA16DpCc3+uC6vziyN9yvZMulyEK7uut5ULUykDPT5YnH7gIutaT8NgzF97eIp9UeFD4RWeQ3UYUHQF+Q==", "id"=>"1-sat-6-12-qa-rhel8-tanso-example-com"}
2022-09-29T08:50:57 [E|app|b6fd2a6a] Failed to save: Unable to communicate with the Capsule: undefined method `with_indifferent_access' for true:TrueClass, Please check the Capsule is configured and running on the host., Unable to 
communicate with the Capsule: undefined method `with_indifferent_access' for true:TrueClass, Please check the Capsule is configured and running on the host.
2022-09-29T08:50:57 [I|app|b6fd2a6a] Redirected to https://sat-6-12-qa-rhel8.tanso.example.com/smart_proxies
2022-09-29T08:50:57 [I|app|b6fd2a6a] Completed 302 Found in 61ms (ActiveRecord: 4.4ms | Allocations: 11363)


Expected results:
Success popup

Additional info:
I don't have an external to test

Comment 1 Evgeni Golov 2022-09-29 09:08:58 UTC
hmm, I can't reproduce after a reboot of the machine :(

Comment 2 Vladimír Sedmík 2022-09-29 09:13:09 UTC
I couldn't reproduce with snap 12 (internal and external) and snap 13 (internal only). I can try with 13 external once I have one.

Comment 3 Evgeni Golov 2022-09-29 09:36:26 UTC
(In reply to Vladimír Sedmík from comment #2)
> I couldn't reproduce with snap 12 (internal and external) and snap 13
> (internal only). I can try with 13 external once I have one.

Yeah, I think something was wrong with my system. I also could not run Ansible jobs, it said the internal capsule would be down.

A reboot fixed both issues :shrug: