Rename the control plane
After the control plane's name (KVBOX_CLOUD_NAME) changes, move each host's boxes to the new name.
A box made through a control plane belongs to <user>@<name>, where the name is the control plane's KVBOX_CLOUD_NAME. A host writes that owner in its folders, in each box's record and in the SSH line that says whose certificates the box accepts. When the name changes on the control plane, certificates are signed for the new name and the boxes refuse them until each host is told, on the host:
kvbox-server rename-realmIt asks the control plane the host joined what it is called now, shows how many boxes, snapshots and volumes it will move and asks for confirmation (-y in scripts). To pass the name by hand: kvbox-server rename-realm <name>.
The daemon is stopped for the few seconds this takes and started again. Boxes keep running; a backup in progress is lost and has to be started again. A running box accepts certificates for the new name right away, a stopped, hibernated or paused one the next time it runs; --json lists them under keysPending.
A running box with integrations on that has been running since before its host's kvbox-server knew integrations cannot fetch their credentials after the move: the command names each one (integrationsPending with --json). Stop and start it, or hibernate and wake it.
Do this on every host, after the control plane was redeployed with the new name. Until a host has done it, kvbox connect, exec and cp are refused for its boxes; everything else keeps working.
If a host left and joined again under the new name while its boxes stayed under the old one, say where they are: kvbox-server rename-realm --from <old name>.