Commit Graph

2746 Commits

Author SHA1 Message Date
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
Tsu-ba-me
6f8a3f93c7 fix(striker-ui): populate partial fields in PrepareNetworkForm 2023-02-14 22:42:50 -05:00
Tsu-ba-me
e02ffcd95a fix(striker-ui): get host-specific NICs in NetworkInitForm 2023-02-14 22:42:50 -05:00
Tsu-ba-me
32c32350bd fix(striker-ui-api): get NICs on specified host 2023-02-14 22:42:50 -05:00
Tsu-ba-me
f4c171b44f fix(striker-ui): record 'using NextRouter query params in API request' 2023-02-14 22:42:50 -05:00
digimer
645f54ab89 This commit has more changes than I would normally like, but it's all linked to changing file uploads to rsync serially.
* To update file handling for the new DR host linking mechanism, file_locations -> file_location_anvil_uuid was changed to file_location_host_uuid.
  This required a fair number of changes elsewhere to handle this, with a particular noted change to Database->get_anvils() to look at host_uuid's for the subnodes in an Anvil! and, if either is marked as needing a file, make sure the peer is as well. Similarly, any linked DRs are set to have the file as well.
* Created a new Network->find_access that simply takes a target host name or UUID, and it returns a list of networks and IPs that the target can be accessed by.
* Updated Network->load_ips() to find the network interface being used for traffic so that things like the interface speed can be recorded, even when an IP is on a bridge or bond.

Unrelated, but in this commit, is a restoration of calling scan agents with a timeout now that the virsh hang issue has been resolved.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-02-14 02:29:40 -05:00
digimer
7710d9d109 * Created the new anvil-manage-server-storage tool which will specifically handle managing a server's disks.
* Created DRBD->parse_resource() to pass a specific DRBD resource's XML data.
* Fixed a bug in Get->available_resources() so that if the threads is lower than CPU cores, the cores are used as the total available to VMs.
* Fixed bugs in Get->server_from_switch() where it just wasn't working properly.
* Updated scan_drbd to not reset a resource's size to 0-bytes when a resource goes offline.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-02-03 22:05:34 -05:00
Fabio M. Di Nitto
adff98104c
Merge pull request #304 from ylei-tsubame/fix-get-server-ss
Web UI: stop accumulating blocked server screenshot data writes
2023-02-03 07:20:43 +01:00
Tsu-ba-me
18ad881ff8 build(striker-ui-api): rebuild UI API 2023-02-02 23:24:51 -05:00
Tsu-ba-me
58d09cb08c fix(tools): make server screenshot write to named pipe non-blocking 2023-02-02 23:18:26 -05:00
Tsu-ba-me
950a98558f fix(striker-ui-api): improve receive server screenshot from named pipe 2023-02-02 19:25:40 -05:00
Tsu-ba-me
eb561d6d39 fix(tools): always send to pipe when given request host 2023-02-02 19:21:56 -05:00
Tsu-ba-me
3802c72912 fix(tools): check server state before getting screenshot 2023-02-02 18:25:33 -05:00
Tsu-ba-me
a9cc123300 fix(tools): exit at end of anvil-get-server-screenshot 2023-02-02 17:11:56 -05:00
digimer
9751c883cb * Updated Cluster->assemble_storage_groups() to remove refrences to anvil_dr1_host_uuid. Also added the logic for auto-adding DR host's VGs to a storage group. Commented it out though as, for now, this might be a bad idea. Needs more thought.
* Fixed a bug in Database->get_storage_group_data() to load hosts data when needed. Also fixed a bug where new members didn't return the new storage_group_member_uuid.
* Updated anvil-manage-host to use the new switch handler.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-02-01 23:19:38 -05:00
digimer
7773e5f9b8 * Updated logging in DRBD->get_devices().
* Added a check and exit if anvil-manage-dr is asked to protect a server on a machine that doesn't know about that server.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-01-30 11:30:36 -05:00
Fabio M. Di Nitto
dce4aa58c1
Merge pull request #301 from ClusterLabs/fix-rpm
Partially revert e9f390b65b
2023-01-23 10:36:41 +01:00
Fabio M. Di Nitto
077355aeca Partially revert e9f390b65b
Remove call to anvil-version-change from rpm %post as it´s
a DB corruptor trigger

Signed-off-by: Fabio M. Di Nitto <fabbione@fabbione.net>
2023-01-23 06:49:03 +01:00
Fabio M. Di Nitto
b60c89c6bc
Merge pull request #300 from ClusterLabs/anvil-tools-dev
* Added a check to ensure a storage group actually exists before tryi…
2023-01-23 06:47:52 +01:00