3068 Commits

Author SHA1 Message Date
Jenkins
fdd8cd808a Merge "Fix access rules for managed shares in HSP driver" 2016-09-14 19:56:41 +00:00
Jenkins
a97983dd0e Merge "Put all imports from manila.i18n in one line" 2016-09-14 15:04:07 +00:00
Jenkins
79a345f9d6 Merge "huawei driver default create thin type share" 2016-09-14 13:46:21 +00:00
zzxwill
fb44a0a49e Put all imports from manila.i18n in one line
Put '_', '_LW', '_LI', '_LE' from manila.i18n in one line
to make it beautify. Nova, neutron and many other projects
follow this rule. Like
bc5035343d/nova/virt/disk/mount/nbd.py
ee42af1011/neutron/cmd/ipset_cleanup.py
(added more files)

Change-Id: If7ed442ebe946b32b3234ce37b38ee3a5ccbcb39
2016-09-14 06:07:33 +00:00
Alyson Rosa
b29a0e553f Fix access rules for managed shares in HSP driver
A share managed in HSP could have some access rules that
are not in Manila. Trying to add a rule that already exists
in backend results in an error. Also, rules in backend that
names are not "share_id + ip" can't be deleted.
Additionally, if this share has a rule only in backend and not in
Manila, trying to delete it would fail, because HSP doesn't allow
delete share when it still has rules.

Fix it by adding a check in update access when rules already
exist in backend. Check for access rule name in backend when
denying access. And cleaning all rules from backend before
deleting a share to ensure that it has no children in HSP.

Change-Id: I0c8ee5c47efe22f004692022dd952f301d669b06
Closes-Bug: #1620756
2016-09-13 21:09:33 -03:00
Jenkins
3f922aab6e Merge "glusterfs: handle new cli XML format" 2016-09-13 20:46:53 +00:00
Jenkins
3eb24b54c6 Merge "Fix for LV mounting issue in docker containers" 2016-09-13 17:19:31 +00:00
Jenkins
2559043bf9 Merge "Fix flaky Neutron port binding unit tests" 2016-09-13 16:55:20 +00:00
Jenkins
e7d27ffc02 Merge "[docs] Update dev docs for ZFSonLinux share driver" 2016-09-13 14:30:49 +00:00
Jenkins
8c5882d859 Merge "Fix useless statements in unit tests" 2016-09-13 14:29:52 +00:00
Alexey Ovchinnikov
0a40a64224 Fix for LV mounting issue in docker containers
Docker containers were previously started with insufficient
privileges to successfully mount a LV created on host.
This change fixes this problem.

Closes-Bug: 1613675
Change-Id: I63f3480ace3be70100a245570d7f3579b333e972
2016-09-13 17:18:03 +03:00
Clinton Knight
f240f77b58 Fix flaky Neutron port binding unit tests
A couple unit tests were attempting to test a wrapped method,
and the tests failed randomly. It is straightforward, and preferable,
to test the code with the decorator as it is called during normal
operation.

Change-Id: If0b92adcf974b4509424912f5fde1cf26ebfaf48
Closes-bug: #1622998
2016-09-13 09:25:16 -04:00
Rodrigo Barbieri
696a7bb211 Fix useless statements in unit tests
Fixed a few useless statements missing asserts in
unit tests.

TrivialFix

Change-Id: Ia6f6360aab0ad98269f499eeb7b0635ce514012f
2016-09-13 10:20:51 -03:00
vponomaryov
13f97a402c [docs] Update dev docs for ZFSonLinux share driver
Update existing ZFSonLinux share driver devdoc with Newton release
updates.

Change-Id: Iaf6066e335971b13226ac6fa1b971458e215a657
2016-09-13 11:03:49 +03:00
vponomaryov
e24e6e7504 [ZFSonLinux] Add test coverage for share migration
Big part of share migration feature in ZFSonLinux share driver
is not covered with unit tests. So add it.
Also, add reno releasenote saying that driver now supports share
migration.

Change-Id: I558d4c6a0802b6a0156416b3c9b481181a55298c
Closes-Bug: #1621068
2016-09-13 10:48:36 +03:00
Jenkins
87bba8f59e Merge "Fix typo in response status code" 2016-09-13 03:09:26 +00:00
Jenkins
5ea7c0e149 Merge "Updated from global requirements" 2016-09-13 03:09:19 +00:00
Jenkins
f823d049fb Merge "HPE 3PAR: file share support of AD in devref" 2016-09-13 02:49:46 +00:00
Jenkins
0a2fcb86bd Merge "NetApp cDOT driver autosupport broken" 2016-09-12 18:32:47 +00:00
Clinton Knight
91b1d2ce53 NetApp cDOT driver autosupport broken
The autosupport functionality of the NetApp cDOT driver is not working
with Python 2.7.12, the default in Xenial. Root cause is a deep copy
of the controller connection context, which includes some SSL context
stuff that doesn't play well with copy.deepcopy. So we can do a shallow
copy instead.

Change-Id: Ia2adc4ce27834e384e6d994fcb012ebf1d97c85c
Closes-Bug: #1621260
2016-09-12 13:48:29 +00:00
zengyingzhe
d0e2380324 huawei driver default create thin type share
Currently, huawei driver will use the "AllocType" configuration
or default "thick" type to create share, if "thin-provisioning"
not specified in share_type, but scheduler default uses thin
type in this situation, so huawei driver isn't consistent with
scheduler.

This patch removes the "AllocType" configuration from huawei
driver configuration file and default use "thin" type if
"thin-provisioning" not given.

Depend on change I238a7962425ea35c356c5ed2e31b8f68462b3769.

DocImpact
Change-Id: I5b7128657e089113da44bc862e9c864de2ec59b2
Closes-Bug: #1609718
2016-09-12 14:23:55 +08:00
stack
acdf0325f7 HPE 3PAR: file share support of AD in devref
Updating hpe_3par_driver document with manila file share
support using AD user.

Change-Id: If12f83e10b658beb2d59a05f38804706f22cd62d
2016-09-11 21:08:10 -07:00
Jenkins
29c05e72f5 Merge "[ZFSonLinux] Fix share migration support" 2016-09-10 15:47:07 +00:00
OpenStack Proposal Bot
ee1d5348f7 Updated from global requirements
Change-Id: Ie9b23a82739fb253c4b21b184a23546cde776ea1
2016-09-09 22:47:54 +00:00
Jenkins
92b26e4c8b Merge "standardize release note page ordering" 2016-09-09 20:54:55 +00:00
Jenkins
4e88537958 Merge "Add provisioned_capacity_gb estimation" 2016-09-09 20:47:01 +00:00
Csaba Henk
58be1ef71a glusterfs: handle new cli XML format
Change http://review.gluster.org/14931,
debuting in GlusterFS 3.7.14 has changed the
XML output emitted by the gluster command
line interface. Here we implement parsing
for the new variant as well.

Change-Id: Ia9f340f1d56c95d5ebf5577df6aae9d708a026c0
Closes-Bug: 1609858
2016-09-09 08:25:25 +02:00
nidhimittalhada
af7739aea2 Add provisioned_capacity_gb estimation
Currently 'provisioned_capacity_gb' is expected from
the drivers as part of capability reporting.
If driver does not provide it, it defaults to 'allocated_capacity_gb'.
But if driver does not provide both 'allocated_capacity_gb' and
'provisioned_capacity_gb' then 'provisioned_capacity_gb' defaults to 0.
Which affects later calculation of  'provisioned_ratio'.

Hence fixing it by summing up sizes of all the shares of
that host and taking that as 'provisioned_capacity_gb',
in such case.

Change-Id: I844d176eb6f0f5e7b0eb3cbd66c4b413b6757f51
Closes-Bug: #1606691
2016-09-09 11:55:01 +05:30
Nguyen Phuong An
8118e24826 Fix typo in response status code
This patch fixes a typo error in response status code of
api-ref/source/quota-sets.inc

TrivialFix

Change-Id: I691c80b99b7d86278259fddff59d6aaf26d7bdd5
2016-09-09 10:04:58 +07:00
Jenkins
a7dc61e425 Merge "share-size not set to 1 with 'manage_error' state" 2016-09-08 21:46:47 +00:00
Jenkins
fce9f673a0 Merge "Fix race condition updating routes" 2016-09-08 19:51:42 +00:00
Doug Hellmann
6b1fed7117 standardize release note page ordering
In order to support automatically updating the release notes when we
create stable branches, we want the pages to be in a standard order.
This patch updates the order to be reverse chronological, so the most
recent notes appear at the top.

Change-Id: Ib364dcc8eb31275a31c83b68d7914263b183e393
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2016-09-08 14:54:22 -04:00
Jenkins
bd3ea3be59 Merge "Update to tempest 12.2.0" 2016-09-08 16:44:55 +00:00
Jenkins
9abc9573de Merge "Config logABug feature for Manila api-ref" 2016-09-08 14:14:54 +00:00
Rodrigo Barbieri
3e96712c47 Fix race condition updating routes
Generic driver updates routes on host according to the tap
interfaces created for use by share servers. That code
should be within a lock to prevent a thread failing to delete
a route previously listed and already deleted by another thread.

This change moves an existing lock to the function that
performs route changes while also covering the function
that had the lock before.

Closes-bug: #1617461

Change-Id: I798e5d9b0bc9ebefc8661d0ade720c60303cf484
2016-09-08 10:40:58 -03:00
nidhimittalhada
e8d2b34dd7 share-size not set to 1 with 'manage_error' state
Currently, when we set share-state to 'manage-error', share-size
is set to 1 at all places except this one. Which results in error
logged during delete-share, w.r.t quota.

This fix sets share-size to 1 when share state is
set to 'manage_error'.

Change-Id: I96343ffd4f273b01c0376713717cdc89ea9a873a
Closes-Bug: #1587636
2016-09-08 13:57:41 +05:30
Ha Van Tu
24a160907f Config logABug feature for Manila api-ref
Currently, Manila api-ref is configured with logABug feature.
When users click "Report bug" button, it leads to "openstack-manuals"
which is default. We should change it to "manila".

Change-Id: I15d9ce4cc6f9648f49f6ad66de766aa55cab6cbb
2016-09-08 10:25:03 +07:00
Goutham Pacha Ravi
8cc148fe91 NetApp cDOT: Avoid cleaning up 'invalid' mirrors
NetApp cDOT SnapMirrors cannot be established from one
FlexVol to itself, however, the cDOT driver issues ZAPIs to
delete/release SnapMirrors between the volume and itself.

Avoid this behavior and add unit test coverage.

Change-Id: I8ca096dfe8463511595a67cbea3ca31a80c0e5fb
Closes-Bug: #1578328
2016-09-07 19:46:50 +00:00
Valeriy Ponomaryov
a5c2297ded [ZFSonLinux] Fix share migration support
Current implementation of share migration works only if we use
local shell executor. So, refactor approach for it to make work
with both shell executors - local and remote (SSH).

Change-Id: Ibe31bf52006040ea26badfa7236ed67559f7aded
Closes-Bug: #1620502
2016-09-07 18:36:55 +03:00
Tom Barron
7fded233f3 Update to tempest 12.2.0
Tempest 12.2.0 was recently released and manila tempest plugin runs
just fine with it.

Update tempest in our CI to use tempest at the commit corresponding to
this tag.

Change-Id: Ia00670a5cf0b52a41fa0d3cd9a82cd81f7802155
2016-09-06 22:27:03 +00:00
Jenkins
7a16eb685b Merge "Correct reraising of exception" 2016-09-03 13:12:52 +00:00
Jenkins
df008f20b5 Merge "Add documentation for EMC Unity Driver for Manila" 2016-09-03 12:19:03 +00:00
Jenkins
108d3b177d Merge "Add missing filter function in HSP driver" 2016-09-02 17:57:48 +00:00
Marc Koderer
8328ebde24 Add multi-segment support
Neutron ML2 mechanisms allows multiple network segments. A net-show
call with a multi-segment setup won't return a single network-type
or segmentation id. Instead it returns a list of it with a certain
hierarchy.

Co-Authored-By: Daniel Gonzalez <daniel@gonzalez-nothnagel.de>
Change-Id: I3570752920d897c11cacb9e4a0b0d012ae2ce13a
Partially-Implements: bp manila-hpb-support
2016-09-01 20:58:18 +00:00
Jenkins
345b8021ec Merge "Add binding_profile option for backends" 2016-09-01 20:56:23 +00:00
Jenkins
531139a759 Merge "Nexenta: adding share drivers for NexentaStor" 2016-09-01 20:31:55 +00:00
Jenkins
d2201f800b Merge "Unity: Use job for NFS share creation" 2016-09-01 15:50:28 +00:00
Marc Koderer
105e55ce9a Add binding_profile option for backends
In order to do port binding of physical ports it must be
specified which switch and switch_port are used. It is
expected for HPB that the neutron driver handles the
logic of dependent core switches.

Co-Authored-By: Daniel Gonzalez <daniel@gonzalez-nothnagel.de>
Change-Id: I08a889a3bff6289397aaed59846e893ba5df36e3
Partly-implements: bp manila-hpb-support
2016-09-01 12:36:25 -03:00
Alexey Khodos
1fd7e88191 Nexenta: adding share drivers for NexentaStor
Share drivers to support NexentaStor4 and NexentaStor5 via
NFS protocol. Supports all minimal required features.

Implements: blueprint nexenta-manila-driver

DocImpact

Change-Id: Ib8b8525397626162968458ec837f9239ff5dbb2b
2016-09-01 18:06:14 +03:00
Jenkins
44990d0ccb Merge "Remove enable_v1_api and enable_v2_api config opts" 2016-09-01 14:53:00 +00:00