Digimer
33b4516dea
Fix a variable quoting bug in Database->locking().
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
4528f07508
* Fixed a bug where fence-handler was repeatedly added by scan-drbd.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
02e371ac56
Updated virsh OS list.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
7504978af7
Increased the size change detection wait to to reduce the risk of premature addition to the DB if there's a network hiccup.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
f6cbe7d1d2
* Fixed a bug in System->collect_ipmi_data() where double-quoted passwords were preventing reading of the sensor data.
...
* Added a new table to the main SQL schema to allow for more dynamic tracking of which Anvil! node pairs can use which DR hosts.
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
4fa8d7a446
* This completes the rework of DRBD triggered fencing to use / clear location constraints instead of triggering a power fence.
...
* Added the new unfence_pacemaker DRBD unfence handler.
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
4ba1982183
This is the start of a set of changes needed to rework how we handle DRBD fence requests, so that they create location constraints instead of triggering a full stonith fence.
...
* In Cluster->parse_cib(), added parsers for node attributes and resource rules. Also stored the existence of and details of each under the server resources for easier referencing.
* Updated scan-server to check for / add DRBD fence rules as needed.
Scancore APC agent bugs;
* For clarity, converted all '#!no_value!#' and '#!no_connection!#' to use '!!' instead in APC scan agents.
* Fixed a bug to set/clear alerts related to phases disappearing to deal with concurrent logins from different hosts triggering false phase loss alerts.
* Fixed missing variables not being passed to alerts/log entries.
Started more work on anvil-manage-server, but on hold again while the DRBD fencing work is completed.
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
5d323c3ddf
Merge pull request #257 from ClusterLabs/anvil-tools-dev
...
Formatted the output of anvil-manage-alerts data (not yet machines) t…
2 years ago
Digimer
ee3bc3eb10
Updated the man page for anvil-manage-alerts.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
6eb99a2168
* FInished the anvil-manage-alerts tool. It can now send test alerts at a user-requested alert level.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
8b7a44cf75
* Finished cleaning up the output of Machines.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
3e53c87a6b
Formatted the output of anvil-manage-alerts data (not yet machines) to be more presentable.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
90c7865012
Merge pull request #256 from ClusterLabs/anvil-tools-dev
...
* Renamed the 'notifications' table to 'alert-override', better refle…
2 years ago
Digimer
622fb84652
* Renamed the 'notifications' table to 'alert-override', better reflecting what it does.
...
* Got anvil-manage-alerts managing alert overrides.
* Created, but for now commented out, the new 'audit' table.
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
753ea7518f
Merge pull request #255 from ClusterLabs/anvil-tools-dev
...
* Updated System->check_ram_use() to set the maximum RAM based on the…
2 years ago
Digimer
586ce6e5b9
* Got recipints working in anvil-manage-alerts().
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
35cf0c37fb
* Updated System->check_ram_use() to set the maximum RAM based on the host type, and set those values in _set_default() so that the user can override if they want.
...
* Got anvil-manage-alerts to the point where you can add, edit and delete mail servers.
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
8bfab0d0ac
Merge pull request #252 from ylei-tsubame/install-striker-access-db
...
Build: add striker-access-db to tools/Makefile.am
2 years ago
Digimer
1fba964a24
Merge branch 'main' into install-striker-access-db
2 years ago
Digimer
c65764a2a5
Merge pull request #253 from ClusterLabs/anvil-tools-dev
...
Anvil tools dev
2 years ago
Digimer
a6cd5c6604
* Starting work in the new anvil-manage-alerts, which will (when done), allow for management of mail servers, alert recipients, notification over-rides and to trigger test alerts.
...
* Updated Database->get_recipients() to record recipients by name for better sorting.
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Tsu-ba-me
0e2f119fef
build(tools): add striker-access-db to tools/Makefile.am
2 years ago
Digimer
76f95d8e53
* Added a check to ignore IPMI sensors reporting "No Reading" in scan-ipmitool.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
7c0b0edc68
Merge pull request #251 from ClusterLabs/anvil-tools-dev
...
* Fixed a bug where deleting ports from a fence device in an Install …
2 years ago
Digimer
bde0b2e7ec
* Fixed a bug where deleting ports from a fence device in an Install Manifest would not cause the fence methods to be removed from the associated cluster.
...
* Created Get->anvil_from_switch and Get->server_from_switch() (both need testing) that takes a string that could be either a name or UUID, figures out which it is, finds the entry in the DB and started the X_uuid and X_name switch variables.
* Started work on a second attempt at anvil-manage-server.
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
9556915cac
Merge pull request #250 from ClusterLabs/anvil-tools-dev
...
* Updated Get->switches() to always support job-uuid.
2 years ago
Digimer
9239961044
Merge branch 'main' into anvil-tools-dev
2 years ago
Digimer
93427a7a38
* Updated Get->switches() to always support job-uuid.
...
* Updated striker-initialize-host to support calls from command line switches, and wrote the man page for it.
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
digimer-bot
f6b23de2eb
Merge pull request #249 from ClusterLabs/anvil-tools-dev
...
* Added variables to record when pacemaker and DRBD are configured.
2 years ago
Digimer
c23c79cdf0
Added 'system::all::configured' to anvil-join-anvil to mark an explicit end of config.
...
Started updating striker-initialize-host to handle the new anvil repo config.
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
596855405f
* Added variables to record when pacemaker and DRBD are configured.
...
* Added verify-alg to DRBD configs.
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
digimer-bot
14be224855
Merge pull request #248 from ClusterLabs/anvil-tools-dev
...
Bumped 'Exhaust Temp' jump threshold to 30c in scan-ipmitool.
2 years ago
Digimer
6721fd94e1
Merge branch 'main' into anvil-tools-dev
2 years ago
Digimer
13b0f5bdcc
Bumped 'Exhaust Temp' jump threshold to 30c in scan-ipmitool.
...
Adjusted some logging.
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
ba3e4424d1
Merge pull request #247 from ClusterLabs/anvil-tools-dev
...
* Fixed a bug in DRBD->gather_data() to remove trailing commas for ex…
2 years ago
Digimer
03f0cdad84
Updated anvil-manage-files to only remove files from /mnt/shared/files
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
a4ef93404c
* Fixed a bug in DRBD->gather_data() to remove trailing commas for existing TCP ports.
...
* Added the missing 'clear-mapping' switch to Get->switches in anvil-daemon.
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
3ca8aa45b2
Merge pull request #246 from ClusterLabs/anvil-tools-dev
...
* Fixed a bug in anvil-configure-host where if the same MAC address w…
2 years ago
Digimer
3b721b849c
* Fixed a bug in anvil-configure-host where if the same MAC address was assigned to two interfaces, it would cause an endless reboot loop.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
digimer-bot
66bc212b6a
Merge pull request #245 from ClusterLabs/anvil-tools-dev
...
Fixed a bug where scan-server faulted with a divide by zero error whe…
2 years ago
Digimer
ac8135709a
Fixed a bug where scan-server faulted with a divide by zero error when the host had no swap.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
a7c2ab144a
Merge pull request #244 from ClusterLabs/anvil-tools-dev
...
Anvil tools dev
2 years ago
Digimer
db85ca663e
Merge branch 'main' into anvil-tools-dev
2 years ago
Digimer
599373816f
* Fixed bugs that came up in testing. Was now able to setup long-throw DR!
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
2fab7bc1b7
This adds support (testing needed) for "Long-Throw" DR; which is a wrapper for using 'drbd-proxy' to provide larger transmit buffers so slow/high-latency DR hosts.
...
* Created DRBD->check_proxy_license() to do (some level of) sanity checks on the DRBD proxy license file.
* Updated DRBD->gather_data() to parse out the inside and outside ports for resource configs using proxy.
* Reworked DRBD->get_next_resource() to return 1, 3 or 7 TCP ports depending, with the new long_throw_ports parameter triggering the 7 ports.
* Added 'tcpdump' to the anvil-core requires list.
* Reworked scan-drbd to record the ports used in proxy configs. This required adding a check to change the 'scan_drbd_peer_tcp_port' column type to 'text' to support CSVs.
* Reworked anvil-manage-dr (needs testing!) to support "long-throw" DR configs.
* Updated anvil-safe-stop to check if the nodes are in the cluster before trying to migrate.
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
kronosnet CI bot
6732df403b
Merge pull request #243 from ClusterLabs/fix-rhel9-db
...
spec: update Requires to deal with rhel-9 cloud images
2 years ago
Fabio M. Di Nitto
c683ef84f6
spec: update Requires to deal with rhel-9 cloud images
...
Signed-off-by: Fabio M. Di Nitto <fabbione@fabbione.net>
2 years ago
Digimer
c8ee75420d
* Updated anvil-manage-dr to check if a server is protected before processing a --connect or --disconnect request. Also made it smarter if an attempt to connect a resource fails.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
83e577d057
Merge pull request #242 from ClusterLabs/anvil-tools-dev
...
* Updated Cluster->parse_crm_mon() to record the role of stonith reso…
2 years ago
Digimer
e90dae96f7
* In Server->shutdown_virsh(), disabled trying to resume a paused VM. Also updated the logging around not waiting for a VM to stop.
...
* Updated anvil-safe-stop to check for VMs running, even if the cluster is stopped, when --stop-servers is used.
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago