unhelpful error message bootstrapping microk8s

Bug #1860154 reported by Heather Lanigan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Medium
Anastasia

Bug Description

$ ~/work/bin/juju bootstrap --build-agent microk8s mk8s
Creating Juju controller "mk8s" on microk8s/localhost
ERROR failed to bootstrap model: --build-agent when bootstrapping a k8s controller
$

Does this mean that you cannot use --build-agent when bootstraping micro8ks? I haven't been able to find documentation around this. There is no mention in `juju help bootstrap` that I can find.

summary: - unmeaningful error message bootstrapping microk8s
+ unhelpful error message bootstrapping microk8s
Revision history for this message
Ian Booth (wallyworld) wrote :

The error should say "--build agent when bootstrapping a k8s controller not supported" but the "not supported" has been left off it seems.

The way to do it with microk8s is to use the make target "microk8s-operator-update".
This will make a new docker image with a build jujud and push that to the microk8s containerd registry. Because the image pull policy is PullIfNotPresent, the custom buitt, pre-cached image will be used.

The same technique applies for any k8s cluster, but the make target is oriented to microk8s.

Changed in juju:
milestone: none → 2.8-beta1
status: New → Triaged
Revision history for this message
Anastasia (anastasia-macmood) wrote :

The problem is that the errors were constructed using errors.NewNotSupported(...) constructor whereas it's errors.NotSupportedf(...) that appends "not supported" to error message automatically.

Revision history for this message
Anastasia (anastasia-macmood) wrote :

PR for develop (heading into 2.8): https://github.com/juju/juju/pull/11125

Changed in juju:
status: Triaged → In Progress
assignee: nobody → Anastasia (anastasia-macmood)
Changed in juju:
status: In Progress → Fix Committed
Harry Pidcock (hpidcock)
Changed in juju:
status: Fix Committed → Fix Released
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.