3375 Commits

Author SHA1 Message Date
Jenkins
2241e8ab16 Merge "[Tempest] Fix concurrency issue in scenario test" 2016-12-08 18:31:56 +00:00
OpenStack Proposal Bot
0d3151cac1 Updated from global requirements
Change-Id: I897bf01d735ea77c4ceb91f43f02a9c088299d28
2016-12-07 21:23:47 +00:00
Jenkins
8ed0a25f36 Merge "[api-ref] Refactor Manila availability-zones API" 2016-12-07 17:10:32 +00:00
vponomaryov
122f40f589 [Tempest] Fix concurrency issue in scenario test
One our scenario tempest test [1] started failing randomly.
It was failing on resources removal. So, start deleting resources
in proper order.

[1] manila_tempest_tests.tests.scenario.test_share_basic_ops.\
        TestShareBasicOpsNFS.test_mount_share_one_vm

Change-Id: Ib1eba66e4d27552cf8e78b302a9f03ac84d978ba
Closes-Bug: #1647350
2016-12-07 18:13:08 +02:00
Alyson Rosa
e02e16ea42 Add support for manage/unmanage snapshots in HNAS driver
Adding support for manage/unmanage snapshots in Hitachi HNAS
driver. In order to manage a snapshot, the admin should provide the
snapshot size in "--driver-options" parameter.

Also, updating tempest tests for manage/unmanage snapshots to include
the required driver option.

DocImpact
Implements: blueprint hnas-manage-unmanage-snapshot-support

Change-Id: I93e56dda5cbe8d3dbe142d773f93d03a0c126d2f
2016-12-06 15:01:14 -02:00
Valeriy Ponomaryov
656dc81906 [ZFSonLinux] Stop inheriting options creating share from snapshot
Because, it leads to inheritance of access rules too. That is a bug.
All other expected options are generated on-fly already.

Change-Id: Ibe744c9fd001156a8184aa8f955c424cebfb8664
Closes-Bug: #1645746
2016-12-06 14:57:35 +03:00
OpenStack Proposal Bot
583ce59b09 Updated from global requirements
Change-Id: I163372b2ea6336b901856083b48579fcab4d75cc
2016-12-02 18:21:40 +00:00
Jenkins
ef14ee5905 Merge "[Devstack] Use openstack CLI instead of other clients" 2016-12-02 17:26:46 +00:00
Jenkins
3d135dcbac Merge "[Devstack] Fix DHSS=False setup for Generic driver" 2016-12-02 16:01:16 +00:00
Jenkins
10c2e9f712 Merge "[Devstack] Run tempest update in proper time" 2016-12-02 15:29:21 +00:00
Valeriy Ponomaryov
c549b202d2 [Devstack] Use openstack CLI instead of other clients
Switch manila devstack plugin for usage of only openstack client,
because other CLIs (such as neutron [1]) "are"/"going to be" deprecated
in favor of openstack client.

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

Change-Id: If06dfc2c79df4628e747ac28d0add8d4a223777c
Closes-Bug: #1644589
2016-12-02 11:42:17 +00:00
Valeriy Ponomaryov
8c5ed29ba6 [Devstack] Fix DHSS=False setup for Generic driver
Recent change to devstack [1] broke our DHSS=False CI job running
generic driver that was depending on ip route from host to
private network. So, to avoid this error use floating ip address
for connection to service Nova VMs from host machine.
Also, fix generation of second export location that should be dedicated
for service needs such as mounting share doing host-assisted
migration.

[1] If45e3fc15c050cfbac11b57c1eaf137dd7ed816f

Change-Id: Ieea992293ae02898741c939da15f0dbb4609d8b0
Closes-Bug: #1644523
Closes-Bug: #1646097
2016-12-02 14:33:56 +03:00
Jenkins
00859d1acf Merge "LOG marker mismatch in the code" 2016-12-01 17:45:12 +00:00
Valeriy Ponomaryov
cb15c82293 [Devstack] Run tempest update in proper time
Recent devstack change [1] changed order of installing things,
where tempest now is installed later than it was. So, run our
tempest updates later too, when tempest is installed.

Closes-Bug: #1646492

[1] I3d98692e69d94756e0034c83a247e05d85177f02

Change-Id: I85ca94455ad0b7882cde70c6ba0091f9f83f39b8
2016-12-01 15:39:48 +02:00
Goutham Pacha Ravi
f552549303 Fix wrong data type in database migration
The `deleted` column in volume_type_extra_specs was as a boolean;
The same column in share_type_extra_specs is an integer. However,
the code migrating from volume_types to share_types
assumes them to be vice-versa. This breaks downgrading from that
migration.

Further, the `id` column in share_type_extra_specs is a primary key
field of Integer datatype. Such fields have auto-increment turned on
by default; we shouldn't be copying the `id` from
volume_type_extra_specs when we copy the data.

Fix these bugs and add a unit test.

Change-Id: Ic32a8a17b1b6a773de6dcf7792d9b37f6aed4a3c
Needed-by: Ib0ad5fbfdf6297665c208149b08c8d21b3c232be
Closes-Bug: 1643535
2016-12-01 05:44:58 +00:00
Jenkins
7294b2d78e Merge "Move EMC drivers to dell_emc folder" 2016-11-30 16:18:50 +00:00
Jenkins
e8473e35c8 Merge "Remove unused function in db api" 2016-11-30 15:03:32 +00:00
Jenkins
b9f6a3f7ea Merge "[Dummy driver] Add possibility to set delays for driver methods" 2016-11-30 11:37:14 +00:00
Jenkins
b2b1efffc4 Merge "[hacking] Ensure not to use LOG.warn" 2016-11-30 10:48:49 +00:00
zhangyanxian
eabe8276b2 LOG marker mismatch in the code
For example:
in lvm.py "LOG.warning(_LI" should be "LOG.warning(_LW"

Change-Id: I3a4a95e6d3f2ba3cc9322d5924613827497f202c
Closes-Bug: #1645166
2016-11-30 06:58:09 +00:00
Ha Van Tu
8407f72c2c [hacking] Ensure not to use LOG.warn
This patchs ensures not to use LOG.warn because LOG.warn deprecated
in Python 3 [1], use LOG.warning instead.

[1] https://docs.python.org/3/library/logging.html#logging.warning

TrivialFix

Change-Id: I50e44a89092e0ee15f5be294837a87c321427921
2016-11-30 06:36:51 +00:00
Tom Barron
6a211b7cf5 Fix devstack smb configuration outside ubuntu
Some distros ship with /etc/samba/smb.conf already in
place, without /usr/share/samba/smb.conf.

Only copy /etc/samba/smb.conf from /usr/share/samba/smb.conf
if /usr/share/samba/smb.conf exists.

Change-Id: I22aeed317a94774ff03c1aadf6a65f5edb490837
Fixes-bug: 1645860
2016-11-29 18:05:28 -05:00
Jenkins
845ba22619 Merge "Fix share writable in host-assisted migration" 2016-11-29 22:09:55 +00:00
Rodrigo Barbieri
ec0cda28cd Fix share writable in host-assisted migration
For drivers that implement update_access always through recovery
mode, access rules previously set to read-only were being reset
to read-write when the Data Service was adding/removing its access
rule.

Fixed it by integrating the logic that casts DB rules to read-only
into access helper class.

Change-Id: Ife35dcdb99dffa2f266b5c2f6a68fe163da7edd3
Closes-bug: #1626523
2016-11-29 16:55:32 -02:00
Marc Koderer
5cdb0bf2a0 Remove unused function in db api
Remove old function that was used in cinder but
not in manila.

Trivial-fix

Change-Id: I72dccc21391973e012a2b6b678cff865184592dc
2016-11-29 10:52:35 +01:00
Ha Van Tu
6e906bacd9 [api-ref] Refactor Manila scheduler stats API
This patch makes the scheduler stats API reference more readable
and maintainable.

Change-Id: I78aeb7e273abc86922de2e69e4c6b0a2e75d0c1c
2016-11-29 10:19:37 +07:00
Jenkins
b05900b422 Merge "hacking: Use uuidutils to generate UUID" 2016-11-28 22:06:02 +00:00
Pan
eeef132269 TrivialFix: Remove Duplicate Keys
Removing duplicate keys from the tests

Change-Id: I299b9cf4a7b860ce16de6617dd5b4b551c3d985e
2016-11-28 12:48:36 -05:00
Jenkins
d2b491154b Merge "Show team and repo badges on README" 2016-11-25 19:34:19 +00:00
Jenkins
5328719185 Merge "[api-ref] Refactor Manila snapshot API" 2016-11-25 13:45:38 +00:00
Flavio Percoco
9716042318 Show team and repo badges on README
This patch adds the team's and repository's badges to the README file.
The motivation behind this is to communicate the project status and
features at first glance.

For more information about this effort, please read this email thread:

http://lists.openstack.org/pipermail/openstack-dev/2016-October/105562.html

To see an example of how this would look like check:

b'https://gist.github.com/d281d3e7bd4da998ab834a085c1ba7b3\n'

Change-Id: I32e2e2a045130f9d229c8de459dc7d52d5eac928
2016-11-25 12:39:22 +01:00
Jenkins
2ad181cffc Merge "Add Admin network support to HNAS driver" 2016-11-24 12:45:40 +00:00
Jenkins
69802e44d5 Merge "Fix wrong instructions in the install guide" 2016-11-24 01:59:09 +00:00
Goutham Pacha Ravi
3ee1da619c Fix wrong instructions in the install guide
DHSS=False does not imply lack of support for
share management, it implies lack of support for
share server management.

TrivialFix

Change-Id: Idd5b041d102d728212e0d171df605b90b4ff75d3
2016-11-24 01:56:38 +05:30
Jenkins
608eea570e Merge "Replace 'assertEqual(None, ...)' with 'assertIsNone(...)'" 2016-11-23 18:28:40 +00:00
Jenkins
5592844649 Merge "Update .coveragerc after the removal of openstack directory" 2016-11-23 15:58:42 +00:00
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