Tsu-ba-me
bb02d556d4
fix(tools): add output file id switch to anvil-get-server-screenshot
2022-11-28 14:37:18 -05:00
Tsu-ba-me
e5fc75f306
fix(tools): fetch and send server screenshot from node to striker that made the request
2022-11-28 14:37:18 -05:00
Tsu-ba-me
e14b1fc93e
fix(tools): use absolute paths in anvil-get-server-screenshot
2022-11-28 14:37:18 -05:00
Tsu-ba-me
4b03be4bc3
fix(tools): restrict get server screenshot output to stdout
2022-11-28 14:37:18 -05:00
Tsu-ba-me
2c1f400222
fix(tools): avoid using undef resize args when getting server screenshot
2022-11-28 14:37:18 -05:00
Tsu-ba-me
7b14433588
fix(tools): always convert server screenshot to PNG
2022-11-28 14:37:18 -05:00
Tsu-ba-me
374f88acb7
fix(tools): use --quiet when getting server screenshot
2022-11-28 14:37:18 -05:00
Tsu-ba-me
a7a2cc70d7
fix(tools): striker-access-database->anvil->access->module; execute any sub on any module
2022-11-28 14:37:17 -05:00
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>
2022-11-22 01:10:53 -05:00
Digimer
8b7a44cf75
* Finished cleaning up the output of Machines.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-11-22 00:19:00 -05:00
Digimer
3e53c87a6b
Formatted the output of anvil-manage-alerts data (not yet machines) to be more presentable.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-11-17 23:28:50 -05:00
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>
2022-11-17 00:34:52 -05:00
Digimer
586ce6e5b9
* Got recipints working in anvil-manage-alerts().
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-11-15 22:17:12 -05:00
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>
2022-11-14 17:17:30 -05:00
Digimer
1fba964a24
Merge branch 'main' into install-striker-access-db
2022-10-28 22:36:41 -04:00
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>
2022-10-28 20:00:53 -04:00
Tsu-ba-me
0e2f119fef
build(tools): add striker-access-db to tools/Makefile.am
2022-10-24 16:32:49 -04:00
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>
2022-10-20 22:33:41 -04:00
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>
2022-10-18 19:16:32 -04:00
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>
2022-10-18 10:56:58 -04:00
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>
2022-10-17 21:57:00 -04:00
Digimer
13b0f5bdcc
Bumped 'Exhaust Temp' jump threshold to 30c in scan-ipmitool.
...
Adjusted some logging.
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-10-08 20:34:09 -04:00
Digimer
03f0cdad84
Updated anvil-manage-files to only remove files from /mnt/shared/files
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-10-05 20:56:57 -04:00
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>
2022-10-05 20:15:32 -04:00
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>
2022-09-28 19:20:23 -04:00
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>
2022-09-27 00:40:30 -04:00
Digimer
599373816f
* Fixed bugs that came up in testing. Was now able to setup long-throw DR!
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-09-22 16:40:40 -04:00
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>
2022-09-21 23:35:06 -04:00
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>
2022-09-01 16:09:37 -04:00
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>
2022-08-31 18:12:07 -04:00
Digimer
99a6593fe6
* Fixed a bug when connecting to databases when one DB has no variable entries, making it seem like a DB was disabled.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-08-25 21:43:21 -04:00
Digimer
9675ebf986
* Added --remove support to anvil-manage-dr, completing all the features for this tool.
...
* Updated DRBD.pm to move the logic to wipe and delete an LV into a new method called 'remove_backing_lv'.
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-08-24 22:08:48 -04:00
Digimer
93e6a59841
* Added 'vnc-server' to the list of firewall services enabled on strikers.
...
* Created the anvil-manage-dr man page.
* Reworked anvil-manage-dr's --protect logic to search for which network works with the DR host, instead of assuming it's the SN.
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-08-22 13:38:46 -04:00
Digimer
29a28ee97a
* Fixed a bug with anvil-provision-server where running the command line menu from a Striker would not assign the job to the target Anvil!.
...
* Updated Server->parse_definition() to check if a failed 'virsh list' output was passed in. Also changed it to not exit if the XML can't be parsed.
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-08-16 19:01:36 -04:00
Digimer
cbb441759e
* Fixed a couple bugs in anvil-manage-files where a file moved from incoming to files or definitions wasn't having the directory updated properly in the database. Also made an explicit check when looking for missing files to check to see if the file exists in another managed directory and, if so and if a striker, update the DB.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-08-15 23:27:40 -04:00
Digimer
7b1771e498
Updated anvil-provision-server to wait until the local machine is a full cluster member before proceeding.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-08-15 13:59:35 -04:00
Digimer
4ecc6097d3
* Cleaned up some old 'die' calls with better nice_exit() calls to help avoid dangling db_in_use flags.
...
* Reworked Network->bridge_info() to use 'ip' to get the list of bridges, and 'bridge' to find interfaces connected to the bridge.
* Added 'test' messages to Words->string().
* Fixed a bug in scan-lvm where mdadm based PVs didn't read the sector size properly.
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-08-12 16:32:20 -04:00
Digimer
ef3ac86162
* Fixed a bug where setting the db_in_use flag without a valid $ENV{_}.
...
* Added a nice_exit call to tools/striker-access-database
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-08-09 15:45:10 -04:00
Digimer
21738ab0d4
Added a bit more logging to the Database->mark_active method.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-08-09 01:02:59 -04:00
Digimer
a81478f2bc
* Updated 'db_in_use' state to add the caller's name to the state name. This is pulled out when logging stale locks that are being reaped, to help debug where stale locks are coming from.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-08-09 00:29:03 -04:00
Digimer
e7cf8ac789
* Got more work done on anvil-manage-files. It now picks up new files on nodes/dr hosts in an Anvil! and downloads them if needed.
...
* Updated anvil-daemon to call anvil-manage-files on a per-minute basis to handle files added outside of the WebUI.
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-08-09 00:08:19 -04:00
Digimer
be84a23924
* There were still references in anvil-manage-files to 'file_locations' -> 'file_location_host_uuid'. Had to rework some logic to get things working. More testing needed, but so far at least the "missing file" function is working again.
...
* Added missing always-available switchs in Get->switches
* Create Storage->_wait_if_changing() to check to see if a file's size is changing and, if so, not return until it stops.
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-08-08 21:31:56 -04:00
Digimer
15aadc3a4e
* Updated scan-network to check for inactive or activating interfaces and manually bring them up, if the uptime is less than 10 minutes.
...
* Fixed a bug in scancore-agents/Makefile.am where scan-network was missing.
* Started work on anvil-delete-server.8. Incomplete at this time.
* Updated Network->get_ips() to record the interface status.
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-08-03 23:38:56 -04:00
Digimer
55dd28e7f1
* Added the anvil-configure-host man page.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-08-02 22:38:04 -04:00
Digimer
7eff8f0801
* Added the man page for anvil-check-memory
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-08-02 20:26:54 -04:00
Digimer
5fea8ff46a
* Adds the anvil-boot-server man page.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-08-02 19:09:57 -04:00
Digimer
d8f31d9d84
* Added the anvil-boot-server man page.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-08-02 17:25:28 -04:00
Digimer
b3b185a43c
* Added the alteeve-repo-setup man page and updated it to show that when called with '-h'.
...
* Updated scancore to use the new Get->switches() list parameter.
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-08-02 14:31:46 -04:00
Digimer
d9910fc951
Finished the man page for anvil-daemon.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-07-29 17:43:53 -04:00
Digimer
be612ff878
* Updated Get->switches() to take 'list' and 'man' parameters. With list, the passed in switches can be checked to ensure they're valid. With 'man', if set to the name of a man page (usually $THIS_FILE) will be displayed if --help, -h or -? are used.
...
* Disabled striker-parse-oui until it can be reworked to store the the OUI data in a flat file instead of in the database.
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-07-29 16:56:40 -04:00