deprecated key storage.zfs_pool_name using lxd 2.2.0

Bug #1737116 reported by Emmanuel
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nova-lxd
Invalid
Undecided
Unassigned

Bug Description

Can't launch instance in hypervisor LXD 2.2.0 on ubuntu 16LTS.

error file :
---
2017-12-08 09:24:37.781 3872 ERROR nova.compute.manager rt.update_available_resource(context, nodename)
2017-12-08 09:24:37.781 3872 ERROR nova.compute.manager File "/openstack/venvs/nova-16.0.1/lib/python2.7/site-packages/nova/compute/resource_tracker.py", line 641, in update_available_resource
2017-12-08 09:24:37.781 3872 ERROR nova.compute.manager resources = self.driver.get_available_resource(nodename)
2017-12-08 09:24:37.781 3872 ERROR nova.compute.manager File "/openstack/venvs/nova-16.0.1/lib/python2.7/site-packages/nova/virt/lxd/driver.py", line 1017, in get_available_resource
2017-12-08 09:24:37.781 3872 ERROR nova.compute.manager lxd_config['config']['storage.zfs_pool_name']
2017-12-08 09:24:37.781 3872 ERROR nova.compute.manager KeyError: 'storage.zfs_pool_name'
2017-12-08 09:24:37.781 3872 ERROR nova.compute.manager
...

2017-12-07 16:31:19.802 3873 ERROR nova.compute.manager [instance: 7c36f8da-de6f-42cf-95e5-004d92640f4a] raise exceptions.LXDAPIException(response)
2017-12-07 16:31:19.802 3873 ERROR nova.compute.manager [instance: 7c36f8da-de6f-42cf-95e5-004d92640f4a] LXDAPIException: The container's root device is missing the pool property.
2017-12-07 16:31:19.802 3873 ERROR nova.compute.manager [instance: 7c36f8da-de6f-42cf-95e5-004d92640f4a]

-----

# lxc storage list
+------+-------------+--------+--------+---------+
| NAME | DESCRIPTION | DRIVER | SOURCE | USED BY |
+------+-------------+--------+--------+---------+
| nova | | zfs | nova | 1 |
+------+-------------+--------+--------+---------+

# lxc storage show nova
config:
  source: nova
  volatile.initial_source: /dev/sdb
  zfs.pool_name: nova
description: ""
name: nova
driver: zfs
used_by:
- /1.0/profiles/default

# lxc config get default storage.zfs_pool_name
error: not found

# lxc config set storage.zfs_pool_name nova
error: Setting the key "storage.zfs_pool_name" is deprecated in favor of storage pool configuration.

# lxc --version
2.20

Revision history for this message
Alex CS Huang (cshuangtw) wrote :

You should set lxd pool in your nova-compute node
configure file: /etc/nova/nova.conf

add configure section for lxd provisor
[lxd]
pool = nova
root_dir = /

for addition notice you may set virt_type property in [libvirt] section:
virt_type = lxc

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.