Commit Graph

55 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
Sahid Orentino Ferdjaoui b31fa918eb devstack: remove HOST_IP and FLAT_INTERFACE from local.conf.sample
We should let chance for automatic detection

Change-Id: I50d1e12baf5fe00edb241da633ec797b4647df60
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@canonical.com>
2019-04-04 09:21:54 +00:00
Sahid Orentino Ferdjaoui 23d1416932 devstack: remove bionic condition when init lxd storage
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>
2019-04-04 09:21:52 +00:00
Sahid Orentino Ferdjaoui 13229ff977 devstack: replace LXD_POOL_ZNAME with LXD_POOL_NAME
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>
2019-04-04 09:20:05 +00:00
Sahid Orentino Ferdjaoui 3d5832dafd devstack: remove bionic condition for configure nova.conf
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>
2019-04-04 09:19:24 +00:00
Sahid Orentino Ferdjaoui 9ce4f847e5 devstack: use package install one-line pattern
Change-Id: I5ebcd8c497e2978a4349e217eb55fb4518cd4aea
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@canonical.com>
2019-04-04 09:19:23 +00:00
Sahid Orentino Ferdjaoui 053f02fb27 devstack: remove bionic condition to install appamor related pkgs
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>
2019-04-04 09:19:03 +00: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
Rikimaru Honjo 6693f08db6 Improve description about installing with devstack
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
2019-02-09 08:20:25 +00:00
Sahid Orentino Ferdjaoui 0ea07af2a2 [devstack] lxd/pool needs to be configured when using ZFS
Change-Id: Ibf00d8af1c97540726625452ed7bbc1457fc1c05
Related-to: #1782329
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@canonical.com>
2019-01-27 12:51:03 +00:00
Sahid Orentino Ferdjaoui cbb3d64b5f [devstack] properly clean ZFS backend
Change-Id: Iedf157a2f156565ca7798cfd62954f4807922eae
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@canonical.com>
2019-01-24 09:46:19 +00:00
Sahid Orentino Ferdjaoui 13bb85bf96 [devstack] don't try to configure ZFS backend if already present
Change-Id: I4b7476f4b8be3592ddef7d6a01c74dfb1a6d0db4
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@canonical.com>
2019-01-23 15:32:33 +00:00
Sahid Orentino Ferdjaoui d63ff87304 [devstack] fix wrong package name to install for zfs
Change-Id: I63f89cbac72439f285ac506089a3954b519f450c
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@canonical.com>
2019-01-23 12:54:55 +00:00
Alex Kavanagh b49d78d033 Fix i18n import issue when using _ in storage.py
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
2018-10-24 16:14:09 +01:00
Alex Kavanagh c4c16bcf49 Fix bug in scenario/manager and cover it with pep8
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
2018-09-05 20:16:02 +00:00
Alex Kavanagh f1bbc03b65 Fix problem with 'storage.zfs_pool_name' being removed from lxd 3
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
2018-07-23 09:36:22 +01:00
Yurtaykin, Andrey 2d1a056566 Add placement api and client to devstack configuration
This resolves issues with use of the reference configuration
in OpenStack Ocata or later.

Closes-Bug: 1660973
Change-Id: I02bf7f730f17503afd0ad1ff7671dddb264ef46d
2018-02-22 20:08:17 +00:00
Alex Kavanagh cb136ab1e6 Add capabilities flag "supports_multiattach" flag
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
2018-02-22 14:18:30 +00:00
Chuck Short af15cd09d4 Fix traceback when running nova-console
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>>
2017-07-31 10:14:14 +02:00
James Page 8d80f29193 devstack: disable volume boot pattern tests
Generalize skip of volume boot pattern; nova-lxd does not support
boot from volume.

Change-Id: If3688b639a5a890a80124c332281f17bd4becfb8
2017-07-12 15:45:40 +01:00
James Page f8daa3b38b Blacklist test_get_server_diagnostics tests
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
2017-06-26 12:54:18 +01:00
James Page a60c3757c8 Enable tempest interface related tests.
Required tempest change has landed; re-enable tests.

Change-Id: Ib17cf10578be697dd291b81bafc700fe2d1a148a
2017-06-23 09:53:01 +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
Paul Hummer 43a07cef1c Fix "unary operator expected" error
Change-Id: I1763bbac6e24ea396c049c08807ea14f23e3c39b
2016-11-24 06:28:17 +00:00
Paul Hummer af591d8482 Fix devstack plugin to be smarter about the work it does
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
2016-11-02 20:20:59 +00:00
Chuck Short ae1c215772 Update blacklist
Resync blacklist with updated comments.

Change-Id: I4127974e2f94f89a04b5d0f55855032b3d6edf21
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2016-10-25 09:15:16 -04:00
Chuck Short 071164f150 Reset blacklist
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>
2016-10-18 22:14:29 -04:00
Jenkins 2cbedc1f60 Merge "Allow devstack plugin to manage zfs" 2016-10-13 18:42:02 +00:00
Jenkins 5f064b9683 Merge "Add tempest-dsvm-lxd-rc" 2016-10-13 18:42:02 +00:00
Jenkins 4c0f96179e Merge "Remove validation" 2016-10-13 15:56:40 +00:00
Chuck Short d37571cb2c Allow devstack plugin to manage zfs
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>
2016-10-13 11:27:50 -04:00
Chuck Short 8f357f5baa Remove validation
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>
2016-10-13 11:09:55 -04:00
Chuck Short 22aa350618 Add tempest-dsvm-lxd-rc
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>
2016-10-11 11:22:40 -04:00
Chuck Short 758ec7d6c6 Remove pylxd from devstack installation
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>
2016-10-11 10:11:33 -04:00
Chuck Short 1a10197f9d Add LXC cirros image to devstack configuration
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>
2016-10-04 10:40:32 -04:00
Chuck Short 2cae567562 Set volume device name for tempest
Set volume_device_name for tempest so it better matches
reality.

Change-Id: Id7143ffa229a59c603ac3c55a2f8d3ff873a4d8c
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2016-09-27 10:41:22 -04:00
Chuck Short 1786809261 Enable user namespace for ext4
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>
2016-09-12 14:26:16 -07:00
Chuck Short 34661ba997 Run tempest validation
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>
2016-09-12 11:10:13 -07:00
Chuck Short 8d0ea4d227 Disable encrypted volume tests
Disable encrypted volume unit tests.

Change-Id: I248865c2f8b475e07b22336146964fdc0d667e27
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2016-08-31 22:13:20 -04:00
Chuck Short 9526a8fcac Update tempest config
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>
2016-08-29 06:24:15 -04:00
Chuck Short 8c121daa83 Configure glance disk-formats
Add root-tar to /etc/glance/glance-api.conf.

Change-Id: I74abd8007cfd2012e5a9ba942c80fc5a55a8aca7
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2016-08-19 10:43:59 -04:00
Chuck Short b77d72f79c Make devstack plugin a bit more user friendly
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>
2016-08-18 21:26:03 -04:00
Chuck Short e5c3a4d287 Install the rootwrap filters
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>
2016-08-12 13:10:53 -04:00
Pushkar Umaranikar de8d223fc3 lxd installation with devstack on ubuntu 14.04
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
2016-07-07 21:33:37 +00:00
Paul Hummer 906f1a1ebd Remove all traces of github usage
Change-Id: I90ba12bf753edfbb4cf3ef9aa1e5aebd44d9569d
2016-06-09 09:00:11 -06:00
Chuck Short 2d2456d145 Update devstack local.conf.sample
Update devstack configuration to add q-l3.

Signed-off-by: Chuck Short <chuck.short@canonical.com>
2016-05-29 20:59:48 -04:00
Chuck Short db347f38ed Disable config drive by default
Turn off config drive since there is a buglet with
the config drive enabled.

Signed-off-by: Chuck Short <chuck.short@canonical.com>
2016-05-11 14:04:47 -04:00
Chuck Short 6efec0121c Add sample local.conf.sample
Add sample devstack local.config. This configuration
enables neutron and most services.

Signed-off-by: Chuck Short <chuck.short@canonical.com>
2016-05-11 10:21:19 -04:00
Chuck Short e905682bca Update devstack configuration
Update devstack configuration for newton change

Signed-off-by: Chuck Short <chuck.short@canonical.com>
2016-05-11 10:06:16 -04:00
Chuck Short fa11012712 Fix typo in devstack
Fix typo in devstack configuration

Signed-off-by: Chuck Short <chuck.short@canonical.com>
2016-05-11 10:06:16 -04:00