Commit Graph

3636 Commits

Author SHA1 Message Date
Tsu-ba-me
79cd66f17b fix(striker-ui): correct host status definition 2023-10-02 15:18:14 -04:00
Digimer
51319b2389
Merge pull request #480 from ylei-tsubame/patch-screenshot-icons
Web UI: patch server screenshot representations
2023-10-01 11:51:29 -04:00
Digimer
852f341a99
Merge branch 'main' into patch-screenshot-icons 2023-09-30 16:41:34 -04:00
Digimer
ef2d165dfd
Merge pull request #481 from ClusterLabs/fix-typos
Added screenshot capture to striker-collect-debug.
2023-09-30 16:41:13 -04:00
Tsu-ba-me
92132a49ae build(striker-ui): rebuild 2023-09-30 04:18:54 -04:00
Tsu-ba-me
0408d4d284 fix(striker-ui): reworded stale screenshot label 2023-09-30 04:07:18 -04:00
Tsu-ba-me
e9d4118abf build(tools): add striker-get-screenshots to Makefile 2023-09-30 04:07:18 -04:00
digimer
ed91435211 Fixed a bug where duplicate files weren't actually being deleted.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-09-30 00:13:56 -04:00
digimer
74ddb7f3a9 Updated Database-get_files() to detect/remove duplicate file entries.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-09-29 21:28:49 -04:00
digimer
3d4d7abfe3 Increased logging to debug server install failure.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-09-29 13:01:58 -04:00
digimer
c3fe39e6a8 Added a check file unlinked files.
* On subnodes and DR hosts, a check is made now in Storage->check_files() for files not linked in file_locations. Any found are added, with a check to see if the file already exists locally and, if so, that the md5sum is accurate or not (to set if the file is ready for use or not).

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-09-29 00:05:29 -04:00
digimer
0bff40b21e Fixed a bug where files that are ready for use were not found.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-09-28 21:35:16 -04:00
digimer
5a8f775db4 Removed the reboot job at the end of anvil-configure-host.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-09-28 18:23:57 -04:00
digimer
30248760b5 Moved the wait_on_subnodes function call to earlier in the script.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-09-28 17:52:11 -04:00
digimer
77bae80534 Added default values for MTU and DNS if not set in a manifest.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-09-28 17:47:53 -04:00
digimer
b8fb3d62e3 Added checks for the screenshot directory before collection.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-09-28 16:30:36 -04:00
digimer
663a1e0527 Quieted screenshot logging in anvil-daemon.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-09-28 16:27:40 -04:00
digimer
fcbace6713 Updated anvil-join-anvil to hold if either node is still running anvil-configure-host
* Fixed a minor bug and added logging of maintenance_mode calls in anvil-configure-host.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-09-28 16:01:32 -04:00
digimer
e480337239 Fixed wait loop for subnodes
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-09-28 11:47:48 -04:00
digimer
582a8b292c Added more job updates to anvil-manage-power.
* This is a test to see if the job waiting for the uptime to be 300s,
  leaving the job_progress as 0, was causing the job to be repeatedly
  called.
* This is related to issue #479

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-09-28 01:19:52 -04:00
digimer
5b286f2696 Added missing switch reading in anvil-manage-power.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-09-28 00:24:29 -04:00
digimer
ef042eef25 Cleaned up logging while waiting for subnodes.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-09-28 00:15:14 -04:00
digimer
5d5270486e Added a wait loop when forming node clusters.
* This adds a check where anvil-join-anvil waits until both subnodes are
  marked as configured and not in maintenance mode.
* Should address issue #479 (maybe, this shouldn't trigger reboots, but
  it was certainly a race condition found while investigating).

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-09-27 22:38:07 -04:00
digimer
d58521ceca Added screenshot capture to striker-collect-debug.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-09-27 11:46:56 -04:00
Tsu-ba-me
16f04aa207 fix(striker-ui): update time ago on fetch in Preview 2023-09-26 22:23:51 -04:00
Tsu-ba-me
e45a141474 build(striker-ui-api): rebuild 2023-09-26 22:10:29 -04:00
Tsu-ba-me
673898260e fix(striker-ui): replace stale ss label with time-ago 2023-09-26 19:36:39 -04:00
Tsu-ba-me
eb523c739d fix(striker-ui): correct elapsed calculation in time helpers 2023-09-26 19:24:55 -04:00
Tsu-ba-me
5e0f5133e7 fix(striker-ui): isolate now function in time helpers 2023-09-26 18:59:01 -04:00
Tsu-ba-me
813767f85a fix(striker-ui): correct server screenshot loading, stale, display 2023-09-26 02:54:31 -04:00
Tsu-ba-me
bd33f8711f fix(striker-ui): add function to calculate elapsed string 2023-09-26 02:45:39 -04:00
Tsu-ba-me
d1b7969c94 fix(striker-ui): add helper functions to work with time 2023-09-25 23:43:47 -04:00
Tsu-ba-me
3cb1b2fa55 fix(striker-ui-api): include timestamp in server ss response 2023-09-25 20:13:23 -04:00
Digimer
a0b188ffbd
Merge pull request #478 from ylei-tsubame/patch-screenshot
New screenshot system
2023-09-24 01:38:18 -04:00
Digimer
745081b649
Merge branch 'main' into patch-screenshot 2023-09-22 23:28:12 -04:00
Digimer
3cc171f5af
Merge pull request #475 from ClusterLabs/add-force-off
Add force off
2023-09-22 23:28:06 -04:00
Tsu-ba-me
31873f9096 build(striker-ui-api): rebuild 2023-09-22 17:22:59 -04:00
Tsu-ba-me
15c2b736ae fix(striker-ui-api): record only latest ss in fetch server screenshot 2023-09-22 17:22:59 -04:00
Tsu-ba-me
684906e0a2 fix(striker-ui-api): correct pattern in disassemble server ss name 2023-09-22 17:22:59 -04:00
Tsu-ba-me
672f5e5422 fix(striker-ui-api): draft screenshot patch to align with new fetch process 2023-09-22 17:22:59 -04:00
digimer
b1562e0301 * Added the new screenshot tool.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-09-22 17:16:19 -04:00
digimer
c039c58128 * This commit moves taking screenshots of hosted servers onto the strikers using the Sys::Virt module. This was needed because the screenshots were being taken by scan-server, and that was causing it to take a long time to run. It should never have been handled by the scan agent anyway. This update requires a WebUI fix to use the new screenshot tool. This tool also adds holding multiple screenshots to allow users to "scrub" through screenshots up to 10 hours in the past.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-09-22 17:15:09 -04:00
Digimer
5a805d4427
Merge branch 'main' into add-force-off 2023-09-22 11:24:02 -04:00
Digimer
3a84b5c0d7
Merge pull request #474 from ClusterLabs/fix-scan-server
Fix scan server
2023-09-22 11:23:53 -04:00
digimer
8925dabb9d * Updated anvil-shutdown-server to take the new '--immediate' switch which forces a server to shut down immediately (akin to pulling the power on a traditional machine). This is needed to allow a user to recover a crash or hung server.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-09-21 18:56:12 -04:00
digimer
122816255d * Fixed a bug where a sensor value of '0' was being interpretted as the value not existing.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-09-21 17:33:01 -04:00
digimer
4646f4a030 * Quieted logging.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-09-21 16:39:18 -04:00
digimer
580980717d This commit covers the convertion of 'virsh' shell calls to using 'Sys::Virt' module, and fixes several small bugs related to scan-server;
* Switched all calls to virsh to use Sys::Virt to deal with contention of simultaneous virsh calls.
* Removed collecting screenshots from scan-server.
* Fixed a bad variable substitution in an alert.
* Fixed a bug where a server's boot time wasn't being recorded properly.
* Reworked how we determine which server definition was most recently updated and propogated.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-09-21 15:59:43 -04:00
Digimer
74d8e6d76a
Merge pull request #473 from ylei-tsubame/replace-form-validation
Web UI: replace file manager with external form management and validation libraries
2023-09-21 10:32:19 -04:00
Tsu-ba-me
5ab2362f75 build(striker-ui): rebuild 2023-09-21 03:41:15 -04:00