14 Commits

Author SHA1 Message Date
Valeriy Ponomaryov
7145891ef8 Add dummy driver
Added dummy driver for ease of testing and development of REST APIs
and internal manila interfaces.
It can be enabled as backend in the same way as all other share drivers.
But, it does not provide any resources.

Also, update tempest to be able to work with share-networks when
networks are defined via config and not API.

CI hooks are configured to run tempest twice using both available
driver modes. Where DHSS=True mode uses StandAloneNetworkPlugin as
network backend.

Change-Id: I9053dddfc643cb5a6602f15235b91bbaea727dbd
Implements BluePrint dummy-driver
2016-07-22 17:57:59 +03:00
Marc Koderer
916c1cfa80 Update tempest to newer commit version
Neutron is using tempest plugins too and it's needed newer changes
in tempest we need to update our commit id.

Change-Id: Ic6621fbad9e5ba932643e0c0fb717b71a1fc5808
Closes-bug: #1599429
2016-07-07 19:28:55 +03:00
Valeriy Ponomaryov
e2aecad547 [Tempest] Bump tempest version
Fix small incompatibility that left to be done and bump Tempest version
to unblock our CI jobs.

Also, remove temporary fix [1] that was done for unblocking CI.

[1] I44655c83cc5588c5b94d0fad81162dd0c238b5b4

Change-Id: I12e2652638ba26833f9365f06fa84a98ca24765c
2016-06-08 11:53:29 +03:00
vponomaryov
1e58d5c940 Bump Tempest version
Latest Devstack is not compatible with Tempest version
used by Manila after merge of commit [1].
Therefore, bump Tempest's version and fix incompatibilities
with plugin.

[1] I63658b8d8dfa999e0feb79f8f2968f2b32e3ff57

Change-Id: Ib6fb886f8a17ff6419fd75db74f290f821a3d302
2016-05-10 23:33:31 +03:00
Valeriy Ponomaryov
6d2efea25f [Fix CI] Bump Tempest version
We are forced to bump version of Tempest because of regular
introduced incompatibility.
Also, add compatibility fixes to Manila plugin for
latest Tempest version.

Change-Id: I13c838c39d99c008d53e544f54dadee01f36fdf2
Closes-Bug: #1568785
2016-04-11 15:25:45 +03:00
Ben Swartzlander
4368c98b71 Update tempest commit and switch to tempest.lib
tempest_lib was renamed to tempest.lib which causes problems
when running tests because tempest imports plugins from other
projects and crashes.

Closes bug: 1552520

Change-Id: Id7d43dee256856062bd0dadad9c469c1500ee36e
2016-03-02 23:09:00 -05:00
Valeriy Ponomaryov
70871c2479 Bump tempest version
After merge of change [1] to Devstack project Manila Tempest plugin not
compatible anymore with latest Devstack.
So, bump Tempest version to latest and fix compatibility with it.

[1] If66096cde31fedda407e1e6ac6899b196569a454

Change-Id: Idf9a9eabf9c98d090e47207cf89d9e5a5fc0ea97
Closes-Bug: #1539007
2016-01-29 00:24:39 +02:00
Jenkins
30eaf80506 Merge "Change manila_tempest_tests to use credentials_factory" 2015-12-03 02:16:55 +00:00
Sam Wan
69a3d999c2 Change manila_tempest_tests to use credentials_factory
With the merge of 'Factor up config dependent credential classes' in tempest,
(Change-Id: I351f86f0570070105bbf24f2d904e917feea6e57)
helper methods related to credentials have been moved to
common.credentials_factory module.
manila_tempest_tests need to change accordingly.

Change-Id: I9e5c72279638e07f509a4bfe0174b5ad5ee70b45
Closes-Bug: #1519612
2015-12-02 03:56:38 -05:00
Jenkins
56ccb015c8 Merge "Simplify ping usage for service VM check in CI" 2015-12-01 09:44:16 +00:00
Thomas Bechtold
6eb3a2d05b Simplify ping usage for service VM check in CI
Just rely on the return code from "ping" instead of
parsing it's output when checking the service VM during
the CI run.

Change-Id: I20f144687662a0dda5fdfc0293ab578009658c1b
2015-11-27 09:55:38 +01:00
Valeriy Ponomaryov
14d57d158f Add sleep to CI hooks to avoid races
Manila CI hooks for DHSS=False job with the Generic driver wait for
service instance availability and right after it becomes available
returns control to caller. And caller can run tests with creation of
shares immediately. But, in this case, we can face race conditions when
manila-share service requires some time to inform manila-scheduler.
So, add 'sleep 10' operation to be executed after reaching 'available'
state by service instance.It should be enough to overcome races.

Change-Id: Ie4ae231701edaab319c9012e476d1f63e3806499
2015-11-26 17:58:14 +02:00
Valeriy Ponomaryov
037ba11389 Fix import of devstack functions for common CI script
Commit [1] moved common logic for CI hooks to separate file, but it
depends on some devstack functions, that should be "sourced" in this
common file. So, this common file works in manila hooks, because they
import devstack functions separately, but it will not work if some other
scripts use it and do not import devstack functions.

[1] I94514405628ab8337d1f4153e431f064614e3596

Change-Id: I919fea046e556d601a7680ea9bac16c1a9b7343c
Closes-Bug: #1519028
2015-11-23 18:38:55 +02:00
vponomaryov
6b8319e32a Split common logic of CI hooks to separate file
Manila contains CI hooks located in "contrib/ci" dir.
Split common logic to separate file to be able to just "source" it and
then use env vars and bash functions in different CI jobs and projects.

Current change allows to do two things:
 - Reuse env var "MANILA_TEMPEST_COMMIT" in third-party CIs
 - Wait for drivers init in other projects like OpenStack Rally. Where,
   for the moment, one of jobs fails because of absense of "waiting".

Usage:
 $ source %manila%/contrib/ci/common.sh
 $ echo $MANILA_TEMPEST_COMMIT
 $ manila_wait_for_drivers_init "/etc/manila/manila.conf"

Change-Id: I94514405628ab8337d1f4153e431f064614e3596
2015-11-10 11:24:51 +00:00