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
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
Add post test hook so that we can collect the
lxd logs after tempest has finished.
Change-Id: Id2aa1171359eef0b27ef993da79e0bf4cc4d577f
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Add pre_test_hook.sh to help generate localrc when
using devstack-gate.
Change-Id: Ieed1beca668c84613a062a6c3418e294df40c7f9
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Blacklist the following tests when running against tempest.api.compute:
tempest.api.compute.servers.test_create_server.ServersWithSpecificFlavorTestJSON.test_verify_created_server_ephemeral_disk
tempest.api.compute.volumes.test_attach_volume.AttachVolumeShelveTestJSON.test_attach_detach_volume
tempest.api.compute.volumes.test_attach_volume.AttachVolumeTestJSON.test_attach_detach_volume
This is due to a recent change to the devstack plugin so we can run verfication
tests against nova-lxd, however these unit tests will fail because it is checking
for /proc/partitions.
Change-Id: Ib13ccb4db7274f57193ab82f56be0b3fed92e031
Signed-off-by: Chuck Short <chuck.short@canonical.com>
When a user creates an instance, the user is able to destroy
the instance before LXD has a chance to start the container.
This results in a bad state between LXD and nova-lxd and
pylxd raising an exception that the container was not found.
Before destroying the conainer, check the status code
of LXD to see if the container exists. If the container
does not exist just cleanup the profile if it exists
and the assoicated vifs if had already been created.
This was discovered by running tempest unit tests.
Change-Id: I7c244e8bca9bab69ead5d45c966674e9e7107f20
Signed-off-by: Chuck Short <chuck.short@canonical.com>
run_tempest_lxd.sh runs the tempest.api.compute
tempest tests so we can check for regressions.
Change-Id: I6db31b0740873657d5ae077227bfbddb2a03ea0a
Signed-off-by: Chuck Short <chuck.short@canonical.com>
extras.d will be deprecated sometime in the mitaka
timeframe, switch the devstack install to a plugin.
Signed-off-by: Chuck Short <chuck.short@canonical.com>