MAAS KVM Host Fails Deployment w/error in rackd.log

Hello,
MAAS Version 3.2.5

I am deploying a machine as a MAAS KVM Host that uses LXD like the picture below:

The machine deploys the OS, then does the reboot, but never finishes rebooting and the deployment eventually fails by timeout. There is an error present in rackd.log:

2022-09-19 15:49:52 provisioningserver.rpc.pods: [critical] Failed to discover VM host.
            Traceback (most recent call last):
              File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
                self.run()
              File "/usr/lib/python3.8/threading.py", line 870, in run
                self._target(*self._args, **self._kwargs)
              File "/snap/maas/23696/usr/lib/python3/dist-packages/twisted/_threads/_threadworker.py", line 46, in work
                task()
              File "/snap/maas/23696/usr/lib/python3/dist-packages/twisted/_threads/_team.py", line 190, in doWork
                task()
            --- <exception caught here> ---
              File "/snap/maas/23696/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 250, in inContext
                result = inContext.theWork()
              File "/snap/maas/23696/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 266, in <lambda>
                inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
              File "/snap/maas/23696/usr/lib/python3/dist-packages/twisted/python/context.py", line 122, in callWithContext
                return self.currentContext().callWithContext(ctx, func, *args, **kw)
              File "/snap/maas/23696/usr/lib/python3/dist-packages/twisted/python/context.py", line 85, in callWithContext
                return func(*args,**kw)
              File "/snap/maas/23696/lib/python3.8/site-packages/provisioningserver/utils/twisted.py", line 202, in wrapper
                result = func(*args, **kwargs)
              File "/snap/maas/23696/lib/python3.8/site-packages/provisioningserver/drivers/pod/lxd.py", line 311, in discover
                discovered_pod = self._discover(client, pod_id, context)
              File "/snap/maas/23696/lib/python3.8/site-packages/provisioningserver/drivers/pod/lxd.py", line 391, in _discover
                discovered_storage_pool = self._get_discovered_pod_storage_pool(
              File "/snap/maas/23696/lib/python3.8/site-packages/provisioningserver/drivers/pod/lxd.py", line 812, in _get_discovered_pod_storage_pool
                storage_pool_path = storage_pool_config.get("source")
            builtins.AttributeError: 'NoneType' object has no attribute 'get'

Any help is appreciated

2 Likes

Same issue here on 3.2.6. Libvirt works but LXD does not.

1 Like

Any update on this please, I am also facing same issue as @nwalling mentioned and it is working good as a libvirt.
I am using 3.2.6-12016-g.19812b4da version from 3.2/stable channel.

I’ve opened up 2 different tickets concerning KVM host issues. It looks like one was patched for the 3.3.0 release (https://bugs.launchpad.net/maas/+bug/1984141), but the other with incorrect resources hasn’t even been assigned (https://bugs.launchpad.net/maas/+bug/1982423). Fingers crossed all of these get patched quickly. We use KVM hosts a lot and right now, it’s at a complete stop. :frowning:

I am having the exact same problem with my KVM deployment right now. In my terminal I can see that it says “Reached target Cloud-init target,” but then the GUI hangs with the “Rebooting” message and doesn’t add the machine to the KVM dashboard.

1 Like

I believe this is also replicated in this open bug report, but if there are any additional details anyone thinks should be included do say!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.