- 01 Oct, 2021 2 commits
-
-
Ferenc Wágner authored
-
Ferenc Wágner authored
This reverts commit e710e1f5. dh_installsystemd apparently does not find the service files under /usr/lib, and consequently does not insert the maintainer script snippets necessary to start the services on installation (for example).
-
- 30 Sep, 2021 7 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
Update to upstream version '3.1.5' with Debian dir c04c11deae4a91095678c568430f72e60f7b7262
-
Ferenc Wágner authored
-
- 04 Aug, 2021 2 commits
-
-
Jan Friesse authored
Knet limits maximum node id to 16-bit type. This was not ensured in corosync and it was possible to set nodeid to value >= 65536 and (surprisingly) most of the things were working quite well because of overflow. corosync-cmapctl -m stats contained knet nodeid in stats.knet. subtree, so for nodeid 65536 result was: Can't get value of stats.knet.node0.link0.connected. Error CS_ERR_NOT_EXIST Commit implements checking of nodeid and limits it to KNET_MAX_HOST value when knet is used. Signed-off-by:
Jan Friesse <jfriesse@redhat.com> Reviewed-by:
Christine Caulfield <ccaulfie@redhat.com>
-
Jan Friesse authored
Nodeid is required for knet for every node. Right now, existence of nodeid is checked only for local for local node, so broaden the test. Signed-off-by:
Jan Friesse <jfriesse@redhat.com> Reviewed-by:
Christine Caulfield <ccaulfie@redhat.com>
-
- 02 Aug, 2021 6 commits
-
-
Jan Friesse authored
Signed-off-by:
Jan Friesse <jfriesse@redhat.com> Reviewed-by:
Christine Caulfield <ccaulfie@redhat.com>
-
Jan Friesse authored
Show 'n' also for first localhost link, so all localhost links are marked consistently with non-brief display. Signed-off-by:
Jan Friesse <jfriesse@redhat.com> Reviewed-by:
Christine Caulfield <ccaulfie@redhat.com>
-
Jan Friesse authored
Needed for having correct index of localhost Signed-off-by:
Jan Friesse <jfriesse@redhat.com> Reviewed-by:
Christine Caulfield <ccaulfie@redhat.com>
-
Jan Friesse authored
Signed-off-by:
Jan Friesse <jfriesse@redhat.com> Reviewed-by:
Christine Caulfield <ccaulfie@redhat.com>
-
Jan Friesse authored
Signed-off-by:
Jan Friesse <jfriesse@redhat.com> Reviewed-by:
Christine Caulfield <ccaulfie@redhat.com>
-
Jan Friesse authored
totem.nodeid is relict from times when nodelist was not required and totemsrp was sending whole membership with ip addresses. With Corosync 3 ip addresses are no longer sent so it is not possible to find "next" node ip address where to send token (because only nodeid is sent) without having information about all of the nodes stored locally. When totem.nodeid was configured it was partly used and other parts (most notably totemudpu_token_target_set) were using autogenerated nodeid. Together it was not possible to create even single node membership. Solution is to ignore totem.nodeid completely (and display warning when it is set). Signed-off-by:
Jan Friesse <jfriesse@redhat.com> Reviewed-by:
Christine Caulfield <ccaulfie@redhat.com>
-
- 29 Jul, 2021 1 commit
-
-
Christine Caulfield authored
Currently if there is a gap in the links (eg link0 is missing) corosync-cfgtool -s will still display the links as 0,1,2,3... even if they are 1,2,5,6... Also display the KNET transport type with the link in corosync-cfgtool -s & -n Signed-off-by:
Christine Caulfield <ccaulfie@redhat.com> Reviewed-by:
Jan Friesse <jfriesse@redhat.com>
-
- 23 Jul, 2021 1 commit
-
-
Jan Friesse authored
Support for cgroup v2 is very similar to cgroup v1 just checking (and writing) different file. Because of all the problems described later with cgroup v2 new "auto" mode (new default) is added. This mode first tries to set rr scheduling and moves Corosync to root cgroup only if it fails. Testing this feature is a bit harder than with cgroup v1 so it's probably worh noting in this commit message. 1. Copy some service file (I've used httpd service) and set CPUQuota=30% in the [service] section. 2. Check /sys/fs/cgroup/cgroup.subtree_control - there should be no "cpu" 3. Start modified service 4. Check /sys/fs/cgroup/cgroup.subtree_control - there should be "cpu" 5. Start corosync - It should be able to get rt priority When move_to_root_cgroup is disabled (applies only for kernels with CONFIG_RT_GROUP_SCHED enabled), behavior differs: - If corosync is started before modified service, so there is no "cpu" in /sys/fs/cgroup/cgroup.subtree_control corosync starts without problem and gets rt priority. Starting modified service later will never add "cpu" into /sys/fs/cgroup/cgroup.subtree_control (because corosync is holding rt priority and it is placed in the non-root cgroup by systemd). - When corosync is started after modified service, so "cpu" is in /sys/fs/cgroup/cgroup.subtree_control, corosync is not able to get RT priority. It's worth noting problems when cgroup v2 is used together with systemd logging described in corosync.conf(5) man page. Signed-off-by:
Jan Friesse <jfriesse@redhat.com> Reviewed-by:
Christine Caulfield <ccaulfie@redhat.com>
-
- 05 Jul, 2021 2 commits
-
-
Ferenc Wágner authored
-
Ferenc Wágner authored
Cherry-picked from v3.1.4. Thanks: Christine Caulfield
-
- 03 Jun, 2021 1 commit
-
-
Christine Caulfield authored
The libqb map API leaves 'ownership' of the data with the caller but does its own lifetime management, so it can easily happen that map_rm() is called and the data deleted by the caller. But if an iterator is running over that item then the map entry will not get removed (leaving dangling pointers) until later. libqb has a hack-y callback that tells the owner when it is safe to delete the allocated memory, so we hook into that. icmap is already using this. Signed-off-by:
Christine Caulfield <ccaulfie@redhat.com> Reviewed-by:
Jan Friesse <jfriesse@redhat.com>
-
- 02 Jun, 2021 1 commit
-
-
Jan Friesse authored
Internally knet is using just one link for localhost so for single node configuration knet_link_get_link_list returns only one entry. This is propagated to `corosync-cfgtool -s`. Signed-off-by:
Jan Friesse <jfriesse@redhat.com> Reviewed-by:
Christine Caulfield <ccaulfie@redhat.com>
-
- 21 May, 2021 2 commits
-
-
Jan Friesse authored
This reverts commit 57e6b86b . We are in process of finding better solution so reverting for now. Signed-off-by:
Jan Friesse <jfriesse@redhat.com>
-
Jan Friesse authored
This reverts commit 9d3df569 . We are in process of finding better solution so reverting for now. Signed-off-by:
Jan Friesse <jfriesse@redhat.com>
-
- 19 May, 2021 2 commits
-
-
Jan Friesse authored
Signed-off-by:
Jan Friesse <jfriesse@redhat.com> Reviewed-by:
Christine Caulfield <ccaulfie@redhat.com>
-
Jan Friesse authored
corosync_cfg_trackstop expects reply but that was never sent. Make sure to send reply so corosync_cfg_trackstop works. Signed-off-by:
Jan Friesse <jfriesse@redhat.com> Reviewed-by:
Christine Caulfield <ccaulfie@redhat.com>
-
- 10 May, 2021 1 commit
-
-
Jan Friesse authored
Support for cgroup v2 is very similar to cgroup v1 just checking (and writing) different file. Testing this feature is a bit harder than with cgroup v1 so it's probably worh noting in this commit message. 1. Copy some service file (I've used httpd service) and set CPUQuota=30% in the [service] section. 2. Check /sys/fs/cgroup/cgroup.subtree_control - there should be no "cpu" 3. Start modified service 4. Check /sys/fs/cgroup/cgroup.subtree_control - there should be "cpu" 5. Start corosync - It should be able to get rt priority When move_to_root_cgroup is disabled, behavior differs: - If corosync is started before modified service, so there is no "cpu" in /sys/fs/cgroup/cgroup.subtree_control corosync starts without problem and gets rt priority. Starting modified service later will never add "cpu" into /sys/fs/cgroup/cgroup.subtree_control (because corosync is holding rt priority and it is placed in the non-root cgroup by systemd). - When corosync is started after modified service, so "cpu" is in /sys/fs/cgroup/cgroup.subtree_control, corosync is not able to get RT priority. Signed-off-by:
Jan Friesse <jfriesse@redhat.com> Reviewed-by:
Christine Caulfield <ccaulfie@redhat.com>
-
- 14 Apr, 2021 3 commits
-
-
Jan Friesse authored
... to be in align with crypto_cypher and crypto_hash. Reload (corosync-cfgtool -R) works without any problem and changing of key is not supported anyway, Signed-off-by:
Jan Friesse <jfriesse@redhat.com> Reviewed-by:
Christine Caulfield <ccaulfie@redhat.com>
-
Jan Friesse authored
Signed-off-by:
Jan Friesse <jfriesse@redhat.com> Reviewed-by:
Christine Caulfield <ccaulfie@redhat.com>
-
Jan Friesse authored
Use knet_get_crypto_list to find knet supported crypto models and use them instead of hardcoded list. Also fix compression handling. Previously knet_compression_model value was not checked at all and was directly passed to knet. Use knet_get_compress_list to find knet supported compress models and use them to check validity of config file and for more informative error message. Lastly enhance corosync version display with information about available crypto/compression models. Signed-off-by:
Jan Friesse <jfriesse@redhat.com> Reviewed-by:
Christine Caulfield <ccaulfie@redhat.com>
-
- 07 Apr, 2021 5 commits
-
-
Ferenc Wágner authored
Apostrophe as the first character of the input line indicates a request, so groff complained: macro 'onwire'' not defined. Signed-off-by:
Ferenc Wágner <wferi@debian.org>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
-
Ferenc Wágner authored
-
Ferenc Wágner authored
-
Ferenc Wágner authored
Update to upstream version '3.1.2' with Debian dir e06905545c6482f04bb0b97d459039f2ef135c3e
-
Ferenc Wágner authored
-
- 06 Apr, 2021 1 commit
-
-
Fabio M. Di Nitto authored
totemknet_configure_compression was using knet_context just to gather the knet handle / instance. On first time config knet_contex is not initialized till much later in the code, passing some random garbage pointers to knet_handle_compress, that would crash later trying to acquire a mutex lock. Signed-off-by:
Fabio M. Di Nitto <fdinitto@redhat.com> Reviewed-by:
Jan Friesse <jfriesse@redhat.com>
-
- 03 Apr, 2021 3 commits
-
-
Ferenc Wágner authored
-
Ferenc Wágner authored
-
Ferenc Wágner authored
Thanks: Fabio M. Di Nitto Closes: #986325
-