OPNexusdocs

Scheduled maintenance

Reboot, update or major upgrade can be set for a one-time future point in time. This is explicitly "runs unattended" and requires confirmation. At the trigger time OPNexus checks the locks and the fresh backup again. A blocked action is marked "failed" and not retried. It appears in the status of the scheduled maintenance and additionally reports via notification ("Scheduled maintenance not executed", can be switched individually), so that you do not only notice it the next morning when you look. Recurring appointments and whole fleets run via rollouts.

Check and complete the result automatically (preselected in the dialog): after the job OPNexus waits until the firmware job has finished and then checks itself: firmware ready for at least one minute in a row, an expected reboot really took place (host seen offline or new boot time), version readable. Only then is the maintenance action marked completed and no longer blocks host and cluster. If this does not succeed within 20 minutes, it stays "unclear" (blocked, with notification). Without the option it stays "handed over", as before, until someone completes it by hand.

In a cluster, unattended maintenance runs by default only on the CARP BACKUP. If the host is currently MASTER when scheduling, OPNexus rejects this immediately with a reason instead of failing only at the scheduled time.

With automatic CARP switchover (option in the scheduling dialog, only for cluster nodes, off by default) the MASTER may be scheduled as well. At the time the following runs:

  1. Check prerequisites (partner reachable and BACKUP, no open maintenance, for updates a fresh backup). If something is not met, nothing is changed.
  2. Switch on CARP maintenance mode on the host. OPNexus waits up to 3 minutes until the partner is actually MASTER. If it does not become so, OPNexus switches back and updates nothing.
  3. Only then the action starts (reboot/update/major upgrade).
  4. OPNexus waits until the host is reachable again and the firmware job has finished (for a reboot the host must first have been observed as down).
  5. Leave maintenance mode and check that both nodes are reachable again and have exactly one MASTER. Depending on the CARP settings the host takes the MASTER role back (a brief second switch).

If something fails after step 3 (timeout, unclear response, host does not come back), the host deliberately stays in maintenance mode and the partner remains MASTER; the plan shows "failed", the maintenance action "unclear", and the notification is sent. The CARP switch is never blindly repeated. If you end the maintenance action by hand, the flow stops and touches nothing further. On success OPNexus completes the maintenance action itself. It also continues through a restart of the OPNexus backend in the middle of the flow (the state is in the database). With "Check result automatically" the check comes before leaving maintenance mode: the host only gets traffic back once it is demonstrably finished.