`juju show-controller` doesn't show controller node(s) for k8s controllers

Bug #1971600 reported by Jack Shaw
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
In Progress
Undecided
Jack Shaw

Bug Description

For an lxd controller:
```
$ juju show-controller lxd
lxd:
...
  controller-machines:
    "0":
      instance-id: juju-f5b8a2-0
...
```

But for a microk8s controller, no such field exists.

It is clear from:
https://github.com/juju/juju/blob/00bf790ec07023db50a7a40d3650083d80918f4a/cmd/juju/controller/showcontroller.go#L511-L550
That such a field is intended, and will be labelled `controller-nodes`.

However, it is not populated, since in both cases we iterate over `controllerModel.Machines`, which is empty for k8s controllers model

Jack Shaw (jack-shaw)
Changed in juju:
status: New → In Progress
assignee: nobody → Jack Shaw (jack-shaw)
Jack Shaw (jack-shaw)
Changed in juju:
milestone: none → 3.1-beta1
Changed in juju:
milestone: 3.1-beta1 → 3.1-rc1
Changed in juju:
milestone: 3.1-rc1 → 3.1-rc2
Changed in juju:
milestone: 3.1-rc2 → 3.1-rc3
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.