400 Commits

Author SHA1 Message Date
Jenkins
238f6f634a Merge "Catch error_deleting state for more resources than just shares" 2015-07-28 10:59:47 +00:00
Andrew Kerr
22bd34a04c Catch error_deleting state for more resources than just shares
The shares client in tempest currently catches if a share is in 'error_deleting'
state and throws a ResourceReleaseFailed exception so the tests don't have
to wait for the timeout.

However, more resources than just shares can go into error_deleting state,
snapshots for example.  This patch changes the check for error_deleting to
work with all resource types.

closes-bug: 1477703

Change-Id: Idc530db6593769df8f503878ce7432270ddae086
2015-07-27 21:55:01 +00:00
Jenkins
c98d1c2be8 Merge "Implement shrink_share() method in Generic driver" 2015-07-23 18:51:58 +00:00
Igor Malinovskiy
cc97cfe8e0 Implement shrink_share() method in Generic driver
- Add implementation for shrink_share() method
- Add methods to generic driver helpers:
  - disable_access_for_maintenance()
  - restore_access_after_maintenance()
- Add appropriate unit tests
- Add appropriate tempest tests
- Update generic driver documentation

Partially implements bp shrink-share-in-generic-driver

Change-Id: I256db947b65f66dfe514e0c0b350c1949da7f7be
2015-07-20 18:11:08 +03:00
Julia Varlamova
521826b3cd Add negative tests for admin-only API
For admin-only API add negative functional tests that try to execute them
as a non-admin user and verify that permission is denied.

Change-Id: I43d8f2f4f9a1574ea11f6b9ba8aac03d9ac3ace2
2015-07-20 07:32:54 -04:00
Valeriy Ponomaryov
35300fc4e6 Use all types of migrations in devstack installation
For the moment we install Manila database using only 'upgrade' migrations.
In that case we do not test Manila after using 'downgrade' migrations.
So, allow enabling of both types of migrations to verify that our downgrade
migrations do not break the world of data having functional tests running
after it.

Change-Id: If55a38692abca5e008095eb99b55adb465cad2b6
2015-07-14 09:46:46 +00:00
Mark Sturdevant
d19b800d42 Fix for SchedulerStatsAdminTest fails on timestamp
Two tests in SchedulerStatsAdminTest can fail when
a pool capabilities timestamp changes. The tests
really only need to test the key values to be
more reliable.

The 2 tests are:
 * test_pool_list_with_filters and
 * test_pool_list_detail_with_filters

Change-Id: I1bd8307da6c98764b12a948eed20a9f522173144
Closes-Bug: #1470928
2015-07-10 17:26:03 +00:00
Jenkins
7d16c9431d Merge "Use new manila-service-image with public-key auth" 2015-06-23 17:06:24 +00:00
Igor Malinovskiy
d3d5d77ab6 Use new manila-service-image with public-key auth
- Update devstack plugin
- Update tempest scenario tests

Implements bp reproducible-server-image

Change-Id: I7c71ee2f20074e04021b5c95d8c18096d21b0404
Closes-Bug: #1421104
2015-06-22 16:03:13 +03:00
Valeriy Ponomaryov
5830e58ab8 Reduce amount of tempest threads for no-share-servers jobs
Using approach without handling of share servers we have bigger load for
volume creation in Cinder using Generic driver. So, reduce amount of threads
to avoid errors for Cinder volume creations that appear because of lack of
free space.

Change-Id: I738dd9837eb6f951899aef091a6aafe8a4a0945b
2015-06-16 15:56:33 +00:00
Valeriy Ponomaryov
5246c0e67f Bump supported tempest version
Change-Id: I38ddd6f4a7424cc61cdd6e4e1dd250a63bb8b7ff
2015-06-15 13:20:29 +03:00
Jenkins
cee48201f6 Merge "Fix tempest ShareUserRules* tests" 2015-06-11 22:57:05 +00:00
Mark Sturdevant
dc5f4ab2a0 Fix tempest ShareUserRules* tests
Fix handling of return value from create_share 
in resource_setup.

These test classes (part of 'test_rules') are 
not currently used in CI and are not runnable 
because the resource_setup is still expecting a
tuple to be returned from create_share, but that 
method no longer returns a tuple.

This fix makes the following tests runnable:
- test_create_delete_user_rule
- test_create_delete_ro_access_rule

Change-Id: Ia4324e2bc9ea4cf80ed61e7c23110e9f4068a59b
2015-06-11 18:56:46 +00:00
Jenkins
6eedbb44e6 Merge "Remove unused contrib/ci files" 2015-06-10 19:12:40 +00:00
Valeriy Ponomaryov
9d6ae07585 Remove unused contrib/ci files
Files located in contrib/ci/multi_backend are unused. So, remove it.

Change-Id: Ibe9cb2321936c3dcecbb61bc23a7c5c6d9e90bd4
2015-06-08 11:33:31 +03:00
Julia Varlamova
d1bf842f0f Fix docstrings in tempest plugin
Fix docstrings for methods:
   - wait_for_share_status
   - wait_for_snapshot_status
   - wait_for_access_rule_status

Change-Id: I052306254909b679a30ec5adc5dd562f40924209
2015-06-08 10:25:43 +03:00
Igor Malinovskiy
61d006f278 Implement tempest tests for share extend API
- Add positive and negative share extend test

Change-Id: Ibf2416dcc51a547ca384833bbc3dade6e530ca43
2015-06-04 06:41:07 +00:00
Valeriy Ponomaryov
0a7f44ad07 Transform share and share servers statuses to lowercase
We have several entities in Manila that do have statuses:

- Shares
- Snapshots
- Share Servers
- Share Access Rules

But some share and all share server statuses use uppercase for it.
Make all of them consistent and transform them to lowercase.
Add migrations for it.
Also, remove two unused statuses and reuse all statuses from common place.

Change-Id: I53e6a768c98977d3d94e761349b7446a9dfb4936
Closes-Bug: #1459598
2015-06-02 13:35:44 +03:00
Valeriy Ponomaryov
eff9f92f01 Remove unused attr status from models
Models "security_services" and "network_allocations" have attr "status" that is
not used indeed. So, remove it from models and add appropriate migrations.

Closes-Bug: #1459660
Change-Id: Idb3a69916e8052b16c9daebb9bb67b09d1714c46
2015-05-28 19:07:45 +03:00
Jenkins
51589d441c Merge "Remove ServiceClient from share_client" 2015-05-28 05:27:00 +00:00
Marc Koderer
e8db9ed682 Remove usage of utils.test_utils
In order to transform the Manila tempest test into a consumable
plugin all dependency to tempest must be limited. Remove the usage
of tempest.utils.test_utils due it is optional for the scenario
test.

Change-Id: I7d1df234834e30d452803acfb6d93c4ed32f0599
Partly-implements: bp tempest-plugin-interface
2015-05-22 14:45:19 -07:00
Marc Koderer
782291d812 Remove ServiceClient from share_client
ServiceClient will be removed soon and there is no reason to use
it. A client can directly be inherited from RestClient instead.

Change-Id: Ia400bcf08a271f1e596f33f72ee94e33d1f682ad
Partly-implements: bp tempest-plugin-interface
2015-05-22 14:34:19 -07:00
Valeriy Ponomaryov
2335afa915 Sync tempest plugin with latest tempest
Sync our Tempest plugin to latest state of tempest repo because it has
incompatibilities.

Change-Id: I0d62f8a6f11f4bdba25807123e4cc4396a75799d
2015-05-08 14:51:24 +03:00
Marc Koderer
b8adecd5bb Add multi vm scenario test
Tests read/write action across two launched vms. Adapt basic_ops
test to support multiple vm instances.

Change-Id: I3e14fab3c70f3c109d22f172ba2ad49db5914d33
Partially-implements: blueprint scenario-tests
2015-05-04 13:25:54 +02:00
Ramy Asselin
c50c1b1991 Allow overriding the manila test regex
To make the script more flexible to include more or less tests,
Allow the test regex to be defined prior to calling to post_test_hook.sh.

This will also allow the various jenkins jobs to define the regex directly
instead of relying on their name.

Change-Id: Id64d761e7ad035a2e6d6351b04b9f224aa3b8e86
2015-04-24 16:04:33 -07:00
Jenkins
2f884924b9 Merge "Sync contrib/tempest to newer state" 2015-04-24 15:15:20 +00:00
Marc Koderer
f03f1a0dda Remove ping check from basic scenario test
ICMP ping was a workaround to proof that a connection between
storage server and VM was working. Since it's now supporting actual
mount operations this is just optional. By default this check is
deactivated.

Change-Id: I0eba48abc4583b2d1a4d690c92137941463730c1
Partially-implements: blueprint scenario-tests
2015-04-23 09:24:53 +02:00
Marc Koderer
0d44022800 Sync contrib/tempest to newer state
An update is needed to support multiple identity versions.

Change-Id: I5c1417642c2bfe476647dcf5549dfed0bc2905c0
2015-04-23 09:05:06 +02:00
Marc Koderer
0d9c1e6489 Add mount/umount in scenario tests
This adds mounting and unmounting of a created share. In order
to be sure that the nfs/cfis tools are available in the used image
it's using the default Ubuntu nfs/cifs image. Since cloudinit
is not supported for this image it's using username/password
authentication as workaround.

Change-Id: I77720ba5beb836614728081bbf74b44991d6e284
Partially-implements: blueprint scenario-tests
2015-04-17 19:26:54 +02:00
vponomaryov
79b6079d7e Move response code verification to share client
Currently, Tempest tests for Manila do verify response codes for API calls.
Move such verifications to client module to have verifications in one place.
Remove response part from returning data to tests as unnecessary.
Fix all tests that have such verifications.

Change-Id: If9f32c616700afb4f3aa1acd6d5ed96a3ce6783b
2015-04-14 23:21:40 +03:00
Igor Malinovskiy
a26824818f Remove Limited XML API Support from Manila
Remove the broken XML support presently available in Manila
in order to comply with the general direction among other
OpenStack projects to support JSON only.

Change-Id: Ibb542fa223f7f7d1bf95f3d1f568987ef839cd12
Closes-Bug: #1440782
2015-04-13 15:43:47 +03:00
Marc Koderer
2a16fed593 Restrict access only to vm ip
In order to make the access rule more specific the allow rule
will be created using the vm ip address.

Change-Id: I6768135d5f919e20b52c7019fa1585d6c1da6529
Partially-implements: blueprint scenario-tests
2015-04-09 08:50:39 +02:00
Jenkins
909dd7c4f4 Merge "Add tempest coverage for share type access operations" 2015-04-06 18:45:17 +00:00
Jenkins
e1cb8a4b6c Merge "Allow overwriting some Manila tempest settings in CI jobs" 2015-04-06 15:05:43 +00:00
vponomaryov
516bd65a94 Add tempest coverage for share type access operations
Manila allows to make share type as private and set access to some projects
by its ID. This functionality is not covered at all by tempest tests.

Change-Id: I8ab83da87372b97b55dae5de6e649fbf44e068e3
Closes-Bug: #1440169
2015-04-03 22:15:52 +03:00
Andrew Kerr
477bcfa44b Allow overwriting some Manila tempest settings in CI jobs
This patch allows the following Manila tempest options to be set,
rather than hardcoded, in Jenkins CI jobs:

- suppress_errors_in_cleanup
- run_manage_unmanage_tests
- multitenancy_enabled

Change-Id: If566501cd5c97be37c6e018080e604fd76b6605d
2015-04-03 11:45:50 +00:00
Tom Barron
ee14370097 Set share-type on share created from snapshot
This commit ensures that when one creates a share from a snapshot
the new share has the same share-type as the share on which the
snapshot is based.

Closes-bug: 1420369

Change-Id: Icad04edd3eab6d40e56352a9a7d298b6efd80e93
2015-04-02 21:23:37 +00:00
Jenkins
02083bd11e Merge "Add initial scenario test for Manila" 2015-04-02 13:01:06 +00:00
vponomaryov
fb7ede3671 Delete skipped tempest tests that won't be enabled
We have three tempest tests that are skipped due to bugs that won't be fixed.
Delete them as useless.

Change-Id: I5faa841887de24f483fdb3a0b5a413ecbb3717f7
Closes-Bug: #1431939
2015-03-31 22:40:26 +03:00
Marc Koderer
c413219116 Add initial scenario test for Manila
Adapt manager and add first initial test for Manila. A ping check will
be performed to check the connectivity from the VM to the share
server/service. The test can be triggered using the experimental test
job introduced by [1].

Open todo's that can be addressed later:
 - Support of flat network
 - More flexible configuration options

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

Change-Id: Ie72e877a88c337866e9cb591f8099218d84ee5dd
Partially-implements: blueprint scenario-tests
2015-03-27 14:59:55 +01:00
Valeriy Ponomaryov
949247deff Fix setting of share name and description with manage API
API 'manage' allows us to set name and description for newly managed share.
But it always sets empty strings for both. Root cause for it lays in different
naming of mentioned attrs in API and DB layers.
So, make API 'manage' understand both names (API-like and DB-like) for each of
mentioned things.

Change-Id: I5a752c7960492070c3f5ad5974156c4dea324ac1
Closes-Bug: #1434056
2015-03-26 16:24:00 +02:00
Jenkins
0310db062b Merge "Fix setting of extra specs for share types" 2015-03-25 13:14:59 +00:00
Valeriy Ponomaryov
22ba5ab2c0 Fix setting of extra specs for share types
Share types have one required extra spec - "driver_handles_share_servers".
And API disallows us to set some additional extra specs if we do not provide
required one too. It should not be so, because if we do not want to update
already existing spec then we should not be obligated to provide it.

Change-Id: Id2b2c9dfae3da551ae79e66199a84773f333b883
Closes-Bug: #1435819
2015-03-24 19:55:56 +02:00
Martin Kletzander
199692d6ff Fix common misspellings
Wikipedia's list of common misspellings [1] has a machine-readable
version.  This patch fixes those misspellings mentioned in the list
which don't have multiple right variants (as e.g. "accension", which can
be both "accession" and "ascension"), such misspellings are left
untouched.  The list of changes was manually re-checked for false
positives.

[1] https://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines

Change-Id: I2446995aa8b7c89c7f78c056f9ddb6d8e7899e4e
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
2015-03-23 14:41:41 +01:00
vponomaryov
8376ca41fc Sync tempest plugin with latest tempest
We are forced to sync our tempest plugin to latest tempest due to changes
done to CI system, that are  based on recent tempest project changes.
Such as reusage oslo libs instead of built-in incubator code, that leads to
changes of config opts that are set/read within tempest config used in CI.

Change-Id: I3e64dc373f5d81034afc4c5d8dfd5d7f4abaa603
Closes-Bug: #1434958
2015-03-22 13:23:46 +02:00
Jenkins
dc79eb0071 Merge "Enable bashate during pep8 run" 2015-03-20 04:16:41 +00:00
Igor Malinovskiy
e1746d7137 Implement manage/unmanage support in generic driver
Add implementation of manage_existing() to Generic driver.
Generic driver accepts only one driver_option 'volume_id'.
If an administrator provides this option, then this Cinder
volume will be managed by Manila as well.

Partially implements bp manage-shares

Change-Id: I8767a7af75d575c57e8708563fa4a6bf2f4aa8ad
2015-03-18 20:43:51 +02:00
Thomas Bechtold
6785cad994 Enable bashate during pep8 run
bashate checks shell script syntax (similar to pep8 for python). Fix
currently available scripts and enable the check for the scripts.

Change-Id: I33dc8c44a58f40e8bca9e29cd717caf46e5cd586
2015-03-18 13:40:03 +01:00
Clinton Knight
72f5f0485a Fix issues with get_pool scheduler API
The scheduler API 'get_pools' was copied from Cinder and has several
problems.  The REST endpoint, /scheduler-stats/get_pools, is not a
REST-appropriate name.  The API allows filtering but filters are not
currently supported by the Manila scheduler.  The API was added as an
extension, not part of the v1 API as it should be.  After restarting
the scheduler service, the API doesn't return any data until a share
has been created (Cinder was used as a model for fixing this one).
This patch fixes all of these issues.

Closes-Bug: #1422042
Change-Id: I7e32efb5390fd4b0a62f644ca5a12dcad14d8a9b
2015-03-16 16:32:15 +00:00
vponomaryov
0bdf502957 Fix cleanup order for tempest test
One of tests creates share network and then share based on it. Both have
default values for cleanup order - either in after test method or after whole
test suite. Default value for share is deletion afer test suite, but for
share network is after test method. That caused errors for clean up.

Change-Id: I5a33bc5adc3a9aa84f9ce0dd6a5df204c5bb7452
2015-03-13 19:25:08 +02:00