`juju status` shows LXD VMs as containers

Bug #2013824 reported by Simon Déziel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Medium
Jack Shaw

Bug Description

It's a small thing but some Juju messages are referring to LXD VMs as being containers:

```
$ juju add-machine --constraints="virt-type=virtual-machine"

$ juju status
Model Controller Cloud/Region Version SLA Timestamp
microarm overlord microcloud-vm/default 3.1.0 unsupported 09:46:22-04:00

Machine State Address Inst id Base AZ Message
7 pending juju-24971e-7 ubuntu@22.04 Container started

$ juju debug-log --level DEBUG --replay | grep -F juju-24971e-7
controller-0: 09:46:15 INFO juju.worker.provisioner started machine 7 as instance juju-24971e-7 with hardware "arch=arm64 cores=0 mem=0M virt-type=virtual-machine", network config [], volumes [], volume attachments map[], subnets to zones [], lxd profiles []
controller-0: 09:46:25 INFO juju.worker.instancepoller machine "7" (instance ID "juju-24971e-7") instance status changed from {"running" "Container started"} to {"running" "Running"}
controller-0: 09:46:25 INFO juju.worker.instancepoller machine "7" (instance ID "juju-24971e-7") has new addresses: [local-cloud:10.92.44.3@alpha local-cloud:fd42:6f75:6649:2901:216:3eff:fe71:8b2b@alpha]
controller-0: 09:47:59 INFO juju.worker.instancepoller machine "7" (instance ID "juju-24971e-7") has new addresses: []
controller-0: 09:49:01 INFO juju.worker.instancepoller machine "7" (instance ID "juju-24971e-7") has new addresses: [local-cloud:10.92.44.3@alpha local-cloud:fd42:6f75:6649:2901:216:3eff:fe71:8b2b@alpha]
```

But that juju-24971e-7 instance is indeed a virtual machine:

```
$ lxc ls microcloud:juju-24971e-7
+---------------+---------+-------------------+-----------------------------------------------+-----------------+-----------+----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS | LOCATION |
+---------------+---------+-------------------+-----------------------------------------------+-----------------+-----------+----------+
| juju-24971e-7 | RUNNING | 10.92.44.3 (eth0) | fd42:6f75:6649:2901:216:3eff:fe71:8b2b (eth0) | VIRTUAL-MACHINE | 0 | micro02 |
+---------------+---------+-------------------+-----------------------------------------------+-----------------+-----------+----------+
```

Additional information:

```
$ snap list juju
Name Version Rev Tracking Publisher Notes
juju 3.1.0 22136 3.1/stable canonical✓ -
```

Changed in juju:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Jack Shaw (jack-shaw)
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.