Open ylei-tsubame opened 2 months ago
From one of our maritime clients; Required for migration from M2 to M3;
anvil-safe-stop --stop-servers --poweroff
online
, degraded when 1 or more subnode didn't complete all its states, offline
when no subnodes completed its states.online
when it completes all its states, otherwise, it's not readycold stop anvil
(cold stop all nodes)power on anvil
(power on all nodes)shut down all servers
(shut down servers across all nodes)boot all servers
(boot servers across all nodes)
cold stop node
(shut down everything sequentially)power on node
(when both nodes are off)power on
for 1 subnode; keep the word choice because boot/shut down is for serverspower off
for 1 subnodestart node
(when both nodes are not in cluster)join node
for 1 subnodewithdraw
for 1 subnodefence
/force reboot
for 1 subnode; dangerous op
network_interfaces
), ip address; look in anvil-report-usage
to see how the server data is collectedgraceful shut down
(2 word)graceful shut down all
force reboot
; dangerous opboot
migrate
; just migrate to subnode that the server isn't currently running on; disable when the target server is already migratingmigrate all to subnode
; if all servers are on 1 subnode, simply migrate all servers to the other; but if there are servers across both subnodes, ask the user which is the targetparallel
or in series
(one-by-one)delete
; dangerous op; make the user type the name of the server to confirm the deletionForce-off/reboot VMs is already supported with anvil-shutdown-server --server <foo> --immediate
.
@ylei-tsubame - For the 'force off' / 'force reboot' of the host, striker-boot-machine
can take the switches --force-off
or --force-reboot
. Alternatively, you can set task=force-{off,reboot}
as part of the job_data
.
Stopping all servers at once is done with anvil-shutdown-server --server all
.
Added #352 here as the back-end is done (barring bugs), and so is ready for UI integration
This is the issue for tracking additional UI issues related to enabling server management in the UI. It does include building the forms, etc. (UI elements) to enable the server management tasks.