Comment 2 for bug 2052480

Revision history for this message
Pablo F Ordonez (pordonez) wrote :

I updated to LXD to 5.20-f3dd836 and it solve the problem of "Certified Restricted". However, when I try to create a LXD vm I got another issue:

from rackd.log

2024-02-09 17:27:47 provisioningserver.rpc.pods: [critical] server4: Failed to compose machine: RequestedMachine(hostname='nasrin', architecture='amd64/generic', cores=4, memory=20480, block_devices=[RequestedMachineBlockDevice(size=195000000000, tags=['pool1'])], interfaces=[RequestedMachineInterface(ifname=None, attach_name=None, attach_type=None, attach_options=None, attach_vlan=None, requested_ips=[], ip_mode=None)], cpu_speed=None, known_host_interfaces=[], pinned_cores=[], hugepages_backed=False)
 Traceback (most recent call last):
   File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
     self.run()
   File "/usr/lib/python3.10/threading.py", line 953, in run
     self._target(*self._args, **self._kwargs)
   File "/snap/maas/32469/usr/lib/python3/dist-packages/twisted/_threads/_threadworker.py", line 47, in work
     task()
   File "/snap/maas/32469/usr/lib/python3/dist-packages/twisted/_threads/_team.py", line 182, in doWork
     task()
 --- <exception caught here> ---
   File "/snap/maas/32469/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 244, in inContext
     result = inContext.theWork() # type: ignore[attr-defined]
   File "/snap/maas/32469/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 260, in <lambda>
     inContext.theWork = lambda: context.call( # type: ignore[attr-defined]
   File "/snap/maas/32469/usr/lib/python3/dist-packages/twisted/python/context.py", line 117, in callWithContext
     return self.currentContext().callWithContext(ctx, func, *args, **kw)
   File "/snap/maas/32469/usr/lib/python3/dist-packages/twisted/python/context.py", line 82, in callWithContext
     return func(*args, **kw)
   File "/snap/maas/32469/lib/python3.10/site-packages/provisioningserver/utils/twisted.py", line 203, in wrapper
     result = func(*args, **kwargs)
   File "/snap/maas/32469/lib/python3.10/site-packages/provisioningserver/drivers/pod/lxd.py", line 440, in compose
     **self._get_machine_nics(request),
   File "/snap/maas/32469/lib/python3.10/site-packages/provisioningserver/drivers/pod/lxd.py", line 526, in _get_machine_nics
     raise LXDPodError("No host network to attach VM interfaces to")
 provisioningserver.drivers.pod.lxd.LXDPodError: No host network to attach VM interfaces to

Additional Info

lxc network ls
+----------+----------+---------+----------------+---------------------------+-------------+---------+---------+
| NAME | TYPE | MANAGED | IPV4 | IPV6 | DESCRIPTION | USED BY | STATE |
+----------+----------+---------+----------------+---------------------------+-------------+---------+---------+
| br-eno1 | bridge | NO | | | | 2 | |
+----------+----------+---------+----------------+---------------------------+-------------+---------+---------+
| br-eno2 | bridge | NO | | | | 1 | |
+----------+----------+---------+----------------+---------------------------+-------------+---------+---------+
| eno1 | physical | NO | | | | 0 | |
+----------+----------+---------+----------------+---------------------------+-------------+---------+---------+
| eno2 | physical | NO | | | | 0 | |
+----------+----------+---------+----------------+---------------------------+-------------+---------+---------+
| enp9s0f0 | physical | NO | | | | 0 | |
+----------+----------+---------+----------------+---------------------------+-------------+---------+---------+
| enp9s0f1 | physical | NO | | | | 0 | |
+----------+----------+---------+----------------+---------------------------+-------------+---------+---------+
| ibp8s0 | physical | NO | | | | 0 | |
+----------+----------+---------+----------------+---------------------------+-------------+---------+---------+
| idrac | physical | NO | | | | 0 | |
+----------+----------+---------+----------------+---------------------------+-------------+---------+---------+
| lxdbr0 | bridge | YES | 10.152.74.1/24 | fd42:7ddd:6541:5f80::1/64 | | 4 | CREATED |
+----------+----------+---------+----------------+---------------------------+-------------+---------+---------+

lxc storage ls
+---------+--------+------------------------------------------------+-------------+---------+---------+
| NAME | DRIVER | SOURCE | DESCRIPTION | USED BY | STATE |
+---------+--------+------------------------------------------------+-------------+---------+---------+
| default | dir | /var/snap/lxd/common/lxd/storage-pools/default | | 4 | CREATED |
+---------+--------+------------------------------------------------+-------------+---------+---------+
| pool1 | dir | /mnt/gpu4/pool1/ | | 2 | CREATED |
+---------+--------+------------------------------------------------+-------------+---------+---------+

This is a machine was created 2 weeks ago (No track of LXD version) and is using the pool1.

 lxc ls
+-------+---------+-----------------------+------+-----------------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+-------+---------+-----------------------+------+-----------------+-----------+
| mpiw4 | RUNNING | 172.16.20.13 (enp5s0) | | VIRTUAL-MACHINE | 0 |
| | | 10.96.52.48 (enp6s0) | | | |
+-------+---------+-----------------------+------+-----------------+-----------+

Pls let me know if you need more info.

Thanks.