Commit Graph

2764 Commits

Author SHA1 Message Date
digimer
efebd135eb * Removed more references to 'dr1_host_uuid' from the old way of linking DR hosts to Anvil! nodes.
* Fixed a bug where servers protected by DR hosts aren't deleted when the server itself is deleted.
* Updated DRBD->delete_resource() to remove the server's XML file if the host is a DR host.
* Updated anvil-version-change and anvil.sql to enable update_audits and the audits table.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-03-30 12:50:44 -04:00
Digimer
e49145efe1
Merge pull request #314 from ClusterLabs/anvil-tools-dev
Anvil tools dev
2023-03-27 20:09:46 -04:00
Digimer
b4bfd080c9
Merge branch 'main' into anvil-tools-dev 2023-03-27 12:38:35 -04:00
digimer
41fb8baeda * Fixed a bug in Database->get_storage_group_data() that was deleting DR host storage group members.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-03-27 12:35:22 -04:00
digimer
8ff40ec42c * Fixed a SQL query bug in Database->get_drbd_data().
* Got more work done on anvil-manage-server-storage; Now shows DRBD resource size, backing LV and size, and calculates/displayes metadata size.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-03-26 02:09:52 -04:00
digimer
040bc02e26 * This adds the new Database->get_drbd_data() that, like ->get_lvm_data, collates the DRBD data collected by scan-drbd into more readibly parsable data structure.
* Updated DRBD->parse_resource() to add references to a resource name and volume for a given backing disk.
* Comtinued work on anvil-manage-server-storage.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-03-24 19:45:47 -04:00
digimer
fc50e4e605 * Updated man pages
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-03-24 01:27:15 -04:00
Fabio M. Di Nitto
b75512e540 virt-install should not --wait on VM to be provisioned
Resolves: https://github.com/ClusterLabs/anvil/issues/277

Signed-off-by: Fabio M. Di Nitto <fabbione@fabbione.net>
2023-03-24 01:27:15 -04:00
Fabio M. Di Nitto
856809c723 Fix typo in log message
Resolves: https://github.com/ClusterLabs/anvil/issues/294

Signed-off-by: Fabio M. Di Nitto <fabbione@fabbione.net>
2023-03-24 01:27:15 -04:00
digimer
8e0e51544c * Continued work on anvil-manage-server-storage.
* Created the new Database->get_lvm_data to compile LVM data from scan-lvm
* Updated DRBD->parse_resource to call Database->get_lvm_data if needed, and to track backing devices to Storage Groups.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-03-22 22:57:26 -04:00
Digimer
90fccf4e9a
Merge pull request #313 from ClusterLabs/minor-fixes
Minor fixes
2023-03-22 11:32:53 -04:00
Fabio M. Di Nitto
158143715e virt-install should not --wait on VM to be provisioned
Resolves: https://github.com/ClusterLabs/anvil/issues/277

Signed-off-by: Fabio M. Di Nitto <fabbione@fabbione.net>
2023-03-22 08:37:11 +01:00
Fabio M. Di Nitto
a6f2c2271e Fix typo in log message
Resolves: https://github.com/ClusterLabs/anvil/issues/294

Signed-off-by: Fabio M. Di Nitto <fabbione@fabbione.net>
2023-03-22 07:38:10 +01:00
Digimer
cab2b28b36
Merge pull request #311 from ClusterLabs/dependabot/npm_and_yarn/striker-ui-api/webpack-5.76.0
build(deps-dev): bump webpack from 5.70.0 to 5.76.0 in /striker-ui-api
2023-03-21 12:34:15 -04:00
Digimer
da702ed4a9
Merge branch 'main' into dependabot/npm_and_yarn/striker-ui-api/webpack-5.76.0 2023-03-21 10:01:24 -04:00
Fabio M. Di Nitto
e5b8fa667c
Merge pull request #309 from ClusterLabs/anvil-tools-dev
* Fixed a bug in Network->load_ips() where interfaces were being mark…
2023-03-21 09:40:17 +01:00
digimer
b144976853 This resolves Issue #310.
* Updated Database->get_file_locations() to record files available on Anvil! nodes by tracking hosts in Anvil! systems (needed after reworking how DR hosts are linked).
* Updated Get->available_resources() to call Database->get_files() and ->get_file_locations() to restore tracking files available on Anvil! nodes.
* Fixed a couple display bugs in anvil-provision-server when called with --ci-test --options.
* Continued work on anvil-manage-server-storage.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-03-20 23:43:40 -04:00
dependabot[bot]
b0ada6fba5
build(deps-dev): bump webpack from 5.70.0 to 5.76.0 in /striker-ui-api
Bumps [webpack](https://github.com/webpack/webpack) from 5.70.0 to 5.76.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.70.0...v5.76.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-14 22:20:16 +00:00
digimer
fea10e5bb1 * Prefixed all 'virsh' calls with 'setsid --wait' to help prevent future hangs if the call happens without a shell.
* Updated anvil-manage-server-storage to the point where it can now insert and eject optical disks!
* Updated System->call to log parameters if 'shell_call' isn't set.
* Fixed a bug in anvil-manage-server process_interactive where an $anvil->data reference was being scoped.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-03-03 14:42:28 -05:00
digimer
7891c9b2b1 * Fixed a bug in Network->load_ips() where interfaces were being marked as type 'bridge' or 'bond'.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-02-27 12:31:33 -05:00
Yanhao Lei
61694a9c04
Merge pull request #307 from ylei-tsubame/host-network-config
Add prepare network form and connector page
2023-02-23 15:19:52 -05:00
Digimer
e7b82270b2
Merge branch 'main' into host-network-config 2023-02-23 11:03:08 -05:00
Digimer
656c4daafe
Merge pull request #308 from ClusterLabs/anvil-tools-dev
Anvil tools dev
2023-02-23 11:02:51 -05:00
digimer
5dbdd20d7e * Fixed a bug in Network->load_ips() where the IP address on a bridge or bond was having the device name recorded incorrectly.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-02-23 00:39:43 -05:00
digimer
147f31aeeb * Added a loop when calling 'anvil-change-password' in a loop as there appears to be an unknown condition where during setup, this is called but never actually runs.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-02-22 18:37:13 -05:00
digimer
ab3e8afe6e Fixed a bug in Storage->push_file() where file path wasn't updated from incoming to files, preventing the push to other hosts from working. Also fixed a minor issue where the file size was sometimes 0, making transfer calculations useless.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-02-22 13:21:29 -05:00
Digimer
d59034a488
Merge branch 'main' into anvil-tools-dev 2023-02-22 02:21:50 -05:00
digimer
254f7ef4e2 This should fix the tracking of what files belong where, using the new DR links system. It also should finish (though testing is still needed) the serial rsync issue.
* Created Database->track_files() as a dedicated method as trying to verify the existence of file_locations during Database->load_anvils() was fragile and prone to recursive loops.
* Updated Database->insert_or_update_file_locations() to take an anvil_uuid and recursively call for each host, to maintain compatibility with the old ways, and make it simpler to add an entry for both sub-nodes in an Anvil!.
* Created Storage->push_file() that takes a file and rsync's it to all other machines, or creates a job for the file to be pulled if the target can't be accessed.
* Updated anvil-manage-files and anvil-sync-shared to use the new Storage->push_files and Database->track_files methods.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-02-22 02:13:19 -05:00
Tsu-ba-me
3622f4556f fix(striker-ui): relocate type SelectItem 2023-02-14 22:42:50 -05:00
Tsu-ba-me
e56fcfd880 fix(striker-ui): add default protect() to useProtectedState 2023-02-14 22:42:50 -05:00
Tsu-ba-me
d45c0374fc fix(striker-ui): populate gateway and DNS in NetworkInitForm 2023-02-14 22:42:50 -05:00
Tsu-ba-me
126b9b33e3 chore(striker-ui): identify missing handler for netmask error 2023-02-14 22:42:50 -05:00
Tsu-ba-me
9ba920867c fix(striker-ui): make migration network appear 2023-02-14 22:42:50 -05:00
Tsu-ba-me
fbd3ca1cf1 fix(striker-ui): relocate add button in NetworkInitForm 2023-02-14 22:42:50 -05:00
Tsu-ba-me
a53056ff12 fix(striker-ui): add /manage-element page 2023-02-14 22:42:50 -05:00
Tsu-ba-me
67a14b20f8 fix(striker-ui): allow set host externally in PrepareNetworkForm 2023-02-14 22:42:50 -05:00
Tsu-ba-me
1248a5e14e fix(striker-ui): add getQueryParam() 2023-02-14 22:42:50 -05:00
Tsu-ba-me
271b33eaf7 fix(striker-ui-api): filter /host with host type(s) 2023-02-14 22:42:50 -05:00
Tsu-ba-me
11aa7f548f fix(striker-ui): adjust Tab* style 2023-02-14 22:42:50 -05:00
Tsu-ba-me
1432e4969e fix(striker-ui): add custom tab-related components 2023-02-14 22:42:50 -05:00
Tsu-ba-me
823bb7110f fix(striker-ui): allow BodyText to inherit colour 2023-02-14 22:42:50 -05:00
Tsu-ba-me
4c057a30f7 fix(striker-ui): distinct server preview loading and power off 2023-02-14 22:42:50 -05:00
Tsu-ba-me
188b08f87b fix(striker-ui): align poweroff icon in server preview 2023-02-14 22:42:50 -05:00
Tsu-ba-me
fae3bbf236 fix(striker-ui): don't fetch if fatal error in PrepareNetworkForm 2023-02-14 22:42:50 -05:00
Tsu-ba-me
9067dc87d4 fix(striker-ui): pass hostDetail to NetworkForm 2023-02-14 22:42:50 -05:00
Tsu-ba-me
b756b2ac74 fix(striker-ui): don't show network link 2 when not enough NICs 2023-02-14 22:42:50 -05:00
Tsu-ba-me
73d04b7078 fix(striker-ui): add storage network for nodes in NetworkInitForm 2023-02-14 22:42:50 -05:00
Tsu-ba-me
03a251f44d fix(striker-ui): add buildObjectStateSetterCallback 2023-02-14 22:42:50 -05:00
Tsu-ba-me
43f4d89271 fix(striker-ui): revise data passing to NetworkInitForm 2023-02-14 22:42:50 -05:00
Tsu-ba-me
58c9e05a9b fix(striker-ui-api): add hostType to /host/:hostUUID 2023-02-14 22:42:50 -05:00