Known Issues

Overview

This page documents the list of known issues and possible work arounds/solutions.

Recent Ubuntu 22.04 Image Fails to Bootstrap on Azure

Problem

When using a recent (beginning of May 2024) Ubuntu 22.04 image provided by Azure, user cluster nodes provisioned by machine-controller and operating-system-manager fail to bootstrap and never join the cluster. Instead, the bootstrap.service systemd unit is constantly looping.

Root Cause

A recent change to the Ubuntu 22.04 image has modified the configuration for cloud-init and how it accesses its datasource in Azure. cloud-init clean (which is used to prepare the machine for configuration as Kubernetes node) removes files crucial to this new way of communicating with the datasource and requires an additional step to recreate the missing configuration files.

Solution

A new operating-system-manager (OSM) version (v1.5.2) has been released that can be configured into KubermaticConfiguration:

apiVersion: kubermatic.k8c.io/v1
kind: KubermaticConfiguration
metadata:
  name: kubermatic
  namespace: kubermatic
spec:
  userCluster:
    operatingSystemManager:
      imageTag: v1.5.2
[...]

The updated OSM version will be included in the next patch release (2.23.4).

For custom OSPs the following change is relevant:

diff --git a/deploy/osps/default/osp-ubuntu.yaml b/deploy/osps/default/osp-ubuntu.yaml
index 85e8942..353bded 100644
--- a/deploy/osps/default/osp-ubuntu.yaml
+++ b/deploy/osps/default/osp-ubuntu.yaml
@@ -102,6 +102,11 @@ spec:
               curl -s -k -v --header 'Authorization: Bearer {{ .Token }}'      {{ .ServerURL }}/api/v1/namespaces/cloud-init-settings/secrets/{{ .SecretName }} | jq '.data["cloud-config"]' -r| base64 -d > /etc/cloud/cloud.cfg.d/{{ .SecretName }}.cfg
               cloud-init clean

+              {{- /* Azure's cloud-init provider integration has changed recently (end of April 2024) and now requires us to run this command below once to set some files up that seem required for another cloud-init run. */}}
+              {{- if (eq .CloudProviderName "azure") }}
+              cloud-init init --local
+              {{- end }}
+
               {{- /* The default cloud-init configurations files have a bug on Digital Ocean that causes the machine to be in-accessible on the 2nd cloud-init and in case of Hetzner, ipv6 addresses are missing. Hence we disable network configuration. */}}
               {{- if (or (eq .CloudProviderName "digitalocean") (eq .CloudProviderName "hetzner")) }}
               rm /etc/netplan/50-cloud-init.yaml

MachineDeployments using the affected OSP need to be restarted after updating OSM or the custom OSP.

Ubuntu 22.04 Cloud Image Issue on VMware Cloud Director

Problem

The issue arises in Ubuntu 22.04 cloud image OVAs starting from version 20230602 when they are run on VMware Cloud Director. This problem disrupts the provisioning of new Kubernetes nodes using machine-controller due to interruptions caused by reboots.

Root Cause

The root cause of this issue can be traced back to a change in the default settings of open-vm-tools. These changes, in turn, affect the behavior of cloud-init during startup, leading to the disruptive behavior observed when provisioning new Kubernetes nodes. Specifically, the open-vm-tools.service starts before cloud-init, and it runs with the default timeout (30 seconds).

Solution

One interim solution in this scenario is to create a custom Ubuntu 22.04 image with the following setting preconfigured in /etc/vmware-tools/tools.conf file.

[deployPkg]
wait-cloudinit-timeout=0

This adjustment will help ensure that the issue no longer disrupts the provisioning of new Kubernetes nodes on the affected Ubuntu 22.04 cloud images running on VMware Cloud Director provider.

For additional details and discussions related to this issue, you can refer to the following GitHub issues:

CSI addon’s reconciliation fails after upgrading user clusters to k8s 1.29 on Azure

Problem

The CSI addon’s reconciliation fails after we upgrade a user cluster on Azure cloud provider to kubernetes version 1.29.x.

Root Cause

The root cause of this issue is an update to Azure CSI driver’s upstream where the ClusterRole referenced in ClusterRoleBinding csi-azuredisk-node-secret-binding has been updated from csi-azuredisk-node-secret-role to csi-azuredisk-node-role.

Solution

As the ClusterRole referenced in the ClusterRoleBinding can’t be updated, we need to delete it & let it get re-created as per the latest spec.

kubectl delete ClusterRoleBinding csi-azuredisk-node-secret-binding

Azure CCM deployment’s reconciliation fails for user clusters post KKP 2.25.x upgrade

Problem

Post KKP 2.25.x upgrade, the cloud controller manager’s deployment fails to reconcile for user clusters on Azure.

Root Cause

The root cause of this issue is an update to Azure CCM’s deployment’s selector (spec.selector.matchLabels["app"]) in KKP 2.25, this updates an immutable field which is not allowed by kubernetes.

Solution

We need to delete the ccm deployment for all the user clusters on Azure & let it get re-created as per the latest spec.

kubectl delete deployment azure-cloud-controller-manager -n cluster-<cluster-id>