Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

re-enabling ha-cluster renders the cluster unusable #4424

Open
copiltembel opened this issue Feb 19, 2024 · 1 comment
Open

re-enabling ha-cluster renders the cluster unusable #4424

copiltembel opened this issue Feb 19, 2024 · 1 comment
Labels

Comments

@copiltembel
Copy link

Summary

I had a single-node microk8s cluster that was working fine (i.e. had some pods running as expected). I stupidly enabled ha-cluster add-on and now the cluster doesn't work anymore. I'd like to go back to the previous state of my cluster, not to lose the configuration, but that seems impossible now.

What Should Happen Instead?

Enabling ha-cluster should not render the cluster unusable.

Reproduction Steps

This is the easiest way to repro:

  1. $ sudo snap install microk8s --classic
  2. $ microk8s disable ha-cluster --force
  3. $ microk8s enable ha-cluster

Now the (single-node) cluster is dead:

$ $ microk8s status
microk8s is not running. Use microk8s inspect for a deeper inspection.

$ microk8s inspect
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/6227/inspection-report-20240219_161304.tar.gz

Details:

Upon initial installation, ha-cluster is enabled:

$ microk8s status
microk8s is running
high-availability: no
  datastore master nodes: 127.0.0.1:19001
  datastore standby nodes: none
addons:
  enabled:
    dns                  # (core) CoreDNS
    ha-cluster           # (core) Configure high availability on the current node
...

My understanding is that ha-cluster needs at least 3 nodes, so it should not be enabled by default.
Or, if it is enabled by default, disabling and reenabling it without doing anything else should work fine.

Introspection Report

inspection-report-20240219_161304.tar.gz

Copy link

stale bot commented Jan 15, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the inactive label Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant