Troubleshooting
Where to look
The appliance
The appliance is the container tagged kubehenge. It runs no SSH server. Reach it from its node's shell with pct.
| Unit | What it runs |
|---|---|
kubehenge.service | The interface on port 443 and the gate in front of the shared Headlamp on port 8443. It also runs the management cluster's applies and the VM template builds. A restart signs browsers out, but not kubehenge login. |
kubehenge-headlamp.service | The shared Headlamp server, on loopback only. kubehenge-headlamp.socket starts it on the first visit, through kubehenge-headlamp-proxy.service. The proxy and Headlamp stop after 15 minutes without an open Headlamp page. inactive is therefore normal. |
kubehenge-update.path | Watches for upgrade requests from the interface. |
kubehenge-update.service | Installs a newer signed release on request. |
pct exec <ctid> -- systemctl status kubehenge kubehenge-headlamp.socket kubehenge-headlamp kubehenge-update.path
pct exec <ctid> -- journalctl -u kubehenge
pct exec <ctid> -- journalctl -u kubehenge-update
pct exec <ctid> -- journalctl -u kubehenge-headlampThe interface's log
The interface logs in JSON, one line per event, and names the user of every change:
- clusters created, changed and deleted
- kubeconfigs and management cluster credentials handed out
- applies and removals of the management cluster
- upgrades requested
The "Reference: …" under an error's message is the request's id, also in the X-Request-Id header of every response. Find that request's log lines with pct exec <ctid> -- journalctl -u kubehenge --grep <reference>.
For more in the journal, add KUBEHENGE_LOG_LEVEL=debug to /etc/kubehenge/appliance.env and restart kubehenge. warn or error log less. KUBEHENGE_LOG_DEVELOPMENT=true adds the source file and line to each log line. Upgrades keep both settings. The flags --log-level and --log-development of kubehenge serve do the same.
Last runs and health
The last run of the management cluster shows on the Administration page, with its error and log when it failed, also after a restart. The last template build shows under VM templates, kept the same way.
The last weekly template build shows under Automatic builds on the Administration page, with its log, from the ConfigMap
kubehenge-template-refreshinkubehenge-system.- Each run is a Job of the CronJob of that name. Read the full run with
kubectl -n kubehenge-system logs job/<name>. - "no API token" means the Secret
kubehenge-template-builderis missing. A management cluster installed from the chart alone needs it made, ortemplateRefresh.enabledset to false.
- Each run is a Job of the CronJob of that name. Read the full run with
The last upgrade shows on the Administration page, and with
kubehenge appliance upgradesin the appliance's shell (upgrading.md). The updater keeps it in/var/lib/kubehenge-update/status.json.Whether the interface serves.
pct exec <ctid> -- kubehenge appliance healthruns the upgrades' check. It passes when the interface answers over HTTPS within 2 minutes on the expected certificate, then stays up for 20 seconds. It shows each stage on standard error, with the time left, and prints the verdict on standard output:textConnecting to 127.0.0.1:443, waiting up to 2 min Certificate matches /etc/kubehenge/tls.crt Answered after 4 s Staying up for 20 s Stayed up for 20 s Healthy: Kubehenge 0.5.7 answers on 127.0.0.1:443A failure names the cause and one step, such as
not healthy: the interface at 127.0.0.1:443 did not answer within 2 min: ....--quietprints nothing, for scripts, and-o jsonor-o yamlprints the verdict as one document. The exit status is 0 only when the interface is healthy.For a monitor.
https://<appliance>/healthzanswersokwithout a sign-in.
The management cluster
Admin credentials, under Administration, Management cluster, hands administrators the management cluster's own credentials, for what the interface cannot do. It needs the setup privileges, and the state passphrase only where one is required. It is refused while a run is going on. Every download is logged.
- Download admin kubeconfig saves
management.kubeconfig, for kubectl. - Download admin talosconfig saves
management.talosconfig, fortalosctl.
With Terraform/OpenTofu, take them from the state with tofu output -raw kubeconfig and tofu output -raw talosconfig.
export KUBECONFIG=management.kubeconfig
kubectl get pods --all-namespaces
kubectl -n kubehenge-system logs deploy/kubehenge-controller
talosctl --talosconfig management.talosconfig --nodes 192.0.2.11 healthKubehenge's controller is kubehenge-controller in kubehenge-system. It creates each cluster's Proxmox VE objects, installs its add-ons and registers it with Rancher. It also deletes released volumes and starts automatic upgrades. Its log says what it is waiting for. These are the providers it works with:
| Namespace | What |
|---|---|
capi-system | Cluster API core |
proxmox-infrastructure-system | Cluster API's Proxmox VE provider, capmox-controller-manager: clones, sizes and starts the VMs |
kubeadm-bootstrap-system, kubeadm-control-plane-system | kubeadm |
rke2-bootstrap-system, rke2-control-plane-system | RKE2 |
k3s-bootstrap-system, k3s-control-plane-system | k3s |
in-cluster-ipam-system | the IP pools nodes take their addresses from |
helm-addon-system | the Add-on Provider for Helm, which installs add-ons into clusters |
capi-operator-system | the Cluster API Operator, which installs and upgrades the providers |
The controller logs JSON at the chart's controllerLogs.level (debug, info, warn or error). controllerLogs.development adds stack traces from warnings on.
Metrics
The Service kubehenge-controller-metrics in kubehenge-system serves the controller's metrics over HTTPS on port 8443. Any account the API server lets get /metrics may read them. Bind the ClusterRole kubehenge-metrics-reader to a scraper's account.
Beside controller-runtime's own metrics (reconciles, their errors and durations, work queues), it serves kubehenge_hook_waits_total, kubehenge_hook_refusals_total and kubehenge_hook_duration_seconds for Kubehenge's Cluster API hooks.
The management cluster runs no scraper of its own. The metrics are served with the Runtime Extension certificate, which also names kubehenge-controller-metrics.kubehenge-system.svc. Its CA is ca.crt in the Secret kubehenge-extension-tls. To read them once with the admin kubeconfig:
kubectl -n kubehenge-system create serviceaccount metrics-reader
kubectl create clusterrolebinding metrics-reader --clusterrole kubehenge-metrics-reader --serviceaccount kubehenge-system:metrics-reader
kubectl -n kubehenge-system get secret kubehenge-extension-tls -o jsonpath='{.data.ca\.crt}' | base64 -d > metrics-ca.crt
kubectl -n kubehenge-system port-forward service/kubehenge-controller-metrics 8443 &
curl -sS --cacert metrics-ca.crt --resolve kubehenge-controller-metrics.kubehenge-system.svc:8443:127.0.0.1 \
-H "Authorization: Bearer $(kubectl -n kubehenge-system create token metrics-reader)" \
https://kubehenge-controller-metrics.kubehenge-system.svc:8443/metricsCluster API objects
A cluster's objects are in its namespace, clusters for one created in the interface unless another was chosen. The examples use a cluster named prod:
kubectl -n clusters get clusters,machines,proxmoxmachines
kubectl -n clusters describe cluster prod
kubectl -n clusters get helmchartproxies,helmreleaseproxiesThe Cluster's conditions, also on the cluster's page, say what holds it up. Kubehenge's own two also show above the page's views and in the fleet's list of what needs you.
KubehengeReadyisFalsewith the error the controller last met on the cluster, until a reconcile succeeds.- Each error is also a Warning event
ReconcileFailedon the Cluster, whose count rises on repeats. - A failed Proxmox VE task is named by its UPID, with the last lines of its log.
- Each error is also a Warning event
MachinesStalledisTruewhen a machine is not ready and none has become ready for 20 minutes, with a Warning event of the same name. Its message is the worst problem its Machines and ProxmoxMachines report, such asVM template not found.- A change or creation in the interface then shows as stalled under Runs.
The other objects
- The Cluster's events (
kubectl -n clusters describe cluster prod) record what the controller did, held back or could not do, and why. The cluster's Health view lists the warnings among them. - Machines and ProxmoxMachines say, per node, whether the VM was cloned, started and joined.
- HelmChartProxies and HelmReleaseProxies are the add-ons: the cloud controller manager, the CSI plugin, a CNI that Kubehenge installs, Headlamp and Rancher.
- The Secret
<name>-proxmox-tokenholds the Proxmox VE token and volume owner VM the controller made for the cluster. Itsreadykey turnstrueonce everything it made for the cluster exists.
Inside a cluster
The cluster's Health view is the first place to look. When it says Kubehenge's read-only access is not set up or has run out, the controller has not reached the cluster's API server. The controller's log names the cluster and the reason, under the controller workload-identities.

With the cluster's admin kubeconfig (clusters.md), look at the cloud controller manager and the CSI plugin's controller. They run in kube-system, on the control-plane nodes.
kubectl --kubeconfig prod.kubeconfig -n kube-system get pods -o wide
kubectl --kubeconfig prod.kubeconfig get nodes -o wideA node's boot log
When a machine's VM started but its node never joined, its boot log says why. Boot log on the machine in the Machines view shows it, to those with Sys.Modify on the cluster's pool. With kubectl, add the machine's name to the Cluster's kubehenge.dev/boot-log-request annotation. The controller writes the log into the ConfigMap <cluster>-boot-logs, one key per machine, and removes the name.
kubectl -n clusters annotate cluster prod kubehenge.dev/boot-log-request=prod-cp-abcde --overwrite
kubectl -n clusters get configmap prod-boot-logs -o jsonpath='{.data.prod-cp-abcde}'What the boot log holds
- kubeadm, RKE2 and k3s. The log is the end of
/var/log/cloud-init-output.log, and of the journals of cloud-init,containerd,kubelet,rke2-server,rke2-agent,k3sandk3s-agent, whichever the node has.- The journals come from the node's copy in
/var/log/kubehenge/boot.log, a few seconds old at most. Older templates give cloud-init's output alone. - The log says so when the VM is off, its guest agent does not answer, or Nodes' boot logs is off in the setup (
node_boot_logs, details).
- The journals come from the node's copy in
- Talos. The log is the kernel messages and the logs of
machined,apid,kubeletand, on control planes,trustdandetcd, read through the node's Talos API.- A node without an address or configuration cannot be reached that way. Its VM's console in Proxmox VE shows its boot.
Tokens and passwords in the lines are replaced by [REDACTED].
A cluster's support bundle
A support bundle is one .tar.gz of a cluster's objects, events and logs, for finding why it is stuck. Support bundle on the cluster's page downloads it, for those with Sys.Modify on the cluster's pool. kubehenge diagnose writes the same one, as the user kubehenge login signed in. It takes the cluster's name, and -n where two namespaces share it.
kubehenge diagnose prod -n clustersWhen the interface is down, give the management cluster's kubeconfig (Admin credentials). The command then reads the management cluster itself, and -n is needed.
Reporting a problem
A failed run shows Report a problem under its error. That covers a management cluster run or upgrade, a cluster's create, upgrade, scale or delete, an add-on and an appliance update. It first checks the known causes: a node address that another machine holds, a name that does not resolve, a full storage and the Site CA. When one is found it names the cause and its fix, and nothing is reported.
Otherwise it offers the redacted support bundle and the bug form, prefilled with the Kubehenge and Proxmox VE versions, the distribution, the failed step and its error. Download the bundle, open the form and attach it. Kubehenge sends nothing itself. The bundle holds no Secret.
For the management cluster the bundle holds the run's log, why the providers are not ready, the warnings and the logs of the controller and the providers. It takes the setup's privileges. kubehenge diagnose --management writes it, and with --kubeconfig it reads the management cluster directly. A failed run's output names this command.
kubehenge diagnose prod -n clusters --kubeconfig management.kubeconfigWhat the bundle holds
objects/holds the Cluster and every object of Cluster API and its providers that belongs to it, never a Secret. That takes in machines, VMs, bootstrap configurations, control plane, IP addresses and add-on releases.events.yamlholds their events, oldest first.boot-logs.yamlholds the boot logs read for its machines, if any were asked for.logs/holds the recent log lines of Kubehenge's controller, capmox and the Add-on Provider for Helm that name one of its objects.- A bundle written on the appliance, as the interface's is, also holds the interface journal's.
- From the node's shell, run
pct exec <ctid> -- kubehenge diagnose prod -n clusters --kubeconfig /var/lib/kubehenge/interface.kubeconfig -f /root/prod.tar.gz.
manifest.txtsays what the bundle holds, and what could not be read and why.
Fields and lines that hold tokens, passwords, keys or a talosconfig are replaced by [REDACTED]. The bundle holds nothing about other clusters. Read it before you share it.
Proxmox VE
The task log shows what each Kubehenge account did. In an appliance's management cluster, Cluster API acts as kubehenge-cluster-api@pve and Kubehenge's controller as kubehenge-provisioner@pve. Each cluster's own user is named after its workload pool, namespace and name, such as kubehenge.clusters.prod@pve.
Common problems
Installation fails
install.sh stops at the first problem and says what it was. Until the interface has reached the Proxmox VE API, it then removes the container it created ("removing container … after the failure"). Running it again starts clean.
| Message | Cause | Fix |
|---|---|---|
| "run this as root on a Proxmox VE node", "this is not a Proxmox VE node" or "Kubehenge needs Proxmox VE 9" | The script ran as the wrong user or on the wrong node. | Run it as root, in the shell of a Proxmox VE 9 node. |
"no enabled, active storage here takes container disks (content rootdir)" | No storage allows containers. | Allow the rootdir content type on an enabled storage of the node (install.md), or name one with --storage. The same goes for vztmpl and --template-storage, where the container template goes. |
| "could not download … (curl exit …, HTTP status …)" | The node cannot reach GitHub, which it needs for Kubehenge's release and OpenTofu. The installer has already tried eight more times. Status 404 is a missing file and 407 a proxy that wants credentials. | Let the node reach GitHub (architecture.md). |
| "… does not match its checksum" | The file is not the one this install.sh names. Nothing of it was installed. | Check that nothing between the node and GitHub changes downloads. Fetch install.sh again from the release you mean to install. With --release <file>, check the file and the checksum given with --sha256. |
| "Proxmox VE's certificate is valid for …, not …" | The URL's name or address is not in the API's certificate. The installer stops before it creates anything. | Give --proxmox-url with a name or address the message lists, or have the certificate list yours. |
| The API's CA is not trusted | The installer stops before it creates anything. | Give the CA with --proxmox-ca (install.md). |
| "this node cannot connect to the Proxmox VE API at …" | The node could not open a connection to port 8006. This is no certificate problem. | Check the node's firewall, and LISTEN_IP in /etc/default/pveproxy. Or give a URL it reaches with --proxmox-url. |
| "container … runs on node …" | The cluster's appliance is on another node. | Run the same command on that node. |
| "this cluster has several Kubehenge appliances" | --upgrade, --certificate and a plain install.sh cannot tell which one you mean. | Name one of those listed with --ctid. |
| "this cluster has no Kubehenge appliance" | --upgrade and --certificate have nothing to change. | Run install.sh without them to install one. |
| "this node has no quorum" | Proxmox VE refuses container changes without it. | Start the other nodes of the cluster. |
| "… is no bridge, Open vSwitch bridge or SDN VNet of this node" | The name given is none of those. | Name one of those the message lists with --bridge. |
| "container … got no IPv4 address" | With --ip dhcp, no DHCP server on the bridge answered within two minutes. | Check --vlan and --bridge, or give a static --ip with --gateway. |
| "container … cannot reach its gateway …" | The container has its address. Its gateway does not answer a ping. | Check that --vlan is the network the address belongs to. Check that --gateway is on that network. |
| "the container cannot resolve any name of the Proxmox VE API …" | No name server the container uses answers for the API's name. | Name working ones with --dns, or give an address with --proxmox-url. |
| "container … cannot connect to the Proxmox VE API at … on port …" | The container resolves the API but cannot open a connection to it. | Check the node's firewall for port 8006 and LISTEN_IP in /etc/default/pveproxy. Without a default route in the container, give --gateway. |
| "the service did not start" | The interface stopped right after it started. The installer writes the interface's last log lines to the log file the message names, then removes the container. | Read the end of that file. If it does not help, report the problem with the installer's output. |
| "the appliance cannot use Proxmox VE's API at …" | The interface runs. It got no answer from the API within about 20 seconds. The installer writes the interface's log to the file the message names before it removes the container. | The container has to reach that name or address on port 8006 from its own network. It has to resolve the name through its name servers (--dns). Run the installer again with a --proxmox-url it reaches. |
Sign-in and permissions
| Problem | Cause and fix |
|---|---|
| "Not set up yet" for an administrator | The user lacks one of the setup privileges on /. |
| A cluster is missing from the list | The user lacks VM.Audit on its pool. A role given on the cluster's own pool replaces, for that pool, what the user inherits from the workload pool. It has to hold VM.Audit too. |
"<user> needs <privilege> on <path>" | The message names exactly what to grant (clusters.md). |
| No bridges to choose from | Proxmox VE lists a node's bridges only with Sys.Audit on the node. Type the bridge's name instead. A bridge marked "no SDN.Use" needs that privilege on /sdn/zones/localnetwork/<bridge>, or on /sdn/zones/<zone>/<vnet> for a VNet. |
"<user> needs Pool.Audit on <pool>" | Proxmox VE lists a pool's VMs only to a user with Pool.Audit on it. Without it a cluster shows no nodes, console links or reboot. PVEPoolUser and PVEAuditor hold it. A role of your own needs it added. |
| "Proxmox VE refused: …" | Proxmox VE answered. The reason after the colon is its own, such as "VM is locked (backup)" or "cluster not ready - no quorum?". Fix that first. |
| "Proxmox VE did not answer" | No connection, a timeout or a certificate error. Check that the appliance reaches the Proxmox VE API on port 8006 and trusts its certificate (install.md). |
| "Proxmox VE's certificate is valid for …, not …" | The API's certificate no longer lists the address the appliance reaches it at, such as after Proxmox VE renewed it. Have it list the address again, or move the appliance to one it lists with install.sh --upgrade --proxmox-url <URL>. |
| "The user name and realm together are at most 64 characters" | Proxmox VE takes no longer sign-in name, user@realm counted whole. |
| "Sign-in failed" with a right password | Proxmox VE gives one answer to a wrong password, an unknown or disabled user, and a realm that requires a second factor the user lacks. Ask an administrator to set up the factor. |
| "Wrong code, a locked factor or a cluster without quorum" | Eight wrong TOTP codes lock TOTP until a recovery key is used. Proxmox VE says nothing of it. Sign in with a recovery key. Without one, an administrator resets the user's factors. A cluster without quorum refuses every code, a right one too, because Proxmox VE records each use in its cluster files. Sign in on a node's console until quorum returns. |
| "Wrong recovery key, or the cluster has no quorum" | A recovery key is written to Proxmox VE's cluster files, which a cluster without quorum cannot change. Sign in on a node's console until quorum returns. |
"Session ended. Sign in again." | Proxmox VE no longer accepts the session. A browser session lasts 8 h at most, and a kubehenge login password sign-in 7 days. |
| Sign-in refused after several tries | Five failures within 15 minutes lock a user out from that address until the 15 minutes are up. Twenty failures from one address, whichever users they name, lock the address out. |
| Everyone is locked out after one person's typos | Behind a reverse proxy, every sign-in counts under the proxy's address. List the proxy with --trusted-proxy (architecture.md). |
| "Security keys work only in Proxmox VE" | A WebAuthn key answers only on Proxmox VE's own page. Choose Use API token and give one of that user's Proxmox VE API tokens. |
| An OpenID sign-in does not come back | Register https://<appliance>/api/openid/callback with the identity provider, and https://<appliance>:8443/oidc-callback for the shared Headlamp. A Headlamp sign-in can only be finished in the browser that started it. |
Buttons are disabled or missing in these cases:
- Scale, Upgrade, Delete and the Edit buttons and switches under Options need
VM.Allocateon the cluster's pool. The page says so when it is missing. - Installing Rancher, offered when a cluster is created, needs
Sys.Modifyon the workload pool. - Adding or changing identity providers needs
Sys.Modifytoo, on the workload pool when creating and on the cluster's pool when changing. - Kubeconfig needs
Sys.Modifyon the cluster's pool and shows once the cluster is available. - Clusters outside the interface's namespaces are read-only there.
Setting up the management cluster fails
The Administration page (or the setup page) shows the error and the run's log. Fix the cause and apply again. A run picks up from what exists.
A run needs these:
- Storage. The Talos image storage must allow the
importcontent type. - Addresses. The node addresses and the API address must be free, in one subnet, and reachable from the appliance on ports 50000 and 6443.
- Internet access from the appliance, the Proxmox VE node and the new nodes (architecture.md), or registry mirrors for the nodes.
- Pod and service ranges clear of the nodes' network, set under Advanced. Overlapping ones are refused.
- Time. A run has to finish within two hours, the life of the Proxmox VE ticket it acts on. A run cut off there keeps what it made, so apply again.
| Problem | Cause and fix |
|---|---|
| "The management cluster's nodes have no IPv6 address, so they cannot reach the Proxmox VE API at …" | The appliance reaches the API at an IPv6 address, often because the certificate lacks the IPv4 one. Give the nodes IPv6 addresses, or move the appliance to an IPv4 address or name the certificate lists. The same holds for IPv4 and an IPv6-only cluster. |
x509: certificate is valid for …, not … in OpenTofu's, capmox's or the cloud controller manager's output | With the Terraform/OpenTofu module, proxmox_endpoint names an address the API's certificate lacks. Use a name or address it lists, or have it list yours. |
| "Site CA: … Chain ends at …", "… Add … to the Site CA", "… Have the device send …", "… expired on …", "… is signed with …", "… is no CA", "… is not for servers", "… is signed by a new …" | The appliance read the chain a host presents, and the nodes would refuse it. The message names the hosts and the certificate that breaks the chain. "Chain ends at" names a root the host presents and the Site CA lacks, with its SHA-256 fingerprint. The check trusts only the public roots the nodes ship with and the Site CA, so a root your organisation installed in the appliance container still counts as missing. Setup offers an Add button beside the field for each such root. kubehenge appliance settings set --add-missing-roots adds them, and POST /api/setup/check and a refused save return them in missingRoots. "Add … to the Site CA" names an issuer that neither the host nor the Site CA holds: a root or an intermediate the device leaves out. Adding either works. "Have the device send …" names an intermediate between the host's certificate and a root the Site CA holds. A chain that leads to a public root gets no such advice. Its message names the fault, such as "is not for servers". Add what the message names, paste the device's new root, renew the expired certificate, or reissue it on the device. A message that opens with "Proxy certificate:" is the same fault in a chain checked against the proxy's CA. A host that did not answer, or that the proxy would not reach, is listed in the run's log as not checked. A run that changes neither the Site CA nor the proxy's certificate keeps the last run's certificates and shows the fault as a warning. |
| "… encodes its issuer's name … differently" | A certificate names its intermediate in other bytes than the intermediate's own name, and a certificate above that intermediate limits names or the path length. The nodes get a copy of the intermediate under the other name, which cannot carry those limits, so the appliance refuses the chain. Reissue that certificate on the device. |
| "Node … refused …'s certificate" | A node's log holds an x509 error for that host. "Add its root" names, with its fingerprint, the self-signed root the host presents that none of the public roots, the Site CA or the proxy's CA holds. "Signed by a new …" names a root that no longer signs, as after the device made its root again. Paste the new one. "Check the Site CA" means the appliance found no root to add. The node may meet another chain than the one the appliance reads, or lack the saved Site CA. A line without Site CA advice gives Go's reason, such as an expired certificate. Apply again once it is fixed. |
| "Node …: no route to host on port 50000", "… no answer on port 50000 …", "Node … refused a connection on port 50000" | After a run failed to reach a node, the appliance tried each node's Talos port once. "Refused" means the host answers and Talos is not up yet, or the port is blocked. "No route to host" means nothing answers on the appliance's network, or a router says so. "No answer" means traffic is dropped on the way. "Nothing answers ARP … the network between guests seems to block it" means the VM runs but its address is silent on the appliance's own network. Check the switch or firewall for isolation between VMs, such as a private VLAN. |
| "Bridge … has MTU …" | The MTU is above the bridge's. Its larger frames never pass. Use the bridge's MTU or less, or raise the bridge's under System, Network. |
"context deadline exceeded" for a helm_release | The release's pods did not get ready in time. After a failed run, the log ends with why, when the management cluster's API answers: "What the management cluster's pods wait for" names each pod and why, such as too little memory on the nodes. "The hook Jobs" gives the last 50 log lines of each Job that failed or still runs, "The providers that are not ready" gives each Cluster API provider's version and conditions, and "The latest warnings" the newest Warning events of those namespaces. The error line names the provider or condition that held the run up. When the API does not answer within a few seconds, the log says so in one line and adds nothing else. |
| "The management cluster is being applied or removed" or "the appliance is being upgraded" | A run is going on. Wait for that to finish. |
| A wrong passphrase, where one is required | An apply cannot read the state. The admin credentials and removal answer "the passphrase does not open the management cluster's state". The passphrase has to be the one set when it was required. After five wrong ones within 15 minutes, the admin credentials refuse further tries until those 15 minutes are up. A lost passphrase cannot be recovered (what still works, and how to start over). |
| "The appliance stopped during the run" | The appliance restarted while a run was going on. Apply again. |
| "got no worker upid - start worker failed" | Proxmox VE did not start a task, as happens when another task ends at that moment. A download runs again by itself, up to three runs. For a VM, remove the VM it left locked with qm destroy <id>, then apply again. |
failed calling webhook with no route to host or connection refused | The webhook's pod was not serving yet, as after a node restart. The apply runs again by itself, up to three runs. If the last one fails the same way, kubectl get pods -A shows which pod does not get ready. |
| "this appliance's state is from apply N, and the management cluster is at apply M" | A newer state changed the cluster since this one was saved. A snapshot rollback, an older backup or a second appliance does that. Restore the newest backup instead, or use the appliance that applied last. To go ahead with this state, take the cluster over. The next apply undoes the newer changes. |
| "another appliance started applying the management cluster at the same time" | Two appliances act on one cluster. Stop one of them, then apply again from the other. |
| "job wait-for-providers failed" after ten minutes | A provider was not installed or did not roll out. kubectl -n capi-operator-system logs job/wait-for-providers names each one with the Cluster API Operator's reason. A lowered version is a case of its own (below). |
| "job provider-manifests failed" | A provider's files could not be downloaded within ten minutes, or one did not match its digest. kubectl -n capi-operator-system logs job/provider-manifests names the file. A mismatch means the release's file is not the one the tested set names. Nothing of it was installed. |
| "job wait-for-operator failed" | The Cluster API Operator's webhooks did not answer within ten minutes. No provider was changed. kubectl -n capi-operator-system logs job/wait-for-operator gives their last refusal. kubectl -n capi-operator-system get pods shows whether the operator runs. Once it does, apply again. |
"Provider produced inconsistent result after apply" for helm_release, naming .metadata.revision and .metadata.last_deployed, on the apply after one that failed | The release was upgraded. The Helm provider reports its own new revision as a fault (hashicorp/terraform-provider-helm, version 3.3.0). Apply once more. It completes with nothing left to change. |
A provider version was lowered
A version lowered through version_overrides is refused ("Downgrade is not supported"). Setting it back does not repair the provider object by itself. To repair it:
- Set its
spec.versionback withkubectl patch. - Delete its cache Secret in its namespace (
<type>-<name>-<version>-cache, such asbootstrap-k3s-v0.4.0-cache). The operator then installs it again and renews its conditions. - Apply again.
Backups onto the backup volume fail
The management cluster's Health shows the failure, and Administration, Backups gives its error. The appliance tries again after 15 minutes.
| Problem | Cause and fix |
|---|---|
| "the backup volume's token: …" or "the backup volume: …" | The store kubehenge-system/kubehenge-backup-store is not running. kubectl -n kubehenge-system get pods,pvc shows whether the claim kubehenge-backups is bound and the pod ready. A claim that stays pending means the VM kubehenge-backups or its disk is gone. Apply again to make a new one. |
| "exporting Kubehenge's objects: …" | The snapshot was stored, but the export was not. The reason after the colon names the object the interface could not read. |
| "the appliance's copy of snapshot … would take …, more than its cap of …" | The snapshot, its export and its key take more than 1 GiB. The snapshot went to the volume alone, and the copy before it stays. |
| "the management cluster is being recovered" or "the management cluster is being removed" | A snapshot is refused while a restore, a recreation, a recovery or a removal runs. Take it once that has finished. |
| A recovery says "the appliance's copy holds the backups of a management cluster removed since" | The copy is of the cluster removed before this one was set up, and is never restored onto it. Recover from the backup volume, or recreate from a backup target's snapshot. |
| A recovery says "it did not answer within 10m0s" | The backup volume's store did not start. Check the claim and the pod as above. The recovery used the appliance's copy, when it held one. |
| "reading where the management VMs run: …" | The appliance or the controller could not ask Proxmox VE where the management VMs run, so it did not attach the backup volume. The reason after the colon says why. The token is in kubehenge-system/kubehenge-backup-store-zones. Apply again to make a new one. |
| "no node named under "nodes" in Secret kubehenge-system/kubehenge-backup-store-zones is in the management cluster" | The Secret names no management node that joined, so the backup volume has no node to attach to. Apply again, which sets the names from the management nodes. |
| "no management VM runs on Proxmox VE node …, which holds the backup volume" | The volume's disk sits on node-local storage of that node and attaches only to a VM there. Migrate a management VM to that node, or apply again to make the lost ones. |
| The store's pod stays pending on node-local storage | No management VM runs on the node that holds the disk. Migrate one back to that node. |
Template missing
The interface refuses a cluster whose template the controller does not find in the template pool. A cluster made with kubectl, or whose template was deleted after it was made, has machines that stay provisioning. The cluster's Machines view shows under each what it waits for, such as VM template not found.
- RKE2 and k3s need a build of their distribution's template for every node OS the clusters'
nodeOSnames. Build it with Build template on the Administration page (Distribution: RKE2 or k3s, with that Node OS), orkubehenge template create rke2 --node-os <node OS>(almalinux-10unless set). - kubeadm needs a build of the template of the cluster's exact Kubernetes version on its node OS, to create the cluster and to upgrade it (
kubehenge template create kubeadm --kubernetes-version <version> --node-os <node OS>). - Talos needs the template of the release in the cluster's
kubehenge.dev/talos-imageannotation (Build template, Distribution: Talos, orkubehenge template create talos --talos-version <release>).- The weekly build keeps every release a cluster boots or upgrades to. A missing one was deleted by hand or never made.
Builds, pool and storage
Cluster API's Proxmox VE provider selects the template that carries all of a machine's tags and needs exactly one match.
- A cluster's machines clone the build its node image time picks (templates.md).
- With that build deleted they take the one before it, or the oldest left. With none left of the line, they take none.
- The template has to be in the template pool,
kubehenge-templates, the only one Cluster API may clone from. - A template on storage that is not shared can be cloned only on its own node. Kubehenge keeps such a cluster to that node.
- It refuses one whose allowed nodes leave none, and the message names the template and its storage.
- Rebuild the template on shared storage (
--storage, or Template disk in the dialog), or allow the template's node.
kubehenge template list shows what the template pool holds, with each template's tags. kubehenge template list --pool '' lists every pool's templates, including one made elsewhere (templates.md).
Template on a node that is down
Cluster API's Proxmox VE provider clones every VM through its template's node. While that node is down, scaling, rolling updates and replacements stay at cloning, with a 595 from Proxmox VE in the machine's message.
The Templates list on the Administration page names each such template (Template <name> is on node <node>, which is down.).
- A new cluster whose machines would clone from such a template is refused with the same sentence.
- An existing cluster has the condition
TemplateNodeDown, shown under Nodes as Template node down. It goes when the node is back. - A node image refresh does not move a cluster onto a build on a down node. The cluster has the condition
NodeImageHeld(Node image refresh held) until the node is back. - Start the node, or on shared storage move the VM to a node that is up with
mv /etc/pve/nodes/<node>/qemu-server/<vmid>.conf /etc/pve/nodes/<other node>/qemu-server/. - Never copy the template to a second node. Two templates with the same tags make Cluster API fail with
found 2 VM templates.
A build is shown as older
Older kernel means the build installed an older kernel than the one before, as from a mirror one sync behind. No cluster moves to it. The controller asks for another build an hour later, 3 times at most. Its log line names the build.
If the mirror stays behind, the build stays out until a newer one arrives. Build now makes another. kubehenge template list shows the builds. Each template's description holds kubehenge-build: kernel=… packages=….
No newer kubeadm patch release is offered
A kubeadm cluster is offered only versions with a template. The weekly build makes the template of the newest patch release of its minor version and of the next minor version (templates.md). If none appears, one of these holds:
template_refresh.kubeadm_patchesisfalse.- The refresh could not read
dl.k8s.io/release/stable-1.<minor>.txt, as its log on the Administration page says. The other minor versions go on. - The last run failed, or has not run yet. Build now runs it.
Template build fails
The error and the run's log are on the Administration page (where to look). kubehenge template create prints them. A failed run removes the VM it made, unless --keep-on-failure kept it.
A build from the interface or the weekly build is tried three times, 2 and then 8 minutes apart, each failure in the log. A try that would meet the same failure is skipped. That covers a VM already of that name, a CPU too old, or a key other than the known one. A weekly build that still fails records a TemplateBuildFailed warning event on the ConfigMap kubehenge-template-refresh, with the error. Read it with kubectl -n kubehenge-system get events --field-selector reason=TemplateBuildFailed.
| Problem | Cause and fix |
|---|---|
"VM … on … is already named …: another run is building it, or a failed run left it; wait, or remove it" | A build of that template is under way. Or a run kept with --keep-on-failure, or cut off before it could clean up, left that VM. Once no build runs, delete that VM, which is not a template yet, and build again. The weekly build deletes such a VM itself once it is three hours old. |
| "node …'s CPU reaches x86-64-v…, and … needs x86-64-v…: build its templates on another node" | The node OS needs a newer CPU level than that node's (templates.md). Build on a node whose CPU reaches it. |
| "no storage on … takes ISO images" or "… does not take … content" | The build VM's cloud-init data comes on an ISO. Allow the iso content type under Datacenter, Storage, Edit, Content on a storage of that node, or choose one (Cloud-init image in the dialog, --iso-storage on the command line). The build checks the content types of all three storages before it downloads anything. |
| "the builder's token lacks Datastore.AllocateSpace on …" | The token cannot write to that storage. Without --iso-storage, the build takes the first ISO storage the token can write to. |
| "the datacenter option user-tag-access refuses …" or "registered-tags lists …" | The datacenter options keep the builder's token from setting the template's tags. Under Datacenter, Options, add them to User Tag Access (list) or remove them from Registered Tags. Tags match with their case. With User Tag Access set to existing, a tag already on a guest the token can audit also passes. Only Sys.Modify on / bypasses the options. |
| "task … failed" for the downloaded image | Proxmox VE downloads the image itself and checks it against its checksum. The message names its reason. The task's log is under the node's Task History. The storage under Downloaded image (--import-storage) must allow the import content type (templates.md). |
| "not signed by …'s key", "… serves a key other than …" or "… is not listed in its checksum file" | The publisher's checksum file, or a package repository's key, is not the one Kubehenge knows by its fingerprint. Nothing was imported. Check that nothing between the appliance and the publisher changes downloads, and try again later. A publisher that moved to a new key needs a Kubehenge release that carries it. |
| "… lists … with the SHA-256 …, not the pinned …" | The publisher's signed checksum for the node OS's cloud image is not the one this Kubehenge release pins. Nothing was imported. Update Kubehenge. If the newest release fails the same way, report it. |
| "the publisher keeps … in none of its folders" | Neither the publisher's mirror nor its vault holds the cloud image this Kubehenge release pins (templates.md). Check that the appliance reaches both, then try again. If they answer and the image is gone, update Kubehenge. |
| A command in the build VM failed, such as the package manager, with the end of the build's log below the error | The VM has no network. Its packages come from the disk the appliance made, so a package that is missing there names the dependency the appliance could not resolve. A package whose signature does not check out stops the build the same way. A Talos build's VM has to reach the addresses the build needs (architecture.md), by DHCP on its bridge or its static address. |
Node addresses run out
A machine stays pending without an address. Every node takes one address from the cluster's node addresses. An upgrade, a scale-up or a node replacement creates a new node before an old one goes. The IP pools show what is taken:
kubectl -n clusters get inclusterippools,ipaddressclaims,ipaddressesThe network is fixed once a cluster exists in the interface. Give each cluster a range with room to spare for the nodes a rollout adds.
Virtual IP collisions
Each cluster's API address, and the management cluster's, is a virtual IP that one control-plane node answers for, by ARP. If another machine uses the same address, the API is unreachable or reaches the wrong machine. Then kubectl fails, nodes do not join, or certificates do not match.
- Choose an address that nothing else uses. It is not a node address, not in a DHCP server's range and not another cluster's API address.
- Keep it in the same subnet as the nodes.
- Check it is free before creating the cluster, for example with
pingorarpingfrom a machine on the same network.
A Service has an EXTERNAL-IP that nobody answers for
The load balancer assigned the address, but nothing on the network answers for it. In layer 2 (ARP), a switch with dynamic ARP inspection or port security drops the nodes' gratuitous ARP for addresses it has not learnt. The same switch can break the API address.
- From the same network,
arping <address>gets no reply. - Allow the addresses on the switch's ARP inspection or port security, or switch the cluster to BGP (BGP).
- In BGP mode,
kubectl -n metallb-system get bgppeerslists the routers. Thefrr-k8spods' logs show a session that is not established. - A router refuses the session when it does not expect the node's address and AS number. It also refuses a second session from one address.
- With a password, every router needs the same one. The load balancer's options take the password.
- A cluster that never builds its nodes may wait for it, with a
NoBGPPasswordevent on the Cluster.
- A cluster that never builds its nodes may wait for it, with a
Nodes not initialised
Nodes keep the taint node.cloudprovider.kubernetes.io/uninitialized. Pods stay pending. The Proxmox VE cloud controller manager initialises new nodes once it reaches the Proxmox VE API.
- The cluster's nodes must reach the Proxmox VE API at the address the management cluster uses.
- In the appliance, this is the installing node's address on the appliance's bridge, port 8006. With Terraform/OpenTofu, it is
proxmox_endpoint.
- In the appliance, this is the installing node's address on the appliance's bridge, port 8006. With Terraform/OpenTofu, it is
- Look at the cloud controller manager's pods and logs in
kube-system, on the control-plane nodes. - Check that the cluster's pool, user and token exist on Proxmox VE (
<name>-proxmox-tokenreadsready). Check that its VMs are in its pool.
Persistent volumes that stay pending point the same way. The CSI plugin's controller uses the same address and token.
A Warning event ServingCertificatePending on the Cluster names a node whose kubelet asked for a serving certificate with an address or name that is not its Machine's. Kubehenge leaves that request pending, so kubectl logs and metrics from that node fail. Find where the extra address comes from on the node, then delete the request (kubectl get csr in the cluster).
HA group errors in the cloud controller manager's log
The cloud controller manager logs failed to get HA group for the node with 403 Permission check failed (/, Sys.Audit) for every node now and then. It means only that the nodes go without the HA rule labels. Reading Proxmox VE's HA groups needs Sys.Audit on /. A cluster's token holds it only with Add HA rule labels on (the ccm variable's haGroups, on by default, clusters.md).
Either the cluster switched it off, or an administrator switched off HA rule labels for every cluster in the setup (install-settings.md). With it on again, the messages stop within a few minutes. If they do not, kubectl describe cluster shows a SysAuditRefused event saying why.
A node's clock is off
The Health page warns clock is off by when a ready node's lease, stamped by its own clock, differs from the controller's by over 30 seconds. Tokens and certificates then fail, with certificate has expired or is not yet valid.
- On a kubeadm, RKE2 or k3s node, look at
chronyc trackingandchronyc sources(a debug shell, or the guest agent).- A network that blocks UDP port 123 to the public pools leaves chrony without a source. Allow it, or point the node at an internal time server.
- Older templates did not guarantee a time daemon. Build the node image again and let the cluster replace its nodes (templates.md).
- Check the Proxmox VE hosts' own time. A VM starts from its host's clock.
- The health page lists a host over 30 seconds from the controller's to users with
Sys.Auditon it.
- The health page lists a host over 30 seconds from the controller's to users with
A node's clock is not synced
- A kubeadm, RKE2 or k3s node waited 3 minutes for chrony and stopped before it made any certificate, with
clock not syncedin its boot log. The time servers and the fallback, the host's clock (/dev/ptp0), both failed.- Open UDP 123, set Time servers, or check that
chronyc sourceslistsKVM.
- Open UDP 123, set Time servers, or check that
- A Talos node booted after 5 minutes without a time source. The health page says
clock not synced.talosctl get timestatusshows whether it has one now.
- A running cluster's nodes take new Time servers at their next replacement.
Proxmox VE nodes disagree about the time
Proxmox VE refuses a ticket whose age on the checking node is under minus 5 minutes. A name with several records, or a virtual address in front of several nodes, sends the ticket to a node whose clock is behind. Kubehenge then says Proxmox VE nodes disagree about the time.
- Compare
timedatectlon every node, and readpvecm status. - Point Kubehenge at one node's address until the clocks agree.
Labels and taints vanish from a node
A label or taint set on a node by hand goes when the node is replaced. That happens on a node image refresh, an upgrade, a resize or a health check. Set them on the pool instead (clusters.md). The Health page names a worker whose taints differ from its pool's.
A label in kubernetes.io or k8s.io is refused with The kubelet refuses to set labels in kubernetes.io and k8s.io. Use another domain, or node.kubernetes.io/ or kubelet.kubernetes.io/.
CIS hardening cannot be switched off
The class refuses cis from true to false with CIS hardening cannot be switched off once it is on. Pod Security Admission, seccomp and RKE2's network policies stay until the cluster is rebuilt. Pods that the restricted level refuses start only in a namespace labelled for a lower level (clusters.md).
Node customisation is refused
The webhook refuses nodeCustomisation with one message per problem, and kubectl, the interface and the CLI show it.
| Message | Cause and fix |
|---|---|
<path> is a path Kubehenge keeps | Kubehenge writes under /etc/kubernetes, /etc/kubehenge, /etc/rancher, /var/lib/rancher and /var/lib/kubelet. Use another directory, such as /etc/audit. |
<name> is an argument Kubehenge sets | The identity, security and CIS arguments stay Kubehenge's. The audit policy and webhook have their own fields. With either set, the audit log rotation arguments may be set. |
Talos has no shell | Talos takes no commands. Put the work in a file or a Talos extension. |
Talos reads no Secret or no ConfigMap | Talos takes file content and the audit policy inline. Its audit webhook cannot be set here. |
Talos writes machine files under /var and /etc/cri/conf.d only | Move the file there. |
Secret <name> is not in namespace <ns> | Create the Secret beside the Cluster. A Secret in another namespace is not read. |
Secret <name> has no key <key> and ConfigMap <name> has no key policy.yaml | Add the key, or name the one that exists. |
the audit policy has no rules or has to be a Policy of audit.k8s.io/v1 | The API server would not start with it. Give a Policy of audit.k8s.io/v1 with at least one rule. |
The class schema refuses a bad permissions, a path with .. or a double slash, or both content and secret.
A cluster waits before any VM exists
The cluster's conditions say it is waiting for its Proxmox VE pool, user and token. Kubehenge's controller has not finished creating them.
When creating one failed, the message reads Proxmox VE objects: followed by the error, also in a ProxmoxObjectsFailed Warning Event and under Health. Often a privilege is missing from the controller's token after Proxmox VE objects were changed by hand. Applying the management cluster again puts the module's users, roles and ACLs back.
- "pool … already exists with … guest(s) that Kubehenge did not create" means a pool of the cluster's name holds other VMs. Choose another cluster name, or move those VMs out of the pool.
- "the datacenter option user-tag-access refuses …" or "registered-tags lists …" means the controller's token may not tag the volume owner VM. Allow
kubehengeandvolumesin the datacenter's User Tag Access and Registered Tags options.
Placement refused
A Proxmox VE node that shows online but does not answer forwarded calls is left out of placement, like a node that is down. See a node is online but not reachable.
A cluster is refused when none of the nodes it may use has its storage or bridge, or can clone its template. The message names the storage, bridge or template and the fix. A storage outside the management cluster's workload_datastores is refused too, because the clusters' tokens hold no rights there.
A VNet counts as present on the nodes where its zone is applied. Where Kubehenge's token cannot see the zone, it counts the VNet as present on every node.
A node is online but not reachable
Proxmox VE lists a node as online while every call forwarded to it through another node fails with HTTP 596. Clones and starts on it then fail and machines hang. Kubehenge asks each online node for its status on every read and leaves out the ones that do not answer.
- Each cluster has a
NodesSkippedcondition naming the node with the status and Proxmox VE's reason, such aspve2 (HTTP 596: certificate verify failed). - The management cluster's Health page lists the node as not reachable. The create wizard and the placement choices show it as unavailable.
- When no node answers, new VMs are refused with the same reasons.
The usual causes are a node certificate that is missing, expired or replaced. A second node joining a one-node cluster can also lose the new node's certificate. Run pvecm updatecerts --force on the node, then systemctl restart pveproxy. The condition clears on the next read, within about 15 seconds.
The first cluster of a distribution
The first cluster of a distribution waits while that distribution's Cluster API controllers start (architecture.md). Until then its conditions say the ClusterClass is not successfully reconciled. This takes a minute or so. If it lasts longer, look at these:
- The Deployments in that distribution's provider namespaces,
rke2-bootstrap-systemandrke2-control-plane-systemfor RKE2, and likewise for kubeadm and k3s. - Kubehenge's controller log. It records each time it scales a provider's Deployment.
A cluster applied with kubectl is refused
Kubehenge checks a Cluster made with kubectl or GitOps by the same rules as the interface. Each refusal names the rule, in the words the interface uses.
When it is applied, the validating webhook
clusters.kubehenge.devrefuses a Cluster or change that breaks a rule it can check from the Cluster and class alone.- kubectl prints the refusal with the field, such as
spec.topology.variables[backups], and the rule. Correct the Cluster and apply it again.
- kubectl prints the refusal with the field, such as
Before its first VM, Kubehenge's
BeforeClusterCreatehook checks what needs Proxmox VE or the other clusters:- a node OS Kubehenge builds templates of, and a node whose CPU runs it
- the pod and service ranges, and the load-balancer addresses
- Rancher,
Datastore.Allocate, volume snapshots andSys.Auditon/
kubectl accepts the Cluster, which then gets no VMs. Its
TopologyReconciledcondition is false with a message that ends ingot failure response with message:and the rule. Correct the Cluster. Cluster API then asks again by itself.
Ranges refused
Pod and service ranges must stay clear of the nodes' network (the gateway with the prefix length) and of each other. A message saying "pod range … overlaps the nodes' network …" (or the service range) says they do not. Choose other ranges under Pod and service ranges, or in spec.clusterNetwork.
A cluster that names none gets them from Kubehenge's mutating webhook, cluster-defaults.kubehenge.dev. The message "every pod range Kubehenge tries overlaps …" means none of the ranges it tries is clear of the nodes' network. For a Cilium cluster, the other clusters' ranges count too. Choose them yourself then.
Control planes too small
A message saying "with … workers, control planes need … vCPUs and … MiB each, not …" is about the sizing guide of the cluster's distribution (clusters.md). Give the control planes the cores and memory the message names (controlPlaneMachine, or the control plane's override), or keep fewer workers.
"Without workers, control planes need …" applies with no workers, or with every worker pool scaled to 0. The control planes then need a worker's minimum on top of their own. Give them that, or keep a worker.
A cluster that already fell short, after an upgrade of Kubehenge asked for more, can still be changed in other ways. Only more workers or smaller control planes are refused.
Template hardware refuses a cluster
"The templates of … use CPU type …, which no allowed node … offers" means a template has a CPU type above what those Proxmox VE nodes reach. Allow more nodes. Or build the template again with a lower --cpu-type (templates.md).
"The templates use NUMA, which needs at least 2 cores per machine" names the pool with fewer. Give it 2 cores or more, or build the template again with --numa=false.
etcd disk slow
Health shows etcd disk slow when an etcd member's write-ahead log syncs have a 99th percentile above 25 ms. Move the control planes to local SSD or NVMe storage. Ceph and NFS add a network round trip to every write (clusters.md). The monitoring add-on charts the figure as etcd_disk_wal_fsync_duration_seconds.
One control plane, its roll stalled
An upgrade or any change to the control planes replaces a cluster's only control plane. Meanwhile etcd runs on two members, each needing the other (architecture.md).
After 20 minutes of the roll without the new machine ready (the module's watch.stall_minutes), the Cluster gets the condition ControlPlaneRollStalled and a warning event of that name. The cluster's page shows it with Recover…, and its Health view lists it.
The reason APIUnreachable means the API has stopped answering. SuccessorNotReady means it still answers. The message names both machines and why the new one is not ready.
Look at the distribution's service on both control-plane VMs:
- k3s:
systemctl status k3sandjournalctl -u k3s. RKE2:systemctl status rke2-serverandjournalctl -u rke2-server. - kubeadm: etcd and the API server are static pods, so use
crictl ps -a. - Talos:
talosctl service etcd.
Look at the kernel's log for a process killed for memory (dmesg). Start whatever stopped, or the VM. Once both members run again, the roll goes on and the condition clears, with the event ControlPlaneRollResumed.
Recovering
If a member cannot come back, use Recover…. It asks for the cluster's name and needs Sys.Modify on the cluster's pool. It keeps one control-plane machine, by default the one the roll replaces, and replaces the others. While the API answers, the others are only deleted. Otherwise:
- It pauses the cluster and stops the control plane on every machine through the guest agent.
- It resets etcd on the one kept to a cluster of one from its own database:
- RKE2 and k3s:
--cluster-reset. - kubeadm:
etcdutl snapshot restore. - Talos: a copy taken through the Talos API before the node's etcd is wiped and bootstrapped from it.
- RKE2 and k3s:
- It starts the kept machine's control plane, deletes the other machines and unpauses the cluster.
Whatever only the others held is gone.
With kubectl, run kubectl annotate cluster <name> kubehenge.dev/etcd-restore='{"machine":"<machine to keep>","at":"<now, RFC 3339>"}'. The status follows in kubehenge.dev/etcd-restore-status and the cluster's events (ControlPlaneRecovered, ControlPlaneRecoveryFailed). Without guest-agent restores (etcd_restore), the interface shows the steps to run by hand.
Two of three control planes are gone
Three control planes keep a majority through the loss of one, rolls included. Two Proxmox VE nodes failing together, or a datastore holding two control planes, is too much. The third control plane runs, but etcd has no majority. The API stays silent. Cluster API does not replace a member without a quorum.
After 10 minutes of silence with fewer than a majority of control planes running, the Cluster gets ControlPlaneQuorumLost, as a condition and a warning event. The cluster's page shows it with Recover…. Its Health view lists it. The message says how many machines run.
First start what stopped. A host that only reboots brings its members back. The condition ends once the API answers.
Recovering with the survivors
If the members cannot come back, Recover… lists the control planes whose VM runs. It keeps the one picked and replaces the others, as for a stalled roll. Whatever only the lost members held is gone.
The same works through kubectl. Pick a machine whose VM runs:
kubectl -n <namespace> annotate cluster <name> \
kubehenge.dev/etcd-restore="{\"machine\":\"<machine to keep>\",\"at\":\"$(date -u +%Y-%m-%dT%H:%M:%SZ)\"}"The controller resets only a cluster that has ControlPlaneRollStalled or ControlPlaneQuorumLost. On any other cluster the annotation fails at once. The status says so. The status follows in kubehenge.dev/etcd-restore-status. A Talos cluster is reset through the nodes' Talos API, the others through the guest agent.
Not enough memory for the add-ons
"add-ons (…) need … MiB of memory on workers, which have … MiB for them" means the workers lack memory for the named add-ons (clusters.md). Give the workers more memory (workerMachine, or a worker pool's override), add workers, or leave an add-on off.
Rancher's agent counts in every cluster that registers with Rancher. Set rancher to {register: false} for a cluster that never will. A message saying "… on control planes without workers …" means the same for the control planes of a cluster without workers.
A cluster that already fell short can still be changed, as for control planes above. Only changes that leave it shorter are refused.
Not enough CPU for the add-ons
"add-ons (…) need … millicores of CPU on workers, which have … millicores for them" means the workers' cores cannot hold the add-ons' CPU requests (clusters.md).
Give the workers more cores (workerMachine, or a worker pool's override), add workers, or leave an add-on off. Kyverno and Istio ask for the most. The control-plane form of the message, and a cluster that already fell short, are as for memory above.
Istio
- Pods in the mesh reach nothing, or fail their probes, under a NetworkPolicy. A policy that denies by default has to allow both of these (Istio's notes):
- ztunnel carries the enrolled pods' traffic on port 15008/TCP.
- The kubelet's probes reach them from 169.254.7.127.
- Switching Istio off takes long. Kubehenge waits until no pod's traffic is redirected through ztunnel any more (the pod annotation
ambient.istio.io/redirection).- That needs the cluster reachable and istio-cni running on the pod's node.
- A pod whose node is gone keeps the annotation. Delete the pod.
- Waypoints are not created. They need the Gateway API's CRDs, which every cluster has once the annotation
kubehenge.dev/gateway-apiis on its Cluster (clusters.md).- The condition
GatewayAPIReadysays what they wait for.Waitingnames it,Failedgives the error, andTruenames the release recorded.
- The condition
Cluster Mesh
- A peer shows "Not linked". The reason beside it, and the cluster's
ClusterMeshNotLinkedevents, say what is missing.- The peer must run Cilium, have the mesh on, list this cluster, and have a Cilium cluster id and an API address.
- Its pod range must overlap neither this cluster's pods nor its services. Two clusters given overlapping ranges by hand cannot be linked, since a range is fixed once a cluster exists.
- Linked, but pods do not reach the peer's.
cilium clustermesh statusin either cluster names the peer it cannot reach.- The peers' KVStoreMesh connects to port 32379/TCP of the other's API address. A firewall between the clusters has to let it through.
- Cilium's network policies apply across the mesh. A policy that denies by default has to allow the peer's pods.
Rancher
- "cluster … already runs Rancher. Only one cluster may run it" means the others register with that one.
- The interface refuses a second with "Rancher: cluster … already runs it. Only one cluster may".
- A second cluster set to install it with kubectl gets no Rancher and a
RancherRefusedevent (kubectl describe cluster <name>).
- "for Rancher, choose Kubernetes 1.x to 1.y, not …" means the Rancher release Kubehenge installs runs only on those versions.
- A new Rancher cluster at another version is created but gets no VMs. Create it again within the range.
- An existing cluster outside the range gets no Rancher, with a
RancherRefusedevent. - The Rancher cluster's upgrades beyond the range wait for a Kubehenge release with a newer Rancher (Upgrades held back).
- "every node needs at least 4 vCPUs for Rancher: …" means the control planes or a worker pool have fewer cores. Give them 4 or more (
controlPlaneMachineandworkerMachine, or a worker pool's override).
Registering and leaving
RancherRegisteredisFalse. Its message says what registration waits for, such as Rancher's API or its agent connecting. The reasonFailedgives the error. It turnsTrueonce Rancher has the cluster ready.- Clusters do not register. Rancher's host name must resolve, for people and every registered cluster, to the Rancher cluster's ingress controller. That answers on the cluster's API address and on every node.
- Removing Rancher takes long. It waits until Rancher has let go of every registered cluster, which needs each of them reachable. Meanwhile the Rancher cluster shows
RemovingRancherevents and applies its other changes. - Rancher's agent stays after a cluster leaves Rancher. Rancher removes it with a
cattle-cleanup-…job in thedefaultnamespace, whose pod does not meetrestricted(rancher/rancher#58081).- In a cluster that holds
defaulttorestricted, the job showsFailedCreateevents naming the settings it lacks, and keeps trying. - Let it run by holding
defaulttobaselineuntil the job has finished.- With Pod Security Admission, run
kubectl label namespace default pod-security.kubernetes.io/enforce=baseline, and afterwardskubectl label namespace default pod-security.kubernetes.io/enforce-. - With Kyverno, set its level to
baselineunder Pod security and back afterwards.
- With Pod Security Admission, run
- A cluster being deleted needs none of this.
- In a cluster that holds
Volume snapshots
- The option is missing when the cluster's ClusterClass has no
csivariable. - The option is refused when the cluster's storage is shared or of a type the CSI plugin does not copy on. The option says which.
- A VolumeSnapshot or a restored or cloned claim stays pending.
kubectl describe volumesnapshotcontent, or the claim's events, show the CSI plugin's error.- The proxy's own errors are events. Read them with
kubectl -n kube-system get events --field-selector reason=VolumeCopyFailed. - Its log is in the
kubehenge-csi-proxycontainer of the plugin's controller pod. Its lines readcopying a volume,copied a volume,refused a volume copyanda volume copy failed. kubectl -n kubehenge-volume-copies get configmaps -o yamlshows each copy's record: itsstate, the holder VM and node, Proxmox VE'staskand, once done, the real volume (copy).- A
VolumeSnapshotsRefusedevent on the cluster says why Kubehenge took volume snapshots away from it instead.
- The proxy's own errors are events. Read them with
The proxy's errors:
| Error | Cause and fix |
|---|---|
is not one of the cluster's own or is not named after the cluster's volume owner VM | Something in the cluster asked to copy a volume that is not the cluster's. The proxy copies only the volumes the CSI plugin made for the cluster. Snapshot or clone a volume of this cluster. |
cannot land on node | The plugin asked for a copy on another node than its volume's. A copy stays on its volume's node. Schedule the pod that uses it there. |
no holder VM on node … has room for another copy yet | This is temporary. Kubehenge's controller adds a holder VM on that node within a reconcile. The sidecar asks again. |
Permission check failed naming VM.Clone | The cluster's role lacks it. Apply the management cluster's module again. |
Copies that take long or fail
- A large volume's snapshot takes long. It turns ready once Proxmox VE has finished the copy. The record's
tasknames it in the node's Task History. failed to copy diskwithpvesm export … | /usr/bin/ssh … pvesm import …andexit code 255means the node could not reach itself.- Proxmox VE pipes every copy through SSH as root, even to the same node.
- On the node,
ssh -o UserKnownHostsFile=/etc/pve/nodes/<node>/ssh_known_hosts -o GlobalKnownHostsFile=none -o BatchMode=yes -o HostKeyAlias=<node> root@<node's address> trueshows which cause it is:- the SSH server is not running
root's key is not among the keys it lets in- the node has no SSH host key under its name in that file
pvecm updatecertsputs the keys back where Proxmox VE expects them. The task's log shows the full error.
- A large volume's snapshot or restore fails, or holds less than it should. The plugin waits up to 5 minutes for Proxmox VE's copy.
- A longer copy can leave a snapshot reported ready before all its data is written (clusters.md). Delete it and take snapshots of smaller volumes.
The CSI plugin's newest release
- A
DatastoreAllocateRefusedevent. The cluster asks for the plugin's newest release, but Kubehenge refuses its tokenDatastore.Allocateon the storage, for the reason the event gives. The cluster runs the earlier release (clusters.md).- Move whatever else uses the storage, or switch the option off.
Backups
Kubehenge's controller holds a cluster's backups back, neither installing nor removing Velero, and says why in an event on the Cluster:
| Event | Cause and fix |
|---|---|
BackupTargetMissing, "backup target … does not exist" | An administrator removed or renamed it. Choose another under the cluster's Options, or have an administrator add it again (install-settings.md). What the cluster already runs stays meanwhile. |
BackupsInvalid | The backup settings are ones Velero would not take, such as a schedule it cannot read. The event says which. Correct them under Options, or in the backups variable. |
BackupCredentialMissing, "no credential of the cluster's own for the backup target, for which the one for every cluster never stands in: type one in for it in the interface, or name a Secret of the cluster's velero namespace in existingSecret" | Store the cluster's own key, or name such a Secret. Backups wait until then. |
| "Secret … holds no accessKeyID and secretAccessKey" | The credential named lacks one or both of its keys. Store it again. |
A create that carries a backup key can answer "another create of cluster … is under way". An earlier create of that name was cut short. Create again once 30 seconds have passed.
Log outputs
Alloy reports a refused or unreachable output in its own log. Containers, nodes and audit go through alloy-node in logging-node, and events through alloy in logging:
kubectl -n logging-node logs ds/alloy-node | grep out_<name>Component names are out_<name>, with hyphens as underscores. Alloy drops what an endpoint keeps refusing. Loki still has those logs.
AddonsWaitingwith the reasonCredentialMissing,log output <name> waits for …, means the stored credential<cluster>.log-<name>is missing or lacksusernameandpassword, ortoken. Store it again under Options.- Alloy runs meanwhile, and the output reports an unreadable file.
401or403in Alloy's log means the endpoint refused the credential. Store a new one.x509: certificate signed by unknown authority. Paste the endpoint's CA into CA certificate.- Nothing arrives from a syslog output.
tcp://andudp://send in clear text, which a collector that expects TLS drops. Usetls://, and check that a firewall passes the port from the nodes. - The cluster is refused with "log output …". The message names the rule that was broken.
etcd database full
- "etcd member … refuses writes, its database is full", or
mvcc: database space exceeded, means a member reached theetcdvariable's limit.- Reads still work. The API server's readiness therefore stays green.
- The controller defragments the members at once and clears the alarm.
- Data in use above the limit is not given back. Raise the limit with
kubehenge cluster etcd set NAME --quota-gib 8, then delete what fills the database.
- "etcd member … is at …% of its limit" means the database is over 60 percent of the limit.
- Free space is defragmented inside the upgrade window. Data needs a higher limit or fewer objects.
etcd Failed on a Talos node
TalosEtcdFailed, "etcd on … is Failed, Talos says …", means etcd's start failed, often on an image pull, and Talos does not try again. The quoted text is Talos's reason.- "Kubehenge bootstrapped it again" means a new cluster's only control-plane node got its bootstrap again. A cluster whose control plane was initialised never gets one.
- "Talos did not bootstrap it again" gives Talos's reason, most often that etcd on the node already has data. The node is rebooted instead.
- "Kubehenge rebooted the node to start etcd again" means the controller rebooted the node. It reboots a node once for each boot that ends with etcd Failed.
- The controller leaves etcd alone while the cluster is paused, being restored or upgrading Talos.
TalosEtcdLeftFailed, "… Kubehenge started it 3 times without etcd running and has stopped trying", means the controller no longer starts etcd on that node. Read why on the node:talosctl --talosconfig prod.talosconfig --nodes 192.0.2.21 service etcd, thenlogs etcdthe same way.- The count is kept in the Machine's
kubehenge.dev/etcd-repairsannotation. The controller removes it once etcd runs, and a replaced machine has none. - To have the controller try again, remove it:
kubectl -n clusters annotate machine prod-cp-abcde kubehenge.dev/etcd-repairs-.
- The count is kept in the Machine's
- The management cluster's setup starts etcd again when Talos leaves it Failed, and reboots a node whose kubelet Talos left Failed. It does so only in the apply that creates the cluster, and not when that apply also replaces or changes a node. Its log says "Talos left etcd on 192.0.2.21 Failed: …" or "Talos left the kubelet on 192.0.2.21 Failed: …", then what was done.
- If etcd has run on no node, the first node is bootstrapped again, also when it fails again in the same boot. Any other node, and one whose kubelet failed, is rebooted, at most once per boot. After its reboot the first node is bootstrapped once: "Bootstrapped etcd on 192.0.2.21 after its reboot."
- A node whose etcd ran is rebooted only when its kubelet failed. A reboot keeps etcd's data. After 3 starts the log says "Left it Failed after 3 starts" and the setup times out. Fix the cause the line names and run the setup again. Each node then gets 3 more starts.
/var/lib/kubehenge/management/etcd-starts.jsonrecords each node's boot and starts, so a node is never rebooted twice in one boot. Removing the management cluster deletes the file.
etcd snapshots and restores
EtcdSnapshotFailed, "etcd snapshot failed: …", means no snapshot was taken, for the reason that follows. The controller tries again 15 minutes later.- The Backups view shows it as the last try's error too.
- A missing target or credential reads as for backups above.
- An error from the target means the management cluster does not reach its bucket, or the credential is refused there. One from etcd means the cluster's API server or its etcd did not answer.
- A snapshot cut off is never kept.
EtcdSnapshotsNotPruned, "deleting the oldest etcd snapshots: …", means the snapshot was taken, but the ones beyond the number kept were not deleted. The credential has to be allowed to delete in the target.EtcdUploadHeldmeans the distribution's own upload (clusters.md) has no target or credential, as the event says. The servers keep their snapshots on their nodes meanwhile.
Failed restores
EtcdRestoreFailed, "restore from …: …", means the restore stopped, for the reason that follows, which the Backups view shows too.- One that failed before etcd was restored started every control plane again as it was. One that failed after finished the restore (clusters.md).
- "… control-plane nodes left unchanged. Restore by hand as the steps say" means you should follow the steps Restore… lists for the snapshot.
- "control-plane machine … has no VM yet. Restore once all are running" means you should wait until every control-plane machine has its VM, then restore again.
HA writes and restore steps
Each Proxmox VE HA write and each step of an etcd restore runs in a Job of its own in kubehenge-system (architecture.md). The controller deletes the Job once it has read the result. kubectl -n kubehenge-system get jobs,pods -l kubehenge.dev/token-job shows those running. The controller's log, or EtcdRestoreFailed, says what failed.
| Message | Cause and fix |
|---|---|
| "token Job … ended without a result: …" | The pod never ran its request, for the reason after the colon. DeadlineExceeded means it was not scheduled or did not start in time. kubectl -n kubehenge-system get events says why, often an image that could not be pulled. |
| "starting Job …: … only a Job made exactly from PodTemplate …" | The Job did not match its template, as happens while an upgrade of the chart replaces it. The controller tries HA writes again with the new one. Ask for a restore again. |
| "not one of Kubehenge's HA objects" | A write was refused. The HA resource or rule it was for, or a resource a rule names, no longer carries the comment Kubehenge cluster …. Someone changed it in Proxmox VE. Put the comment back, or remove the object and let the controller make it again. |
Maintenance mode that never finishes
With Proxmox VE HA on, a cluster's negative resource affinity keeps its control-plane VMs on separate nodes. When every other node already runs one, the VM on a node in maintenance has nowhere to go. ha-manager status then shows it still started on that node.
Shut that VM down in Proxmox VE before the node goes down. Start it again once the node is back. The other control planes keep etcd and the API running meanwhile.
Talos upgrades
| Event | Cause and fix |
|---|---|
TalosUpgradeFailed, "node … to Talos …: …" | The node did not take the release, for the reason that follows. "the node came back on Talos …: Talos booted the release before, as the new one did not come up" means Talos rolled back. "the node is not Ready … after it rebooted" means it did not come back within 15 minutes. The controller upgrades no other node until Try again on the cluster's Summary, or until the annotation kubehenge.dev/talos-upgrade-failed is removed (clusters.md). Correct what the reason names first. |
TalosInstallRetry, "node … to Talos …, try … of 4 at …: …" | The installer's pull or install stalled, or the node did not answer. The controller tries again at the time named, and after the fourth try fails as above. Check that the node reaches factory.talos.dev. |
TalosUpgradeWaiting, "the upgrade of node … waits for etcd: …" | Another etcd member is unhealthy, a learner or not answering, and rebooting the node would cost etcd its quorum. The upgrade goes on by itself once every other member is healthy. Check the member the event names with talosctl etcd status. |
TalosUpgradeAbandoned, "node … to Talos …: its machine is being deleted" | The cluster scaled down or replaced the node while it was upgraded. Nothing to do. Its successor is upgraded as any other node. |
TalosDrainBlocked, "node … is held while it drains: Pod … cannot evict pod …" | A PodDisruptionBudget keeps a pod on the node and the upgrade waits. The text names the pod and the budget. Upgrade held by on the cluster shows it too. kubectl get pdb -A shows why the budget allows no disruption. A workload short of ready replicas explains most. Once it is healthy the pod leaves and the upgrade goes on. A budget that can never be met, such as minAvailable equal to a single replica, holds until the drain timeout. Lower the budget, or shorten the drain timeout of the control plane or the pool under Machines, Timeouts…. |
TalosStatefulSetsWaiting, "node … waits to drain: StatefulSet … replicas ready" | A StatefulSet with a ready pod on the node is short of replicas. Bring it back, or wait for the drain timeout (TalosStatefulSetsNotReady). |
TalosDrain, "node … reboots without all its pods moved: the drain timeout of … ran out" | The pods named were still on the node at the timeout. It rebooted anyway. kubectl get pdb -A shows what held them. Raise the drain timeout if they only needed longer (clusters.md). |
Upgrades held back
A Kubernetes upgrade waits while the Cluster has the condition UpgradeHeld. Its reason says why. Cluster API asks again by itself. The condition goes once nothing holds the upgrade.
| Reason | In the fleet and on the Health page | What to do |
|---|---|---|
RancherKubernetes | Upgrade held for Rancher | Choose a version the condition's message names, or wait for a Kubehenge release with a newer Rancher. |
RancherElsewhere | Upgrade held for Rancher | Another cluster runs Rancher. Switch Rancher off on this one. |
TalosUpgrade | Upgrade waits for Talos | Nothing. The upgrade starts once the node runs its new Talos release. |
kubehenge cluster list shows the reason in STATUS. With kubectl:
kubectl -n <namespace> get cluster <name> -o jsonpath='{.status.conditions[?(@.type=="UpgradeHeld")].reason}'A release is refused as not pinned
RKE2 and k3s nodes install only releases whose checksum file and install script Kubehenge pins. The API server refuses a cluster on any other release. The interface offers only pinned ones. An administrator adds the release under Administration, Release pins, or with kubehenge release pin <version> (upgrading.md).
- "not an RKE2 or k3s release" or "has no usable checksum file" means the version does not exist or its release has no checksum file. Check its spelling against the release page.
- "a cluster runs it" means the pin stays until the cluster upgrades.
- "this Kubehenge release carries it" means a built-in pin is never removed.
Kubernetes out of support
A cluster on a Kubernetes minor version older than the oldest one offered for new clusters gets the condition KubernetesOutOfSupport. The Health page shows Kubernetes out of support. The appliance's notifications tell it once and again each month while it stays. Upgrade one minor version at a time (upgrading.md).
Automatic upgrade skipped
An automatic upgrade that is due waits while the Cluster has the condition AutoUpgradeSkipped. The Health page shows it as Automatic upgrade waiting, with Upgrade anyway to accept what is in the way. The cluster has a warning event of the same name. The message names the version and what is in the way.
| Reason | What to do |
|---|---|
RemovedAPIs | A client requested an API the new version removes within the last 7 days. The message names it and the date. Move the client to the current API and the note ends 7 days after the last request. Or accept it, below. |
FailClosedWebhooks | A webhook that rejects requests when it is down has fewer than two ready endpoints, or all on one node. Run two replicas on different nodes, or set failurePolicy: Ignore on the webhook. Or accept it, below. |
ChecksUnavailable | The cluster could not be read. The message says why. Often the cluster's read access is not set up yet or has expired, and the next controller pass fixes it. |
RancherKubernetes | The Rancher release Kubehenge installs does not run on the version. Upgrade by hand to a version Rancher runs, or wait for a Kubehenge release with a newer Rancher. |
RancherElsewhere | Another cluster runs Rancher already. Only one cluster may. |
TalosRelease | The cluster's Talos release does not run the version. Upgrade Talos by hand first (clusters.md). |
TalosUpgrade | A node is moving to another Talos release. The upgrade goes on once it is done. |
kubectl -n <namespace> get cluster <name> -o jsonpath='{.status.conditions[?(@.type=="AutoUpgradeSkipped")].message}' prints it. An upgrade by hand goes past the warning.
To let the automatic upgrade go ahead without a fix, accept what is listed. Choose Upgrade anyway on the Health page, run kubehenge cluster accept-upgrade NAME --version V, or set the annotation kubehenge.dev/acknowledged-upgrade-findings to {"1.37":["<API or webhook name>"]} with kubectl. It holds for that minor version only. A finding that was not listed, such as a new API in use, skips the upgrade again. ChecksUnavailable cannot be accepted.
Add-on changes wait
A cluster with an upgrade window gets the changes a new Kubehenge release makes to its add-ons when the window opens. Until then it has the condition AddonChangesPending. The annotation kubehenge.dev/addon-changes lists each add-on, its chart, and the versions it moves from and to (upgrading.md).
To apply them now, use Apply now on the cluster's page. With the command line, run kubehenge cluster apply-addon-changes <name>. With kubectl, annotate the Cluster with kubehenge.dev/apply-addon-changes set to any value.
Changes that never apply mean the window never opens. Check the upgrades variable's days, start time and time zone.
An add-on is not installed over an existing install
The Cluster has the condition AddonConflict with the reason CRDsExist. The add-on's HelmChartProxy does not exist. The message names the custom resource definition the cluster already holds, which no Kubehenge release owns. Helm refuses to install over it.
- cert-manager. A cert-manager of the cluster's own is used when it works (clusters.md). The message says what does not work and names the add-ons that wait. The causes are definitions without a controller, a controller outside the
cert-managernamespace, a controller or webhook that is not Available, a version older than v1.15.0 or one that cannot be read, or cluster issuers' Secrets outsidecert-manager. A controller Deployment with no definitions gives the reasonDeploymentExists. Make it work, or remove it. Kubehenge's own release labels its objectskubehenge.dev/addon=cert-manager. The reasonSettingsNotAppliednames the certificates settings that a cert-manager of the cluster's own does not get. Set them on it. - Kyverno and monitoring. Remove the cluster's own install, or switch the add-on off.
kubectl get crd <name> -o yaml shows who owns a definition in its meta.helm.sh/release-name annotation. Kubehenge installs the add-on on its next look, within ten minutes, once the definition is gone or is its own. clusters.md lists the definitions it checks.
Add-ons wait for cert-manager
Rancher, monitoring and the logs add-on install only once Kubehenge's cert-manager is deployed, where the cluster runs no working cert-manager of its own. Until then the Cluster has the condition AddonsWaiting, and the Health page lists it. The message names the add-ons that wait and what cert-manager waits for.
| Reason | Cause and fix |
|---|---|
WaitingForCertManager | cert-manager is installing, waits for the cluster's Gateway API definitions, or waits until the cluster can be read for a cert-manager of its own. On RKE2 and k3s the Gateway API definitions come from the chart rke2-traefik-crd or traefik-crd. A wait for the read clears once the cluster's API answers. The add-ons follow once cert-manager is deployed. If cert-manager's install fails, kubectl -n <namespace> get helmreleaseproxies in the management cluster gives Helm's error. |
GatewayAPIMissing | No Gateway API definitions are recorded 10 minutes after the control plane came up. If the message says the chart has not deployed, read its install in the cluster: kubectl -n kube-system logs job/helm-install-rke2-traefik-crd, or helm-install-traefik-crd on k3s. If the chart is deployed, check that kubectl get crd gateways.gateway.networking.k8s.io answers in the cluster, and read the controller's log. |
| Waiting | Each line says what an add-on waits for: another add-on to be deployed, the cluster's API, the Gateway API definitions or a credential for the backup target. Each clears on its own once that is there. A Warning event AddonsWaiting repeats the lines when they change. | | CredentialMissing | A credential the add-on needs is not stored. The line names the Secret to create, or the log output whose credential is missing. Store it under the cluster's Options. |
A Helm error "no matches for kind … cert-manager.io" in an add-on's message means the cluster lacks cert-manager's definitions. The add-on installs once they exist.
Add-ons wait for a volume
A claim of monitoring's Prometheus or Alertmanager, or of the logs add-on's Loki, stays Pending because the CSI plugin cannot make its volume. The Cluster has the condition AddonsWaiting with the reason VolumeMissing, and the Health page lists it. Each line reads <add-on> has no volume: <reason>, and goes once the claim is bound.
- The claim's event, in
kubectl describe pvc -n <namespace> <claim>, gives the plugin's own words. For a storage the cluster's token cannot see, the default release says onlyfailed to get proxmox storage config: not authorized to access endpointorfailed to get proxmox storage config: not found. - The cluster's line names the cause for those two: the storage, and
Datastore.Auditon/storage/<storage>, which the token needs to see it. Check that the cluster'sstoragevariable names a storage that exists, and that the cluster's token holds that privilege there. - Any other reason is the plugin's, as the claim's event gives it.
An admission policy denies an add-on
A Helm error such as admission webhook … denied the request in an add-on's not-ready message means a policy refuses what the add-on creates. It may refuse a namespace without labels, a host path, a host port, a privileged pod or an image from an unlisted registry.
clusters.md lists each add-on's namespaces, privileges and registries. Exempt the namespaces and name the registries in the policy. If the policy wants labels on namespaces, set namespaceLabels, which puts them on the namespaces from before the first pod.
GitOps
GitOpsWaiting, "GitOps waits for …", means the engine syncs nothing until it has what follows.- "the deploy key". Kubehenge makes it once the cluster exists.
- "the repository's token, stored as the cluster's gitops credential". Store the user name and token under the cluster's Options.
- For Flux's web interface the message reads "a client secret, which Flux's web interface signs in with" and the like. Syncing goes on meanwhile.
- Store the client secret under Options, or create the Secret the message names.
Repository host keys and certificates
- "knownHosts: Required value" or "no host key is for …, the repository's host" means an
ssh://repository needs its host's keys ingitops.knownHosts.- Write them as a
known_hostsfile does, with a line for the URL's host and port ([host]:portfor a port other than 22). - Take them from the forge's published keys, or from
ssh-keygen -F <host>on a machine that already trusts it. ssh-keyscanreads them over the network unchecked. Compare its fingerprints with the forge's before using them.
- Write them as a
x509: certificate signed by unknown authorityon the Argo CD Application (ComparisonError) or the Flux GitRepository means the engine does not trust the repository server's certificate.- Put the authority (PEM) of the server's certificate in the repository's Certificate authority (
gitops.repository.caBundle). - With Flux and
existingSecret,ca.crtgoes into your own Secret, andcaBundleis refused.
- Put the authority (PEM) of the server's certificate in the repository's Certificate authority (
caBundle: holds no PEM certificate, when saving, means the text is no certificate. Give the authority's certificate, not its key, as-----BEGIN CERTIFICATE-----blocks.
Add-ons behind a proxy
- A dial timeout keeps Certificates
Pending, Velero'sBackupStorageLocationUnavailableor Argo CD atComparisonError.- Check Proxy under the cluster's Options. With the default, the management side needs a proxy (clusters.md).
- A
ProxyNotPassedOnWarning event on the cluster means the management side's proxy holds a user name or password in its address, so the add-ons and nodes go direct. Set an own proxy address on the cluster, without credentials. kubectl -n <namespace> get pod <pod> -o yamlshowsHTTPS_PROXYandNO_PROXYwhen the setting reached the pod.
- A host inside the network times out or answers 503 from the proxy. The proxy was asked for something it cannot reach. Add the host to the cluster's proxy Exceptions (
egressProxy.noProxy). x509errors from an add-on that goes through the proxy. The proxy re-signs TLS with an authority the add-ons' pods do not trust. Use a proxy that tunnels, or add the hosts to the exceptions.url holds credentials, when saving, means add-on settings are plain text. Give the proxy's address alone.
Helm charts that cannot be fetched
- The cloud controller manager and CSI plugin stay not ready and the nodes keep the
uninitializedtaint. The Add-on Provider for Helm's log has a dial orx509error, as the chart repositories are out of reach. Registry mirrors do not cover charts.- Set chart mirrors for the hosts in the log, and copy the charts
kubehenge chartslists. - For
x509: certificate signed by unknown authorityfrom a mirror, add the mirror's authority under Chart mirror certificate. chart … has digest sha256:…, not …means the mirror holds a re-packed chart. Copy it again with the same digest.
- Set chart mirrors for the hosts in the log, and copy the charts
Certificates
CertificatesExpiringon the Cluster, with Renewing certificates or Certificates expire in its Health view, means certificates of the cluster run out within 60 days. The controller looks every 5 minutes at what each distribution reports:- kubeadm: the date Cluster API records on the control-plane machines.
- RKE2 and k3s: the warnings their own certificate monitor records on each node (
kubectl get events --field-selector reason=CertificateExpirationWarningin the cluster'sdefaultnamespace). - The client certificates of the kubeconfig and, on Talos, the talosconfig kept beside the Cluster.
Talos renews its nodes' certificates itself. The kubelets of kubeadm and Talos renew their own.
The condition's reason says where renewal stands:
| Reason | Cause and fix |
|---|---|
Renewing | The machines holding them are being replaced, which renews them. kubeadm's control plane does so itself. For RKE2 and k3s the controller rolls the workers' pool, and rolls k3s's control plane through its rolloutAfter. An RKE2 control plane of three or more machines is replaced one machine at a time, through its health check. An event RenewingCertificates names the machines. CertificatesRenewed says when nothing runs out within 60 days any more. |
Paused | The cluster is paused (spec.paused). Nothing replaces the machines. Resume it and the controller renews them. A cluster paused for a week or more also shows Paused since on its Health page. |
RestartNeeded | An RKE2 control plane of fewer than three machines cannot be replaced one at a time without stopping the cluster. Restart rke2-server on the node the message names (systemctl restart rke2-server). RKE2 renews certificates on a restart once they are within 120 days of running out. |
NotRenewed | They run out within 30 days and nothing renewed them. The message says how to fix each. Replace a machine whose replacement stalled, once the rest of the cluster is healthy. Look at the control-plane provider's log for a kubeconfig or talosconfig it did not renew. Rotate the cluster's CAs as the distribution documents. |
The certificates add-on's issuer
| Problem | Cause and fix |
|---|---|
AddonsWaiting, "certificates waits for the DNS-01 credential in Secret …" | The acme-dns01 issuer has no credential for the DNS provider. It is not applied, and the cluster's certificates wait. Type it in under the cluster's Options, take the one an administrator stored for every cluster (dns01.sharedCredential), or name a Secret of your own in dns01.existingSecret (clusters.md). |
AddonsWaiting, "certificates waits for the ACME external account binding key in Secret …" | The variable names a key ID but the HMAC key is missing. No issuer is made. Type it in under the cluster's Options, Certificates (clusters.md). |
externalAccountRequired in the ClusterIssuer's Ready message (kubectl describe clusterissuer kubehenge-ingress in the cluster) | The ACME server accepts only accounts tied to one its operator made. Set acme.externalAccountBinding.keyID and store the HMAC key it gave you. |
An issuer of your own (issuer: external) is not Ready | Kubehenge only points its certificates at it. Read its Ready condition with kubectl get clusterissuer <issuerName> -o yaml in the cluster. Create it with the name, kind and group the variable gives (clusters.md). |
Monitoring
- Alerts or samples do not arrive.
- A
MonitoringWaitingevent ("monitoring leaves out what needs a credential not stored for the cluster yet: …") names the credentials still missing. Store them under the cluster's Options, Monitoring (clusters.md). - Without that event, read Alertmanager's log with
kubectl -n monitoring logs alertmanager-kube-prometheus-stack-alertmanager-0. It names the failed receiver and the server's answer. - Prometheus's
/targetspage and theprometheus_remote_storage_metrics show a failing remote write.
- A
- The Alertmanager pod stays in
ContainerCreating. It waits for the controller to write the Secretkubehenge-alertmanagerinmonitoring. Prometheus waits the same way forkubehenge-prometheus.- Check
kubectl -n monitoring get secretand the cluster's events.
- Check
- A workload's ServiceMonitor or rule is not picked up. Prometheus reads them in every namespace. Check that its
namespaceSelectorand its Service's labels and port name match, then look at Prometheus's/targetsand/rulespages. - The monitoring add-on is not ready after a chart upgrade. The chart's CRD upgrade job (
kube-prometheus-stack-upgradeinmonitoring) applies the new CRDs first.- Read its log with
kubectl -n monitoring logs job/kube-prometheus-stack-upgrade. It pulls its images fromdocker.ioandregistry.k8s.io.
- Read its log with
VMs that do not run, storage nearly full
Every 15 seconds the controller checks the VMs of joined machines and the cluster's storage. Both show in the cluster's Health view and the fleet's list of what needs you.
A warning event of the condition's name records each start and change. VMsRunning and StorageFreed record the end.
AddressUnavailable, set on a Machine rather than the cluster, means its node has not joined 5 minutes after its VM started, while the VM lacks the address it was given.- The usual cause is another host on the network holding the address. The VM's network manager then refuses it. The message names that host's hardware address where the node's boot log has it.
- The Machines row shows the same text. Free the address or replace the machine with another range. The condition goes once the VM has its address or its node joins.
- The controller reads the VM's addresses through its guest agent once, and again every 5 minutes while the condition stays. It needs
node_boot_logs.
VMsNotRunning(VM disk error, VM crashed, VM stopped or VM paused) means a VM has not run for 3 minutes. The message names each machine, its VM and node, with the worst reason.- Suspend-mode backups, migrations, reboots and locks for a backup, migration, snapshot or clone do not count.
IOErrormeans QEMU paused the VM after a failed disk write, usually on a full storage. Free space, or fix the disk, then resume the VM (qm resume <vmid>).Panickedmeans the guest's kernel crashed. Reset the VM (qm reset <vmid>), or delete its Machine.Stoppedmeans the VM was stopped. Start it (qm start <vmid>), or delete its Machine.Pausedmeans someone paused or suspended the VM. Resume it.
Storage nearly full
StorageNearlyFullmeans the cluster's storage has little space left on a node its VMs run on. Free space, or add capacity.- Storage nearly full (reason
NearlyFull) is 85% and more. Storage full (reasonFull) is 95% and more. - A thin storage can run out while every disk still has room. QEMU then pauses each VM whose write finds none.
- Storage nearly full (reason
A VM renamed or moved
VMRenamedBackmeans someone renamed a cluster's VM. Kubehenge set the name back, because the cloud controller manager deletes the node of a VM whose name does not start with the node's name.- The event repeating means a naming or inventory script renames the VMs. Leave the Kubehenge pools out of that script.
VMRenameFailedmeans Proxmox VE refused the rename. The event gives its answer.- The controller retries every 15 seconds. Rename the VM back by hand meanwhile.
NodeZoneUpdatedandNodeZoneNotUpdatedrecord that a VM moved to another Proxmox VE node (a worker moved to another Proxmox VE node).
Not enough free memory on the nodes
New machines of an upgrade or replacement wait at "Cloning", and the cluster has a NodesLackMemory condition. Its message names the memory the cluster's largest machine needs and the free memory of the best node. No node it may use has the room.
Kubehenge judges a node by the memory Proxmox VE reports free, not by what the guests on it are configured with. Free memory, or stop guests. Allow more nodes under Placement, or give the machines less memory. The placement stays as it was meanwhile. The condition clears once a node has room.
Not enough space on thick storage
New machines wait at "Cloning", and the cluster has a StorageLacksSpace condition. Its message names the storage, its nodes, the free space and the space the machines still to be made need. Thick LVM, ZFS without sparse volumes and file storages with falloc or full preallocation reserve each disk's whole size. Disks of machines whose VM is already cloned count as used.
Free space on the storage, lower the disk size or the node count, or move the cluster to thin storage. The condition clears once the disks fit.
An autoscaled pool counts at its minimum and at the workers the autoscaler has asked for. Where only its maximum does not fit, the cluster gets no condition. Its events show AutoscalerNoRoom with the space the maximum needs.
Pods Pending with "volume node affinity conflict"
The pod's volume is on storage local to one node. No worker runs there. It happens after an upgrade, a node image refresh or a repair replaced the worker that stood on that node.
- Find the volume's node with
kubectl get pv <name> -o jsonpath='{.spec.nodeAffinity}'. Thetopology.kubernetes.io/zonevalue is the Proxmox VE node. - Check that a worker runs on that node with
kubectl get nodes -L topology.kubernetes.io/zone. - Without one, scale the pool up until a worker lands there, or move the volume with the CSI plugin's
pvecsictl migrate(clusters.md).
Shared storage avoids the problem.
Machines whose replacement waits for a host
A node that reboots or sits in HA maintenance is down longer than the five minutes after which the health check replaces a node. Kubehenge holds the replacement back.
- Replacement waits in Health and Replacement held in Machines mean a machine's VM sits on a node that is offline or in HA maintenance. They also show for a node without the cluster's storage.
- The Cluster has the condition
RemediationHeld, with the reasonNodeOffline,NodeMaintenance,StorageUnavailableorNodeRecovering. - The Machine carries
cluster.x-k8s.io/skip-remediation, which keeps the health check off it.kubehenge.dev/remediation-holdsays why.kubehenge.dev/remediation-hold-sinceis when it began.
kubehenge cluster get <name>printsheldandheldUntilfor each machine.
When the hold ends
The hold ends in three cases:
- The node is back and the machine's Kubernetes node is Ready.
- The cluster's
hostOutageGraceMinutesran out, 30 by default.kubehenge.dev/remediation-hold-untilis when.- The same outage never holds the machine twice.
- A server that needs longer than 30 minutes to start needs a higher value. 0 waits for the node for ever (clusters.md).
- The host was removed from the Proxmox VE cluster, since it will not come back.
A skip annotation without Kubehenge's two is yours. Kubehenge leaves it alone.
Host maintenance is not visible
Host maintenance is not visible: the token lacks Sys.Audit on / on the management cluster's Health means the controller cannot read the HA status. Without it Kubehenge sees offline hosts but not HA maintenance, so it does not hold replacements for a host in maintenance. It cannot tell a removed host either. Give the controller's token Sys.Audit on /, which the read-privileges setting grants unless you switched it off.
Only maintenance in the HA manager's node_status holds a machine for maintenance. gone means the host left the cluster's member list, and it ends the wait. So does a host missing from the cluster's own node list (/cluster/config/nodes). fence and unknown do not, since a fenced or unreachable host reboots and returns.
A host that is gone for good
A machine being deleted keeps its VM until Cluster API's Proxmox VE provider destroys it. It cannot while the VM's node does not answer. The machine stays in Deleting. The control plane neither scales up nor replaces a member meanwhile.
- A node that is only offline keeps its machines. They wait for it to return.
- A node the HA manager has as
gone, or that left the cluster's node list, will not return. Kubehenge lets go of the machines being deleted on it.- The Cluster gets the event
NodeGone.
- The Cluster gets the event
- Kubehenge does not destroy the VM. Its configuration stays in
/etc/pve/nodes/<node>/qemu-server/until you remove it. - To retire a dead node at once, run
pvecm delnode <node>on a live one.
Forgetting a machine stuck in deletion
A machine that has been deleting for 20 minutes gets the condition MachineDeletionStalled, with the reason in its message. The reason is an offline node, a node in maintenance, an unlisted VM, or a VM capmox leaves though its node answers.
To release such a machine without waiting for its node, forget it. Its VM stays in Proxmox VE, so remove it there if it is still listed.
- Interface: Forget… in the machine's actions, for those who may download the admin kubeconfig.
- CLI:
kubehenge cluster machine forget NAME MACHINE --yes. - kubectl:
kubectl annotate machine MACHINE kubehenge.dev/forget-machine=MACHINE. The value must be the machine's own name.
All three set the same annotation. The controller refuses a request in the first 20 minutes of the deletion, and while the VM runs on a node that answers. The refusal is in the annotation kubehenge.dev/forget-refused and in an event on the Cluster. A forgotten machine also leaves the ProxmoxCluster's node locations.
Storage unavailable
Storage unavailable in Health and the condition StorageUnavailable mean the cluster's storage is not available on a node that runs one of its VMs. The message names the nodes. Check pvesm status on them and bring the storage back.
The machines on it are held meanwhile, since a replacement would clone onto the same missing storage.
No node for a new VM
A node in maintenance, or without the cluster's storage, gets no new VMs. When no node is left, the Cluster's TopologyReconciled condition says why. The annotation kubehenge.dev/placement-blocked on the Cluster holds the same text.
Autoscaling
AutoscalerNoRoom, "Proxmox VE has no node with the memory for a new worker of pool …: …", means the new worker waits for room. After 30 minutes the autoscaler gives the machine up and tries again. "Storage … reserves each disk's whole size …" means the storage cannot hold the pools at their maximum.- Free memory on the Proxmox VE nodes the cluster may use, or let it use more nodes (clusters.md).
AutoscalerNotPlaced,"the autoscaler cannot run inside the cluster: Kubehenge was installed without the management cluster's address (managementEndpoint)", means the autoscaler is set to run on the cluster's own control planes, which needs the address. Until it is set, no autoscaler runs.- Apply the management cluster again, whose module sets it, or set
managementEndpointin the chart's values. Or have the autoscaler run in the management cluster.
- Apply the management cluster again, whose module sets it, or set
A cluster does not finish deleting
The cluster's page lists what the deletion waits on: every object of the cluster whose finalizer holds it, with what that object reports. kubectl reads the same from the Cluster's annotation kubehenge.dev/deletion-status:
kubectl -n <namespace> get cluster <name> -o jsonpath='{.metadata.annotations.kubehenge\.dev/deletion-status}' | jq| Waits on | Cause and fix |
|---|---|
| Hook BeforeClusterDelete | A cluster registered with Rancher leaves it first, while its VMs still run. The reason is Rancher's. |
| Machine … Drain not completed | A PodDisruptionBudget, or a pod that does not stop, holds up the eviction. The drain timeout ends the wait after 60 minutes by default (upgrading.md). With 0 it never ends. Delete the pod, set a timeout, or abandon the deletion. |
| Machine … Waiting for Node volumes to be detached | The volume detach timeout bounds this the same way, 10 minutes by default. |
| ProxmoxMachine … (a VM on an offline node) | capmox cannot delete the VM. Bring the node back. |
| ProxmoxMachine … "protection flag set" | The VM has Proxmox VE's protection flag, which stops anyone destroying it. Kubehenge never clears an administrator's lock. Run qm set <vmid> --protection 0 on the node. The deletion carries on within seconds. |
| ProxmoxMachine … "named …, not …" | A VM of another name holds the machine's VM ID and nothing proves it is not the machine's own. Rename it to the name given, or remove the ProxmoxMachine's finalizer if the machine's VM is gone. |
| Cluster … removing the Proxmox VE objects, with an offline node | An offline node carries a storage the cluster used. The reason names the node and the storage. Its volumes are deleted once the node is online. Nodes and storages the cluster never used do not block. |
| Cluster … removing the Proxmox VE objects, other reasons | Proxmox VE refuses to delete the pool, user or volume owner VM. The reason is Proxmox VE's. |
The DeletionStalled message ends with what abandoning leaves behind. For an offline node that is the volume owner VM with its volumes, the pool and the user.
Someone who deleted the volume owner VM by hand raises the warning event VolumeOwnerMissing with its old VMID. The volumes named vm-<VMID>-… stay on the storage without an owner. Restore a VM with that VMID from a backup to own them again.
The Cluster gets the condition DeletionStalled and a warning event of the same name once the deletion has waited 20 minutes (the module's watch.stall_minutes). The fleet and the cluster's Health view list it.
Abandoning a deletion
Abandon a deletion that can never finish, such as one for a cluster whose nodes are gone for good. Abandon… on the cluster's page needs VM.Allocate on its pool, as deleting does. Or abandon it from kubectl, with the cluster's name as the value:
kubectl -n <namespace> annotate cluster <name> kubehenge.dev/abandon-deletion=<name>The controller then deletes the machines without draining their nodes or waiting for their volumes. It deletes everything of the cluster that is not being deleted yet, and lets Cluster API go on without the BeforeClusterDelete hook. What has not finished five minutes later loses its finalizers, the Cluster's own last. That happens sooner once the cluster has no ProxmoxMachine (a VM) and no ProxmoxCluster left.
What abandoning leaves behind
A VM on a node that never came back, the cluster's pool and its user can stay in Proxmox VE. A registration in Rancher stays as well. Each is named in its own LeftBehind event and in a DeletionAbandoned event, and the cluster's page lists them while they remain. Delete them by hand, a VM once its node is back. The events last as long as the management cluster keeps events, an hour by default:
kubectl -n <namespace> get events --field-selector reason=LeftBehindAppliance upgrades
| Problem | Cause and fix |
|---|---|
| Newer releases shows "Couldn't check" | The reason follows it. The appliance could not fetch the release index from kubehenge.dev, its signature did not check out, or it has expired. Check that the container reaches kubehenge.dev. |
| "the release index has expired" | The index it reached was not signed again within two weeks. With a mirror (KUBEHENGE_RELEASE_INDEX), copy the index and its signatures to it again. A clock far ahead makes a fresh index look expired too. timedatectl in the container shows it. |
| The last upgrade failed | The reason is on the Administration page, and in journalctl -u kubehenge-update inside the appliance. The release installed before runs again in every case but one, below. |
"release … did not start: …; rolled back to …" | The new release was installed, but its interface did not answer within 2 minutes, or stopped and was restarted soon after. The updater, or install.sh --upgrade, put the old release back. journalctl -u kubehenge shows why the new one did not start. Report it with that log (below). |
"…. Rolling back to … failed too", or the interface does not come back after an upgrade | Neither release serves. See journalctl -u kubehenge, and upgrade or reinstall the release from the shell with install.sh --upgrade (upgrading.md). |
| "Appliance disk N % full" or "the upgrade needs M MiB" | The container's disk is too small. Grow it on the Proxmox VE node with pct resize <id> rootfs +4G, while it runs. |
| "Distribution: not installed on the management cluster" or "Cluster class … has no setting …" when creating a cluster | The upgraded appliance offers a distribution or setting whose ClusterClass the management cluster does not have yet. Apply the management cluster again (Upgrade… at the top of the Administration page) to install the new release's ClusterClasses (upgrading.md). |
Management cluster etcd backups
Administration, Backups shows the last snapshot's error, as does kubehenge appliance etcd-backups in the appliance's shell. The appliance tries again 15 minutes later. journalctl -u kubehenge inside the appliance logs each one.
- "reaching etcd: … etcd snapshot: …" or "reaching the Talos API of …" means no control-plane node's Talos API (port 50000), or etcd behind it, answered. Check that the VMs run and that port 50000 is open from the appliance.
- "the snapshots' talosconfig: …" or a refusal by the Talos API means the talosconfig kept for snapshots expired or no longer matches the management cluster's CA. Apply the management cluster again, which makes a new one, or Change… the backups.
- "target …: …" or "deleting older snapshots: …" means the target refused the access key, or the key may not delete there. In the second case the snapshot was taken and only the removal of the oldest failed.
- "the passphrase does not open the target's key for the management cluster's snapshots" means the target holds a key stored under another state's passphrase. See details.
A restore of the management cluster fails
Its run's log on Administration says at which node and step.
- "Leaving … out" names a node whose Talos API did not answer, which keeps the etcd from before.
- Once it runs, wipe that with
talosctl -n <address> reset --system-labels-to-wipe EPHEMERAL --reboot --graceful=falseand the admin talosconfig (Management cluster, Admin credentials). It then joins the restored one.
- Once it runs, wipe that with
- "no control-plane node answers on its Talos API" means you should start the management cluster's VMs in Proxmox VE first. If they are gone, recreate the management cluster.
- "snapshot … does not match its checksum" means the object in the target is damaged. Restore another snapshot.
A Proxmox VE token is refused or lacks a privilege
The management cluster's Health and your notification targets name each token that fails its test, with its holder, the problem and any missing privilege. The controller tests these every 10 minutes:
- its own token, and the HA and etcd restore tokens where those are on
- the tokens of Cluster API's Proxmox VE provider and of the template builder
- the token of each cluster's cloud controller manager and CSI plugin, whose failure sets
ProxmoxAccessRefusedon that Cluster
The problem is one of these:
- Refused. The token expired, was disabled, or lost its user. Make a new token, or apply the management cluster again.
- Certificate. The API's certificate is from another CA (below).
- Unreachable. The API did not answer, or the Secret with the token cannot be read.
- Privileges. For example
Controller token lacks Realm.AllocateUser on /access/realm/pve.Give the token's user that privilege on that path, or apply the management cluster again.
The warning clears at the next test.
The management cluster's VMs are lost
The three Talos VMs or their datastore are gone, or someone deleted the pool kubehenge-management. The appliance and its state are intact. The target holds snapshots.
Administration, Backups, Recreate… on a snapshot, or kubehenge appliance etcd-backups recreate <snapshot>, does it in one run:
- It opens the snapshot and checks its checksum. A wrong passphrase or a damaged snapshot stops it before anything is made.
- It applies the module for the VMs and the nodes' configuration only. Bootstrap and health steps wait, as they cannot finish on an empty etcd.
- It restores the snapshot into the new nodes, as Restore… does.
- It applies the module whole, which signs the interface in.
Clusters changed since the snapshot go back to then, and the controller lists what no longer matches. If the appliance is lost too, import an export first.
A restore left clusters that do not match Proxmox VE
After a restore of the management cluster, and then daily, the controller compares every cluster with the VMs in its pool.
- VMs missing on a cluster's Health means none of its VMs exists, as for a cluster deleted since the snapshot. Delete the cluster, or create it again with
kubehenge cluster create --from <spec>after restoring its VMs. - Unowned VMs on the management cluster's Health means VMs in Kubehenge's pools that no cluster owns, as for a cluster created since the snapshot. Delete them in Proxmox VE when you are sure.
- The token that lists the VMs must see them. A list with no VM at all is taken as a token that sees nothing, and marks no cluster.
kubehenge cluster create --from restores the spec's Secrets with the appliance's recovery key, which an export carries. It names any Secret it cannot open. --without-secrets goes on without them.
The Proxmox VE certificate or CA changed
The appliance, the management cluster and every cluster check the Proxmox VE API's certificate against the CA chosen when the appliance was installed (install.md). A new certificate from the same CA, such as one Proxmox VE renewed, needs nothing. One from another CA, such as your organisation's replacing Proxmox VE's own, fails those checks. Sign-in fails. The appliance's log (journalctl -u kubehenge) and the clusters' cloud controller managers report a certificate error.
- Give the appliance the new CA with
install.sh --upgrade --proxmox-ca <file>(upgrading.md). It stops, changing nothing, unless the API's certificate is one that CA signed for the URL the appliance uses. - Then apply the management cluster again, so that it and the clusters check against the new CA too.
- The new certificate has to be valid for the same name or address the appliance reaches the API at.
The interface is unreachable
- Check the container runs (
pct status <ctid>) and the service is active (pct exec <ctid> -- systemctl status kubehenge). - The interface's certificate and its sign-in redirects name the address (or
--name) it was given. After a DHCP change, give it back that address or make a certificate for the new one (upgrading.md). - "The appliance stopped during the upgrade" means a reboot or a migration cut the upgrade off. The old release is back.
- Ask for the upgrade again, or run
install.sh --upgradeagain.
- Ask for the upgrade again, or run
- The browser says the certificate expired. Renew it with
install.sh --certificate(upgrading.md). The interface warns administrators 30 days ahead. - The interface keeps working while the management cluster is unwell. Pages that need it say the management cluster did not answer.
- Use Admin credentials, or apply the management cluster again from the Administration page.
Reporting a problem
Report bugs on GitHub with what you did, what happened, and the relevant lines of the logs above. Report vulnerabilities privately, as SECURITY.md describes.