Bug 788541 - Add option to specify mcast interface for sync daemon
Summary: Add option to specify mcast interface for sync daemon
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: piranha
Version: 6.2
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Ryan O'Hara
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On: 788529 805208 1099687 1099688 1099689
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-08 12:04 UTC by Ryan O'Hara
Modified: 2014-05-21 02:02 UTC (History)
3 users (show)

Fixed In Version: piranha-0.8.5-13.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-20 14:18:05 UTC
Target Upstream Version:


Attachments (Terms of Use)
Add option to specify sync daemon mcast interface. (3.12 KB, patch)
2012-02-16 23:12 UTC, Ryan O'Hara
no flags Details | Diff
Add sync daemon interface option to piranha web UI. (3.14 KB, patch)
2012-02-17 02:16 UTC, Ryan O'Hara
no flags Details | Diff
Add information about sync_iface option to lvs.cf man page. (839 bytes, patch)
2012-02-17 19:38 UTC, Ryan O'Hara
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0891 0 normal SHIPPED_LIVE piranha bug fix update 2012-06-19 19:50:50 UTC

Description Ryan O'Hara 2012-02-08 12:04:01 UTC
Piranha allows for ipvs sync daemon to be enabled, but does not allow user to specify sync daemon options. The sync daemon can be told which interface to use for multicast. From ipvsadm(8):

  --mcast-interface interface
         Specify  the  multicast interface that the sync master daemon sends
         outgoing multicasts through, or the sync backup daemon listens to for
         multicasts.

Since we're already adding the the syncid option (BZ#717556), we should add option for mcast-address for to be complete.

Comment 2 Ryan O'Hara 2012-02-16 23:12:49 UTC
Created attachment 563774 [details]
Add option to specify sync daemon mcast interface.

This patch adds the ability to specify the sync daemon mcast interface in lvs.cf config file. This parameter is used to tell the sync daemon to use to send/receive multicast messages. Use the lvs.cf option "syncd_iface" to specify the interface. This option is only used it the syncdaemon is enabled (syncdaemon = 1 in lvs.cf). The value of "syncd_iface" must be a valid interface and must not be prefixed with "/dev/" (eg. use "eth1" not "/dev/eth1"). This value specified is passed to ivpsadm via --mcast-interface when the sync daemon starts. The default value is "eth0".

Comment 3 Ryan O'Hara 2012-02-17 02:16:46 UTC
Created attachment 563793 [details]
Add sync daemon interface option to piranha web UI.

This patch adds set the syncd_iface 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 interface" is empty, the sync interface box will get the default value ("eth0"). If the "Use sync daemon" checkbox is not checked, the "Sync interface" has no effect. The value entered into the "Sync interface" input box should appear as "sync_iface" in the lvs.cf file once the form has been submitted. Conversely, if the lvs.cf file has a value for "sync_iface", that value should be displayed in the "Sync interface" input but regardless of the "Use sync daemon" checkbox value.

Comment 4 Ryan O'Hara 2012-02-17 19:38:16 UTC
Created attachment 563975 [details]
Add information about sync_iface option to lvs.cf man page.

This patch adds information about the new sync_iface option to the lvs.cf man page. Also add information about the syncdaemon option, which was missing from lvs.cf man page.

Comment 5 Ryan O'Hara 2012-02-17 20:58:08 UTC
The correct option name as it appears in lvs.cf is "syncd_iface", not "sync_iface" as mentioned in the previous comments. Also, the input text box in the piranha web interface is labelled "Sync daemon interface", not "Sync interface".

Comment 9 Ryan O'Hara 2012-02-18 01:14:00 UTC
Fixed in piranha-0.8.5-13.el6.

Comment 12 errata-xmlrpc 2012-06-20 14:18:05 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


Note You need to log in before you can comment on or make changes to this bug.