Hi Martin
Okay, some progress which is great!
But, to help you further, a few more details:
1. Which Linux OS are you using?
2. Is the LXD snap installed? - if so, which version is it? "lxc
--version" will give the answer.
3. Have you configured a storage pool for LXD? (e.g. have you done
"sudo lxd init" and created a default storage pool). What kind of storage
pool is it? (e.g. dir, btrfs, zfs, etc.)
4. It looks like your using master version of nova-lxd (i.e. via
devstack and the plugin)? I think it's also going to use ZFS? If so,
there's a bug in nova-lxd (that I will fix in the not too distant future)
where unless the ZFS pool is the same string as the LXD pool for it, then
nova-lxd can't find the storage pool.
So, if you run the following commands:
lxc storage list
zpool list
That should show the current configuration.
Hope that this helps.
Cheers
Alex.
On Wed, Sep 19, 2018 at 2:48 PM, Martin Bobák wrote:
> Hi Alex,
>
> first off, thank you for your kind reply. I followed your advices.
> However, I still have a problem which looks like an incorrect setting up of
> a storage pool for lxd. I configured the /etc/nova-compute.conf as you
> suggested, but it didn't help.
>
> In my case those lines look like:
>
> [DEFAULT]
> compute_driver = nova_lxd.nova.virt.lxd.LXDDriver
>
> [lxd]
> allow_live_migration = True
> pool = lxd
> But the error is following (relevant parts from syslog --> it looks like
> lxd variables from the /etc/nova-compute.conf aren't delivered to the
> driver, or recognized by it, I tried to use different names for
> compute_driver e.g. lxd.LXDDriver, nova-lxd.nova.virt.lxd.(driver).LXDDriver
> -> however, it didn't help):
>
> Sep 19 09:15:08 localhost nova-conductor[1956]: #033[00;32mDEBUG
> oslo_service.service [#033[01;36mNone req-5cda2246-8087-4f49-b9b3-463d29fd7bf8
> #033[00;36mNone None#033[00;32m] #033[01;35m#033[00;32mcompute_driver
> = nova_lxd.nova.virt.lxd.LXDDriver#033[00m #033[00;33m{{(pid=1956)
> log_opt_values /usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py:
> 2890}}#033[00m
> Sep 19 09:15:08 localhost nova-consoleauth[1984]: #033[00;32mDEBUG
> oslo_service.service [#033[01;36mNone req-2a9399e1-996d-42f4-899b-62db8d8e5afd
> #033[00;36mNone None#033[00;32m] #033[01;35m#033[00;32mcompute_driver
> = nova_lxd.nova.virt.lxd.LXDDriver#033[00m #033[00;33m{{(pid=1984)
> log_opt_values /usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py:
> 2890}}#033[00m
> Sep 19 09:15:10 localhost nova-scheduler[2000]: #033[00;32mDEBUG
> oslo_service.service [#033[01;36mNone req-3d23848b-270b-4718-91dd-3b0417d27d21
> #033[00;36mNone None#033[00;32m] #033[01;35m#033[00;32mcompute_driver
> = nova_lxd.nova.virt.lxd.LXDDriver#033[00m #033[00;33m{{(pid=2000)
> log_opt_values /usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py:
> 2890}}#033[00m
> Sep 19 09:15:11 localhost devstack@placement-api.service[2030]:
> #033[00;32mDEBUG nova.api.openstack.placement.wsgi
> [#033[00;36m-#033[00;32m] #033[01;35m#033[00;32mcompute_driver
> = nova_lxd.nova.virt.lxd.LXDDriver#033[00m #033[00;33m{{(pid=2294)
> log_opt_values /usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py:
> 2890}}#033[00m
> Sep 19 09:15:12 localhost devstack@n-api.service[1999]: #033[00;32mDEBUG
> nova.api.openstack.wsgi_app [#033[01;36mNone
> req-1e20e359-2bcc-44e6-9c75-7422c5837c03
> #033[00;36mNone None#033[00;32m] #033[01;35m#033[00;32mcompute_driver
> = nova_lxd.nova.virt.lxd.LXDDriver#033[00m #033[00;33m{{(pid=2181)
> log_opt_values /usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py:
> 2890}}#033[00m
> Sep 19 09:15:14 localhost devstack@placement-api.service[2030]:
> #033[00;32mDEBUG nova.api.openstack.placement.wsgi
> [#033[00;36m-#033[00;32m] #033[01;35m#033[00;32mcompute_driver
> = nova_lxd.nova.virt.lxd.LXDDriver#033[00m #033[00;33m{{(pid=2292)
> log_opt_values /usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py:
> 2890}}#033[00m
> Sep 19 09:15:15 localhost devstack@n-api.service[1999]: #033[00;32mDEBUG
> nova.api.openstack.wsgi_app [#033[01;36mNone
> req-6d5745e7-3784-4b8e-8210-e7bf74fd9655
> #033[00;36mNone None#033[00;32m] #033[01;35m#033[00;32mcompute_driver
> = nova_lxd.nova.virt.lxd.LXDDriver#033[00m #033[00;33m{{(pid=2182)
> log_opt_values /usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py:
> 2890}}#033[00m
> Sep 19 09:15:20 localhost nova-compute[1968]: #033[00;32mDEBUG
> oslo_service.service [#033[01;36mNone req-1bc67100-ffbe-4d22-be1f-42133eb60611
> #033[00;36mNone None#033[00;32m] #033[01;35m#033[00;32mcompute_driver
> = lxd.LXDDriver#033[00m #033[00;33m{{(pid=1968) log_opt_values
> /usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py:2890}}#033[00m
> ep 19 09:15:20 localhost nova-compute[1968]: #033[00;32mDEBUG
> oslo_service.service [#033[01;36mNone req-1bc67100-ffbe-4d22-be1f-42133eb60611
> #033[00;36mNone None#033[00;32m]
> #033[01;35m#033[00;32mlxd.allow_live_migration
> = False#033[00m #033[00;33m{{(pid=1968)