Nova-lxd configuration problem of a nova module
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nova-lxd |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Trying to install OpenStack devstack (Queens) with a nova-lxd plugin on a fresh xenial host, but it always fails to find any hypervisor. I used local.conf from a nova-lxd git repo as well as from a devstack installation page, however, it leads to the same result.
The installation scripts put the driver into nova.conf (as compute_driver = lxd.LXDDriver), however, it looks like the nova module doesn't start correctly.
I got a following error (during installation verification):
ID=
+:: [[ '' == '' ]]
+:: sleep 1
++:: openstack --os-cloud devstack-admin --os-region RegionOne compute service list --host ubuntu --service nova-compute -c ID -f value
Didn't find service registered by hostname after 60 seconds
+----+-
| ID | Binary | Host | Zone | Status | State | Updated At |
+----+-
| 3 | nova-scheduler | ubuntu | internal | enabled | up | 2018-09-
| 5 | nova-consoleauth | ubuntu | internal | enabled | up | 2018-09-
| 6 | nova-conductor | ubuntu | internal | enabled | up | 2018-09-
| 1 | nova-conductor | ubuntu | internal | enabled | up | 2018-09-
+----+-
Error on exit
------------------
Host SW info
------------------
Host OS: Ubuntu 16.04.5 LTS
LXC/LXD version: 3.4
Preinstalled sw: pylxd (the newest version from the master branch)
Changed in nova-lxd: | |
status: | New → Incomplete |
status: | Incomplete → New |
description: | updated |
After discussion with Alex Kavanagh, I fixed the bug by adding an [lxd] section in nova-cpu.conf (to control the storage pool in LXD for containers to use when launching instances).
[lxd] migration = True
allow_live_
pool = {{ storage_pool }}
The storage pool is need to be set up separately in lxd.