Fabio M. Di Nitto
adff98104c
Merge pull request #304 from ylei-tsubame/fix-get-server-ss
...
Web UI: stop accumulating blocked server screenshot data writes
2 years ago
Tsu-ba-me
18ad881ff8
build(striker-ui-api): rebuild UI API
2 years ago
Tsu-ba-me
58d09cb08c
fix(tools): make server screenshot write to named pipe non-blocking
2 years ago
Tsu-ba-me
950a98558f
fix(striker-ui-api): improve receive server screenshot from named pipe
2 years ago
Tsu-ba-me
eb561d6d39
fix(tools): always send to pipe when given request host
2 years ago
Tsu-ba-me
3802c72912
fix(tools): check server state before getting screenshot
2 years ago
Tsu-ba-me
a9cc123300
fix(tools): exit at end of anvil-get-server-screenshot
2 years ago
digimer
9751c883cb
* Updated Cluster->assemble_storage_groups() to remove refrences to anvil_dr1_host_uuid. Also added the logic for auto-adding DR host's VGs to a storage group. Commented it out though as, for now, this might be a bad idea. Needs more thought.
...
* Fixed a bug in Database->get_storage_group_data() to load hosts data when needed. Also fixed a bug where new members didn't return the new storage_group_member_uuid.
* Updated anvil-manage-host to use the new switch handler.
Signed-off-by: digimer <mkelly@alteeve.ca>
2 years ago
digimer
7773e5f9b8
* Updated logging in DRBD->get_devices().
...
* Added a check and exit if anvil-manage-dr is asked to protect a server on a machine that doesn't know about that server.
Signed-off-by: digimer <mkelly@alteeve.ca>
2 years ago
Fabio M. Di Nitto
dce4aa58c1
Merge pull request #301 from ClusterLabs/fix-rpm
...
Partially revert e9f390b65b
2 years ago
Fabio M. Di Nitto
077355aeca
Partially revert e9f390b65b
...
Remove call to anvil-version-change from rpm %post as it´s
a DB corruptor trigger
Signed-off-by: Fabio M. Di Nitto <fabbione@fabbione.net>
2 years ago
Fabio M. Di Nitto
b60c89c6bc
Merge pull request #300 from ClusterLabs/anvil-tools-dev
...
* Added a check to ensure a storage group actually exists before tryi…
2 years ago
Digimer
8168b30fbe
Merge branch 'main' into anvil-tools-dev
2 years ago
digimer
56cf100b09
* Added a check to ensure a storage group actually exists before trying to present it to the user. This should resolve issue #299 .
...
Signed-off-by: digimer <mkelly@alteeve.ca>
2 years ago
Digimer
f776cfb76c
Merge pull request #287 from ClusterLabs/dependabot/npm_and_yarn/striker-ui/json5-1.0.2
...
build(deps): bump json5 from 1.0.1 to 1.0.2 in /striker-ui
2 years ago
Digimer
f40e27e4aa
Merge branch 'main' into dependabot/npm_and_yarn/striker-ui/json5-1.0.2
2 years ago
Digimer
26a69653f9
Merge pull request #289 from ClusterLabs/anvil-tools-dev
...
Anvil tools dev
2 years ago
digimer
695b274d78
* Fixed a bug in anvil-provision-server wasn't loading the available OS list when provisioning servers. The should resolve issue #296 .
...
Signed-off-by: digimer <mkelly@alteeve.ca>
2 years ago
digimer
d88fde7733
Updated DRBD->delete_resource() to use '--force' instead of 'echo Yes' (which no longer works).
...
Signed-off-by: digimer <mkelly@alteeve.ca>
2 years ago
digimer
053e5312e1
* Fixed a bug in anvil-manage-dr where protect jobs with multiple potential targets wouldn't know which to use during job runs.
...
Signed-off-by: digimer <mkelly@alteeve.ca>
2 years ago
digimer
e9f390b65b
* Udated RPM spec to add new core requires and add calling 'anvil-version-changes' to core's %post.
...
* Added missing man pages and the new anvil-manage-storage-groups to the Makefile.am's.
Signed-off-by: digimer <mkelly@alteeve.ca>
2 years ago
digimer
e012d6016c
Tha major point of this commit is to add the new 'anvil-manage-storage-groups' program that, well, manages storage groups.
...
* Updated the storage_group_members table to add the 'storage_group_member_note' that can be set to 'DELETED' to track when a member is deleted. Updated anvil-version-changes to check for and add this column as needed. Updated the anvil.sql schema for the same.
* Updated Cluster->insert_or_update_storage_group_members to add the new column.
Signed-off-by: digimer <mkelly@alteeve.ca>
2 years ago
digimer
355e5c2c0a
* More work done on anvil-manage-dr. It now properly validated a dr host.
...
Signed-off-by: digimer <mkelly@alteeve.ca>
2 years ago
digimer
f8743a7435
* Further work on anvil-manage-dr. Now properly sanity checks that a valid server is passed.
...
Signed-off-by: digimer <mkelly@alteeve.ca>
2 years ago
digimer
1a217d21cf
* Updated anvil-manage-dr to provide the ability to link anvil nodes to dr hosts. Also began work on making it work with the new DR links system.
...
* Created Database->get_anvil_uuid_from_string(), Database->get_host_uuid_from_string() and Database->get_server_uuid_from_string() to simplify the process of converting --anvil <string>, --host <string> and --server <string> respectively.
* Fixed bugs in Database->get_dr_links() and Database->insert_or_update_dr_links().
* Updated Database->insert_or_update_states() to make direct calls to hosts instead of using get_hosts to drop out if a host_uuid doesn't yet exist in a DB.
Signed-off-by: digimer <digimer@gravitar.alteeve.com>
2 years ago
digimer
16fc4e131c
* Fixed a bug where, if a specific request to do a DB resync was made but the active_uuid wasn't matching the host, it wouldn't resync. This broke peering Strikers when the peer source was not the active_uuid.
...
* Updated anvil-manage-dr to check and delete duplicate dr_link entries.
Signed-off-by: digimer <digimer@gravitar.alteeve.com>
2 years ago
digimer
985338a064
Fixed typo that broke compilation.
...
Signed-off-by: digimer <digimer@gravitar.alteeve.com>
2 years ago
digimer
17863404e3
* Updated Database->_age_out_data() to only run once per day, unless explicitely called with --age-out-database.
...
Signed-off-by: digimer <digimer@gravitar.alteeve.com>
2 years ago
digimer
3d6f71f27e
* Updated Database->connect to clean up duplicates on setting the read UUID and database handle.
...
Signed-off-by: digimer <digimer@gravitar.alteeve.com>
2 years ago
digimer
26a1fe1491
* Updated Database->connect() to allow local reads on strikers, regardless of the active DB.
...
Signed-off-by: digimer <digimer@gravitar.alteeve.com>
2 years ago
digimer
98c3868870
* Updated fence_pacemaker to no longer use stonith_admin and instead use pcs. This should resolve the main part of issue #279
...
Signed-off-by: digimer <digimer@gravitar.alteeve.com>
2 years ago
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
76c8088aee
* Updated scan-apc-pdu to only run on the active striker DB (as set during Database->connect()) to prevent contention from simultaneous scan agent runs from different machines.
...
Signed-off-by: digimer <digimer@gravitar.alteeve.com>
2 years ago
digimer
5fcbb1643c
* Updated Database->connect() to set an 'active_uuid', and the host with that UUID will be the only one to do resyncs. This might help with frequent resyncs, which could be caused by simultaneous resyncs happening on both nodes stepping on each other. This should help with issue #276
...
Signed-off-by: digimer <digimer@gravitar.alteeve.com>
2 years ago
Digimer
a943ed042b
Merge branch 'main' into dependabot/npm_and_yarn/striker-ui/json5-1.0.2
2 years ago
Digimer
b8c7ca892f
Merge pull request #288 from ClusterLabs/dependabot/npm_and_yarn/striker-ui-api/json5-1.0.2
...
build(deps): bump json5 from 1.0.1 to 1.0.2 in /striker-ui-api
2 years ago
Digimer
6225bb7f67
Merge branch 'main' into dependabot/npm_and_yarn/striker-ui/json5-1.0.2
2 years ago
Digimer
137e8f1e50
Merge branch 'main' into dependabot/npm_and_yarn/striker-ui-api/json5-1.0.2
2 years ago
Digimer
d02c7ccaa6
Merge pull request #259 from ClusterLabs/anvil-tools-dev
...
Anvil tools dev
2 years ago
digimer
6ca0e0da90
* Updated Database->connect() to only try to load from dump files if 2+ databases are configured in striker.
...
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
9d2f9c4d88
* Fixed a string key name typo.
...
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
b27a43eaf7
* Updated striker to only require 6 interfaces when configuring a node.
...
Signed-off-by: digimer <digimer@gravitar.alteeve.com>
2 years ago
digimer
0fa6ddebc5
Updated scan-network to see an interface state of 'activated' as up (used to check specifically for 'active').
...
Signed-off-by: digimer <digimer@gravitar.alteeve.com>
2 years ago
digimer
383a6df7c5
Updated Convert->bytes_to_human_readable() to accept already human-readable sizes and return that.
...
This resolves issue #282 .
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
c5fbf20615
* This inverts the --live logic on migrations in Server->migrate_virsh() to default to live.
...
* Adds a "sensitive" DB connection to ocf:alteeve:server when migrating a VM. This is needed so that migrations can be done cold or live, based on servers -> server_live_migration.
This resolves issue #284 .
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