Commit Graph

22 Commits

Author SHA1 Message Date
Goutham Pacha Ravi d65d7f05a7 Migrate functional job to native zuulv3
The manilaclient functional test job
"manilaclient-dsvm-neutron-functional"
is currently broken due to a change to its
parent job in the devstack repository.

Instead of investing to fix that legacy style
job, we'd be better off rewriting it to be
in native zuulv3 style, i.e., without the
use of the deprecated devstack-gate project.

- Introduce a new job "python-manilaclient-functional"
  which replaces "manilaclient-dsvm-neutron-functional"
  but preserves the testing done by the latter.
- The new job runs on a minimal devstack (keystone,
  neutron, manila, mysql and rabbit) and uses an ansible
  role introduced to setup test configuration.
- Add a "bindep.txt" file to call out test system
  dependencies, and install them via the new job.
- Cleanup the old job, the associated devstack gate
  hooks and playbooks.

Change-Id: I3b67f3b566bdadf1cc228f885b7253435a4507b5
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2020-06-30 17:25:46 +00:00
Rodrigo Barbieri 07564879ae Add CLI commands for Manage-Unmanage of Share Servers
- Added CLI commands for managing and unmanaging share servers.
- Updated CLI command for managing shares to accept
  share_server_id parameter.

API microversion has been bumped to 2.49.

Partially-implements: bp manage-unmanage-with-share-servers
Change-Id: If1403079b20471645bf869da74bf4db37d59811c
2019-03-06 14:41:47 -05:00
Zuul 41f08973af Merge "[CI] Use openstackclient instead of neutronclient" 2019-01-20 09:54:10 +00:00
Goutham Pacha Ravi dfd18798eb [CI] Fix logs for the functional test job
- Use roles from the openstack-infra/zuul-jobs
  repository to gather appropriate files after
  each job run.
- Gather the etc/ folder to gather test
  configuration.

Change-Id: I07676362e3b83cf2e50e177c1f37d926bb86c4ac
2019-01-18 11:05:32 -08:00
Goutham Pacha Ravi e5061bb357 [CI] Use openstackclient instead of neutronclient
TrivialFix

Change-Id: I7866a75603590ab0b53dc6ceca66251bbbadd621
2019-01-16 16:22:18 -08:00
Goutham Pacha Ravi e7fa7cd158 Fix functional tests
Manila's ci scripts disable configuring the
default share and share group types if testing
with the dummy driver.

We want to continue using the the default types
mechanism in python-manilaclient, until we decide
not to.

Change-Id: I14544bea728286eeb33461e724d991fe556a4269
Closes-Bug: #1787292
2018-08-16 04:48:44 +00:00
zhongjun 9b9cc821dd Use generic user for both zuul v2 and v3
Zuul v2 uses 'jenkins' as user, but Zuul v3 uses 'zuul'.
Using $USER solves it for both cases.

Change-Id: Ib83267ef75f91fb8f95af312d644ebe29c6306c8
2017-10-17 10:37:49 +08:00
Tom Barron eb4b7e77ca Fix gate breakage
It's no longer allowed to use both localrc and local.conf
so our dsvm jobs were failing very early. See:
http://lists.openstack.org/pipermail/openstack-dev/2017-February/112872.html

Adusts hacking test requirements for PBR issue.

Fix functional tests given server changes fixing bug #1664370.

Partial-Bug: #1668848
Closes-Bug: #1669441

Change-Id: Ie14a48b5f174db29bfeac98b28adeeb19292ac22
2017-03-02 12:47:35 -05:00
tpsilva c0fdf827b9 Add mountable snapshots support to manila client
This patch adds support to manila client for the mountable snapshots
feature.

Co-Authored-By: Miriam Yumi <miriam.peixoto@fit-tecnologia.org.br>
Co-Authored-By: Alyson Rosa <alyson.rosa@fit-tecnologia.org.br>

Implements: blueprint manila-mountable-snapshots
Change-Id: I785a784bcae7cf3bcef4fa6c64ba28ee58328389
Depends-On: I65f398a05f82eef31ec317d70dfa101483b44b30
2017-01-24 20:30:57 -02:00
Rodrigo Barbieri ff9963a712 Implement Share Migration Ocata improvements
- Added 'preserve-snapshots' parameter
- Driver-assisted parameters are now mandatory (thus
compatibility with previous versions is broken)
- Updated parameter descriptions

Change-Id: Icfdefdee88040464d19ab95dba50b88c8f90a1d3
Depends-On: I764b389816319ed0ac5178cadbf809cb632035b4
Implements: blueprint ocata-migration-improvements
2017-01-21 16:36:20 +00:00
vponomaryov 6f8f7d8c94 Use dummy driver in functional tests CI job
For testing of manilaclient we need just some backend and
not some specific one. So, use dummy driver to avoid
possible real-driver-dependent problems in manilaclient functional
tests CI job.
Also fix NameError in functional tests that appears/reproducible
with such switch.

Change-Id: I14f3faf4c88eaca8d1cdec006fd1b4403dace66d
Closes-Bug: #1614981
Closes-Bug: #1631441
2016-10-12 20:02:35 +03:00
Alexey Ovchinnikov 1c35a0a269 Add support of Identity API V3 in functional tests
and use it in CI job.

Co-Authored-By: Alexey Ovchinnikov <aovchinnikov@mirantis.com>
Co-Authored-By: Valeriy Ponomaryov <vponomaryov@mirantis.com>

Change-Id: Ic5c495e8b712370a30da31c57c7ea1565c46537e
Closes-Bug: #1516562
2016-10-10 16:56:28 +03:00
Valeriy Ponomaryov 7ff3544021 Run pre_test_hook.sh of manila in client's CI
We do not use any presets defined in manila project for CI jobs.
So, start using it. It will allow us to reduce random failures
we face now.

Change-Id: Idab828dfe9f1cabdbbf61d661321d613cdfc401c
Closes-Bug: #1630624
2016-10-06 15:21:47 +03:00
Valeriy Ponomaryov 6e15683539 [CI] Fix devstack hooks to unblock CI
Logic of share-network creation was dependent on presense of "JOB_NAME"
env var. And it is unavailable now. Moreover, we do not really need to
depend on it. Therefore, remove dependency on it and assume we always
run CI without nova-network enabled.

Change-Id: Ic03e2166101a4deb13e8a8545d2fb2506454a20a
Closes-Bug: #1595160
2016-06-23 13:16:42 +03:00
vponomaryov 1ab7008cf4 Fix post_test_hook.sh script auth error
Stop sourcing generated by Devstack rc files and call script
that sets proper env vars based on username and project.

Change-Id: I61722fc755d5c1ed08705559bdf60f09f3a262f5
Closes-Bug: #1550166
2016-02-27 18:15:23 +02:00
Matt Riedemann 2c334f03dc Update path to subunit2html in post_test_hook
Per:

http://lists.openstack.org/pipermail/openstack-dev/2015-August/072982.html

The location of subunit2html changed on the images in the gate
so update the path used in the post_test_hook.

Long-term we should just use what's in devstack-gate.
Change-Id: I5e50e7d7ad845aba26403df1df412c0a139a6dc7
Closes-Bug: #1491646
2015-09-02 17:23:07 -07:00
Julia Varlamova 2a4f79cc0d Fix post_test_hook and update test-requirements
Our gate jobs are broken in two places:

    - latest mock lib does not work on py26;
    - post_test_hook.sh is not compatible with devstack anymore after change to devstack [1]

So, fix post_test_hook.sh and set proper version to mock lib.

[1]: I613f1bdc6673f0c4bfe29aaab7b514348a617a8c

Closes-Bug: #1474293
Closes-Bug: #1474261
Closes-Bug: #1474744

Change-Id: Ia849a06275e738078dc4543680d499c6149117d5
2015-07-15 08:37:48 -04:00
Valeriy Ponomaryov ada9825bf6 Add rw functional tests for shares
Add base client methods for shares and use them in rw functional tests.

Partially implements bp rw-functional-tests

Change-Id: Ibc611ed5c54d2635f36018f3590ca56f4f2eb7dd
2015-06-02 12:46:34 +03:00
Valeriy Ponomaryov b6c24ef29e Increase quota for share networks in manila installation
Functional tests create a lot of share networks and may cause exceedance of
default limit. So, increase it, to be able to run tests not restricting
amount of threads.

Change-Id: I43ffdc54f924020bed876927bbd693593de726b2
2015-05-13 15:04:51 +00:00
Valeriy Ponomaryov 4243d8731b Add rw functional tests for public share types
Add base client methods for share types and use them in rw functional tests.
This commit covers case of 'public' share types.

Partially implements bp rw-functional-tests

Change-Id: Ia35dbe7f42ada319853642b893bc5c2fa2db4175
2015-04-27 16:31:38 +00:00
vponomaryov f0a6aa7a80 Make functional tests ci job save testr logs
Make functional tests ci job save testr logs with list of run tests and their
results.

Change-Id: If93d3eac727fc13ef6c5d727818f67482572e2a6
Partially implements bp functional-tests
2014-11-23 00:29:46 +02:00
vponomaryov 93fb5977ae Add gate hook scripts for functional tests
Add gate hook to contrib/ci dir to be able to configure functional tests job.

pre_test_hook just imports devstack extension for manila project to the
devstack project.
post_test_hook configures config file for manilaclient based on devstack
installation and runs related tox job.

Also fix default config file path within config module.

Partially implements bp functional-tests

Change-Id: Ibf90af083b9a8e0ec646e1bff676893528ff1914
2014-11-15 13:54:45 +02:00