Commit Graph

3180 Commits

Author SHA1 Message Date
Tsu-ba-me
408e3ba78e fix(striker-ui-api): consolidate config-able constants 2023-07-03 04:46:05 -04:00
Tsu-ba-me
dc6eb4a6d2 fix(striker-ui-api): correct hex regexp pattern 2023-07-03 04:46:05 -04:00
Tsu-ba-me
a56a38f4e6 fix(striker-ui-api): complete get anvil memory summary 2023-07-03 04:46:05 -04:00
Tsu-ba-me
1978983340 fix(striker-ui-api): convert server memory outside SQL in get anvil detail for provision server 2023-07-03 04:46:05 -04:00
Tsu-ba-me
7d79d9a2ce chore(striker-ui-api): install format-data-size 2023-07-03 04:46:05 -04:00
Tsu-ba-me
4e335f49f3 fix(striker-ui-api): add types for query field, row, and result 2023-07-03 04:46:05 -04:00
Tsu-ba-me
fc075d778a fix(striker-ui-api): add get anvil memory summary WIP 2023-07-03 04:46:05 -04:00
Tsu-ba-me
d4eeb2eb89 fix(striker-ui-api): add get anvil CPU summary 2023-07-03 04:46:05 -04:00
Tsu-ba-me
e35f326573 fix(striker-ui-api): file_location_anvil_uuid->_host_uuid in file/anvil request handlers 2023-07-03 04:46:05 -04:00
Tsu-ba-me
039d755e89 refactor(striker-ui-api): reduce repeat in get all servers 2023-07-03 04:46:05 -04:00
Tsu-ba-me
192e1b82cc fix(striker-ui-api): add type number boolean 2023-07-03 04:46:05 -04:00
Tsu-ba-me
83d572530b fix(striker-ui-api): allow get anvil status 2023-07-03 04:46:05 -04:00
Tsu-ba-me
27b11849e8 fix(striker-ui-api): allow get anvil data from access daemon 2023-07-03 04:46:05 -04:00
digimer
bf1ccc8bee * Finally got the creation of new DRBD volumes under existing resources work!
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-06-30 22:36:27 -04:00
digimer
1b8b0bc493 * Created the new 'anvil-manage-server-storage' with the first role of reload a DRBD resource.
* Updated Remote->call() to remove the 'background' parameter as it wasn't working.
* Updated anvil-manage-server-storage to use 'anvil-manage-server-storage' to adjust resources in a way that doesn't block.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-06-30 21:02:30 -04:00
digimer
7fbed10864 * Updated Remote->call() to take the new 'background' parameter.
* Continues work on adding new disks (DRBD volumes) to anvil-manage-server-storage.
* Updated DRBD->get_status() to record the peer-role.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-06-29 22:17:58 -04:00
Digimer
b74d6a6d66
Merge pull request #353 from ClusterLabs/anvil-tools-dev
Anvil tools dev
2023-06-27 10:58:22 -04:00
Digimer
c4b79dc582
Merge branch 'main' into anvil-tools-dev 2023-06-27 00:09:07 -04:00
digimer
ae55ca9187 * Applied the fix for TCP ports aging out reserved TCP ports properly to DRBD->get_next_resource().
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-06-27 00:04:48 -04:00
digimer
ea95d26cc5 * Fixed a bug in DRBD->get_next_resource() where reserved minor numbers were not being released. Also added a new parameter, "minor_only", that returns the next minor number but doesn't bother processing TCP ports.
* Did more work on adding support for adding new disk drives to servers in anvil-manage-server-storage.
* Updated anvil-manage-storage-groups To check for / delete duplicate storage groups with the same name.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-06-26 23:55:19 -04:00
Digimer
fdddbffd9c
Merge pull request #351 from ClusterLabs/anvil-tools-dev
Anvil tools dev
2023-06-26 10:11:49 -04:00
digimer
65af56d5bd * Updated Database->insert_or_update_jobs() to not look for jobs that are complete when no job_uuid is passed.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-06-25 23:20:03 -04:00
digimer
88cc76914d This is an attempt to fix issue #341. It replaces the search for SN IPs from Network->find_matches() to Network->find_access(). The later of which doesn't care about the interface the IP was found on.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-06-24 21:24:37 -04:00
digimer
e0316da88b * Got anvil-manage-server-storage working enough to grow existing disk's hard drive sizes, and to insert/eject optical disks.
* Hit a bug where a server's definition file was written to disk while not being valid. Added logging in case it happens again, and additional safe-guards to help avoid it from recurring.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-06-23 23:09:55 -04:00
digimer
376660a120 * Removed the EXTRA_DIST argument from tools/Makefile.am
* Added a sanity check that a valid optical device was passed to anvil-manage-server-storage

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-06-22 21:20:10 -04:00
digimer
7a32d219fc Removed the old watch_drbd tool and added the new anvil-watch-drbd to the Makefiles.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-06-22 20:47:24 -04:00
digimer
1d12fb32b4 * Completed the new anvil-watch-drbd which replaces watch_drbd.
* Updated Email->get_current_server() to always load mail server data from the database.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-06-22 20:43:46 -04:00
Digimer
25ea57d9c2
Merge pull request #348 from ClusterLabs/anvil-tools-dev
Added logging to help debug a DRBD resource config issue related to f…
2023-06-21 13:51:21 -04:00
digimer
336699a0f2 Added logging to help debug a DRBD resource config issue related to finding matching SN IPs.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-06-21 10:29:44 -04:00
Digimer
169b8328e6
Merge pull request #346 from ClusterLabs/anvil-tools-dev
* This adds the new tool 'striker-check-machines' which simply walks …
2023-06-20 23:12:00 -04:00
Digimer
8f491e01ed
Merge branch 'main' into anvil-tools-dev 2023-06-20 20:00:10 -04:00
digimer
0aa72498db * This adds the new tool 'striker-check-machines' which simply walks through all known physical machines and checks to see if they're accessible and powered on.
* Updated Get->uptime() to work on remote targets.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-06-20 19:57:21 -04:00
Digimer
d9109db946
Merge pull request #345 from ylei-tsubame/build-login
Web UI: add login facilities and interface
2023-06-20 18:41:10 -04:00
digimer-bot
82114120be
Merge branch 'main' into build-login 2023-06-20 10:47:38 -04:00
digimer-bot
4a439f23b6
Merge pull request #344 from ClusterLabs/anvil-tools-dev
* Added checks to anvil-provision-server to fail out if either of the…
2023-06-20 10:47:22 -04:00
Tsu-ba-me
c6bcbc952b fix(striker-ui-api): handle static file requests with file extension 2023-06-20 00:48:22 -04:00
Tsu-ba-me
bfadd3bacb fix(striker-ui-api): use default cors origin handler 2023-06-20 00:48:21 -04:00
Tsu-ba-me
32ae8dd416 fix(striker-ui-api): handle set session without user 2023-06-20 00:48:21 -04:00
Tsu-ba-me
5d54b5d855 fix(striker-ui-api): protect static files 2023-06-20 00:48:21 -04:00
Tsu-ba-me
feae630370 fix(striker-ui-api): allow override fail/succeed in assert authentication 2023-06-20 00:48:21 -04:00
Tsu-ba-me
0f223950e4 fix(striker-ui): correct /login to post with-credentials enabled 2023-06-20 00:48:21 -04:00
Tsu-ba-me
4bbdcc1687 fix(striker-ui-api): enable credentials in cors middleware 2023-06-20 00:48:21 -04:00
Tsu-ba-me
dc765b3719 fix(striker-ui-api): set session cookie options
* Set 'secure' because we don't have a certificate yet
* Set 'httpOnly' to avoid exposing the cookie in 'document'
2023-06-20 00:48:21 -04:00
Tsu-ba-me
2eb5b8a094 fix(striker-ui-api): make login respond with no-content (204) 2023-06-20 00:48:21 -04:00
Tsu-ba-me
9a0ca2f159 docs(striker-ui-api): label anvil-access-module daemon start sequence 2023-06-20 00:48:21 -04:00
Tsu-ba-me
82f4bdff04 refactor(striker-ui-api): organize types after complete migrate to access interact 2023-06-20 00:48:21 -04:00
Tsu-ba-me
d8cc7d9979 fix(striker-ui-api): migrate job to access interact 2023-06-20 00:48:21 -04:00
Tsu-ba-me
7d73fc931e fix(striker-ui-api): migrate insert or update variable to access interact 2023-06-20 00:48:21 -04:00
Tsu-ba-me
3608d6e56e fix(striker-ui-api): accept manifest UUID as URI param in DELETE /manifest 2023-06-20 00:48:21 -04:00
Tsu-ba-me
aa49de761a fix(striker-ui-api): migrate sub to access interact 2023-06-20 00:48:21 -04:00