"missing the pool property" when container is creating

Bug #1717288 reported by Rufus Deponian
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nova-lxd
Invalid
Undecided
Unassigned

Bug Description

Openstack version: Pike
Nova-lxd version: 16.0.0
LXD version: 2.17

I see error in nova-compute.log "The container's root device is missing the pool property" when I create an instance. It is look like nova-lxd doesn't support creating of containers with 2.* LXD releases because in featured 2.* branch was added support of pools. Is nova-lxd support only stable 2.0.* LXD version? I don't need a pool feature because I use Cinder. I just want the containers to be created without errors.

Full error log:

2017-09-14 17:14:37.627 23060 ERROR nova.compute.manager [req-0d4ab888-d4cb-403b-9be2-369445b15a2f 7d0540dfa0934861961c1e935b485559 d4a0b944f8c74e68aa3f472896f9d66a - default default] [instance: a5ebe6c2-120a-4ea1-8cf4-f2e2554a5309] Instance failed to spawn: LXDAPIException: The container's root device is missing the pool property.
2017-09-14 17:14:37.627 23060 ERROR nova.compute.manager [instance: a5ebe6c2-120a-4ea1-8cf4-f2e2554a5309] Traceback (most recent call last):
2017-09-14 17:14:37.627 23060 ERROR nova.compute.manager [instance: a5ebe6c2-120a-4ea1-8cf4-f2e2554a5309] File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2162, in _build_resources
2017-09-14 17:14:37.627 23060 ERROR nova.compute.manager [instance: a5ebe6c2-120a-4ea1-8cf4-f2e2554a5309] yield resources
2017-09-14 17:14:37.627 23060 ERROR nova.compute.manager [instance: a5ebe6c2-120a-4ea1-8cf4-f2e2554a5309] File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1977, in _build_and_run_instance
2017-09-14 17:14:37.627 23060 ERROR nova.compute.manager [instance: a5ebe6c2-120a-4ea1-8cf4-f2e2554a5309] block_device_info=block_device_info)
2017-09-14 17:14:37.627 23060 ERROR nova.compute.manager [instance: a5ebe6c2-120a-4ea1-8cf4-f2e2554a5309] File "/usr/lib/python2.7/dist-packages/nova/virt/lxd/driver.py", line 564, in spawn
2017-09-14 17:14:37.627 23060 ERROR nova.compute.manager [instance: a5ebe6c2-120a-4ea1-8cf4-f2e2554a5309] context, instance, network_info, block_device_info)
2017-09-14 17:14:37.627 23060 ERROR nova.compute.manager [instance: a5ebe6c2-120a-4ea1-8cf4-f2e2554a5309] File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-09-14 17:14:37.627 23060 ERROR nova.compute.manager [instance: a5ebe6c2-120a-4ea1-8cf4-f2e2554a5309] self.force_reraise()
2017-09-14 17:14:37.627 23060 ERROR nova.compute.manager [instance: a5ebe6c2-120a-4ea1-8cf4-f2e2554a5309] File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-09-14 17:14:37.627 23060 ERROR nova.compute.manager [instance: a5ebe6c2-120a-4ea1-8cf4-f2e2554a5309] six.reraise(self.type_, self.value, self.tb)
2017-09-14 17:14:37.627 23060 ERROR nova.compute.manager [instance: a5ebe6c2-120a-4ea1-8cf4-f2e2554a5309] File "/usr/lib/python2.7/dist-packages/nova/virt/lxd/driver.py", line 560, in spawn
2017-09-14 17:14:37.627 23060 ERROR nova.compute.manager [instance: a5ebe6c2-120a-4ea1-8cf4-f2e2554a5309] container_config, wait=True)
2017-09-14 17:14:37.627 23060 ERROR nova.compute.manager [instance: a5ebe6c2-120a-4ea1-8cf4-f2e2554a5309] File "/usr/lib/python2.7/dist-packages/pylxd/models/container.py", line 133, in create
2017-09-14 17:14:37.627 23060 ERROR nova.compute.manager [instance: a5ebe6c2-120a-4ea1-8cf4-f2e2554a5309] client.operations.wait_for_operation(response.json()['operation'])
2017-09-14 17:14:37.627 23060 ERROR nova.compute.manager [instance: a5ebe6c2-120a-4ea1-8cf4-f2e2554a5309] File "/usr/lib/python2.7/dist-packages/pylxd/models/operation.py", line 29, in wait_for_operation
2017-09-14 17:14:37.627 23060 ERROR nova.compute.manager [instance: a5ebe6c2-120a-4ea1-8cf4-f2e2554a5309] operation.wait()
2017-09-14 17:14:37.627 23060 ERROR nova.compute.manager [instance: a5ebe6c2-120a-4ea1-8cf4-f2e2554a5309] File "/usr/lib/python2.7/dist-packages/pylxd/models/operation.py", line 51, in wait
2017-09-14 17:14:37.627 23060 ERROR nova.compute.manager [instance: a5ebe6c2-120a-4ea1-8cf4-f2e2554a5309] raise exceptions.LXDAPIException(response)
2017-09-14 17:14:37.627 23060 ERROR nova.compute.manager [instance: a5ebe6c2-120a-4ea1-8cf4-f2e2554a5309] LXDAPIException: The container's root device is missing the pool property.
2017-09-14 17:14:37.627 23060 ERROR nova.compute.manager [instance: a5ebe6c2-120a-4ea1-8cf4-f2e2554a5309]

Revision history for this message
Rufus Deponian (deponian) wrote :

Nova-lxd supports LXD storage pools with zfs, btrfs, lvm and dir as backend. All you need is to add [lxd] section in your nova.conf and put into this section "pool = name-of-pool". You need to create pool before this action with `lxc storage` commands.

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