Troubleshooting updates
What to check if updates fail.
The standard update procedure is described on the page How updates occur in open and closed loops. Before looking for a crash, make sure that the transition between versions is allowed: Update version map. For release policy and version support, see release policy.
The new version does not appear in the GUI
ClusterUpdateChannel in the management cluster builds the version list. The object name and namespace match the cluster name. The list appears in ClusterInfo.status.update.availableUpdates.
- Check that Registry (r.shturval.tech) is reachable from the cluster nodes.
- Check
ClusterUpdateChanneland thestatus.update.availableUpdatesfield ofClusterInfo.
- Make sure the mirror contains the new version bundle. If necessary, follow Working with the mirror after installation.
- If the cluster registry matches the management cluster registry,
cluster-managerrequests the update matrix directly. If the registries differ, check the CronJob and ConfigMapcluster-available-updatesin theshturval-cluster-managernamespace of the client cluster. With a separate registry, after a successful check, the next one follows the CronJob schedule and runs no later than 60 minutes afterward.
If the version is listed as available for migration on the version map, but it is not in the GUI after waiting, save the kubectl output (see below) and contact support.
Update freezes
- Identify the stage that remains in progress (yellow) on the dashboard: preparing the update, removing legacy services, updating
shturval-node-config, updating Kubernetes, or updating platform system services. - If the stage is gray, it has not yet been initialized or may be skipped; check the previous yellow stage and the logs of the corresponding component.
- If a stage remains yellow for a long time, click on the stage icon to get more detailed information about the conditions of the service or nodes. If this information is not enough, check the logs of the component of this stage and associated system services.
- If the stage reason is
ClientAutomaticUpdateDisabled, remove theshturval.tech/update: disable-automaticannotation from the listed client clusters. For details, see How to temporarily prevent changes in a client cluster. - Check the network connection to the Registry.
- Read
ClusterConfig.status.update.phase. AQueuedphase that lasts longer than a normal step can mean that the concurrent update limit has been reached: by default, five clusters in theUpdatingorPausedphases. A free slot is checked every 5 minutes.Pausedmeans the schedule window is closed and pause on window expiry is enabled.
Checking update status (kubectl)
When updating via the GUI or automatically, you can check the status with kubectl.
Run the commands in the management cluster. Replace clustername with the cluster name:
kubectl get clusterinfo clustername -n clustername -o jsonpath='{.status.update.availableUpdates}'
kubectl get clusterconfig clustername -n clustername -o jsonpath='{.status.update.phase}'
kubectl describe clusterupdatechannel clustername -n clustername