Commit Graph

3792 Commits

Author SHA1 Message Date
Digimer
b8980b0ead
Merge pull request #523 from ClusterLabs/anvil-tools-dev
Fixed a bug in scan-ipmitool that was causing duplicate history entries
2023-11-07 23:03:24 -05:00
digimer
822854f0c3 Fixed a bug in scan-ipmitool that was causing duplicate history entries
* Increased logging to scan-ipmitool and scan-network to help trace a
  duplicate DB entry bug.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-11-07 15:32:57 -05:00
Digimer
fe453ac51d
Merge pull request #521 from ClusterLabs/anvil-tools-dev
Anvil tools dev
2023-11-07 10:39:57 -05:00
digimer
f3c78be05f Added missing query uuid to update_storage_group_members.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-11-06 14:58:48 -05:00
digimer
51978e1609 Update scan-server to only alert on large boot time changes
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-11-05 17:07:26 -05:00
digimer
54a437d9a3 Rearranged checks in anvil-version-changes.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-11-05 14:12:02 -05:00
Digimer
5a7fb09ec8
Merge pull request #516 from ClusterLabs/anvil-tools-dev
Fixed a bug in Remote->call()
2023-11-04 11:41:56 -04:00
digimer
556e892002 Added 'sessions' to the age-out table list
* To help mitigate issue #520.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-11-03 20:13:47 -04:00
digimer
09fcc45c4a Skipped checking 'sessions' when considering a DB resync.
* This relatesto issue #520

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-11-03 19:51:00 -04:00
digimer
e5e958a03b Updated anvil-configure-host to clear "config::map_network"
Also updated anvil-manage-host to properly display the network mapping
status.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-11-03 17:35:01 -04:00
digimer
3251154366 Updated anvil-daemon to run anvil-configure-host jobs when mapping net
Also fixed a bug in anvil-manage-host that prevented showing if the
network mapping flag was set.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-11-03 15:25:45 -04:00
digimer
ff3d1983e3 Bumped up logging to debug an anvil-provision-server hang.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-11-02 23:26:12 -04:00
digimer
e0a4bd4d69 Undid the Remote->call to System->call piping
Builds have been failing since this change. Debugging is needed but it's
too large a task for just now.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-11-02 23:23:25 -04:00
digimer
081c5ea90e Possibly fixed the anvil-delete-server hang bug.
* Updated Server->connect_to_libvirt() to check that the target URI's
  SSH fingerprint is recorded before connecting. Also added an alarm
  wrapper around the Sys::Virt->new() call.
* Continued work on anvil-manage-server-system, working on the boot
  order section now.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-11-02 15:01:08 -04:00
digimer
747e759248 Updated node restart logic to boot unless power or temps are known bad
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-11-01 21:01:25 -04:00
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