3338 Commits

Author SHA1 Message Date
Valeriy Ponomaryov
1daade76b2 [Dummy driver] Add possibility to set delays for driver methods
Dummy driver was designed to test manila main functionality that is
storage-agnostic. So, add possibility to set delays for each dummy share driver
method, to be able to simulate storage more correctly by having time delays
similar to real storage-drivers.

Two new config options were added:
- dummy_driver_default_driver_method_delay (float)
- dummy_driver_driver_methods_delays (dict of string-keys and int/float values)

Configuration example:

[DEFAULT]
enabled_share_backends = fake_backend_name

[fake_backend_name]
...
dummy_driver_default_driver_method_delay = 2.0
dummy_driver_driver_methods_delays = create_share:5.15,delete_share:1
...

Change-Id: I36598f74762f3631c6c8502148ea9989ad544b5a
2016-11-23 16:03:07 +02:00
vponomaryov
3f2f3f9086 [Devstack] Fix devstack plugin compatibility
Recent devstack commit [1] broke manila devstack plugin compatibility.
So, fix it by removing dependency on deleted env var in the same way
as it is done in devstack [2].

[1] I7c66e1d8d65f562596543ed8ca402dba8c8ea271
[2] I4e5c7e86aefe72fc21c77d423033e9b169318fec

Change-Id: I351f90a60e4693300cc3d3bbd1183bd8fa6acc9a
Closes-Bug: #1644194
2016-11-23 14:00:33 +02:00
Jenkins
799fc8d55f Merge "Fix extend operation of shrinked share in generic driver" 2016-11-22 13:57:02 +00:00
Rodrigo Barbieri
ce39a50782 Add Admin network support to HNAS driver
Adding Admin Network support to more easily integrate HNAS
EVS networks into the admin network to perform share migrations.

DocImpact

Implements: blueprint hnas-admin-network

Change-Id: I797595aec580e9ec2dcfdf88e965ae29988b1dee
2016-11-21 16:34:23 -02:00
Xiaoyang Zhang
77a0349adc Fix extend operation of shrinked share in generic driver
If a share is shrank from 10G to 5G, the volume is still 10G.
This share`s size display is 5G, but the share extend newsize
must be > 10G in the old code. So, I think only need to perform
resize_filesystem when the share extend newsize <= volume size.
The volume extension is performed only when new size larger than
volume size.

Change-Id: I7e49b446445b8005e2eb23e1d439354eb24915e0
Close-Bug: #1639188
2016-11-21 15:01:58 +08:00
Jenkins
ac2d20b8aa Merge "[Tempest] Port remote_client into Manila" 2016-11-19 21:37:24 +00:00
Marc Koderer
7683f2a3ca [Tempest] Make share size configurable in scenario tests
The scenario tests missing a way to configure
the share size created during the test.

Change-Id: I58d433a39037cbdb4ad92f956cfc27c54739fe1a
Closes-bug: #1642548
2016-11-17 20:27:23 +00:00
Daniel Mellado
d03b5699fd [Tempest] Port remote_client into Manila
Manila tempest tests make use of remote_client [1], which won't be making it
to the tempest stable interfaces, as it imports tempest code which would
result in a circular dependency.

This commit ports a reduced version of remote_client into manila code in
order to have manila's tempest plugin to drop the dependency on it.

[1] https://github.com/openstack/tempest/blob/master/tempest/common/utils/linux/remote_client.py

Partially-Implements: bp/tempest-no-deps

Change-Id: I97a8c57adce9cd541766cc1a2f21ca9ceb92efe9
2016-11-17 09:30:10 -06:00
Jenkins
97c764a9ea Merge "devref/driver_requirements: add cephfs protocol" 2016-11-17 08:53:58 +00:00
Jenkins
235cb476b3 Merge "Compare the encoded tag more accurately for huawei driver" 2016-11-16 21:24:26 +00:00
Tom Barron
f2ffae1870 hacking: Use uuidutils to generate UUID
Added hacking check to ensure that UUIDs are not generated
by uuid4() since we should do this using oslo_utils.uuidutils.

Based on this nova change [1].

[1] I73ee63fbd4f451d3aa5dc1a2a734d68c308b4440

Change-Id: Ic7783c29fbd838c827ccc8ee44aa757fef8e9169
2016-11-16 16:06:40 -05:00
Ramana Raja
c66660c658 devref/driver_requirements: add cephfs protocol
... to the list of supported protocols in manila.

Change-Id: I7b5ed28fec5ffc550dc4840c0197b5da323b0c8a
2016-11-17 01:30:00 +05:30
Jenkins
a704dc8be6 Merge "Add Rally CI jobs with Manila scenarios" 2016-11-16 18:54:10 +00:00
Valeriy Ponomaryov
a82b9c2671 Add Rally CI jobs with Manila scenarios
Rally project has Manila support. So, add its scenarios to Manila
to be able to run them in CI.

Change-Id: Ie689ec15a8a2c77824fbf74de66dc852589bad1d
2016-11-16 16:05:27 +02:00
Jenkins
341d5299de Merge "Fix spelling mistakes in cover.sh" 2016-11-16 12:57:32 +00:00
Jenkins
781d7d9e3b Merge "Correct the order of parameters in assertEqual()" 2016-11-16 12:50:16 +00:00
zhangyanxian
f2f66c8ada Fix spelling mistakes in cover.sh
TrivalFix

Change-Id: Iedc1fc108d090e11d8d942379aa8c32d212d16e1
2016-11-16 11:42:40 +00:00
OpenStack Proposal Bot
e2a4151df0 Updated from global requirements
Change-Id: I535fa12ff2b29dacc1ca75bd81065c34cb9f1210
2016-11-15 19:51:18 +00:00
Jenkins
d2cbb01669 Merge "Check ceph backend connection on driver setup" 2016-11-15 13:20:56 +00:00
Jan Provaznik
af79b9f5b7 Check ceph backend connection on driver setup
Check that ceph connection really works when setting up
the driver instead of doing real connect later in init_host
phase. This mitigates the risk that the service crashes/respawns
in an infinite loop because of a connection error.

Change-Id: Ia71b55dab1535ce351310108aaf53304b15ab757
Closes-Bug: 1640169
2016-11-15 12:35:39 +01:00
xing-yang
d9be8fa62b Move EMC drivers to dell_emc folder
This patch moves EMC drivers under dell_emc folder and
changes vendor name to "Dell EMC".

The base driver remains as EMCShareDriver.

DocImpact
UpgradeImpact
Implements-blueprint: move-emc-driver-to-dell-emc-folder
Change-Id: I799c7fcb59fbe887045fe81beb1e257586ba2f0e
2016-11-14 20:34:26 -05:00
melissaml
34f5274931 Replaces uuid.uuid4 with uuidutils.generate_uuid()
Openstack common has a wrapper for generating uuids.
We should only use that function when generating uuids for consistency.

Change-Id: Ie68850e529eee51c66e8d29a9025e1390576bc1a
Closes-bug: #1082248
2016-11-14 10:51:24 -05:00
Jenkins
dbab8415ea Merge "Remove unused link" 2016-11-14 12:33:47 +00:00
liyanhang
ca22725fdb Remove unused link
Change-Id: Ic05556dfa6a979a9e465dbbc3172d8b5e37a3eef
2016-11-14 10:20:48 +00:00
Jenkins
bcb064becb Merge "[install] Make the rabbitmq configuration simpler" 2016-11-13 01:39:15 +00:00
chenxing
e01af35b88 [install] Make the rabbitmq configuration simpler
Update from this commit https://review.openstack.org/#/c/389971/1
in the openstack-manuals project.

Change-Id: I862d3b4e310136c7b9bc151fdfa82b07e8c04978
2016-11-12 14:58:44 +00:00
Jenkins
eb380e23fb Merge "Use cors.set_defaults instead of cfg.set_defaults" 2016-11-12 12:08:03 +00:00
Jenkins
7db7cb7718 Merge "Fix share manage tempest test cleanup" 2016-11-11 16:18:06 +00:00
Jenkins
ed4de010de Merge "Add support of endpoint_type and region_name to clients manila uses" 2016-11-11 13:40:54 +00:00
Jenkins
641596dfc8 Merge "Fix missing 'migration_completing' task state" 2016-11-10 19:10:38 +00:00
Daniel Mellado
8d8371de60 Add testscenario to test-requirements
As Manila bundling oslo.db is not installing testscenario, all python
gates are failing when trying to import it. This commit fixes it so the
gates won't be blocked.

This is a workaround of oslo.db not having testscenarios on its
requirements file.

Closes-Bug: #1640774

Change-Id: I660322666565408f6015da7aa82723a842d62a2d
2016-11-10 14:43:16 +00:00
tpsilva
1eadb5a51c Fix share manage tempest test cleanup
test_share_manage.ManageNFSShareTest might leave undeleted shares on
backend if some tests are not run. This happens because the shares are
created and unmanaged on resource_setup and are expected to be managed
and deleted on the tests. If the tests don't run, the cleanup will not
delete the shares because they are already unmanaged, thus leaving them
created on the backend.

This patch fixes this issue by moving the share creation and unmanage
operations from resource_setup to the tests themselves.

Closes-bug: #1639848

Change-Id: I2d1790f0a323fdc7b11805842985ca5907dd23c3
2016-11-10 09:36:44 -02:00
OpenStack Proposal Bot
1c5446e302 Updated from global requirements
Change-Id: I8ba18e21d8d22c2895c75d57fc3e976eaeeac59f
2016-11-08 21:23:41 +00:00
Jenkins
4c5e69d268 Merge "Add utility of boolean value parser" 2016-11-08 19:35:43 +00:00
Jenkins
5dfeebb536 Merge "Remove fake CG support from Generic share driver" 2016-11-05 02:31:27 +00:00
Valeriy Ponomaryov
e77cf5bdaf [Devstack] Create additional custom share types by default
They are useful for case we install several back ends with different
drivers, their modes and capabilities.

New share types have fixed names based on driver modes:
- dhss_true
- dhss_false

It is possible to define their extra specs using following env vars:
- MANILA_DHSS_TRUE_SHARE_TYPE_EXTRA_SPECS
- MANILA_DHSS_FALSE_SHARE_TYPE_EXTRA_SPECS

that defaults to existing following env var:
- MANILA_DEFAULT_SHARE_TYPE_EXTRA_SPECS

Use case in CI: we are able to use more than one predefined share_type
in tempest and rally tests.

Change-Id: I7278a897bb89f0562e1eda449b725d965cb10566
2016-11-04 19:01:42 +03:00
Valeriy Ponomaryov
899941c60e Remove fake CG support from Generic share driver
Generic share driver has fake support of consistency groups. It was
implemented only for testing purpose. Now, it is redundant, because
we have 'dummy' share driver that already used to test this behavior.

So, drop fake CG support from Generic share driver and disable
appropriate tempest tests.

Change-Id: I6ce07fd3a11cd62a3a01ba4ee7c424b839a62757
Closes-Bug: #1638994
2016-11-04 16:41:54 +02:00
Li Wei
f8b962b9c8 Correct the order of parameters in assertEqual()
The order of parameters should be assertEqual(expected, actual).

Change-Id: I0815b1d76fd1f8a90ad3d5f08d70fc5cc4e5d7b7
2016-11-04 15:40:21 +08:00
Li Wei
ed59f6bd1a Use cors.set_defaults instead of cfg.set_defaults
Cors has been added setdefaults method, just use it.
Related link:
https://review.openstack.org/#/c/285368/

Change-Id: I26e1ecdf4a92ab55eeb794a0df7ba6a323f9141a
2016-11-04 14:48:51 +08:00
Rodrigo Barbieri
3f6fb58810 Fix missing 'migration_completing' task state
For driver-assisted migration, 'migration_completing' task state
was not being set when accepting migration-complete requests.

APIImpact

Change-Id: Ie0ccd587232a4a8007c45d855f0f575a30b881b2
Closes-bug: #1638896
2016-11-03 10:14:16 -02:00
howardlee
4c3d247192 Replace 'assertEqual(None, ...)' with 'assertIsNone(...)'
[H203] Use assertIs(Not)None to check for None (off by default) Unit
test assertions tend to give better messages for more specific
assertions. As a result, assertIsNone(...) is preferred over
assertEqual(None, ...) and assertIs(None, ...), and assertIsNotNone(...)
is preferred over assertNotEqual(None, ...) and assertIsNot(None,
...). Off by default.

TrivialFix

Change-Id: Ib635a7f73c9ab86ca6ca322542b19e7889486070
2016-11-03 16:45:23 +08:00
zengyingzhe
3f2800ede5 Compare the encoded tag more accurately for huawei driver
huawei driver uses a tag '!$$$' to indicate if username/password
is encoded or not in huawei configuration file.

Currently 'find' method is used to check if this tag is included
in the configuration string, but it'll misread if the tag is
included not in front of the string.

So change the comparing statement to a more accurate way, compare
the front slice of the string directly to the tag.

Change-Id: Ic343970578477362460340b01e5766e03c7d63a4
Closes-Bug: 1635073
2016-11-03 02:34:39 +00:00
OpenStack Proposal Bot
08285a764d Updated from global requirements
Change-Id: Idd8b0051f1b4f0543a5b7f8f54d24b5e0e25e199
2016-11-02 21:54:33 +00:00
Jenkins
ef91e54df4 Merge "[Tempest] Fix visibility of test_quotas.py module" 2016-11-02 20:02:18 +00:00
Valeriy Ponomaryov
11b38f3188 Add support of endpoint_type and region_name to clients manila uses
Since change [1] it is impossible to set endpoint_type and region_name
for nova, cinder and neutron clients that are used by manila in some
cases.
So, to fix it, add additional options called 'endpoint_type' and
'region_name' for each of config groups related to these clients.
These options can be defined in appropriate config group as following:

[nova]
endpoint_type = publicURL
region_name = SomeRegionName

[cinder]
endpoint_type = internalURL
region_name = SomeRegionName

[neutron]
endpoint_type = adminURL
region_name = SomeRegionName

[1] Ic211a11308a3295409467efd88bff413482ee58d

Change-Id: I6be0e77bbc0e4b1e9905eba7a7b48ff540e9e377
Closes-Bug: #1633454
2016-11-02 18:14:04 +02:00
OpenStack Proposal Bot
b442ee349a Updated from global requirements
Change-Id: I8b2078292034d425e5c022df4220c63d0d2c339a
2016-11-02 03:35:06 +00:00
Jenkins
6d7b758f5a Merge "Clarify language in release notes" 2016-11-01 15:37:13 +00:00
Jenkins
2ac0077041 Merge "Remove broken modindex link from devref" 2016-11-01 15:37:06 +00:00
Jenkins
6cd83cd148 Merge "Fix concurrency issues in container driver" 2016-11-01 15:00:32 +00:00
Jenkins
63423ec0f7 Merge "Fix a typo" 2016-11-01 13:38:21 +00:00