Skip to main content

Management VM failure

Center runs in a single management virtual machine (VM) on a pool of one node. If the node of this VM fails, the cluster starts the VM again on its own together with the pool: the web interface and API are unavailable for several minutes. All this time, the cluster VMs keep running — only operations and auto-restart of crashed VMs do not run.

How it works​

The management VM is VM number 0 on the first pool of the cluster, usually z01. It runs Center with its database and the message broker that Center uses to communicate with the nodes. There is no second copy: the management VM moves together with its pool — Management VM and Center.

Management VM failure: pool z01 opens on another node, the node starts the management VM, Center boots, the nodes connect to the broker, Center starts the VMs

  1. The pool fails over. The cluster manager fences the failed node and opens the management VM pool on another node. Center is not needed for this — Node failure.
  2. The node starts the management VM. When a node opens a pool, it starts the service VMs of the pool on its own, and the management VM is one of them. The node does not start the other VMs of the pool — Center starts them.
  3. Boot. The management VM performs a full boot: its OS, the database, the broker, then Center.
  4. The nodes reconnect. All this time, the controllers on the nodes try to reach the broker and connect on their own when it starts working: the VM controller retries every 5 seconds.
  5. Center starts the VMs. After it starts, Center polls the nodes and starts the VMs that must be running, including the VMs of pools that failed over while Center was unavailable: VM auto-restart after a failure.

Web interface and API downtime​

What happenedThe web interface and API are unavailable
The node of the management VM pool failed or rebootedpool failover, about 1–2 minutes, plus several minutes for the VM to boot
Support transfers the management VM pool on the nodeseveral minutes
The node of the management VM pool was put into maintenance modeseveral minutes: the cluster moves the pool after the node is disabled
The management VM pool was stopped, suspended or transferred from the web interfaceuntil vStack support restores the pool
The management VM pool is faultyuntil the pool is restored
The management VM crashed on a healthy pooluntil it is started: the node does not restart a crashed VM on its own
The cluster manager does not respondthe web interface opens, but actions do not run until the cluster manager is restored

The node handles a guest OS reboot of the management VM on its own and starts the VM again. It does not handle a crash: the node starts the management VM only when it opens the pool of this VM, and Center cannot start itself.

What works without Center​

WorksDoes not work
running VMsthe web interface and API, and with them the systems that work with the cluster through the API
failover of pools from failed nodesstarting, stopping and changing VMs
restarting a VM when its guest OS reboots — the node does thisauto-restart of crashed VMs: the VMs of pools that failed over wait for Center

The controllers on the nodes write broker connection errors to their logs. This is expected until the management VM boots.

What you see​

  • The browser does not open the web interface or shows a web server error. If the management VM is running but the cluster manager does not respond, actions fail with the Request timed out (error code: -10500) notification or the ZMQ request failed error.
  • After Center is restored, the VMs waiting to start go to Starting and Started. Tasks that were running at the moment of the failure may not have finished — check them in the Tasks section — View tasks and terminate a stuck one.
  • On a node, the vstack-vm vm list command shows the row of VM 0 with its pool and the Started status on the node that now owns the pool. The command only reads the state.

Limitations​

  • One per cluster. There is no standby management VM, and its availability equals the availability of its pool. If the pool is suspended or its I/O is stopped because of a fault, the management VM stops working as well.

What not to do​

  • Do not stop, suspend or transfer its pool from the web interface — vStack support does this. The node of this pool can be put into maintenance mode: the cluster moves the pool, and Center becomes unavailable for a few minutes — Put a node into maintenance mode.
  • Do not reboot the node where it is starting to speed up the process: the pool will start failing over again.
  • Do not restart the controller services on all nodes. They reconnect to the broker on their own; a mass restart can cause new failures.
  • Do not look for the broker on the nodes. It runs only inside the management VM.
  • Do not restart the cluster manager if the web interface opens but actions do not run: a restart moves the pools of the node to other nodes, and VM downtime adds to management downtime.

See also​