Commit Graph

3815 Commits

Author SHA1 Message Date
Digimer
630294bc16
Merge branch 'main' into docs/ui-readmes 2023-10-23 16:33:45 -04:00
Digimer
07ab02b297
Merge pull request #511 from ClusterLabs/anvil-tools-dev
Anvil tools dev
2023-10-23 16:33:19 -04:00
digimer
a5f424d340 Test fix for variable deletion bug.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-10-23 12:58:15 -04:00
digimer
8bc35b322f More logging to debug variable deletion bug.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-10-23 00:24:23 -04:00
digimer
56bb18951a Hopefully fixed an empty variable bug in duplicate variable searches.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-10-22 00:11:24 -04:00
digimer
4d1528f614 Added more logging to debug variable deletion bug.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-10-21 23:10:31 -04:00
digimer
9ee8f782ee Continuing to try to resolve duplicate variables bug.
* Added a called to Database->_check_for_duplicates to Database->resync_databases
* Added 'check_for_resync => 1' to anvil-configure-host.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-10-21 14:31:14 -04:00
digimer
2a3f0bab24 Reworked how and when duplicate variables are checked/cleared.
Moved the logic to a new private method, and call it now from the active
Striker in the once per minute loop. The duplicate variable issue seems
to be not entirely uncommon.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-10-21 13:33:14 -04:00
digimer
1824bb2eed Added forced DB resyncs to striker-manage-peers
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-10-20 23:41:21 -04:00
digimer
ed269aa450 Fixed a bug where duplicate variables were being created in some cases.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-10-20 22:05:33 -04:00
digimer
a11b87458e Gracefully handle errors from changed node host names in scan-cluster.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-10-20 19:15:04 -04:00
digimer
a35e790a4d Fixed a minor striker-boot-machine bug.
Divide by zero error when no hosts with IPMI found.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-10-20 11:38:15 -04:00
Digimer
4976ba251a
Merge branch 'main' into docs/ui-readmes 2023-10-20 10:39:38 -04:00
dependabot[bot]
19aafe8f02 build(deps): bump @babel/traverse from 7.17.3 to 7.23.2 in /striker-ui
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.17.3 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-20 15:16:19 +02:00
Digimer
b4158792db
Merge pull request #506 from ClusterLabs/anvil-tools-dev
Anvil tools dev
2023-10-20 02:24:39 -04:00
digimer
be89bfb438 Updated striker-get-screenshots to create the screenshot directory.
Also fixed a typo in the POD for Storage->make_directory().

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-10-19 21:36:15 -04:00
digimer
5ec395c53a Reworked DB resync logic.
With this new system, a 'primary_db' is chosen (first connected DB UUID when sorted) and only it does resyncs. Further, resyncs have been pulled from all tools except anvil-daemon. So with this new system, the chances of duplicate, simultaneous resyncs should be removed (hopefully for real this time).

* Database->check_agent_data() no longer calls a resync after loading a
  schema.
* Removed the Database->coonnect() 'all' parameter
* The database used to read from is now always the same as the primary,
  even if there is a local DB.
* Database->connect() 'check_for_resync' parameter can now be set to
  '2', which means "check for resync _if_ I am primary", where '1' still
  checks for resync no matter what.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-10-19 20:41:57 -04:00
Digimer
b346eee6fc
Merge pull request #504 from ClusterLabs/anvil-tools-dev
Anvil tools dev
2023-10-19 00:01:00 -04:00
digimer
b1f89c2723 Finished initial version of striker-show-jobs
* Updated Database->get_jobs() to take 'job_host_uuid = all' to allow
  loading jobs from all cluster machines. Also updated it to record the
  'job_host_uuid' and the unix timestamp version of 'modified_date'.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-10-18 20:51:20 -04:00
digimer
0014cc591d Re-enabled DB connections in ocf:alteeve:server.
Added DB connections to ocf:alteeve:server when starting or stopping
servers. This is to ensure that the servers -> server_state are updated
properly.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-10-18 20:51:20 -04:00
Digimer
57cb98e9dd
Merge pull request #502 from ClusterLabs/dependabot/npm_and_yarn/striker-ui-api/babel/traverse-7.23.2
build(deps-dev): bump @babel/traverse from 7.17.3 to 7.23.2 in /striker-ui-api
2023-10-17 19:50:26 -04:00
dependabot[bot]
c2d7604008
build(deps-dev): bump @babel/traverse in /striker-ui-api
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.17.3 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-17 20:41:10 +00:00
Digimer
1d59ef632a
Merge pull request #501 from ylei-tsubame/rebuild-webui
Web UI: patch issues 456, 458, 487, 494, 496
2023-10-16 16:13:37 -04:00
Tsu-ba-me
cf74fce91e build(striker-ui-api): rebuild 2023-10-16 05:57:32 -04:00
Tsu-ba-me
78b75c649a fix(striker-ui-api): correct ID condition in query host detail 2023-10-16 05:51:57 -04:00
Tsu-ba-me
df7b5fa397 fix(striker-ui-api): sort hosts by name 2023-10-16 05:51:57 -04:00
Tsu-ba-me
2dc0fd3835 fix(striker-ui-api): sort files by name 2023-10-16 05:51:57 -04:00
Tsu-ba-me
6fce2258ba fix(striker-ui-api): find pre-def cpu vendor before extract first word 2023-10-16 05:51:57 -04:00
Tsu-ba-me
6babc33006 fix(striker-ui-api): ignore deleted servers in all servers-related queries 2023-10-16 05:51:57 -04:00
Tsu-ba-me
b15df65c07 fix(striker-ui-api): catch exceptions in GET anvil summary list handler 2023-10-16 03:22:50 -04:00
Tsu-ba-me
24879a3ca8 fix(striker-ui-api): don't throw when no servers found in anvil summary 2023-10-16 03:20:58 -04:00
Digimer
126a8615d9
Merge pull request #498 from ClusterLabs/server-manage-system
Updated striker-boot-machine to support booting all machines.
2023-10-13 12:27:23 -04:00
digimer
4398ffe70c Updated striker-boot-machine to support booting all machines.
* Wrote the man page for striker-boot-machine, changing --host-name to
  --host, and adding the '--host all' support.
* Updated anvil-manage-host to support checking/enabling/disabling
  network mapping mode.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-10-12 22:18:07 -04:00
Digimer
c14615bbc7
Merge pull request #491 from ClusterLabs/dependabot/npm_and_yarn/striker-ui/postcss-and-next-8.4.31
build(deps): bump postcss and next in /striker-ui
2023-10-12 17:02:00 -04:00
Digimer
4449ec2c0d
Merge branch 'main' into dependabot/npm_and_yarn/striker-ui/postcss-and-next-8.4.31 2023-10-12 11:33:31 -04:00
Digimer
6697069d8a
Merge pull request #497 from ClusterLabs/server-manage-system
Server manage system
2023-10-12 11:33:16 -04:00
digimer
b3c067b016 Fixed a bug in anvil-manage-files where missing files weren't being downloaded.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-10-12 01:01:31 -04:00
digimer
7545df1e55 Fixed a bug in which host runs an anvil-delete-server job.
* Updated anvil-delete-server to use the new Server->locate method. This
  was done as the old Server->locate() was failing to find the server
running on the peer when anvil-delete-server was running on the backup
subnode.
* Updated Server->locate() to search hosts for XML definition and DRBD
  configs so that it can record where the server is recorded to run,
even if the server isn't running or defined at the time the locate ran.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-10-11 22:22:06 -04:00
digimer
68521cdab7 Updated striker-get-screenshots to set permissions properly.
This updates the /opt/alteeve/screenshot directories and the screenshots
in them to be readible by the WebUI.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-10-11 17:22:06 -04:00
digimer
55b1380031 Finished (but need more testing) of Server->locate().
This includes the changes in PR#492.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-10-11 17:22:06 -04:00
digimer
829ae546a2 Beginning work on new Server->locate() method to find servers across an
Anvil! cluster.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-10-11 17:22:06 -04:00
digimer
f12e001ac2 Finished Server->connect_to_virsh().
* Now, connecting to virsh can detect when still-open connections
  already exist.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-10-11 17:22:06 -04:00
digimer
245f75de9b Added Server->update_definition()
* This takes a server and new definition XML and updated the database and any available hosts. Does not yet update defined or running servers.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-10-11 17:22:06 -04:00
digimer
e361d0b424 More progress on anvil-manage-server-system
* It now edits the XML to change the boot menu, but doesn't save yet.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-10-11 17:22:06 -04:00
digimer
201cd53265 Improved the logic behind Network->find_target_ip()
* This adds the new 'networks' and 'test_access' parameters to allow
  restricting/ordering matched networks, and adds 'test_access' to
  validate the link is working.
* Continued work on anvil-manage-server-system

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-10-11 17:22:06 -04:00
digimer
62fe62a44b * Continued work on anvil-manage-server-system. It now displays the boot devices, CPU and RAM info.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-10-11 17:22:06 -04:00
Tsu-ba-me
96988e1713 docs(striker-ui-api): add minimal README 2023-10-10 23:02:50 -04:00
Tsu-ba-me
c539e655c7 docs(striker-ui): add minimal README to web UI 2023-10-10 22:32:53 -04:00
digimer-bot
3aff04ab25
Merge branch 'main' into dependabot/npm_and_yarn/striker-ui/postcss-and-next-8.4.31 2023-10-10 21:25:40 -04:00
digimer-bot
159a8e949c
Merge pull request #492 from ClusterLabs/rework-pcs-wrapper
Fixed wrappers to handle quoted arguments properly.
2023-10-10 21:25:28 -04:00