Bug 1832574

Summary: Add keep alive option in Receptor node
Product: Red Hat Satellite Reporter: Mike McCune <mmccune>
Component: RH Cloud - Cloud ConnectorAssignee: Jason Stephens <jassteph>
Status: CLOSED ERRATA QA Contact: Lukáš Hellebrandt <lhellebr>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.7.0CC: aruzicka, dehort, ehelms, mhulan, zhunting
Target Milestone: 6.7.1Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ansiblerole-satellite-receptor-installer-0.6.6 receptor-0.6.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1828868 Environment:
Last Closed: 2020-06-08 13:18:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Comment 3 Zach Huntington-Meath 2020-05-07 17:25:12 UTC
Adam, what version of receptor is needed for this?

Comment 4 Adam Ruzicka 2020-05-07 17:33:30 UTC
This will need the installer role 0.6.6 (already out, upstream packaging PR available[1]) and receptor 0.6.2 which should be released any minute now.

[1] - https://github.com/theforeman/foreman-packaging/pull/5179

Comment 5 Lukáš Hellebrandt 2020-05-22 10:12:50 UTC
Verified with Sat 6.7.1 snap 1.

1) Installed Satellite + Receptor
2) Let Receptor run
3) For 24 hours, ran a loop that disables and enables communication for a random time [0]
4) Stopped the loop, enabled communication
5) Scheduled a remediation through c.rh.c
=> Job invocation appeared in the Satellite - the Receptor was able to re-establish a communication with c.rh.c, didn't hang.

[0] # blocked=0; while true; do sleep_time=$(($RANDOM % 600)); if [ $blocked -eq 1 ]; then blocked=0; echo unblocking; firewall-cmd --direct --remove-rule ipv4 filter OUTPUT 0 -p tcp -m tcp --dport=443 -j DROP; else blocked=1; echo blocking; firewall-cmd --direct --add-rule ipv4 filter OUTPUT 0 -p tcp -m tcp --dport=443 -j DROP; fi; sleep $sleep_time; done

Comment 8 errata-xmlrpc 2020-06-08 13:18:03 UTC
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, 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/RHBA-2020:2422