Commit Graph

900 Commits

Author SHA1 Message Date
Thomas Schoebel-Theuer
d403c9a656 marsadm: check and cache deleted peers 2022-02-19 11:38:52 +01:00
Thomas Schoebel-Theuer
eadb404021 marsadm: clarify keep_backups units as hours 2022-02-19 11:38:52 +01:00
Thomas Schoebel-Theuer
fa52091e95 marsadm: reset caches after purge 2022-02-19 11:38:52 +01:00
Thomas Schoebel-Theuer
de9b4afbce marsadm: reset caches after local unlink 2022-02-19 11:38:52 +01:00
Thomas Schoebel-Theuer
bebdbad3b3 marsadm: rename _purge_del_glob to _purge_dot_deleted 2022-02-19 11:38:52 +01:00
Thomas Schoebel-Theuer
ae87f7b8b0 marsadm: clarify existence vs .deleted 2022-02-19 11:38:51 +01:00
Thomas Schoebel-Theuer
36b17ac16b marsadm: improved warnings after view all 2022-02-19 11:38:51 +01:00
Thomas Schoebel-Theuer
e351142f00 marsadm: improved ping explanations 2022-02-19 11:38:51 +01:00
Thomas Schoebel-Theuer
47556d4317 marsadm: better warning for device fallback 2022-02-19 11:38:51 +01:00
Thomas Schoebel-Theuer
7597ffa6ca marsadm: fix syntax error report 2022-02-19 11:38:51 +01:00
Thomas Schoebel-Theuer
86952b7f07 marsadm: deprecate *-connect-pref-list and fix docs 2022-02-19 11:38:51 +01:00
Thomas Schoebel-Theuer
182f5d8e81 marsadm: new syntax {get,set}-global-sync-limit-value
... and just deprecate the old syntax.
2022-02-19 11:38:51 +01:00
Thomas Schoebel-Theuer
29469a6afd marsadm: heavy warnings when encountering reserved names 2022-02-19 11:38:51 +01:00
Thomas Schoebel-Theuer
065e9922c0 marsadm: prevent cluster-wide replication of illformed peer names 2022-02-19 11:38:51 +01:00
Thomas Schoebel-Theuer
8796a72d54 marsadm: ignore illformed peers for versioning checks 2022-02-19 11:38:51 +01:00
Thomas Schoebel-Theuer
91d0b3fd35 marsadm: prevent retrieval of illformed alivelinks 2022-02-19 11:38:51 +01:00
Thomas Schoebel-Theuer
65b39d5f16 marsadm: prevent alive checking of illformed peers
They should NEVER exist nor be alive ;)

Simply ignore them where possible.
2022-02-19 11:38:51 +01:00
Thomas Schoebel-Theuer
618caa3f47 marsadm: prevent systemd actions on ill-formed peers 2022-02-19 11:38:51 +01:00
Thomas Schoebel-Theuer
36968070cd marsadm: prevent treatment of ill-formed peers 2022-02-19 11:38:51 +01:00
Thomas Schoebel-Theuer
a7754cdc0c marsadm: fix corner case of guest activation 2022-02-19 11:38:51 +01:00
Thomas Schoebel-Theuer
c75c14ec90 marsadm: fix activate_guest 2022-02-19 11:38:51 +01:00
Thomas Schoebel-Theuer
8172f922e7 marsadm: improve warning on activation problems 2022-02-19 11:38:51 +01:00
Thomas Schoebel-Theuer
5dde37ab1e marsadm: warn on invalid peer names 2022-02-19 11:38:51 +01:00
Thomas Schoebel-Theuer
a63998909b marsadm: separate list of reserved names 2022-02-19 11:38:51 +01:00
Thomas Schoebel-Theuer
19d6562000 marsadm: treat reserved names more admin-friendly 2022-02-19 11:38:47 +01:00
Thomas Schoebel-Theuer
772f8ee3bb marsadm: fix forgotten dry_run in cron 2022-02-18 22:12:41 +01:00
Thomas Schoebel-Theuer
12578300c7 marsadm: also autoclean self-probe emergency diretories 2022-02-09 17:36:56 +01:00
Thomas Schoebel-Theuer
ddf65a5980 marsadm: also autoclean stone-aged directories 2022-02-09 17:36:53 +01:00
Thomas Schoebel-Theuer
f0f88b7258 marsadm: add cron --autoclean 2022-02-09 17:36:48 +01:00
Thomas Schoebel-Theuer
bc63996832 marsadm: fix globbing of backups 2022-02-02 10:28:32 +01:00
Thomas Schoebel-Theuer
e927654600 marsadm: new helper raw_glob 2022-02-02 10:28:32 +01:00
Thomas Schoebel-Theuer
028b4ab576 marsadm: fix outdated ill-informatiom 2022-02-02 10:28:31 +01:00
Thomas Schoebel-Theuer
026f49c205 marsadm: check for reserved names 2022-01-29 22:02:12 +01:00
Thomas Schoebel-Theuer
bea4b647fd marsadm: regex for checking reserved names 2022-01-29 22:02:12 +01:00
Thomas Schoebel-Theuer
55c500bc43 marsadm: warn on suspect cluster IP config 2021-10-20 13:19:47 +02:00
Thomas Schoebel-Theuer
5ffc57378c marsadm: fix unnecessary abort by swapping --force with other options 2021-10-20 12:59:18 +02:00
Thomas Schoebel-Theuer
706b003fef marsadm: fix race between invalidate and emergency 2021-06-22 11:07:53 +02:00
Thomas Schoebel-Theuer
7250c6c828 marsadm: fix annoying warning 2021-04-19 10:27:09 +02:00
Thomas Schoebel-Theuer
eb86a4e275 marsadm: silence warning on fresh resource directories 2021-04-19 10:27:09 +02:00
Thomas Schoebel-Theuer
6d2f5dbef2 marsadm: silence warning on deactivated systemd units 2021-04-19 10:27:09 +02:00
Thomas Schoebel-Theuer
b853a5843d marsadm: fix detection of compat deletions 2021-04-19 10:27:09 +02:00
Thomas Schoebel-Theuer
084d62d31a marsadm: fix typo 2021-04-19 10:27:09 +02:00
Thomas Schoebel-Theuer
31491f8624 marsadm: silence annoying warning at cron 2021-04-19 10:27:09 +02:00
Thomas Schoebel-Theuer
421995b3fb marsadm: first try /usr/bin/getent before DNS lookup 2021-02-06 15:22:24 +01:00
Thomas Schoebel-Theuer
1a63045f3e marsadm: use systemctl --job-mode=fail 2021-01-06 17:16:35 +01:00
Thomas Schoebel-Theuer
fe0b212ab6 marsadm: indirect daemon-reload.service 2021-01-06 17:16:17 +01:00
Thomas Schoebel-Theuer
d47b57122d marsadm: systemctl retry 2021-01-06 17:15:34 +01:00
Thomas Schoebel-Theuer
3528dde020 marsadm: silence annoying warning 2021-01-06 17:06:53 +01:00
Thomas Schoebel-Theuer
0c4f1eeb9f marsadm: add forgotten LOOP 2021-01-06 17:06:53 +01:00
Thomas Schoebel-Theuer
34061f9d59 marsadm: purge any left-over generator remains 2021-01-06 17:06:53 +01:00
Thomas Schoebel-Theuer
b70f579da5 marsadm: fix typo in activate_resource 2021-01-06 17:06:53 +01:00
Thomas Schoebel-Theuer
b26576bfa8 marsadm: speedup template file reading 2021-01-06 17:06:53 +01:00
Thomas Schoebel-Theuer
34336089d8 marsadm: fix help in the presence of keywords 2021-01-06 17:06:53 +01:00
Thomas Schoebel-Theuer
aaba8f5063 marsadm: automatic local systemd-trigger 2021-01-06 17:06:53 +01:00
Thomas Schoebel-Theuer
f223c703c8 marsadm: less template generation 2021-01-06 17:06:53 +01:00
Thomas Schoebel-Theuer
07f7f8a9db marsadm: separate global from per-resource 2021-01-06 17:06:53 +01:00
Thomas Schoebel-Theuer
4179d66d74 marsadm: remove systemd locking 2021-01-06 17:06:53 +01:00
Thomas Schoebel-Theuer
600c02322f marsadm: per-resource template generation 2021-01-06 17:06:53 +01:00
Thomas Schoebel-Theuer
18ccce69cd marsadm: more debugging msg 2021-01-06 17:06:53 +01:00
Thomas Schoebel-Theuer
ad7f81bc42 marsadm: better name systemd_unit_enabled 2021-01-06 17:06:53 +01:00
Thomas Schoebel-Theuer
a766d93864 marsadm: faster mtime check 2021-01-06 17:06:53 +01:00
Thomas Schoebel-Theuer
e9c9f525e0 marsadm: lockless atomic template generation 2021-01-06 17:06:53 +01:00
Thomas Schoebel-Theuer
ebae3fb7c3 marsadm: timeout any hanging systemctl processes 2021-01-06 17:06:53 +01:00
Thomas Schoebel-Theuer
2661f8ab94 marsadm: speedup transitive template generation 2021-01-06 17:06:53 +01:00
Thomas Schoebel-Theuer
63b5a195f5 marsadm: primary separate trigger phase 2021-01-06 17:06:53 +01:00
Thomas Schoebel-Theuer
0ed1325dd8 marsadm: split delete-resource into phases 2021-01-06 17:06:53 +01:00
Thomas Schoebel-Theuer
32c703f59b marsadm: leave-resource separate systemd-trigger 2021-01-06 17:06:53 +01:00
Thomas Schoebel-Theuer
4d8d79881c marsadm: split set-systemd-want into phases 2021-01-06 17:06:53 +01:00
Thomas Schoebel-Theuer
ff1a89bc1b marsadm: split set-systemd-unit into phases 2021-01-06 17:06:53 +01:00
Thomas Schoebel-Theuer
0c3e7682ba marsadm: automatic systemd parallelization 2021-01-06 17:06:53 +01:00
Thomas Schoebel-Theuer
3907caf08b marsadm: shortcut set-systemd-want 2021-01-06 17:06:53 +01:00
Thomas Schoebel-Theuer
ee9e355600 marsadm: avoid exhaustive template search 2021-01-06 17:06:53 +01:00
Thomas Schoebel-Theuer
f5435ee5ce marsadm: less speaky template generation 2021-01-06 17:06:53 +01:00
Thomas Schoebel-Theuer
fcad02e977 marsadm: skip predefined units 2021-01-06 17:06:53 +01:00
Thomas Schoebel-Theuer
bd2622e484 marsadm: parallelize systemctl start/stop 2021-01-06 17:06:53 +01:00
Thomas Schoebel-Theuer
76f39927d3 marsadm: force template generation upon resource changes 2021-01-06 17:06:53 +01:00
Thomas Schoebel-Theuer
cceaa3a5f4 marsadm: less speaky actions 2021-01-06 17:06:53 +01:00
Thomas Schoebel-Theuer
7107e060ac marsadm: remove disturbing is_systemd_generate_necessary 2021-01-06 17:06:53 +01:00
Thomas Schoebel-Theuer
4180741c92 marsadm: skip template instantiation on mtime check 2021-01-06 17:06:53 +01:00
Thomas Schoebel-Theuer
e5602bf4f0 marsadm: factor out _get_file 2021-01-06 17:06:53 +01:00
Thomas Schoebel-Theuer
f042972ee5 marsadm: split systemd unit and script directories 2021-01-06 17:06:53 +01:00
Thomas Schoebel-Theuer
11976c261b marsadm: set-systemd-unit DEFAULT markers etc 2021-01-06 17:06:52 +01:00
Thomas Schoebel-Theuer
c1738680cd marsadm: fix get-systemd-unit empty string 2021-01-06 17:06:52 +01:00
Thomas Schoebel-Theuer
b390bd7079 marsadm: skip systemd-trigger when called by cm3 & co
Stay away, avoid infinite recursion etc.
2021-01-06 17:06:52 +01:00
Thomas Schoebel-Theuer
ecca5f51cb marsadm: allow directly executable .script templates 2021-01-06 17:06:42 +01:00
Thomas Schoebel-Theuer
f03ae66c52 marsadm: removed deprecated template fingerprinting 2020-12-22 09:43:08 +01:00
Thomas Schoebel-Theuer
9228bb7e36 marsadm: add header to generated systemd units 2020-12-22 09:43:08 +01:00
Thomas Schoebel-Theuer
fd83afcb46 marsadm: move filename substitution code 2020-12-22 09:43:08 +01:00
Thomas Schoebel-Theuer
1aec029792 marsadm: dynamic programming on template instantiation 2020-12-22 09:43:08 +01:00
Thomas Schoebel-Theuer
8846b48f74 marsadm: rework template activation 2020-12-22 09:43:08 +01:00
Thomas Schoebel-Theuer
8de93db03a marsadm: remove deprecated want_host_path 2020-12-22 09:43:08 +01:00
Thomas Schoebel-Theuer
3fa0421365 marsadm: fix race on system lock breaks 2020-12-22 09:43:08 +01:00
Thomas Schoebel-Theuer
c27441325d marsadm: new option --systemd-enable 2020-12-22 09:43:08 +01:00
Thomas Schoebel-Theuer
924abf9f42 marsadm: factor out systemd reporting 2020-12-22 09:43:08 +01:00
Thomas Schoebel-Theuer
601f378cd7 marsadm: workaround unimplemented AT_SYMLINK_NOFOLLOW and undef at utime() 2020-12-22 09:43:08 +01:00
Thomas Schoebel-Theuer
136dcae0ba marsadm: safeguard return at resize 2020-12-22 09:43:08 +01:00
Thomas Schoebel-Theuer
bcfcf25a31 marsadm: safeguard return at invalidate 2020-12-22 09:43:08 +01:00
Thomas Schoebel-Theuer
22269a19bd marsadm: safeguard return at primary 2020-12-22 09:43:08 +01:00
Thomas Schoebel-Theuer
7a18d1ab9e marsadm: safeguard return at fake-sync 2020-12-22 09:43:08 +01:00
Thomas Schoebel-Theuer
0afde44073 marsadm: safeguard return at up 2020-12-22 09:43:08 +01:00