Commit Graph

2990 Commits

Author SHA1 Message Date
Tsu-ba-me
81139bb1ad fix(striker-ui): center add network button 2023-06-19 15:15:31 -04:00
Tsu-ba-me
b269770d3a fix(striker-ui): enable add/remove networks 2023-06-19 15:15:31 -04:00
Tsu-ba-me
45a0d1a6c8 fix(striker-ui): add icon button mouse event handler type 2023-06-19 15:15:31 -04:00
Tsu-ba-me
8154fd4dbd fix(striker-ui): allow remove key in object setter builder 2023-06-19 15:15:31 -04:00
Tsu-ba-me
768ef98f51 fix(striker-ui): add input groups to build add/edit manifest forms 2023-06-19 15:15:31 -04:00
Tsu-ba-me
f59d273ebb fix(striker-ui): add 'add', 'close' presets to IconButton 2023-06-19 15:15:31 -04:00
Tsu-ba-me
17657388af fix(striker-ui): add preset icon props in IconButton presets 2023-06-19 15:15:31 -04:00
Tsu-ba-me
e5d7014b9f fix(striker-ui): run 'set validity on first render' in useEffect 2023-06-19 15:15:31 -04:00
Tsu-ba-me
ae07c8b66d fix(striker-ui): add setMsgSetter in FormUtils 2023-06-19 15:15:31 -04:00
Tsu-ba-me
77abfdc933 fix(striker-ui): export buildMessageSetter() 2023-06-19 15:15:31 -04:00
Tsu-ba-me
29a3751524 fix(striker-ui): export buildNumberTestBatch() 2023-06-19 15:15:31 -04:00
Tsu-ba-me
15942d258d fix(striker-ui): adjust inner panel margin 2023-06-19 15:15:31 -04:00
Tsu-ba-me
fb8e92ffb4 fix(striker-ui): consolidate network types 2023-06-19 15:15:31 -04:00
Tsu-ba-me
0ce470a034 fix(striker-ui): manifest list 2023-06-19 15:15:31 -04:00
Tsu-ba-me
6cdca8ee5f feat(striker-ui-api): add /manifest 2023-06-19 15:15:31 -04:00
Digimer
58371d22b6
Merge pull request #335 from ClusterLabs/anvil-tools-dev
Anvil tools dev
2023-06-16 16:02:17 -04:00
digimer
156a0ca201 Updated anvil-daemon's new job launching logic to allow the restart of a running job that failed out early.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-06-16 11:43:49 -04:00
digimer
cc15eca6fb * Added anvil-watch-power to git.
* Added a check to cleanup size input to Convert->human_readable_to_bytes() when passed pre-processed strings.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-06-15 21:35:42 -04:00
digimer
47f7a35df3 The main purpose of this commit is to add serial execution of similar jobs to help reduce race conditions for scripted jobs, like multiple server creation.
* Fixed a small logging bug in DRBD->allow_two_primaries().
* Updated Database->get_jobs() to record jobs sorted by modified_date so that jobs can be run in the order they were recorded.
* Updated anvil-daemon to track which commands need to be run, and when two or more of the same command need to be run, they're run serially, with each subsequent run starting after the previous one completes.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-06-15 21:13:53 -04:00
digimer
38d088a998 * Added anvil-watch-power to the makefile.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-06-15 10:17:02 -04:00
digimer
dda0fbd7d5 * Updated DRBD->allow_two_primaries() to be more careful at evaluating peer-node-id.
* Updated DRBD->manage_resource() to set allow-two-primaries=no when up'ing a resource (as no migration can be in progress during an up command).
* Updated scan-drbd to look for StandAlone resources and call DRBD->manage_resource({task = 'up'}) if a connection to a peer node is StandAlone or if the local disk state is detached.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-06-14 23:34:05 -04:00
digimer
b6a249d5e7 * Updated Cluster->add_server() to set the preferred host based first on if the server is running on a node, and if not, on the primary node (where before it defaulted to node 1).
* Updated DRBD->delete_resource() to call scan-drbd and scan-lvm to ensure that the database is updated with the newly freed resources.
* Updated anvil-delete-server and anvil-provision-server to call select scan agents to ensure freed resources are immediately recorded.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-06-11 23:46:21 -04:00
digimer
929806cef7 Fixed variable substitution names in scan-server.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-06-09 20:08:38 -04:00
digimer
b03587967b * Updated Cluster->add_server() to batch the creation of the server and the location constraints in one commit to the CIB.
* Updated scan-lvm to look for and delete duplicate entries.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-06-09 19:59:23 -04:00
Digimer
133dbb121b
Merge pull request #334 from ClusterLabs/anvil-tools-dev
Updated scan-cluster to check to see that migrate_to and migrate_from…
2023-06-09 10:22:43 -04:00
digimer
b7abc481e6 Updated scan-cluster to check to see that migrate_to and migrate_from are given a timeout of 600s and an on-fail of "block". Updated Cluster->add_server() to set migrate_from to timeout=600s and on-fail=block as well.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-06-08 20:30:25 -04:00
digimer-bot
ef84e63a7a
Merge pull request #333 from ClusterLabs/anvil-tools-dev
Anvil tools dev
2023-06-07 09:38:38 -04:00
digimer
c82bd9d73a * Created the new anvil-watch-power tool that shows the status of UPSes known on the system, including their "on battery" state, charge percentage, estimated hold up time, etc.
* Updated Database->get_power() and ->get_upses() to store both the time stamp and unix time stamps.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-06-06 23:40:15 -04:00
digimer
5bb1c631cf * Updated anvil-delete-server to accept '--server' and '--force' to allow direct deletion of a server without interacting with the menu system.
This partially addresses issue #321.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-06-06 16:23:28 -04:00
digimer
bc3d04ad2e * Updated Cluster->add_server() to wait up to 15 seconds for a server to appear to ensure that the pcs call to add the server with the right requested running state.
* Updated Cluster->recover_server() to set the desired recovery state before calling the crm_resource refresh.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-06-06 14:34:02 -04:00
Digimer
b3f3c9b24e
Merge pull request #332 from ClusterLabs/anvil-tools-dev
This commit addresses (hopefully) issue #329.
2023-06-06 10:55:36 -04:00
digimer
0e57836c8f This commit addresses (hopefully) issue #329.
* Updated DRBD->get_status() to attempt to recompile the drbd kernel module if the drbdsetup status fails. If it continues to fail, it exits gracefully now.
* Updated ocf:alteeve:server to test access over a given IP before calling Server->find to avoid timeouts when the peer is down. Also updated it to set the constraints to keep the server on the new host when the old host returns to the cluster.
* Fixed a bug in scan-cluster where a server that is FAILED but not running is now properly recovered.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-06-05 22:53:34 -04:00
Fabio M. Di Nitto
7cee742b67
Merge pull request #331 from ClusterLabs/digimer-patch-1
Delete notes
2023-06-02 15:59:39 +02:00
Digimer
711322f273 Delete notes 2023-06-02 13:32:15 +02:00
Digimer
91de6bb30e
Merge pull request #330 from ClusterLabs/anvil-tools-dev
* Fixes issue #329; When multiple attributes exist when checking if w…
2023-05-09 15:30:44 -04:00
digimer
284a2957d6 * Fixes issue #329; When multiple attributes exist when checking if we're in maintenance mode in fence_pacemaker, the expected hash reference was actually an array reference.
* Fixed a bug in anvil-version-changes where update_file_location_ready() needed to be called before update_file_locations().
* Added a bit more logging for future debugging.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-05-08 15:03:29 -04:00
Digimer
f3a65fc04d
Merge pull request #328 from ClusterLabs/anvil-tools-dev
This should resolve issue #271.
2023-05-04 17:15:55 -04:00
digimer
8f375c58a9 * Fixed a typo in anvil-daemon that prevented compiling.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-05-04 11:14:23 -04:00
digimer
110dceb55e * Added a check to make sure files were ready before provisioning a server.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-05-04 01:15:08 -04:00
digimer
c50a1936c0 * This adds the new 'file_locations' -> 'file_location_ready' column and associated methods. This is set to TRUE/1 when the file referenced is found on disk and it is the expected size and md5sum. This is meant to allow programs to wait/watch or a file to be ready if they need to use it. Files are now checked periodically via anvil-daemon.
* Removed hard-coded log levels in anvil-provision-server and anvil-manage-storage-groups.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-05-04 00:05:56 -04:00
Digimer
dfc0c2c492
Merge pull request #326 from ClusterLabs/anvil-tools-dev
* Fixed a bug where, when DRBD->gather_data() calls 'drbdadm dump-xml…
2023-05-03 00:40:14 -04:00
digimer
26fa3c7e32 Fixed a bug where Get->available_resources() was missing LVM/storage group data in some cases.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-05-02 16:28:05 -04:00
digimer
510db70253 Another attempt to resolve the stoage group race condition. This moves the check for auto-assembly to scan-lvm. It only works for the first assemble, after that the user can/should use anvil-manage-storage-groups.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-05-02 00:07:40 -04:00
digimer
e483840ceb Second attempt to fix the storage group race condition. This time, we only let node 1 assemble storage groups.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-05-01 20:29:20 -04:00
digimer
d64044c7d1 Test fix for storage group race condition.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-05-01 13:48:27 -04:00
digimer
1bba56a5b1 Hard coded anvil-provision-server to log level 2 while chasing a race condition is storage groups.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-05-01 10:54:51 -04:00
digimer
9a58f4d1ff * This is a small commit to increase logging while chasing down a race condition issue with assembling storage groups.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-04-30 19:47:58 -04:00
digimer
895f1ec262 This fixes a race condition when multiple servers are provisioned at (nearly) the same time.
* In DRBD->get_next_resource(), implemented a "hold" system where the DRBD minor and TCP port(s) returned are marked as being held for one minute. So subsequent calls won't use the same numbers.
* In anvil-daemon, added a check in run_jobs() where only one instance of a given job command will be started per 2-second loop. This should help reduce the chance of simultaneous race confitions in general.
* Removed from anvil-provision-server and most other tools the call to Job->get_job_uuid(). If the program is called without the job_uuid, don't try to find it. This allows a human (or script) to make repeated calls to a program without one of those calls running a pending job instead.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-04-28 00:19:53 -04:00
digimer
e7537b0ca3 * Fixed a bug where, when DRBD->gather_data() calls 'drbdadm dump-xml' and the output includes usage data, it breaks XML parsing.
* Fixed a bug in Get->available_resources() where DELETED servers were being counted in the used resources math.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-04-25 13:12:13 -04:00
digimer-bot
cc32d5b606
Merge pull request #320 from ClusterLabs/anvil-tools-dev
Anvil tools dev
2023-04-19 17:48:51 -04:00