[Windows] Juju.exe and MicroK8s.exe bootstrap error

Bug #1931590 reported by Nuno do Carmo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Yang Kelvin Liu

Bug Description

Hi all,

this is a follow-up from an initial discussion on Juju discourse: https://discourse.charmhub.io/t/windows-juju-and-microk8s-bootstrap-error/4712

I’m currently writing a blog on reproducing Mark Shuttleworth demo at DockerCon 2021, but on Windows.

When trying `juju.exe bootstrap microk8s` command, with MicroK8s for Windows running as the cluster, it ends up with the following error:

```
$ juju.exe bootstrap microk8s

ERROR The microk8s user group is created during the microk8s snap installation.
Users in that group are granted access to microk8s commands and this
is needed for Juju to be able to interact with microk8s.

Add yourself to that group before trying again:
  sudo usermod -a -G microk8s GHOSTNIX\corsair
```

Even if you might already know it, please note that MicroK8s for Windows creates a VM, using Multipass.exe, with the user "ubuntu".
When running the `microk8s` command, everything works fine and handles the "change" of user properly.

Thanks in advance for your help and support.

Revision history for this message
Nuno do Carmo (wslcorsair) wrote :

Please note that the "cloud" is added by updating the `$env:KUBECONFIG` and/or saving the MicroK8s config into the `$HOME\.kube\config` file.

Ian Booth (wallyworld)
Changed in juju:
milestone: none → 2.9.6
importance: Undecided → High
status: New → Triaged
Changed in juju:
milestone: 2.9.6 → 2.9.7
Changed in juju:
status: Triaged → In Progress
assignee: nobody → Yang Kelvin Liu (kelvin.liu)
Changed in juju:
milestone: 2.9.7 → 2.9.8
Changed in juju:
milestone: 2.9.8 → 2.9.9
Revision history for this message
Yang Kelvin Liu (kelvin.liu) wrote :
Changed in juju:
status: In Progress → Fix Committed
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.