`juju dashboard` returns immediately and fails to open port with microk8s controller

Bug #1920820 reported by Jon Seager
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Thomas Miller

Bug Description

When trying to test the Juju Dashboard with a controller on microk8s, the `juju dashboard` command displays the dashboard info, but returns immediately and doesn't open any ports.

I've tried this on Juju 2.8/stable and Juju 2.9/edge in a fresh 20.04 vm and my workstation

```
sudo snap install --classic microk8s
sudo usermod -aG microk8s $(whoami)
newgrp microk8s
microk8s enable dns storage

sudo snap install --classic juju
juju bootstrap microk8s micro
juju add-model testing
juju dashboard
```

The command shows the expected output, but returns immediately:

```
Dashboard 0.3.0 for controller "micro" is enabled at:
  https://localhost:43199/dashboard
Your login credential is:
  username: admin
  password: <blah>
```

Confirm the port isn't open with:

```
ss -tlpn | grep 43199
```

If I check the pod logs for the controller, I can see that the dashboard was installed properly, but there are no other logs concerning the dashboard:

```
ubuntu@dash-test:~$ kubectl -n controller-micro logs controller-0 -c api-server | grep -i dash
Installing Dashboard...

```

Thanks!

Revision history for this message
Harry Pidcock (hpidcock) wrote :

I was able to reproduce this on 2.9 with microk8s.

Changed in juju:
importance: Undecided → High
status: New → Confirmed
milestone: none → 2.9.1
Ian Booth (wallyworld)
Changed in juju:
milestone: 2.9.1 → 2.9.2
Changed in juju:
milestone: 2.9.2 → 2.9.3
Thomas Miller (tlmiller)
Changed in juju:
assignee: nobody → Thomas Miller (tlmiller)
Thomas Miller (tlmiller)
Changed in juju:
status: Confirmed → Fix Committed
Revision history for this message
Thomas Miller (tlmiller) wrote :
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.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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