Commit Graph

21 Commits

Author SHA1 Message Date
Billy Olsen d1191dbcab Render corosync.conf file prior to pkg install
Starting in focal, the ubuntu version of corosync package synced in from
debian includes node1 as the default name for the local node with a nodeid
of 1. This causes the cluster to have knowledge of this extra node1 node,
which affects quorum, etc. Installing the charm's corosync.conf file
before package installation prevents this conditioning from happening.

Additionally this change removes some Xenial bits in the charm and always
includes a nodelist in corosync.conf as it is compulsory in focal and
newer. It is optional in the bionic packages, so we'll always just
render the nodelist.

Change-Id: I06b9c23eb57274f0c99a3a05979c0cabf87c8118
Closes-Bug: #1874719
2022-03-16 08:13:49 -07:00
Alex Kavanagh 02b406b6f3 Convert charm to Python 3
Change-Id: Ib7cc06b3b42f26f725a9ea79f09189cc72952d29
2019-03-14 12:40:07 +00:00
David Ames fda5176bd5 Fix pacemaker down crm infinite loop
On corosync restart, corosync may take longer than a minute to come
up. The systemd start script times out too soon. Then pacemaker which
is dependent on corosync is immediatly started and fails as corosync
is still in the process of starting.

Subsequently the charm would run crm node list to validate pacemaker.
This would become an infinite loop.

This change adds longer timeout values for systemd scripts and adds
better error handling and communication to the end user.

Change-Id: I7c3d018a03fddfb1f6bfd91fd7aeed4b13879e45
Partial-Bug: #1654403
2017-01-24 10:55:29 -08:00
billy.olsen@canonical.com c2e98300b3 [nobuto,r=billy-olsen] Let corosync decide the best bindnetaddr from
nodelist in the case of corosync_transport=udpu.

Partially-Closes-Bug: 1483317
2015-09-21 15:17:46 -07:00
billy.olsen@canonical.com 0c6e668598 [billy-olsen,r=] Include an acl file for corosync containing the hacluster
user and haclient group.

Closes-Bug: 1439649
2015-09-03 17:30:23 -07:00
Nobuto Murata 71828a113f let corosync decide the best bindnetaddr from nodelist in udpu case.
88ae75d6c2

partially fixes LP: #1483317
2015-08-11 10:49:42 +09:00
Nobuto Murata ab4b180839 trivial: space -> tab 2015-08-11 10:47:21 +09:00
Edward Hope-Morley a981a24d83 [freyes,r=hopem]
Add debug option to config.yaml and optionally enable
debug logging in corosync.conf
2014-12-15 19:11:21 +00:00
Felipe Reyes 1f2abe166e Add config key to enable corosync debugging 2014-12-15 09:55:12 -03:00
Billy Olsen c7e7dd187d Rebase changes to ../next 2014-12-08 11:41:32 -07:00
Liam Young 70bdee4a5f Replace spaces with tabs 2014-12-04 09:09:44 +00:00
Billy Olsen e152ba58d2 [wolsen,r=]
Specify the vote count for multicast quorum to be the number of nodes
which are configured. Additionally, specify the two_node value in the
quorum section when there are 2 nodes configured.

Closes-Bug: 1394008
2014-12-02 09:21:18 -07:00
Liam Young d329527fa1 bunch of fixes 2014-10-12 08:12:10 +00:00
Liam Young c9c6735a7e Add in unicast support 2014-10-12 07:08:43 +00:00
james.page@ubuntu.com 18ae01a279 [xianghui,dosaboy,r=james-page,t=gema] Add IPv6 support using prefer-ipv6 flag 2014-10-01 21:54:51 +01:00
Hui Xiang f29527cc81 Add config option netmtu for corosync, refactor code. 2014-09-28 09:28:13 +08:00
Hui Xiang 67f5697951 Support hacluster for IPv6. 2014-08-19 15:06:29 +08:00
James Page 34612d6578 Drop logfile 2014-03-31 15:42:51 +01:00
James Page 3b181ba801 Fixup for trusty corosync 2014-03-31 15:34:27 +01:00
Andres Rodriguez f2b2373497 HACluster refactoring 2012-12-11 07:54:36 -05:00
Andres Rodriguez 1c22ba36b4 Initial release 2012-11-20 15:06:11 -05:00