destroying a controller and then trying to recreate it tells me it already exists

Bug #1908258 reported by Tom Haddon
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Expired
High
Unassigned

Bug Description

I created a juju k8s controller on microk8s, and then wanted to destroy it and recreate it. However, it tells me after destroying it that a controller with the same name already exists on the cluster.

https://paste.ubuntu.com/p/rn6cctvdQB/

Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 1908258] [NEW] destroying a controller and then trying to recreate it tells me it already exists

There is a controller-micro namespace running with a modeloperator and
controller-0. Is the issue that it didn't cleanup properly?
You should be able to 'kubectl delete namespace controller-micro'

However, you shouldn't need to do so .

On Tue, Dec 15, 2020 at 6:15 AM Tom Haddon <email address hidden>
wrote:

> Public bug reported:
>
> I created a juju k8s controller on microk8s, and then wanted to destroy
> it and recreate it. However, it tells me after destroying it that a
> controller with the same name already exists on the cluster.
>
> https://paste.ubuntu.com/p/rn6cctvdQB/
>
> ** Affects: juju
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are subscribed to juju.
> Matching subscriptions: juju bugs
> https://bugs.launchpad.net/bugs/1908258
>
> Title:
> destroying a controller and then trying to recreate it tells me it
> already exists
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/juju/+bug/1908258/+subscriptions
>

Revision history for this message
Tom Haddon (mthaddon) wrote :

I believe that's the issue, yes (that it didn't clean up properly). Obviously I can work around it by manually deleting the namespace in kubernetes, but wanted to report this bug and ask if there's any info I can provide that'd help identify why this happened.

Revision history for this message
Ian Booth (wallyworld) wrote :

I am fairly sure that destroy-model will cleanup the model's namespace so the bug appears specific to destroy-controller. FWIW kill-controller does clean up the namespace (but we prefer people use destroy-controller).

Changed in juju:
milestone: none → 2.8.8
status: New → Triaged
importance: Undecided → High
Changed in juju:
milestone: 2.8.8 → 2.8.9
Changed in juju:
milestone: 2.8.9 → 2.8.10
Changed in juju:
milestone: 2.8.10 → 2.8.11
John A Meinel (jameinel)
Changed in juju:
milestone: 2.8.11 → 2.9-next
status: Triaged → Incomplete
Ian Booth (wallyworld)
Changed in juju:
milestone: 2.9-next → none
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Canonical Juju because there has been no activity for 60 days.]

Changed in juju:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.