On a xenial with lxd 2.x:
In [5]: c.host_info['config'] Out[5]: {u'core.https_address': u'[::]', u'core.proxy_ignore_hosts': u'127.0.0.1,::1,localhost', u'core.trust_password': True, u'storage.zfs_pool_name': u'lxd'}
On bionic with lxd 3.0.1:
In [8]: c.host_info['config'] Out[8]: {u'core.https_address': u'[::]', u'core.proxy_ignore_hosts': u'127.0.0.1,::1,localhost', u'core.trust_password': True}
Looks like the deprecated key has been removed from the lxd 3.x.
To fix it will need to patch in some code to just grab the first storage pool if the key doesn't exist.
Testing in an ipython shell, shows that this should do the trick:
c = pylxd.Client() try: name = lxd_config['config']['storage.zfs_pool_name'] except KeyError: name = c.storage_pools.all()[0].name
I'll do some testing to see if it works.
On a xenial with lxd 2.x:
In [5]: c.host_ info['config' ] https_address' : u'[::]', proxy_ignore_ hosts': u'127.0. 0.1,::1, localhost' , trust_password' : True, zfs_pool_ name': u'lxd'}
Out[5]:
{u'core.
u'core.
u'core.
u'storage.
On bionic with lxd 3.0.1:
In [8]: c.host_ info['config' ] https_address' : u'[::]', proxy_ignore_ hosts': u'127.0. 0.1,::1, localhost' , trust_password' : True}
Out[8]:
{u'core.
u'core.
u'core.
Looks like the deprecated key has been removed from the lxd 3.x.
To fix it will need to patch in some code to just grab the first storage pool if the key doesn't exist.
Testing in an ipython shell, shows that this should do the trick:
c = pylxd.Client() 'config' ]['storage. zfs_pool_ name'] pools.all( )[0].name
try:
name = lxd_config[
except KeyError:
name = c.storage_
I'll do some testing to see if it works.