Commit Graph

3627 Commits

Author SHA1 Message Date
digimer
8c97f478a8 Updated Server->update_definition() to undefine a server when needed.
* Boosted logging to debug anvil-delete-server hang in jenkins.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-11-01 16:06:59 -04:00
digimer
9b55504872 Updated anvil-manage-server-system to update defined servers.
* Updated Server->locate() to take the new 'anvil' parameter to speed up
  searches.
* Updated Server->update_definition() to use Server->locate() to find
  where updates are needed. It now also defines the server with the new
  config.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-11-01 00:15:13 -04:00
digimer
fd461f940d Fixed a bug in Remote->call()
* If the call to Remote-call() set the target that was actually the
  local short hostname, it would fail to make the call at all. Now if
  the 'target' is local, the shell call is instead passed to
  System->call() instead.
* Cleaned up logging.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-10-31 13:16:39 -04:00
Digimer
07cedb601f
Merge pull request #513 from ClusterLabs/anvil-tools-dev
Fixed a bug where 'all' host jobs would not be shown.
2023-10-27 23:10:16 -04:00
digimer
49f194eac6 Fixed issue #515; anvil-join-anvil updates hostnames properly now
* Updated Get->host_name() to accept the new 'refresh' parameter. This
  forces a reread of the hostname, instead of using the cached value.
* Updated System->host_name() so that, when it's updating the hostname,
  it updates the database and cached variables.
* Updated Words->center_text() to avoid undefinied parameter issues.
* Updated anvil-join-anvil to ensure the 'sys::host_name' variable.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-10-27 19:58:37 -04:00
digimer
85f86cda8a Updated Storage->read_file() to test if the target file exists.
This allows for better logging if the file to be copied doesn't exist.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-10-25 21:21:52 -04:00
digimer
ab6acd594c Fixed a bug where 'all' host jobs would not be shown.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-10-25 15:45:12 -04:00
Digimer
18254b1900
Merge pull request #512 from ClusterLabs/anvil-tools-dev
Working on a bug where broken manifests are saved.
2023-10-24 17:00:15 -04:00
digimer
4f6fa4b6ed Working on a bug where broken manifests are saved.
* Updated Striker->generate_manifest() to add pod and make the prefix,
  sequence and domain parameters required.
* Created the check_for_broken_manifests() function for anvil-daemon to
  detect/remove broken manifests.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-10-24 13:36:30 -04:00
Digimer
725ca58c44
Merge pull request #503 from ClusterLabs/dependabot/npm_and_yarn/striker-ui/babel/traverse-7.23.2
build(deps): bump @babel/traverse from 7.17.3 to 7.23.2 in /striker-ui
2023-10-24 02:11:05 -04:00
Digimer
f89fdae98e
Merge branch 'main' into dependabot/npm_and_yarn/striker-ui/babel/traverse-7.23.2 2023-10-23 20:56:48 -04:00
Digimer
7bb9f02b62
Merge pull request #507 from ylei-tsubame/docs/ui-readmes
Web UI: READMEs
2023-10-23 20:56:33 -04:00
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