Bug 717556

Summary: Add ability for piranha to specify syncid for sync-daemon
Product: Red Hat Enterprise Linux 6 Reporter: peter
Component: piranhaAssignee: Ryan O'Hara <rohara>
Status: CLOSED ERRATA QA Contact: Cluster QE <mspqa-list>
Severity: low Docs Contact:
Priority: low    
Version: 6.0CC: cluster-maint, mjuricek, uwe.knop
Target Milestone: rcKeywords: FutureFeature
Target Release: 6.3   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: piranha-0.8.5-13.el6 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
: 800049 (view as bug list) Environment:
Last Closed: 2012-06-20 14:17:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 788529, 805208, 1099687, 1099688, 1099689    
Bug Blocks: 756082, 800049    
Attachments:
Description Flags
Add option to specify sync daemon id.
none
Add sync daemon id option to piranha web UI.
none
Add information about syncd_id option to lvs.cf man page. none

Description peter 2011-06-29 08:40:34 UTC
Description of problem:
lvs.cf doesn't have config-option to specify syncid.
Pulse starts ipvsadm with this command:
ipvsadm --start-daemon master

Pulse should be able to add the paramater --syncid=<1-255> to start command.

Reason:
When you have 2 seperate clusters of Piranha in the same IP-range, the connection-states are forwarded to both clusters.
When you specify syncid this problem is overcome.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:
ipvsadm --start-daemon master --syncid 1

Additional info:

Comment 3 Ryan O'Hara 2012-02-17 20:51:40 UTC
Created attachment 563985 [details]
Add option to specify sync daemon id.

This patch adds the ability to specify the sync daemon id in lvs.cf config file. This parameter is used to tell the sync daemon what syncid to use when
sending/receiving sync messages. Use the lvs.cf option "syncd_id" to specify
the id. This option is only used it the syncdaemon is enabled
(syncdaemon = 1 in lvs.cf). The value of "syncd_id" should be an integer value between 0 and 255. The value specified is passed to ivpsadm via --syncid
when the sync daemon starts. The default value is 0.

Comment 4 Ryan O'Hara 2012-02-17 20:54:50 UTC
Created attachment 563986 [details]
Add sync daemon id option to piranha web UI.

This patch adds ability to set the syncd_id option via the piranha web ui. This option can be set in the "redundancy" tab of the piranha web ui. If the "Use sync
daemon" checkbox is checked and "Sync daemon ID" is empty, the sync id
box will get the default value (0). If the "Use sync daemon" checkbox is
not checked, the "Sync daemon id" has no effect. The value entered into the
"Sync daemon ID" input box should appear as "syncd_id" in the lvs.cf file
once the form has been submitted. Conversely, if the lvs.cf file has a value
for "syncd_id", that value should be displayed in the "Sync daemon ID" input
but regardless of the "Use sync daemon" checkbox value.

Comment 5 Ryan O'Hara 2012-02-17 20:55:52 UTC
Created attachment 563987 [details]
Add information about syncd_id option to lvs.cf man page.

This patch adds information about the new syncd_id option to the lvs.cf man
page.

Comment 8 Ryan O'Hara 2012-02-18 01:13:37 UTC
Fixed in piranha-0.8.5-13.el6.

Comment 11 errata-xmlrpc 2012-06-20 14:17:49 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.

http://rhn.redhat.com/errata/RHBA-2012-0891.html