Commit Graph

3648 Commits

Author SHA1 Message Date
Digimer
142be7674e * Fixed a bug in striker-scan-network where the scan wasn't running properly when no network was specifically given.
* Updated DRBD->get_devices() to store information about the nodes for each resource.
* Got more work done on anvil-report-usage.

Signed-off-by: Digimer <digimer@alteeve.ca>
2022-04-08 18:54:55 -04:00
Digimer
4751c6e747 Updated DRBD->get_devices() and Server->parse_definition() to take 'anvil_uuid' so that server data can be parsed from anywhere.
Created, but not finished, tools/anvil-report-usage that will print a report of server resource allocation and Anvil! resource availability.

Signed-off-by: Digimer <digimer@alteeve.ca>
2022-04-06 00:16:32 -04:00
Digimer
3ad1793c23 Made scan-network more robust at determining when an interface is a virtio device.
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-04-04 18:51:28 -04:00
Digimer
c9633aa3b0 * Updated Database->_find_behind_databases() to not run unless it's on a Striker.
* Updated scan_network to properly mark virtio network interfaces as being full duplex. Also updated it to purge interfaces flagged as 'DELETED'.
* Updated the VM OS list.

Signed-off-by: Digimer <digimer@alteeve.ca>
2022-04-04 16:38:14 -04:00
Digimer
ce4d6cdcf0 Updated striker-parse-os-list to now take '--all' and '--xml' to show the list of OSes available to optmize VMs for in a simple machine-parsable format or XML, and to show only the OSes not in the words file yet, or all OSes.
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-04-01 17:34:34 -04:00
Digimer
dd9d5e6ba0 Updated resync to no longer be tied to a host_uuid.
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-04-01 17:04:54 -04:00
digimer-bot
1036235585
Merge pull request #228 from ClusterLabs/anvil-tools-dev
Reworked Database->_find_behind_databases to loop through tables, the…
2022-03-31 22:42:44 -04:00
Digimer
0b41029db2 Reworked Database->_find_behind_databases to loop through tables, then databases when evaluating for resync. This is still racy but should be less racy as the time between counts of columns for a given table should be a lot shorter. Also re-enabled triggering resyncs based on the age of the most recent record.
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-03-31 21:19:32 -04:00
digimer-bot
875aa4fea3
Merge pull request #227 from ClusterLabs/anvil-tools-dev
* Created the new anvil-manage-host that can check/set if a host is c…
2022-03-29 18:43:10 -04:00
Digimer
7212ea1c2f Fixed a bug where reaping db_in_use states wasn't restricted to the caller's host_uuid.
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-03-29 17:12:26 -04:00
Digimer
aa7d9bdf14 * Fixed a bug where resync'ing the database was missing tables.
* Updated Network->find_matches() to take 'source' and 'line' parameters to help identify the source of issues with missing hashes.

Signed-off-by: Digimer <digimer@alteeve.ca>
2022-03-29 17:12:26 -04:00
Digimer
74b7719cf5 * Created the new anvil-manage-host that can check/set if a host is configured. On Strikers, it can age out data, resync data, and check/set if the local database is active.
* Updated striker-prep-database to again enable the postgresql service.

Signed-off-by: Digimer <digimer@alteeve.ca>
2022-03-29 17:12:26 -04:00
Digimer
b575b1ebc1
Merge pull request #226 from ClusterLabs/dependabot/npm_and_yarn/striker-ui-api/minimist-1.2.6
build(deps): bump minimist from 1.2.5 to 1.2.6 in /striker-ui-api
2022-03-29 13:38:23 -04:00
Digimer
7e956da196
Merge branch 'main' into dependabot/npm_and_yarn/striker-ui-api/minimist-1.2.6 2022-03-24 12:17:13 -04:00
Digimer
c58573a1de
Merge pull request #225 from ClusterLabs/dependabot/npm_and_yarn/striker-ui/minimist-1.2.6
build(deps): bump minimist from 1.2.5 to 1.2.6 in /striker-ui
2022-03-24 12:16:50 -04:00
dependabot[bot]
0c37c36cea
build(deps): bump minimist from 1.2.5 to 1.2.6 in /striker-ui-api
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-23 19:33:45 +00:00
dependabot[bot]
9fff0cebf1
build(deps): bump minimist from 1.2.5 to 1.2.6 in /striker-ui
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-23 19:32:37 +00:00
Digimer
a16e626ede
Merge pull request #223 from Tsu-ba-me/fs-page
Web UI: add File Manager page
2022-03-22 18:07:29 -04:00
Tsu-ba-me
3f929bf8f5 chore: rebuild web UI 2022-03-18 22:50:41 -04:00
Tsu-ba-me
072680f9b3 style(striker-ui): re-run prettier across all sources 2022-03-18 22:50:41 -04:00
Tsu-ba-me
8c60aaaf5f chore(striker-ui): revise scripts for lint and quick-fix 2022-03-18 22:50:41 -04:00
Tsu-ba-me
9d4ab524a5 chore(striker-ui): remove eslint-plugin-prettier 2022-03-18 22:50:41 -04:00
Tsu-ba-me
3ef676304a build(striker-ui-api): include file-manager page in distribution 2022-03-18 22:50:41 -04:00
Tsu-ba-me
f7cf9fda06 fix(units): correct nodejs executable path in striker-ui-api service 2022-03-18 22:50:41 -04:00
Tsu-ba-me
30302410ad build(striker-ui-api): remove version requirement on nodejs 2022-03-18 22:50:41 -04:00
Tsu-ba-me
10c0d7a144 build(striker-ui-api): use webpack + babel (transpile) to generate output for nodejs 10 2022-03-18 22:50:41 -04:00
Tsu-ba-me
8de0d73778 build: re-add nodejs as anvil-striker package dependency 2022-03-18 22:50:41 -04:00
Tsu-ba-me
c9bf7bdfd2 build: summarize attempt #3 nodejs-as-dependency 2022-03-18 22:50:41 -04:00
Tsu-ba-me
671a8617f2 build: try #3 nodejs-as-dependency syntax in spec file 2022-03-18 22:50:41 -04:00
Tsu-ba-me
8a15ce6117 build: try #2 nodejs-as-dependency syntax in spec file 2022-03-18 22:50:41 -04:00
Tsu-ba-me
1192d775c0 build: include striker API data dir in spec file 2022-03-18 22:50:41 -04:00
Tsu-ba-me
bf0ace2e3d fix(striker-ui-api): add nodejs as striker dependency 2022-03-18 22:50:41 -04:00
Tsu-ba-me
409df04366 fix(striker-ui-api): relocate API resources during installation 2022-03-18 22:50:41 -04:00
Tsu-ba-me
a951ac3892 fix(striker-ui-api): compile API to single script 2022-03-18 22:50:41 -04:00
Tsu-ba-me
86b838cdcb fix(striker-ui): export message box types 2022-03-18 22:50:41 -04:00
Tsu-ba-me
bac8680b36 fix(striker-ui): correct file icon URL in header 2022-03-18 22:50:41 -04:00
Tsu-ba-me
53b2560f34 fix(striker-ui): info file upload appear delay 2022-03-18 22:50:41 -04:00
Tsu-ba-me
dc701fe9c5 fix(striker-ui): add periodic check to update files list 2022-03-18 22:50:41 -04:00
Tsu-ba-me
b04a7c0233 fix(striker-ui): point files link to file-manager 2022-03-18 22:50:41 -04:00
Tsu-ba-me
18e8b21214 fix(Anvil): config Apache to forward requests to Striker UI API 2022-03-18 22:50:41 -04:00
Tsu-ba-me
5478f187b0 build(striker-ui-api): add API as systemd service 2022-03-18 22:50:41 -04:00
Tsu-ba-me
8a2b96bffa build(striker-ui-api): add compressed API executable and its install logic to Makefile 2022-03-18 22:50:41 -04:00
Tsu-ba-me
fb21cad83c chore(striker-ui-api): add scripts to compress and decompress build output 2022-03-18 22:50:41 -04:00
Tsu-ba-me
d764366fe8 chore(striker-ui-api): fix package vulnerabilities 2022-03-18 22:50:41 -04:00
Tsu-ba-me
5a3ab20308 fix(striker-ui): remove duplicate icon button declaration 2022-03-18 22:50:41 -04:00
Tsu-ba-me
cef5ae395c fix(striker-ui): change colour of finish edit icon in Servers panel 2022-03-18 22:50:41 -04:00
Tsu-ba-me
8632f29db2 fix(striker-ui): isolate message box for reuse 2022-03-18 22:50:41 -04:00
Tsu-ba-me
131c50863e fix(striker-ui): only send changed properties when edit file 2022-03-18 22:50:41 -04:00
Tsu-ba-me
eab3abd7db fix(striker-ui): show spinner after clicking purge/update in edit file 2022-03-18 22:50:41 -04:00
Tsu-ba-me
24442d524b fix(striker-ui): add purge file confirm dialog 2022-03-18 22:50:41 -04:00