digimer
0318b4bbe9
* Fixed (the very incomplete) anvil-manage-firewall so that it would clear a job, if a job was assigned to it.
...
Signed-off-by: digimer <digimer@gravitar.alteeve.com>
2 years ago
digimer
ff69916a85
* Applied typo fixed from PR #286 (thanks, Deezzir!). Also moved all the raw prints into words.xml.
...
* Updated Convert->human_readable_to_bytes() to return an empty string if passed an empty string.
Signed-off-by: digimer <digimer@gravitar.alteeve.com>
2 years ago
digimer
64bb5ab8e1
* Updated striker to only complain about unconfigured networks on nodes, not DR hosts.
...
* Updated anvil-configure-host to ignore gracefully unconfigured networks.
Signed-off-by: digimer <digimer@gravitar.alteeve.com>
2 years ago
digimer
b8b4352117
* Added support for Migration Network configs in old striker and anvil-configure-host
...
Signed-off-by: digimer <digimer@gravitar.alteeve.com>
2 years ago
digimer
a3988cc3e5
* Added System->configure_logind() to ensure that nodes are configured to ignore ACPI power button events so that IPMI-based fences work immediately.
...
* Added call to System->configure_logind() to anvil-join-anvil and anvil-version-changes.
* Updated fence_pacemaker to add '--reboot' to the 'stonith_admin' call to ensure DRBD-triggered fence requests reboot instead of just turning nodes off.
This commit address issue #279 .
Signed-off-by: digimer <digimer@gravitar.alteeve.com>
2 years ago
digimer
dfa93a1837
* Added 'setsid' to all 'virsh' calls as nested calls (ie: crm_resource -> ocf:alteeve:server -> virsh) would fail because virsh couldn't connect to a terminal. See:
...
** https://serverfault.com/questions/1105733/virsh-command-hangs-when-script-runs-in-the-background
* Added explicity setting of $ENV{PATH} when it's null (as it is when pacemaker calls our tools).
* Updated the copyright to 2023.
Signed-off-by: digimer <digimer@gravitar.alteeve.com>
2 years ago
digimer
192cee090b
* Removed an unused code block.
...
Signed-off-by: digimer <digimer@gravitar.alteeve.com>
2 years ago
digimer
b666caec64
* Updated anvil-provision-server to handle startup when the peer doesn't create/connect it's DRBD resource (ie: node is offline).
...
Signed-off-by: digimer <digimer@gravitar.alteeve.com>
2 years ago
digimer
a5cee52153
* Fixed a bug in DRBD->get_devices() where old test host UUIDs were left hard-coded.
...
* Fixed a duplicate header in words.xml
* Fixed display bugs in anvil-report-usage and removed the old DR host display info.
Signed-off-by: digimer <digimer@gravitar.alteeve.com>
2 years ago
digimer
65a483273e
* Updated anvil-version-changes to connect to the database with 'sensitive' so that the connection is unlikely to fail if schema changes are needed for normal operation.
...
Signed-off-by: digimer <digimer@gravitar.alteeve.com>
2 years ago
Digimer
4d5dd8c6fa
* Finished adding support for manually selecting a network with --network in anvil-provision-server.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
6d59399c73
* Updated the short OS list.
...
* Created Get->virsh_list_net() and Get->virsh_list_os() that call and parse osinfo-query directly to create lists of supported network interfaces and OS optimization options used when provisioning VMs. The later of which is used to replace the old language list of OSes, which was clunky and prone to missing valid options.
* Updated Get->available_resources() to remove the old anvil_dr1_host_uuid mechanism of finding and referencing DR resources.
* Started adding --network support to anvil-provision-server to allow users to specify a specific network bridge, MAC address and model to use for a new VM.
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
9194eb3d09
* Updated System->check_if_configured() to record that a host is configured in /etc/anvil to make the system auto-mark as configured if the host is removed from the DB (or, more specifically, variables -> system::configured is lost).
...
* Updated Database->get_anvils() to record dr_links to reference DR hosts to Anvil! systems.
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
f9ca6fb170
* This adds the new anvil-version-change tool which anvil-daemon will call on startup to handle checks for changes made over releases/updates.
...
* Added the new 'dr_link_note" column to the dr_links tables so that links can be marked as DELETED.
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
33b4516dea
Fix a variable quoting bug in Database->locking().
...
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
Tsu-ba-me
9d418b276a
build(tools): remove renamed striker-access-database script from Makefile
2 years ago
Tsu-ba-me
44acfe3e28
docs(tools): add in-script documentation to anvil-access-module
2 years ago
Tsu-ba-me
2e5edfdcf0
fix(tools): return complete subroutine results in anvil-access-module
2 years ago
Tsu-ba-me
0284434815
fix(tools): allow subroutine execution before reading $anvil->data
2 years ago
Tsu-ba-me
e988dcedde
fix(tools): expose $anvil->data given specific target structure
2 years ago
Tsu-ba-me
809a7e2951
fix(tools): add anvil-access-module switch to output $anvil->data
2 years ago
Tsu-ba-me
a7b80b2e36
fix(tools): parse switches in anvil-configure-host
2 years ago
Tsu-ba-me
bb02d556d4
fix(tools): add output file id switch to anvil-get-server-screenshot
2 years ago
Tsu-ba-me
e5fc75f306
fix(tools): fetch and send server screenshot from node to striker that made the request
2 years ago
Tsu-ba-me
e14b1fc93e
fix(tools): use absolute paths in anvil-get-server-screenshot
2 years ago
Tsu-ba-me
4b03be4bc3
fix(tools): restrict get server screenshot output to stdout
2 years ago
Tsu-ba-me
2c1f400222
fix(tools): avoid using undef resize args when getting server screenshot
2 years ago
Tsu-ba-me
7b14433588
fix(tools): always convert server screenshot to PNG
2 years ago
Tsu-ba-me
374f88acb7
fix(tools): use --quiet when getting server screenshot
2 years ago
Tsu-ba-me
a7a2cc70d7
fix(tools): striker-access-database->anvil->access->module; execute any sub on any module
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
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
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
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
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
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
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
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
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
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
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
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