Commit Graph

30 Commits

Author SHA1 Message Date
James Page 6603a7f323 Retire master branch of nova-lxd
Drop content and replace with retirement notice.

Change-Id: I2de2eff7694d60597a6413a0a64124fbbede69bb
2019-07-23 13:56:57 +01:00
Alex Kavanagh aee3ef71d9 On Bionic ensure that a default storage backend is configured
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
2019-04-02 12:45:03 +01:00
James Page 41ac333680 Misc fixes for devstack gate tests
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
2017-06-12 09:26:29 +01:00
Chuck Short 22fa52a8a5 Add post_test_hook.sh
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>
2016-10-14 14:04:07 -04:00
Chuck Short 3d0d68fcbe Add pre_test_hook.sh
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>
2016-10-13 14:32:45 -04:00
Chuck Short 5145cb2a7b Update blacklist
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>
2016-09-19 10:25:35 -04:00
Chuck Short fe283092de Check for container exists before deletion
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>
2016-09-13 15:04:05 -07:00
Chuck Short f81277ab66 Add script to run tempest.api.compute
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>
2016-09-07 19:32:06 -04:00
Peter Slovak 0eed479b9b importable Glance metadata definition file 2016-05-12 15:10:07 +02:00
Chuck Short e05d7285d3 Remove contrib directory
Remove contrib directory

Signed-off-by: Chuck Short <chuck.short@canonical.com>
2015-11-07 15:29:35 -05:00
Chuck Short 5e04c14881 Switch devstack installation to devstack-plugin
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>
2015-11-06 08:36:37 -05:00
Stéphane Graber c46a7d7afc
devstack: Fix the README some more
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2015-08-04 16:52:07 -04:00
Stéphane Graber 08a86ea2b5 Fix devstack integration
- Actually install LXD
 - Fix git URL
 - s/granite/lxd/

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2015-08-04 16:11:48 -04:00
Chuck Short 3d4d890f71 final code refactor
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2015-06-22 15:18:48 -04:00
Chuck Short b1c55ad755 Revert "nclxd ng"
This reverts commit 5e1ab7f58d.
2015-06-13 00:15:59 -04:00
Chuck Short 5e1ab7f58d nclxd ng
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2015-06-12 11:29:12 -04:00
Chuck Short 4f61ea103d Fix typo
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2015-06-08 10:26:17 -04:00
Chuck Short bcceb6c1ca devstack fixes
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2015-06-07 20:44:57 -04:00
Chuck Short c5adabe830 Update devstack support.
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2015-06-07 19:29:56 -04:00
Chuck Short 84f75a6e6f Add Scott's image conversion script.
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2015-06-07 19:24:44 -04:00
Chuck Short d035e70270 Adjust changes for nclxd.
Migrate the nclxd to use LXD exclusivily.

Signed-off-by: Chuck Short <chuck.short@canonical.com>
2015-03-25 10:46:42 -04:00
Chuck Short 912c599d4c Switch to using pylxd
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2015-03-03 13:15:36 -05:00
Chuck Short 243f30539b 0.2 changes
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2015-03-03 13:08:50 -05:00
Chuck Short c3b6a25f68 Configure lxd a bit harder
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2015-02-18 08:40:02 -05:00
Chuck Short dcadc05e6c Fix lxd
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2015-02-17 13:59:13 -05:00
Chuck Short f2d93330f6 LXD changes
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2015-02-17 12:55:36 -05:00
Chuck Short 735b070d8c Add filters
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2015-02-05 13:59:34 -05:00
Chuck Short e18482dbe1 Remove ppa and fix up networking a bit more
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2015-02-02 10:26:01 -05:00
Chuck Short c299f10b7e Add missing files
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2015-01-09 13:28:33 -05:00
Chuck Short ce54272ad4 Frist commit
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2015-01-09 11:33:42 -05:00