Commit Graph

2919 Commits

Author SHA1 Message Date
Tsu-ba-me
e909a715a3 feat(tools): add cli tool for accessing database with SQL query 2022-03-18 22:50:40 -04:00
Tsu-ba-me
b89953dbe8 feat: add API skeleton for striker-ui 2022-03-18 22:50:40 -04:00
Tsu-ba-me
6692c96835 fix(striker-ui): duck-tape AnvilHost to avoid crash when processing undefined host 2022-03-18 22:50:40 -04:00
Tsu-ba-me
0db0a94a05 style(striker-ui): fix style linting errors in components 2022-03-18 22:50:40 -04:00
Tsu-ba-me
c2f38a3f00 fix(striker-ui): trigger file input field with icon button 2022-03-18 22:50:40 -04:00
Tsu-ba-me
ed723734c4 fix(striker-ui): add button to upload files 2022-03-18 22:50:40 -04:00
Tsu-ba-me
96e7af8949 feat(striker-ui): add file-manager page 2022-03-18 22:50:40 -04:00
Fabio M. Di Nitto
f45675d99c
Merge pull request #224 from ClusterLabs/anvil-tools-dev
* This rather heavily reworks how database shutdowns works. It adds m…
2022-03-17 05:31:43 +01:00
Digimer
8fbf594002 Updated striker-prep-database to stop -> start postgres post-configure, and to connect -> disconnect to run the schema load logic.
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-03-16 13:59:21 -04:00
Digimer
edf51adaec * Changed 'anvil-manage-power' to no longer set the job progress to 50 prior to calling a reboot. It now sets to 100 immediately. Also reduced the uptime timer to five minutes from ten.
* Updated striker-auto-initialize-all() to reconnect to DBs during waits to better detect when a DB is marked as offline.

Signed-off-by: Digimer <digimer@alteeve.ca>
2022-03-16 00:35:26 -04:00
Digimer
422d248cbe * Updated Database->insert_or_update_states() to not actually record unless the state_host_uuid exists in all available databases.
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-03-15 23:42:31 -04:00
Digimer
7b090e1623 * Updated Database->shutdown() to disconnect, stop the postgresql daemon, then reconnect.
* Updated anvil-daemon to not stop a database until both/all DB hosts are in both/all DB's hosts table.

Signed-off-by: Digimer <digimer@alteeve.ca>
2022-03-15 22:33:42 -04:00
Fabio M. Di Nitto
0ebe589c93 Ship striker-db-status
Signed-off-by: Fabio M. Di Nitto <fabbione@fabbione.net>
2022-03-15 05:50:32 +01:00
Digimer
513ce3b74e Created 'striker-db-status' that reports the status of the databases to external tools. It's basic, but it works.
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-03-14 16:41:37 -04:00
Digimer
3fd0db15bf * This rather heavily reworks how database shutdowns works. It adds much more intelligent shutdown, tracking who is using the database, being able to mark a database as "offline" and waiting for users of the database to disconnect before it shuts down.
* Also removed the variables for the database name and DB user name, setting them statically now.
* Created Database->shutdown() to more kindly stop a local database server.
* Added 'check_db_in_use_states()' to anvil-daemon to clean any stale entries marking a database as in use.

Signed-off-by: Digimer <digimer@alteeve.ca>
2022-03-14 16:41:37 -04:00
digimer-bot
6b3461bd66
Merge pull request #222 from ClusterLabs/anvil-tools-dev
Updated anvil-daemon to check if anvil-sync-shared is running if the …
2022-03-01 02:50:55 -05:00
Digimer
b234b79544 Updated anvil-daemon to check if anvil-sync-shared is running if the reported RAM use is too high. If so, it doesn't exit. This fixes an issue where anvil-sync-shared would loop forever as it would constantly be killed when downloading large files.
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-02-27 21:29:30 -05:00
Digimer
da0b1f6db1
Merge pull request #221 from Tsu-ba-me/post-pr188-rebuild
Web UI: repair crash upon loading Dashboard
2022-02-25 15:01:50 -08:00
Digimer
4f4a2fb847
Merge branch 'main' into post-pr188-rebuild 2022-02-25 10:14:02 -08:00
digimer-bot
8432edd4bb
Merge pull request #220 from ClusterLabs/anvil-tools-dev
Further improved startup DRBD logic in ocf:alteeve:server. Specifical…
2022-02-25 10:13:25 -08:00
Digimer
68b1d12545 Updated anvil-daemon to not shutdown a striker DB until the striker host has been running for at least an hour.
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-02-24 22:25:37 -05:00
Digimer
763821a21d Fixed a variable substitution bug.
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-02-24 22:25:37 -05:00
Tsu-ba-me
33438aa9eb chore: rebuild web UI 2022-02-24 00:04:04 -05:00
Tsu-ba-me
1c675b01b1 chore(striker-ui): regenerate next-env.d.ts 2022-02-24 00:04:04 -05:00
Tsu-ba-me
788740f7d4 chore(striker-ui): re-run npm install; re-generate package-lock 2022-02-24 00:04:01 -05:00
Tsu-ba-me
7d4e791565 fix(striker-ui): remove undefined hosts after host sanitize
The back-end is currently ignoring requests for status on the DR
host(s) because we don't need to show DR status in the UI (for now).
The front-end gets undefined when trying to match a DR host array index
to the AnvilStatusHost[].

This change filters out the undefined item(s) to prevent crashing.
2022-02-23 23:35:41 -05:00
Tsu-ba-me
071ba8f099 chore(striker-ui): config lint-staged to ignore out/ 2022-02-23 23:35:39 -05:00
Tsu-ba-me
5f702f6a15 chore(striker-ui): enable 'incremental' in tsconfig 2022-02-23 17:42:21 -05:00
Digimer
f7930f24ac
Merge branch 'main' into anvil-tools-dev 2022-02-23 12:44:12 -05:00
Digimer
7023ffb56b Further improved startup DRBD logic in ocf:alteeve:server. Specifically, it will startup if a local resource/volume is sync'ing.
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-02-23 12:41:49 -05:00
Digimer
7fe1bbfbf4
Merge pull request #218 from ClusterLabs/dependabot/npm_and_yarn/striker-ui/trim-off-newlines-1.0.3
chore: bump trim-off-newlines from 1.0.1 to 1.0.3 in /striker-ui
2022-02-22 11:52:37 -05:00
Digimer
fb7293f819
Merge branch 'main' into dependabot/npm_and_yarn/striker-ui/trim-off-newlines-1.0.3 2022-02-21 23:33:42 -05:00
Digimer
9b54813fe3
Merge pull request #219 from ClusterLabs/anvil-tools-dev
Anvil tools dev
2022-02-21 23:33:28 -05:00
Digimer
7e99676435 Merge remote-tracking branch 'origin/anvil-tools-dev' into anvil-tools-dev
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-02-21 20:24:08 -05:00
Digimer
bc39c3fe5c Updated ocf:alteeve:server to better handle multi-peer DRBD configurations.
Cleaned up some logging in DRBD->get_status.

Signed-off-by: Digimer <digimer@alteeve.ca>
2022-02-21 19:18:28 -05:00
Digimer
e62e5d7b0c * Updated ocf:alteeve:server to better handle starting up DRBD resources before trying to boot a VM.
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-02-21 19:18:28 -05:00
Digimer
87a2454a09 Moved anvil-configure-host reboot logging to use log_0687 to help grep for reboot causes.
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-02-21 19:18:28 -05:00
Digimer
26f6d506d4
Merge branch 'main' into anvil-tools-dev 2022-02-18 22:39:08 -05:00
Digimer
3c0435a455 * Updated ocf:alteeve:server to better handle starting up DRBD resources before trying to boot a VM.
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-02-18 22:37:43 -05:00
dependabot[bot]
176535eed8
chore: bump trim-off-newlines from 1.0.1 to 1.0.3 in /striker-ui
Bumps [trim-off-newlines](https://github.com/stevemao/trim-off-newlines) from 1.0.1 to 1.0.3.
- [Release notes](https://github.com/stevemao/trim-off-newlines/releases)
- [Commits](https://github.com/stevemao/trim-off-newlines/compare/v1.0.1...v1.0.3)

---
updated-dependencies:
- dependency-name: trim-off-newlines
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-18 16:34:52 +00:00
Digimer
4417931c83
Merge pull request #217 from ClusterLabs/dependabot/npm_and_yarn/striker-ui/next-12.1.0
chore: bump next from 11.1.3 to 12.1.0 in /striker-ui
2022-02-18 11:33:19 -05:00
dependabot[bot]
bd307f71dc
chore: bump next from 11.1.3 to 12.1.0 in /striker-ui
Bumps [next](https://github.com/vercel/next.js) from 11.1.3 to 12.1.0.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/compare/v11.1.3...v12.1.0)

---
updated-dependencies:
- dependency-name: next
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-18 02:13:31 +00:00
Digimer
33e50a56ba
Merge pull request #213 from ClusterLabs/dependabot/npm_and_yarn/striker-ui/nanoid-3.2.0
chore: bump nanoid from 3.1.30 to 3.2.0 in /striker-ui
2022-02-17 21:12:32 -05:00
Digimer
df69226db8
Merge branch 'main' into dependabot/npm_and_yarn/striker-ui/nanoid-3.2.0 2022-02-17 17:02:36 -05:00
Digimer
c9a9e28491
Merge pull request #188 from Tsu-ba-me/minor-fixes-20210827
Web UI: add minor fixes
2022-02-17 17:01:23 -05:00
Digimer
920d38d250 Moved anvil-configure-host reboot logging to use log_0687 to help grep for reboot causes.
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-02-17 13:56:29 -05:00
digimer-bot
4f6bdd739e
Merge branch 'main' into minor-fixes-20210827 2022-02-17 11:33:30 -05:00
digimer-bot
0305df404b
Merge pull request #216 from ClusterLabs/anvil-tools-dev
Updated scancore and anvil-daemon to check their RAM use at the end o…
2022-02-17 11:30:48 -05:00
Digimer
dc989f0950 Added more logging to track when and how reboots happen in systems.
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-02-16 21:55:33 -05:00
Digimer
ec3b3d2ac9 Fixed a bug in Database->_age_out_data() where checking if a table existed was hard coded to one table.
Signed-off-by: Digimer <digimer@alteeve.ca>
2022-02-13 19:55:24 -05:00