We should let chance for automatic detection
Change-Id: I50d1e12baf5fe00edb241da633ec797b4647df60
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@canonical.com>
This make devstack working on all ubuntu based version that is shipped
with LXD3. For versions that ship LXD2 this do not cause any
incidence.
Note that: When using LXD_POOL_NAME with dir backend. LXD2 does not
have the concept of pools so it can't be anything else than "default",
for LXD3 this can be updated but LXD should have been initialized and
the pool created.
Change-Id: I781fb97100937e5189994f3752d0b95b15614d85
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@canonical.com>
In this commit we remove all references of LXD_POOL_ZNAME to use a new
generic one LXD_POOL_NAME. This we avoid to use speicifc condition
when configuring nova.conf.
Note that: now the default zfs pool name created will be "default"
Change-Id: I1dc4358457b3bfda5bd7bb8d9725ef4e8a7dfd63
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@canonical.com>
Nova should be configured with the right pool name that in all
cases. In this commit we remove the bionic condition. Which also avoid
us to revisit this file for each ubuntu based version that ship LXD3.
In this commit we also remove the outdated comment.
Change-Id: I44b3a83ec0eb3c1c35e15b66c219c948fd57c2ac
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@canonical.com>
In this commit we remove the unecessary condition that restricts the
install of appamor related packages to Bionic. We replace it with a
mechanism which will install them if necessary. This will avoid any
revisiting of this file for ubuntu based versions that do not provide
them.
Change-Id: Ie2766b0c742b2c4416947bb77050992a51034568
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@canonical.com>
Sets up the default dir backend and configures it as the default pool
for lxd. This is required on bionic (LXD 3.0.x) as there is no default
storage pool by default.
Also installs apparmor which LXD requires to operate, but that is
missing from ubuntu image that is built for devstack-gate.
Related-Bug: 1822182
Change-Id: I8cc83486d2e040e02dfbeec570d8c8b59b2c2a97
LXD_BACKEND_DRIVER=zfs should be specified in local.conf if LXD
version is 3.0.
In addition, LXD_BACKEND_DRIVER=zfs requires zfs 0.7.0 or higher.
This patch adds those information to README and local.conf.sammple.
Change-Id: I1692aefd2c4e8daba57629c5f99559ec9593fa5d
Closes-Bug: #1815272
Closes-Bug: #1815273
Essentially, one of the error messages (which is rarely hit), uses
the underscore (_) from nova.i18n, but it wasn't imported into the
module.
Change-Id: If72f5d16943602f2479c7558324b2ce76cbeed7b
manager.py had a syntax error which caused the module to be not
installable. This wasn't picked up in testing. This fixes the bug
and adds pep8 coverage to the nova_lxd_tempest_plugin so that the module
always remains installable.
Also, this fixes the tempest concurrency at 1. See the related bugs.
Closes-bug: #1790956
Related-Bug: #1790943
Change-Id: Ie542b062a9f0997f6363877ff03f0f9bfc8f3d43
LXD 3.x onwards removes the key 'storage.zfs_pool_name' from the config.
This means the storage_pool API needs to be used to get the name of the
pool that juju is using for ZFS. This is a temporary fix until storage
pools can be threaded into nova-lxd properly. This occurs on bionic due
to LXD 3 being shipped as standard.
Change-Id: I6527640438331b86f2140cf0a772f7d207a6fd40
Closes-Bug: #1782329
This resolves issues with use of the reference configuration
in OpenStack Ocata or later.
Closes-Bug: 1660973
Change-Id: I02bf7f730f17503afd0ad1ff7671dddb264ef46d
This adds the flag "supports_multiattach" as False to the
driver's capabilities dictionary to enable it to work with
nova from commit baa8278ca78f onwards.
Change-Id: I08defc8b506a8936bd206885c189a5f1a393d260
Recently utils.last_bytes has moved to libvirt/utils.py in nova.
(2341a41eaee5152e95379e5ed38012270af82ef5). Duplicate the function
that was in nova/utils.py.
Also includes a fix for nova-lxd's gate:
Update test-requirements with wsgi-intercept
Closes-Bug: #1707096
Change-Id: Ie77c8e67e29e8a01bbf58ab9277c5110cd7c112e
Signed-off-by: Chuck Short <charles.short@ericsson.com>>
The nova-lxd driver does not currently implement the server diagnostic
feature; blacklist tests and reference open bug report for resolution
at some point in the future.
Change-Id: Ifb6e1b8524a7f75761866ed14c42abc49c5f4d9b
Related-Bug: 1700516
Correct typo in INSTALL_LXD setting.
Correctly set default for for LXD_GROUP.
Rewrite gate pre-test hook to use DEVSTACK_LOCAL_CONFIG.
Use central Cirros version and architecture.
Drop use of Xenial images for tempest tests.
Split out tempest configuration into test-config phase.
Change-Id: Iff0f0a501dae13e2306b9efb87d06c0d917d6233
Don't configure glance if glance isn't enabled (in my specific case,
multi-host nova compute node). Download the cirros image if it doesn't
already exist and download the Ubuntu image if tempest is used.
Don't have a file with a single function call that is used once.
Change-Id: Ie04db90e755776d025aab16795e2f91e94cf33c0
Reset blacklist so we get a better idea to blacklist in the future.
Change-Id: I7b3d806a4c3600bdcd8a9fbcb683bd17ab4b05b4
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Allow devstack to install the zfs package
for Ubuntu and create the needed zfs pools.
This will only happen when LXD_BACKEND_DRIVER
is set to zfs otherwise no configuration will
take place.
The goal is to use this with nova-lxd devstack-gate.
Change-Id: I03affa47f5628747c1ccfde6984831331ff9a815
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Remove validation tempest tests since it is not needed to run
tempest tests.
Change-Id: If9c073f1fc7ea4b088bf999d430c3fcf10420196
Signed-off-by: Chuck Short <chuck.short@canonical.com>
This is the test exclusion list that will be used by the new
*tempest-dvsm-lxd job.
Change-Id: Ibdf40831b0fc1929a6feaa351248f65c9d244877
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Remove pylxd from devstack installation because
pylxd will be installed from the requirements.txt.
Change-Id: I59c34bf100db2b087ac913dae895a1c031de65ea
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Running a full tempest against nova-lxd with the Ubuntu image
can cause some tests to fail when they would otherwise pass
due to the number of tests running at a given time.
To mitigate we install the cirros LXD image a lighter
image to run the tempest tests against nova-lxd. This is
what upstream uses and allows us to use some of the default
tempest configuration used by devstack.
Change-Id: I6fd58edd49b4e3f7e324be7aaf074db379998af6
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Set volume_device_name for tempest so it better matches
reality.
Change-Id: Id7143ffa229a59c603ac3c55a2f8d3ff873a4d8c
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Enable user namespace for ext4 when cinder is detected.
This is done so that the block devices can actually be
used in the container.
Change-Id: I3f6793e5e47597c83cd0e001e5f1b6c2081d6654
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Enable tempest validation so we can ssh into the instances
and ensure we are getting the correct results.
Change-Id: I6c13a1229791137e56abd5d6392ce39feff364ca
Signed-off-by: Chuck Short <chuck.short@canonical.com>
nova-lxd does not allow migration to the same host
so prevent the resize tests from running.
Change-Id: I91fe991c3c422210a4574e29b600e8c6a6e7348c
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Add root-tar to /etc/glance/glance-api.conf.
Change-Id: I74abd8007cfd2012e5a9ba942c80fc5a55a8aca7
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Make devstack a bit easier to use with the plugin.
Upload and configure an image to be used by the user.
Also re-configure tempest configuration files with
sane defaults with nova-lxd when tempest is enabled.
The tempest configuration is "fixed" after tempest
has been installed.
Change-Id: Ibf6d2c23212fe3e987ddb6d4e7fea21af611ca4b
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Ephemeral storage needs the zfs command to run as root,
so install nova-lxd specific rootwrap filter.
Change-Id: I64a04534f2eb31164918f4a38cf8197a2afc00a3
Signed-off-by: Chuck Short <chuck.short@canonical.com>
lxd installation with devstack on ubuntu 14.04 requires ubuntu-lxc
PPA. We can also install it using trusty-backports. otherwise
devstack installation throws error saying unable to locate package
lxd.
This change is about adding ubuntu-lxc PPA before we start
installing lxd. It also includes uninstalling default
reuqests and urllib3 python packages in Ubuntu 14.04 which
causes version conflicts in devstack installtion.
Change-Id: I254d48db09b6bce6befdd94cd4ccd7b95bdf029b