Unicast option for hacluster charm

Bug #1348521 reported by Ante Karamatić
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
hacluster (Juju Charms Collection)
Fix Released
Medium
Liam Young

Bug Description

Very often multicast is not allowed in production environments. Purpose of multicast in corosync is to enable easy discovery of the nodes that want to join the cluster. That seems a bit redundant within juju environment. All the nodes that will form the cluster are already known and given by juju. So, instead of trashing multicast on the network, ideally charm would setup corosync in unicast mode, and node information would be pulled from juju.

What hacluster charm needs to do is replace interface {} section in corosync.conf. When unicast is enabled, that part shoud be like this:

        interface {
                member {
                        memberaddr: $node_1_ip
                }
                member {
                        memberaddr: $node_2_ip
                }
                member {
                        memberaddr: $node_3_ip
                }
                ringnumber: 0
                        bindnetaddr: $bindnetaddr
                        mcastport: $mcastport
                }
                transport: udpu
                }

Replace $variables with proper values. As a side effect this might allow HA within dislocated networks, like AWS.

Tags: openstack cts

Related branches

Revision history for this message
Ante Karamatić (ivoks) wrote :

Oh, this format is still valid in Trusty, but newer versions of corosync might require newer syntax:

http://clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Clusters_from_Scratch/_sample_corosync_configuration.html

description: updated
Liam Young (gnuoy)
Changed in charms:
importance: Undecided → Medium
assignee: nobody → Liam Young (gnuoy)
Marco Ceppi (marcoceppi)
affects: charms → hacluster (Juju Charms Collection)
tags: added: openstack
Changed in hacluster (Juju Charms Collection):
status: New → In Progress
tags: added: cts
Changed in hacluster (Juju Charms Collection):
status: In Progress → Fix Committed
James Page (james-page)
Changed in hacluster (Juju Charms Collection):
milestone: none → 15.01
James Page (james-page)
Changed in hacluster (Juju Charms Collection):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.