- 30 Mar, 2020 2 commits
-
-
Rafael David Tinoco authored
-
Rafael David Tinoco authored
-
- 04 Jan, 2020 5 commits
-
-
Ferenc Wágner authored
-
Ferenc Wágner authored
-
Ferenc Wágner authored
-
Ferenc Wágner authored
-
Ferenc Wágner authored
-
- 07 Dec, 2019 8 commits
-
-
Ferenc Wágner authored
-
Ferenc Wágner authored
-
Ferenc Wágner authored
-
Ferenc Wágner authored
-
Ferenc Wágner authored
-
Ferenc Wágner authored
-
Ferenc Wágner authored
Update to upstream version '3.0.3' with Debian dir 013c4d58d9191adff229d0793f812bdd37ef2bfb
-
Ferenc Wágner authored
-
- 18 Nov, 2019 2 commits
-
-
Christine Caulfield authored
Make the icmap*_r functions read from the specified map rather than the global map. Also include icmap_get_string_r() which seems to have been missed out. Signed-off-by:
Christine Caulfield <ccaulfie@redhat.com> Reviewed-by:
Jan Friesse <jfriesse@redhat.com>
-
Fabio M. Di Nitto authored
To make sure libqb dependency is visible across all libraries. Signed-off-by:
Fabio M. Di Nitto <fdinitto@redhat.com> Reviewed-by:
Jan Friesse <jfriesse@redhat.com>
-
- 08 Nov, 2019 1 commit
-
-
Jan Friesse authored
Some functions allocated memory on stack without clearing memory and then send them on wire. This is not an issue, but valgrind reports this as a problem so it is easy to miss real problem then. Solution is to clear stack memory. Signed-off-by:
Jan Friesse <jfriesse@redhat.com> Reviewed-by:
Christine Caulfield <ccaulfie@redhat.com>
-
- 17 Oct, 2019 1 commit
-
-
Thomas Lamprecht authored
commit 029b8eba changed the default of the KNET_PONG_COUNT from the kronosnet default of 5 to 2, as corosync bring up was deemed to slow. The documentation, and the comment stating that the totem config default values match the knet ones were not updated, and thus now out of date. Fixhis by noting the correct default of 2 for KNET_PONG_COUNT and note that all but that one are in sync with the korosync defaults in the comment. Signed-off-by:
Thomas Lamprecht <t.lamprecht@proxmox.com> Reviewed-by:
Jan Friesse <jfriesse@redhat.com>
-
- 09 Oct, 2019 3 commits
-
-
Jan Friesse authored
Messages sent during recovery phase are encapsulated so such message has extra size of mcast structure. This is not so big problem for UDPU, because most of the switches are able to fragment and defragment packet but it is problem for knet, because totempg is using maximum packet size (65536 bytes) and when another header is added during retransmition, then packet is too large. Solution is to reduce mtu by 2 * sizeof (struct mcast). Signed-off-by:
Jan Friesse <jfriesse@redhat.com> Reviewed-by:
Fabio M. Di Nitto <fdinitto@redhat.com>
-
Jan Friesse authored
Signed-off-by:
Jan Friesse <jfriesse@redhat.com> Reviewed-by:
Thomas Lamprecht <t.lamprecht@proxmox.com> Reviewed-by:
Fabio M. Di Nitto <fdinitto@redhat.com>
-
Fabio M. Di Nitto authored
--with-sanitizers= option is stricly meant for runtime debugging purposes. Do NOT use in production. Please check gcc/clang man pages on how to use ASAN/UBSAN/TSAN. Also allow users to specificy SANITIZERS_CFLAGS and SANITIZERS_LDFLAGS for advanced use. Signed-off-by:
Fabio M. Di Nitto <fdinitto@redhat.com> Reviewed-by:
Jan Friesse <jfriesse@redhat.com>
-
- 10 Sep, 2019 1 commit
-
-
Jan Friesse authored
Knet callbacks may be called from different thread than main thread. If this happens, log messages may be lost. Most prominent example is when link goes up (logged by main thread) and host_change_callback_fn is called. Implemented solution is adding mutex for every log call in totemknet. Signed-off-by:
Jan Friesse <jfriesse@redhat.com> Reviewed-by:
Fabio M. Di Nitto <fdinitto@redhat.com>
-
- 27 Aug, 2019 1 commit
-
-
Jan Friesse authored
... to match knet source code. Signed-off-by:
Jan Friesse <jfriesse@redhat.com> Reviewed-by:
Fabio M. Di Nitto <fdinitto@redhat.com>
-
- 25 Aug, 2019 9 commits
-
-
Ferenc Wágner authored
-
Ferenc Wágner authored
-
Ferenc Wágner authored
-
Ferenc Wágner authored
-
Ferenc Wágner authored
-
Ferenc Wágner authored
-
Ferenc Wágner authored
-
Ferenc Wágner authored
Update to upstream version '3.0.2' with Debian dir a5c104a650d338a48372d3cc85069136c826ca3e
-
Ferenc Wágner authored
-
- 30 Jul, 2019 1 commit
-
-
Jan Friesse authored
This problem shouldn't really happen, but better safe than sorry. Signed-off-by:Jan Friesse <jfriesse@redhat.com>
-
- 15 Jul, 2019 1 commit
-
-
Jan Friesse authored
This patch handles the situation where the leader node (the node with lowest node_id) crashes and is started again before token timeout of the rest of the cluster. The newly restarted node restores the ringid of the old ring from stable storage, so it has the same ringid as rest of the nodes, but ARU is zero. If the node is able to create a singleton membership before receiving the joinlist from rest of the cluster, everything works as expected, because the ring id gets increased correctly. But if the node receives a joinlist from another cluster node before its own joinlist, then it continues as it would had it never left the cluster. This is not correct, because the new node should always create a singleton configuration first. During the recovery phase, ARUs are compared and because they differ (the ARU of the old leader node is 0), the other nodes try to sent all of their previous messages. This is impossible (even if it was correct), because other nodes have already freed most of those messages. The implementation uses an assert to limit maximum number of messages sent during recovery (we could fix this, but it's not really the point). The solution here is to increase the ring_id sequence number by 1 after loading it from storage. During creation of the commit token it is always increased by 4, so it will not collide with an existing sequence. Thanks Christine Caulfield <ccaulfie@redhat.com> for clarify commit message. Signed-off-by:
Jan Friesse <jfriesse@redhat.com> Reviewed-by:
Christine Caulfield <ccaulfie@redhat.com>
-
- 08 Jul, 2019 3 commits
-
-
Jan Friesse authored
Init script used to use corosync-cfgtool -s to wait till corosync accepts ipc connection. Problem with this approach is that error code is returned not only if ipc cannot be initialized, but also when one of the ring is marked as failed, making corosync service not to start. Corosync with one failed ring can work just fine and there is no need to fail startup. Patch is changing call of corosync-cfgtool to corosync-cpgtool. Also to make spotting of broken ring easier, corosync-cfgtool -s is called after successful return of the cpgtool, and warning is issued if cfgtool fails. Signed-off-by:
Jan Friesse <jfriesse@redhat.com> Reviewed-by:
Christine Caulfield <ccaulfie@redhat.com>
-
Jan Friesse authored
time_t is platform dependent real type which is usually long int on 64-bit platform, but only int on 32-bit platform and printing it with %ld generated warning. Solution seems to be ether retype time_t to long int or use functions which works with time_t. Later option is used in this patch, which uses localtime and strftime to print time_t value. Also code is refactored to remove duplicate calls and add _cs_snmp prefix to prevent snmp_ prefix collision. Signed-off-by:
Jan Friesse <jfriesse@redhat.com> Reviewed-by:
Christine Caulfield <ccaulfie@redhat.com>
-
Jan Friesse authored
corosync_cfg_ring_status_get returns string status, which is always OK for UDP(U) and detailed status for Knet transport. Previously also FAULTY status was returned for UDP(U) and cfgtool used to return error code back to shell when one of the interfaces was faulty. Because FAULTY is now not returned, it's not needed to have code for handling it. Also man page was misleading, so it is fixed too. Signed-off-by:
Jan Friesse <jfriesse@redhat.com> Reviewed-by:
Christine Caulfield <ccaulfie@redhat.com>
-
- 03 Jul, 2019 1 commit
-
-
Jan Friesse authored
Previously node id was logged ether as a %d (most often), %u, %x or PRI.32 and ring id ether as %lld, %llx with various separators (., :, /) between rep nodeid and seq. This seems to cause confusion. This patch adds macros CS_PRI_NODE_ID, CS_PRI_RING_ID and CS_PRI_RING_ID_SEQ (CS prefix = corosync, PRI modeled in spirit of inttypes.h PRIx32) and makes code use them. Signed-off-by:
Jan Friesse <jfriesse@redhat.com> Reviewed-by:
Christine Caulfield <ccaulfie@redhat.com>
-
- 02 Jul, 2019 1 commit
-
-
Jan Friesse authored
Signed-off-by:Jan Friesse <jfriesse@redhat.com>
-