Skip to content

microk8s enable ha-cluster fails #5338

@mshlain

Description

@mshlain

ha-cluster-upgrade.log
inspection-report-20251216_075926.tar.gz

Summary

The command 'microk8s enable ha-cluster' fails and corrupts the whole cluster

What Should Happen Instead?

Calico CNI should be enabled

Reproduction Steps

I have a single-node microk8s cluster that is running few applications
When i installed it back in 2023 i used 'microk8s disable ha-cluster' because we did not need the full-blow calico CNI and flannel was enough.
We also installed coredns from helm
Today we need calico CNI

I did:

  1. Drain with:
    kubectl delete nodes --all
    kubectl delete pods --all --all-namespaces
    (no errors returned)

  2. Execute: microk8s enable ha-cluster wich printed:

microk8s enable ha-cluster
Infer repository core for addon ha-cluster
No resources found
Enabling HA
Upgrading the network CNI
Waiting for the cluster to restart
  1. After

Introspection Report

Inspecting system
Inspecting Certificates
Inspecting services
  Service snap.microk8s.daemon-cluster-agent is running
  Service snap.microk8s.daemon-containerd is running
  Service snap.microk8s.daemon-kubelite is running
 FAIL:  Service snap.microk8s.daemon-flanneld is not running
For more details look at: sudo journalctl -u snap.microk8s.daemon-flanneld
  Service snap.microk8s.daemon-etcd is running
  Service snap.microk8s.daemon-apiserver-kicker is running
  Copy service arguments to the final report tarball
Inspecting AppArmor configuration
Gathering system information
  Copy processes list to the final report tarball
  Copy disk usage information to the final report tarball
  Copy memory usage information to the final report tarball
  Copy server uptime to the final report tarball
  Copy openSSL information to the final report tarball
  Copy snap list to the final report tarball
  Copy VM name (or none) to the final report tarball
  Copy current linux distribution to the final report tarball
  Copy asnycio usage and limits to the final report tarball
  Copy inotify max_user_instances and max_user_watches to the final report tarball
  Copy network configuration to the final report tarball
Inspecting kubernetes cluster
  Inspect kubernetes cluster

Building the report tarball
  Report tarball is at /var/snap/microk8s/8511/inspection-report-20251216_075926.tar.gz

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions