Commit Graph

53 Commits

Author SHA1 Message Date
Goutham Pacha Ravi db3f3b5c99 [victoria][goal] Native Zuulv3 CI jobs
Replace "legacy" style jobs with native zuulv3
ones built within the manila-tempest-plugin
repository. This refactoring is driven by a
community wide goal to stop relying on devstack-gate,
a deprecated component of the OpenDev CI system [1]

Remove in-tree devstack gate hook script portions
that are no longer necessary; and mark the rest as
deprecated, since third party CI could still be
relying on these hooks.

Replace "manila-tempest-dsvm-mysql-generic",
"manila-tempest-dsvm-postgres-generic-singlebackend",
"manila-tempest-dsvm-generic-no-share-servers" and
"manila-tempest-dsvm-scenario" jobs with
"manila-tempest-plugin-generic" which preserves
coverage for the generic driver, while removing
unnecessary duplication/separation. See commit
message in [2] for more details.

Remove older CentOS and HDFS jobs since they
were not being executed.

Remove "custom" image jobs targeting custom
manila-image-element based builds, the jobs
now originate in the manila-image-elements
repository. [3]

The dummy driver job has been split into two parts
for testing DHSS=True and DHSS=False in separate
jobs. Read more about the motivation in the commit
message for the change that created that job [4]

While some name tags such as "postgres" and
"ipv6-only" have been removed from the job
names, the functionality of the job hasn't
been changed.

This change will not be backported. Instead, new
changes akin to this may directly target older
branches of manila.

[1] https://governance.openstack.org/tc/goals/selected/victoria/native-zuulv3-jobs.html
[2] https://review.opendev.org/726291/
[3] d9d2f16360/zuul.d/manila-image-elements-jobs.yaml (L34-L67)
[4] https://review.opendev.org/740534/
Change-Id: I2be6fc12c787c05c7df68297990fcdca96f57c5d
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2020-07-28 14:55:14 -07:00
Goutham Pacha Ravi 660355eb86 Zuulv3 native grenade job
The existing "manila-grenade" job relies on
devstack-gate, a deprecated project. The Grenade
project now has a native zuulv3 style job that
we can inherit and run manila's upgrade tests.

Manila's grenade tests are only going to run
API tests, and hence this grenade job doesn't
have to enable nova, cinder, glance, neutron
and swift. However, bug #1887835 prevents
us from disabling nova at the moment,
and nova requires glance, placement and neutron
to be deployed, so we'll be enabling these
services too until that bug is addressed.

Depends-On: Id5a9467247df1d8f0ec6dee3fae842ba673c34ed
Depends-On: Ieaf37ec10db9a8bdce6bb195b76335fea9b2b52f
Change-Id: I1636c612ac2475f7a00c0888ef62daa6c516eef2
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2020-07-28 01:07:00 +00:00
Goutham Pacha Ravi 8cccb73f46 Add verify-noapi testcase to grenade
Switch to using the LVM driver in the grenade
job that allows us to add a minor data
path test to prove that upgrading manila
has no impact on data path connectivity
to resources created by manila.

Change-Id: I8588e8f988d85dc64e19e7a44a25c3dd0b776892
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2020-07-23 14:40:34 -07:00
Goutham Pacha Ravi 2d7c464453 Enable cephfs snapshots
The CephFS driver optionally advertised snapshot
support to manila, based on a configuration
option "cephfs_enable_snapshots". Manila does not
provide snapshots by default to users, unless an
administrator chooses to set the "snapshot_support"
extra-spec in the share type they're using. So this
configuration option is really an unnecessary safeguard
at this point.

Moreover, CephFS snapshots are fully supported from
Ceph Nautilus, and with Id847b1b5e6623172f2600afd69e51182067444cb,
manila added a support statement for the Victoria
release that indicates that Nautilus is the minimum
version of ceph supported. So let's default this
option to True, and deprecate this option at the same
time to eliminate this duplicate safeguard.

Partially-implements: bp update-cephfs-drivers
Depends-On: I885ff78586540d01590f98cca2a00d55161dbe04
Change-Id: I1ef42b414f8af0b8f9a912655757ec200a75c309
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2020-07-07 22:13:08 -07:00
Zuul d845300e30 Merge "[CI] Remove unused jobs" 2020-05-02 03:46:42 +00:00
Zuul 8530f07406 Merge "[devstack][ci] Modify firewall in ds-plugin" 2020-05-01 11:14:05 +00:00
Goutham Pacha Ravi 36b1715e86 [devstack][ci] Modify firewall in ds-plugin
To set up some first party backends such as
ZFSOnLinux, CephFS via NFS gateway, Container
(where the NAS server is containerized) and LVM,
manila's devstack plugin creates a NAS server
on the devstack host.

On test machines, access to this NAS server is
firewalled from networks outside of the host's
internal network namespace (including from private
project networks that are in different network
namespaces, on the same devstack host).

We currently use a legacy devstack-gate script
to disable firewall on NFS ports; however,
anyone that installs devstack with LVM, Container,
ZFSOnLinux, CephFS-NFS drivers will need these
firewall ports to be opened to be able to mount
shares exported off their devstack host machines.

Move these firewall commands to the devstack plugin.
These commands can be invoked by setting the localrc
variable MANILA_ALLOW_NAS_SERVER_PORTS_ON_HOST to True.
The value of this variable is False by default,
to preserve existing behavior.

Change-Id: Ic9cad47662f1edf2e5c710dbe64d580bc5f01d44
2020-04-29 21:15:21 +00:00
Goutham Pacha Ravi a6712795fb [CI] Remove unused jobs
manila-tempest-minimal-py35-dsvm-cephfs-native-centos-7
and
manila-tempest-minimal-py35-dsvm-cephfs-nfs-centos-7

have been unused for a long time, and they are not
used anywhere in any repository. So lets get rid of
them.

Change-Id: I51647efa12cee6c428bfd299d6b047174e1316ef
2020-04-28 22:56:39 -07:00
Goutham Pacha Ravi ffb283a04a [devstack][ci] Stop requiring g-reg service
When using manila's devstack plugin, we pull down
the latest manila testing image created with the
manila-image-elements project, and upload it to the
stack's Glance/Image service.

Glance's V2 API no longer needs g-reg which was a
legacy database proxy service for the older glance
API. Our devstack plugin should not have a hard
dependency on this service.

[1] http://lists.openstack.org/pipermail/openstack-dev/2016-May/094773.html
[2] https://specs.openstack.org/openstack/glance-specs/specs/newton/approved/glance/deprecate-registry.html

Change-Id: I58603032fb215ac0be2f76c8cd9fbce775be41dd
Closes-Bug: #1859847
2020-04-28 16:44:59 -07:00
Goutham Pacha Ravi cb01633380 [ci] Stop requiring neutron-tempest-plugin
We needed this plugin because neutron-dynamic-plugin's
code base included its tempest plugin in-tree. This
issue was addressed in https://review.opendev.org/#/c/695014/.

So we no longer need to install neutron-tempest-plugin
in manila jobs.

Change-Id: I34b77c95aad7ee2b67ba876db8aa64bbc44adb79
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2020-03-24 13:50:53 -07:00
Dmitriy Rabotyagov acfd0f337e Store ganesha logs and configs
Change-Id: I087286f66f21ba8960a948b8a6fcf4ea5261c6cf
2020-01-21 20:35:45 +00:00
Goutham Pacha Ravi cb95b6f6f5 [ussuri][goal] Drop python2.7 support
As per the official python support timeline
set forth by the OpenStack TC [1][2], OpenStack
Train (in our case, manila 9.x) is the last
release that will support python2.7.

[1] https://governance.openstack.org/tc/resolutions/20180529-python2-deprecation-timeline.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: I5b4dc1853d7e4f8f736dd2a22eb08bcfdeac3411
2019-12-08 19:32:52 -08:00
Ghanshyam Mann d96666214b [train][goal] Define new manila-tempest-minimal-lvm-ipv6-only job
As part of Train community goal 'Support IPv6-Only Deployments and Testing'[1],
we need to define the integration job which deploy services
on IPv6 and perform testing to make sure service listen and communicate
over IPv6 properly.

Manila has legacy zuul jobs only so base zuulv3 IPv6 job 'devstack-ipv6' and
'devstack-tempest-ipv6' cannot be used and we have to copy the whole
run.yaml to set the IPv6 setting and run the IPv6 verification
script via post_test_hook.

This commit adds the new job 'manila-tempest-minimal-lvm-ipv6-only'
run on gate and set the required IPv6 setting'.

Story: #2005477
Task: #35903

[1] https://governance.openstack.org/tc/goals/train/ipv6-support-and-testing.html

Change-Id: I761b2f244a257e86c3032e0b33aa2600c1d9d2a3
2019-09-20 01:44:34 +00:00
Zuul 3e25878668 Merge "[CI] Convert rally jobs to zuulv3 native" 2019-08-14 05:53:15 +00:00
whhan91 4aa0945c1d [CI] Enable glusterfs-nfs ci
- Change post_test_hook in the gluster CI takes arguments
- Enable glusterfs-nfs CI

Depends-On: https://review.opendev.org/#/c/674738/
Change-Id: If6d233ffd658cd75599eec36eb8027f35771e224
2019-08-08 23:03:46 +00:00
Goutham Pacha Ravi 8cb70952e3 [CI] Convert rally jobs to zuulv3 native
The old/legacy job depends on components
from OpenStack infra that are not maintained
any longer.

Depends-On: I6b1d0e97ecdf9a2befa2a052a1743916d662d136
Change-Id: I143b78a8abf7ce714a574adef1698affd5956b1b
2019-07-30 14:54:45 -07:00
Goutham Pacha Ravi 8d03a2a46e Make manila-tempest-plugin installation optional
manila-tempest-plugin can be installed with its
devstack plugin; Installing it via manila's plugin
is unnecessary. So, deprecate its installation
in the DevStack plugin.

Change-Id: I21c08069ff82b3bfb52ef7ac960183ddc866c2ee
2019-07-29 17:54:09 -07:00
Zuul cec13b8057 Merge "add IPv6 support for CephFS/NFS back end" 2019-07-25 18:59:20 +00:00
Tom Barron cbe7056832 Run tempest jobs under python3
Add py2 dummy jobs to keep some python 2 coverage through the
Train release, but convert all the other tempest jobs to python 3.

Change-Id: Ia5fd26c30c6aaeb97ae1b524c5fd58b890fdb054
2019-07-24 08:43:48 -04:00
Tom Barron 9be39cbef2 add IPv6 support for CephFS/NFS back end
Change-Id: Id2b4edfa02521f9c9d9c27635e9f4945af79a0b7
2019-07-22 17:13:13 -04:00
Zuul 302a142b63 Merge "[CI] Run scenario tests in the cephfs-nfs job" 2019-06-18 22:12:07 +00:00
Goutham Pacha Ravi fd21f5f246 [CI] Run scenario tests in the cephfs-nfs job
Add required components for scenario
testing and enable api and scenario tests
on the same job. The experimental
cephfs-nfs-centos-7 job has not been modified.

Depends-On: https://review.opendev.org/#/c/657669/
Depends-On: https://review.opendev.org/#/c/665039/
Change-Id: I74508fd02d7d4ff54270e91743c7ea06103299b1
2019-06-13 00:15:04 +00:00
OpenDev Sysadmins 8790c293e1 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:27:35 +00:00
Ian Wienand 4c42246b2a Replace openstack.org git:// URLs with https://
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: I4df9f22a60ef50677867eaf4baf9e7e55a951dda
2019-03-24 20:34:07 +00:00
Tom Barron e5e336f834 Use legacy base to run CI/CD on Bionic
legacy-dsvm-base now [1] runs with bionic nodeset so use it
directly instead of overriding locally to use bionic.

[1] https://review.openstack.org/#/c/639096/

Change-Id: I2a136f84e7d5d5be8a23830c0b334dc609092004
2019-03-14 10:53:48 +00:00
Zuul 63d1834a95 Merge "Move grenade job to bionic and run with python 3" 2019-03-05 21:06:59 +00:00
Tom Barron 86426a3eeb Move grenade job to bionic and run with python 3
Depends-On: https://review.openstack.org/630961
Change-Id: Ie3c609cba8b73640c4cea086bb2400b49209562e
2019-03-01 11:10:29 +00:00
Goutham Pacha Ravi 8f1c7dc91f Fix tls-proxy issues with the devstack plugin
Enabling tls-proxy allows devstack to
set up a tls proxy server that front-ends
interactions with the manila-api and
terminates tls connections.

Also enable tls-proxy in dummy and lvm
jobs. The dummy driver job is configured
to run the in-built wsgi server, the lvm
job is configured to use mod-wsgi.

Closes-Bug: #1816836
Change-Id: I48b0ccc082604d78242ba61bee94a45efeb2467b
2019-02-21 23:16:45 +00:00
Tom Barron 3442a930f5 Match job names in playbooks to their names
in .zuul.yaml.

TrivialFix

Change-Id: I9376bea74b54abcd36ff1124afb6dd733c183a72
2019-01-31 14:37:09 -05:00
Zuul c531b34fcd Merge "Run cephfs jobs under py3" 2019-01-31 13:56:14 +00:00
Goutham Pacha Ravi 7d397278b3 [CI] Drop redundant if condition in the LVM job playbook
Was left over from a JJB template --> ZuulV3 conversion.

TrivialFix

Change-Id: I0bfdf91dfec397c0fd81e18a29f97ff4c0183205
2019-01-30 09:35:04 -08:00
Tom Barron 4cf7f97981 Run cephfs jobs under py3
Change-Id: Ic9e04c6e8746ae9b017b0cf7a13763caf4e7b140
2019-01-30 10:34:05 +00:00
Tom Barron 8f88779778 Convert dummy job to py3
Install all python packages for python3 and
run tempest with python 3.

Change-Id: If25075933b0b07a12814fda44ef5139a40c78f67
2019-01-08 19:05:53 +00:00
Zuul 165e28ad84 Merge "Publish sample config file in the genconfig job" 2019-01-08 11:37:41 +00:00
Goutham Pacha Ravi 116becf381 Publish sample config file in the genconfig job
Add a post run to enable copying the sample file
generated to zuul logs.

Change-Id: Ifc1e71ce486ef9cefc07dbe9fb7c78ce150317bd
2019-01-04 04:01:51 +00:00
Tom Barron 859d5ed80d Add Ubuntu Bionic CephFS jobs
We need these for python3 support since the CentOS
jobs will not run correctly under python3.

Depends-on: https://review.openstack.org/#/c/627037/
Change-Id: I0e4baaaca5046f9c0ee32cf3de78133f743fd66d
2019-01-02 14:59:54 -06:00
Zuul 1a658eb187 Merge "Only run the needed services for CephFS jobs" 2018-12-20 11:52:33 +00:00
Tom Barron 6299ed5ed0 Fix image_name retrieval in custom-image jobs
And use a 'file://' url for the custom manila image.

See also https://review.openstack.org/#/c/623330.  These
are interdependent patches but no harm is done by merging
this one first and having 623330 depend on it since retrieval
of the image name is not working correctly anyways.

Partial-Bug: #1807969

Change-Id: Ib3a74d170f159dfbc38b5302f00800f3530f4921
2018-12-19 15:00:51 -05:00
Tom Barron f096d1145c Only run the needed services for CephFS jobs
These jobs often fail due to timeouts so only enable the services
required for devstack tests with these back ends.

Change-Id: Ib620ec3c2a9999ea9908a7c23aa7172c40a4cbd9
2018-12-19 01:18:23 +00:00
Goutham Pacha Ravi 211b2b6394 [CI][LVM] Run the LVM job on Bionic Beaver
We switched to running the voting LVM driver job
from Ubuntu to CentOS because the "nfs-utils"
package on Ubuntu 16.04 lacked two bug-fixes [1][2]
required to test IPv6 exports. The kernel
package has been updated on Ubuntu 18.04 [3]
and the latest package has these fixes.

Switching back to Ubuntu will also help us
move faster towards our python3-first goal
since there are no plans to support python3
in the CentOS base repositories.

[1] http://git.linux-nfs.org/?p=steved/nfs-utils.git;a=commit;h=4663c6481c294838260840d234fec7dfd3186451
[2] http://git.linux-nfs.org/?p=steved/nfs-utils.git;a=commit;h=188354e57dd8476e66ce30d647180a106da29b88
[3] https://launchpad.net/nfs-utils/+packages

Depends-On: https://review.openstack.org/#/c/611199/
Depends-On: https://review.openstack.org/#/c/604929/
Depends-On: https://review.openstack.org/#/c/614802/
Change-Id: I8928f7ef87b0ec53a6a65f5d8964b2eee885056d
2018-11-19 22:29:20 +00:00
Goutham Pacha Ravi b1bf39412b [CI] Switch Xenial tempest jobs to Bionic Beaver
This change specifically ignores the grenade
job (manila-grenade), which is pending conversion
to zuulv3 because we need a way to set the default
python3 interpreter when running on Bionic Beaver.

Depends-On: https://review.openstack.org/#/c/605291/
Depends-On: https://review.openstack.org/#/c/605242/
Depends-On: https://review.openstack.org/#/c/605810/
Change-Id: Ic49d4ac5ac36dd3b3d909941434b2d2f104a10b9
2018-11-01 14:13:35 -07:00
Goutham Pacha Ravi 2d25b09b34 Fix grenade job
When upgrading from Queens to Rocky,
since neither release has the tempest plugin in-tree,
it has to be explicitly installed
in the job.

Closes-Bug: #1785370
Change-Id: I77b5e0eb8824a8a00633aacb45ebea07572503d5
2018-08-04 07:41:07 +00:00
Goutham Pacha Ravi f983b91181 Fix test plugin issues in dsvm-lvm-centos job
Require running the job with neutron-tempest-plugin
since neutron-dynamic-routing relies on it,
and does not specify it in its requirements.

Change-Id: Ic8e8033b77f82c3264270ba042a44177babaff9b
Closes-Bug: #1772077
2018-05-18 12:57:09 -07:00
Goutham Pacha Ravi 227709ba9b Fix manila-tempest-*-centos-7 jobs
There was a recent change announced on the CentOS
mailing lists [1] regarding housing centos-release-SIG
repos for CPU architectures other than x86_64. We rely on
centos-release-pike within our test jobs and the
repo centos-qemu-ev is found under [2].

There is now a YUM variable called $contentdir
which determines where the repos may be, and this
variable isn't set in the base images.

With $contentdir set, the URLs resolve correctly
within /etc/yum.repos.d/CentOS-QEMU-EV.repo.

See corresponding fixes for kolla [3] and
tripleo-quickstart-extras [4]

[1] https://lists.centos.org/pipermail/centos-devel/2018-March/016542.html
[2] http://mirror.centos.org/centos/7/virt/x86_64/kvm-common
[3] Ieb26c0aa65ba3ec1a45a33f87f670e5ecb782f82
[4] I6279bd4088bd87f37c58b7da25b675c5456506d6

Change-Id: Idcacfb6dbfb0760128f10dbc0573856e4250b3bc
Closes-Bug: #1771969
2018-05-18 01:24:50 -07:00
Victoria Martinez de la Cruz 476055a64d Disable tempest in rally jobs
Change-Id: I23aff041fde91b445ccde73e3fd8fc90359c892e
2018-03-25 03:00:27 +00:00
Rishabh Dave bda0b965d7 Add manila-tempest-plugin as a requirement in rally job definitions
Depends-On: I0844cdb48b9d415bd341c4687620412178be871b
Change-Id: I1336c8a4d11762cc355ce5a48899d62646563e28
Signed-off-by: Rishabh Dave <ridave@redhat.com>
2018-03-22 10:37:55 +05:30
Zuul a07d522970 Merge "Use native Zuul v3 tox job" 2018-01-25 20:40:38 +00:00
Andreas Jaeger cbe8ef893b Use native Zuul v3 tox job
Replace tox-genconfig legacy job with native Zuul v3 job.

Also, remove name from project stanza, this is not needed anymore.

Change-Id: Ic79f5a018faab4d0de6296808dd5e8621ea9d498
2018-01-25 12:06:19 +00:00
Rodrigo Barbieri c4449bc4e2 Enable IPv6 scenario tests in Upstream CI
This change complements the work of preceding IPv6 scenario
test changes [1,2] by enabling the settings that allow the tests
to be run in the Upstream CI.

[1] I4ca727f92618998242af18908bbbda6bb5f86303
[2] Id8b005cdd429d53a75624885fe7ca795746c3ede

Change-Id: I705b7d9cbc14d4bbc4d89b4c343205908758a5cb
Depends-on: Id8b005cdd429d53a75624885fe7ca795746c3ede
Depends-on: I4ca727f92618998242af18908bbbda6bb5f86303
2018-01-24 23:10:09 +00:00
Rodrigo Barbieri dc93ae534c Update manila plugin to support IPv6
This patch makes necessary changes to devstack manila
plugin in order to be able to run IPv6 scenario tests.

Part of the changes included the dependency of
neutron-dynamic-routing plugin and the installation
of quagga, so routes in devstack host can be created
automatically for each router and private network
created by tempest during the tests.

Also, added a new config option "override_ip_for_nfs_access"
for manila tempest plugin that overrides the access rules used
for NFS scenario tests. This option can be set by exporting the
environment variable "OVERRIDE_IP_FOR_NFS_ACCESS" with the
intended value before running devstack.

This change is enabled by a following change and
tested alongside a change on manila-tempest-plugin
project.

Please note that we are temporarily disabling IPv6
functionality in Host-assisted Share Migration, as
the Data Service is not able to handle IPv4 + IPv6
scenarios.

Change-Id: I4ca727f92618998242af18908bbbda6bb5f86303
Needed-By: Id8b005cdd429d53a75624885fe7ca795746c3ede
2018-01-24 17:11:22 -02:00