Bug 982673
Summary: | rhnsd minimum interval should fit within 1 minute | ||||||
---|---|---|---|---|---|---|---|
Product: | [Community] Spacewalk | Reporter: | Marcelo Moreira de Mello <mmello> | ||||
Component: | Clients | Assignee: | Tomáš Kašpárek <tkasparek> | ||||
Status: | CLOSED NOTABUG | QA Contact: | Red Hat Satellite QA List <satqe-list> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 1.9 | CC: | mmello | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 982678 (view as bug list) | Environment: | |||||
Last Closed: | 2017-12-21 10:06:01 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: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1564160 | ||||||
Attachments: |
|
Description
Marcelo Moreira de Mello
2013-07-09 14:31:56 UTC
Created attachment 771060 [details]
Proposted patch
This patch addresses the issue reported on this bug setting the minimum interval to 1 minute.
Testing with value set to 30min. Monitoring it using a systemtap. # service rhnsd restart Stopping Red Hat Network Daemon: [ OK ] Starting Red Hat Network Daemon: [ OK ] Mon Jul 8 21:47:04 2013: rhn_check(36671) connecting to RHN port 443 by UID 0 Mon Jul 8 21:47:04 2013: rhn_check(36671) connecting to RHN port 443 by UID 0 Mon Jul 8 21:47:05 2013: rhn_check(36671) connecting to RHN port 443 by UID 0 Mon Jul 8 22:17:04 2013: rhn_check(44123) connecting to RHN port 443 by UID 0 Mon Jul 8 22:17:05 2013: rhn_check(44123) connecting to RHN port 443 by UID 0 Mon Jul 8 22:17:05 2013: rhn_check(44123) connecting to RHN port 443 by UID 0 Mon Jul 8 22:47:05 2013: rhn_check(51560) connecting to RHN port 443 by UID 0 Mon Jul 8 22:47:05 2013: rhn_check(51560) connecting to RHN port 443 by UID 0 Mon Jul 8 22:47:05 2013: rhn_check(51560) connecting to RHN port 443 by UID 0 Mon Jul 8 23:17:04 2013: rhn_check(59000) connecting to RHN port 443 by UID 0 Mon Jul 8 23:17:04 2013: rhn_check(59000) connecting to RHN port 443 by UID 0 Mon Jul 8 23:17:05 2013: rhn_check(59000) connecting to RHN port 443 by UID 0 Mon Jul 8 23:47:04 2013: rhn_check(66442) connecting to RHN port 443 by UID 0 Mon Jul 8 23:47:04 2013: rhn_check(66442) connecting to RHN port 443 by UID 0 Mon Jul 8 23:47:05 2013: rhn_check(66442) connecting to RHN port 443 by UID 0 Tue Jul 9 00:17:04 2013: rhn_check(73886) connecting to RHN port 443 by UID 0 Tue Jul 9 00:17:05 2013: rhn_check(73886) connecting to RHN port 443 by UID 0 The RHEL 5 code is wrong, and that issue was fixed via bug 563173. I mean, you can of course change the default to go down to 1 minute, just please don't use the RHEL 5 behaviour as a justification. Also please note that Spacewalk has no safeguards against clients hitting it every minute (like hosted has). So I'd propose to first make sure Spacewalk is able to reject service if its load is too high before releasing client code which can easily take the server to its knees. If you want real-time communication between clients then use osad. Changing the rhnsd minimum interval would just cause DDoS against Spacewalk server and one hour minimum interval has some reasoning. |