Juju 4.0 doesn't deploy the controller charm on microk8s

Bug #2040947 reported by Jordan Barrett
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Committed
High
Thomas Miller

Bug Description

If you bootstrap a controller with Juju 4.0 on microk8s, the controller model is empty:
------------------------------------------------
$ juju bootstrap microk8s c
$ juju switch controller
$ juju status

Model Controller Cloud/Region Version SLA Timestamp
Model "admin/controller" is empty.
controller c microk8s/localhost 4.0-beta1 unsupported 04:50:20Z
+ juju status --format json
------------------------------------------------

It should have the juju-controller charm deployed on bootstrap.

See https://chat.charmhub.io/charmhub/pl/66bgj7r1btbmjcynrw899xxdjr

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

ERROR cannot deploy controller application: cannot add controller application: cannot add application "controller": finding controller namespace with non legacy labels: Get "https://127.0.0.1:16443/api/v1/namespaces?labelSelector=model.juju.is%2Fname%3Dcontroller": dial tcp 127.0.0.1:16443: connect: connection refused
2023-10-26 03:57:09 DEBUG cmd supercommand.go:528 error stack:
Get "https://127.0.0.1:16443/api/v1/namespaces?labelSelector=model.juju.is%2Fname%3Dcontroller": dial tcp 127.0.0.1:16443: connect: connection refused
github.com/juju/juju/caas/kubernetes/provider.findControllerNamespace:195: finding controller namespace with non legacy labels
github.com/juju/juju/state/stateenvirons.(*environStatePolicy).ConstraintsValidator:119:
github.com/juju/juju/state.(*State).processCommonModelApplicationArgs:1469:
github.com/juju/juju/state.(*State).processCAASModelApplicationArgs:1581:
github.com/juju/juju/state.(*State).AddApplication:1272:
github.com/juju/juju/state.(*State).AddApplication:1272: cannot add application "controller"
github.com/juju/juju/cmd/jujud/agent.addControllerApplication:363:
github.com/juju/juju/cmd/jujud/agent.(*BootstrapCommand).deployControllerCharm:115: cannot add controller application
github.com/juju/juju/cmd/jujud/agent.(*BootstrapCommand).Run:447: cannot deploy controller application

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

We should make this a fatal error in juju 4.0. Previously it has been optional.

Changed in juju:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Joseph Phillips (manadart)
milestone: none → 4.0-beta2
Changed in juju:
assignee: Joseph Phillips (manadart) → Thomas Miller (tlmiller)
Revision history for this message
Thomas Miller (tlmiller) wrote :
Changed in juju:
status: Triaged → Fix Committed
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.