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

Existing cluster contexts/logins are removed when a new cluster is deployed #1888

Closed
marcusbooyah opened this issue Mar 14, 2024 · 3 comments
Labels
bug Identifies a bug or other failure

Comments

@marcusbooyah
Copy link
Member

All my logins in kubeconfig got deleted when installing a new cluster

@marcusbooyah marcusbooyah added the bug Identifies a bug or other failure label Mar 14, 2024
@jefflill jefflill changed the title Cluster logins got deleted Existing cluster contexts/logins are removed when a new cluster is deployed Mar 31, 2024
@jefflill
Copy link
Collaborator

Actually, I cannot replicate this.

In my first attempt, I created a tiny hyper-v cluster using my cheats and then I tweaked the cluster definition and my cheat script and created a second cluster, but I forgot to edit the line where I delete any existing cluster, so that removed the first cluster I created and then my script created the new cluster. The old cluster (and login) were deleted because I (unintentionally) deleted it.

I tried this again by creating two clusters (and taking care not to delete the first one) and both clusters and logins are present.

I've also had the headend cluster in my config for a long time and have been able to create/delete clusters freely without removing the headend cluster.

@marcusbooyah: Is it possible that this was caused by: https://github.com/nforgeio/neonCLOUD/issues/437

If not, could you give me some more details:

  • What was the target environment for the new cluster
  • What kind of contexts were removed? NeonKUBE clusters and/or the Headend context (not that the Headend context is not treated as a NeonKUBE context because it's format is very old).
  • By change, did you do what I did and accidentally deleted the first cluster and context?

@jefflill
Copy link
Collaborator

jefflill commented Apr 1, 2024

@marcusbooyah told me that the cluster login removed was for our headend cluster, which is not currently considered to be a NeonKUBE cluster (because it's pretty old).

I tried deploying a new cluster with the headend cluster in the config and I ended up with both clusters in the kubeconfig file.

I tried again, manually causing the cluster deployment to fail to see if that the recovery from that would cause the headend cluster liogin to be deleted. but it was still there afterwards.

I did find and fix a problem related to saving the kubeconfig, but I don't believe that fixed this problem.

I'm going to keep this issue open so we can watch for this, but I'm at a dead-end right now.

@jefflill
Copy link
Collaborator

NO-REPRO: I wasn't able to reproduce this issue. I had the headend cluster in the config and then deployed a new Hyper-V cluster; the headend cluster was still there afterwards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Identifies a bug or other failure
Projects
None yet
Development

No branches or pull requests

2 participants