Nova-lxd configuration problem of a nova module

Bug #1792125 reported by Dr. Martin Bobak
6
This bug affects 1 person
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-12T09:36:20.000000 |
| 5 | nova-consoleauth | ubuntu | internal | enabled | up | 2018-09-12T09:36:16.000000 |
| 6 | nova-conductor | ubuntu | internal | enabled | up | 2018-09-12T09:36:16.000000 |
| 1 | nova-conductor | ubuntu | internal | enabled | up | 2018-09-12T09:36:15.000000 |
+----+------------------+--------+----------+---------+-------+----------------------------+
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)

Tags: compute nova
Changed in nova-lxd:
status: New → Incomplete
status: Incomplete → New
description: updated
Revision history for this message
Dr. Martin Bobak (martin.bobak) wrote :

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]
allow_live_migration = True
pool = {{ storage_pool }}

The storage pool is need to be set up separately in lxd.

Changed in nova-lxd:
status: New → Fix Released
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.