1188 Commits

Author SHA1 Message Date
Jenkins
a327dcfb50 Merge "cDOT driver should split clone from snapshot after creation" 2015-04-02 21:33:25 +00:00
Clinton Knight
d37f44f04a cDOT driver should split clone from snapshot after creation
When the cDOT driver receives a create_share_from_snapshot command,
it clones the share/flexvol from the specified snapshot in the
parent share/flexvol.  But if the resulting clone is not split
from its parent, the snapshot remains busy and may not be deleted.
This is resolved by starting a clone split operation anytime a
clone is created.

During the split operation, which usually completes within
seconds, the snapshot remains busy.  This patch detects that
condition in the snapshot delete path and waits up to a minute
for the busy condition to clear.

Change-Id: I44bac106f7f7a1acc968c1d9a526dcef85f657b7
Closes-Bug: #1259988
2015-04-02 17:16:17 +00:00
Jenkins
e7259cb867 Merge "Replace SQL code for ORM analog in DB migration scripts" 2015-04-02 13:51:49 +00:00
Jenkins
02083bd11e Merge "Add initial scenario test for Manila" 2015-04-02 13:01:06 +00:00
Valeriy Ponomaryov
bf7fc87067 Replace SQL code for ORM analog in DB migration scripts
Replace explicit usage of SQL code with appropriate analog of ORM.
It allows to keep abstraction between DB and python clear without
potential incompatibilities due to differencies in SQL dialects.

Change-Id: Ied97264cafcec0bcebd4c3ddc7b29185825c56a6
Closes-Bug: #1437278
2015-04-01 12:29:54 +03:00
Jenkins
3e6ef365c9 Merge "NetApp cDOT drivers should not start without aggregates" 2015-04-01 07:48:19 +00:00
Jenkins
81b3253f37 Merge "IBM GPFS Manila Driver Docs - update" 2015-04-01 04:19:11 +00:00
Jenkins
94fbba0bf6 Merge "Delete skipped tempest tests that won't be enabled" 2015-04-01 03:58:19 +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
Clinton Knight
e28194f4c2 NetApp cDOT drivers should not start without aggregates
A common user error with the single-SVM cDOT driver is failing to
assign aggregates to the storage virtual machine (aka vserver) used
by the driver.  The driver should fail fast if there are no available
aggregates for share provisioning.

We want the multi-SVM driver to fail fast as well, if only for
consistency and to alert an admin of a problem with the
netapp_aggregate_name_search_pattern regex in manila.conf.

Change-Id: I2a2015bd07b68177b0a5e7ac322ffa50b3b41c7d
Closes-Bug: #1433871
2015-03-31 14:15:17 +00:00
Nilesh Bhosale
a4300a4fe6 IBM GPFS Manila Driver Docs - update
Minor update, as per the review comments on previous doc change.
Moving Ganesha protocol version support statement from
'Known Restrictions' to 'Requirements' section.

Change-Id: I870146a68691143af6b5ca51fb41eb390af12de6
Implements: blueprint gpfs-driver
2015-03-31 14:40:27 +05:30
Li, Chen
b566f5ef61 Switch to v2 version of novaclient
Currently v1_1 version of novaclient is deprecated, so it's required
to switch for v2 version of novaclient.

Change-Id: I824e8659febfeb86721b610a03a8c3027042cb3d
2015-03-31 17:05:07 +08:00
Jenkins
4120482b3c Merge "NetApp cDOT multi-SVM driver should work with non-VLAN networks" 2015-03-30 22:14:55 +00:00
Jenkins
4c80ac048c Merge "NetApp cDOT multi-SVM driver should not start with cDOT 8.3" 2015-03-30 22:11:30 +00:00
Jenkins
bb69d86249 Merge "Fix deletion of export locations" 2015-03-30 22:11:21 +00:00
Jenkins
00f0db3072 Merge "Forbid unmanage operation for shares with snapshots" 2015-03-30 18:57:50 +00:00
Jenkins
0ebebd954b Merge "Backslashify CIFS share export paths for Generic" 2015-03-30 18:17:33 +00:00
Ben Swartzlander
4d4eb25836 Backslashify CIFS share export paths for Generic
In order to be consistent with other Manila drivers, change the
generic driver to return export paths with backslashes instead of
forward slashes.

Change-Id: Ibba236e4fcc5aaf88bee8898b51eedd4852f5aae
Closes-bug: #1434816
2015-03-30 12:23:49 +00:00
Jenkins
6e4f3b31db Merge "Fix setting of share name and description with manage API" 2015-03-30 05:22:13 +00:00
Clinton Knight
dd34b6dda9 NetApp cDOT multi-SVM driver should work with non-VLAN networks
This cDOT multi-SVM driver is coded to always create VLANs on
physical ports prior to creating logical interfaces (LIFs).  Given
the new network plug-ins in Kilo, StandaloneNetworkPlugin and
NovaNetworkPlugin, the cDOT plug-in must be fixed to allow
creating LIFs on non-VLAN ports.

Closes-Bug: #1434919
Change-Id: Ie9f30774b5191876bd42a1d502493e4e8e3ceeb3
2015-03-28 01:43:54 +00:00
Clinton Knight
eec09463db NetApp cDOT multi-SVM driver should not start with cDOT 8.3
The multi-SVM cDOT driver that ships with Kilo does not support the
8.3 cDOT release.  The driver should fail fast if 8.3 is detected.

Change-Id: Iac7bafd101f0b0ad190a49cd2bba79bd25dee028
Related-Bug: #1425754
Closes-Bug: #1433872
2015-03-28 01:42:13 +00:00
Xing Yang
5299da9e22 Fix CIFS export format in EMC VNX driver
The EMC VNX driver returns CIFS paths in the form: //server/share.
It should be \\server\share. This patch fixed it.

Change-Id: I3d53a2e01cf673a50f9a1e951a29ce29b4cd4f66
Closes-Bug: #1434817
2015-03-27 17:25:38 -04:00
Valeriy Ponomaryov
8bebec39d2 Forbid unmanage operation for shares with snapshots
Shares with snapshots should not be able to be deleted or unmanaged.
But Manila does not make verification for presence of snapshots for share
that is requested to be unmanaged.

Change-Id: I8a58cb3e801ac123b153177e316b712ee999142e
Closes-Bug: #1437269
2015-03-27 19:46:03 +02:00
Valeriy Ponomaryov
5ee705b005 Fix deletion of export locations
Export locations stored in separate table are not deleted. Never.
Fix it for two cases: when share deletion is performed and export locations
update operation that 'share driver's do.

Change-Id: I7b66c8843647862e398e71898ac258f07f264e3a
Closes-Bug: #1435313
2015-03-27 18:41:49 +02: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
e80833874b Merge "IBM GPFS Manila Driver Docs" 2015-03-25 13:19:52 +00:00
Jenkins
0310db062b Merge "Fix setting of extra specs for share types" 2015-03-25 13:14:59 +00:00
Jenkins
f1d88c3233 Merge "Fix common misspellings" 2015-03-25 12:38:24 +00:00
Jenkins
8951bdcd6a Merge "Huawei NAS driver returns CIFS export locations in wrong format" 2015-03-25 00:56:48 +00:00
Jenkins
9d9ed1ba04 Merge "HP 3PAR driver documentation" 2015-03-24 23:17:32 +00:00
Mark Sturdevant
96c8fef839 HP 3PAR driver documentation
This adds the HP 3PAR driver developer reference.

Change-Id: I189ae264fcfd9bfd95f86f30f42fcdb237e262da
2015-03-24 11:39:01 -07: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
Jenkins
7eafabd6bb Merge "Add share state verification for API 'unmanage'" 2015-03-24 04:48:45 +00:00
zhongjun
2c68d605a5 Huawei NAS driver returns CIFS export locations in wrong format
Change CIFS export paths "192.168.1.1:/path/" to
"\\192.168.1.1\path".

Change-Id: Iccae4685197c046efea7b5bc4ccc58c69b090597
Closes-Bug: #1434218
2015-03-23 18:35:04 -07:00
Nilesh Bhosale
5ccfe81eea IBM GPFS Manila Driver Docs
Adding documentation for the IBM GPFS Manila driver.

Implements: blueprint gpfs-driver

Change-Id: Idc098ca1005c59e80df212285e5bfb523e36376b
2015-03-23 22:35:09 +05:30
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
Jenkins
3f4b193afc Merge "Updated from global requirements" 2015-03-23 02:31:21 +00:00
Valeriy Ponomaryov
a0703047d5 Add share state verification for API 'unmanage'
Shares with transitional states like 'creating' or 'deleting' should not be
allowed to be unmanaged.
For the moment "manage/unmanage" operation is allowed only for driver mode
without handling of share servers. So, API operations against shares created
on top of share servers should be restricted on API level.

Change-Id: I73b554448eadcb96ef00f44535014e14dea91472
Closes-Bug: #1434642
Closes-Bug: #1434511
2015-03-22 20:54:56 +02:00
Jenkins
449eef25df Merge "Deal with PEP-0476 certificate chaining checking" 2015-03-22 17:12:40 +00:00
Jenkins
2b20be2930 Merge "Make generic driver update export location after manage operation" 2015-03-22 17:12:11 +00:00
OpenStack Proposal Bot
ae2eec31ae Updated from global requirements
Change-Id: I26a22f6cfaf84d4523699bf9bfa5b017cdacb16e
2015-03-22 16:03:09 +00: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
Jenkins
4ef68d2964 Merge "Imported Translations from Transifex" 2015-03-20 04:10:32 +00:00
Valeriy Ponomaryov
d47e03779c Make generic driver update export location after manage operation
Recently was added support of manage/unmanage operations to deneric driver.

But it does not update export locations according to server info.
So, make driver update it and add appropriate change to share manager to
expect export locations.

Change-Id: I50726ce0b82b50363f5651ffced8b6cb9f0d853f
Closes-Bug: #1434009
2015-03-19 18:12:52 +02:00
James Page
e687499f43 Deal with PEP-0476 certificate chaining checking
PEP-0476 introduced more thorough certificate chain verfication
for HTTPS connectivity; this was introduced in Python 2.7.9, and
breaks a number of unit tests in the manila codebase.

Disable certificate chain verification for SSL tests
using the backwards compatible SSLContext provided for this
purpose.

Change-Id: I512e4bd5a10fcfdf6241329dbd1eae6e9350854b
Closes-Bug: #1403068
2015-03-19 10:39:22 +00:00
Valeriy Ponomaryov
62cf3256d5 Fix manage operation in generic driver
Recently was added support of manage/unmanage functionality to generic driver.
See change: I8767a7af75d575c57e8708563fa4a6bf2f4aa8ad

Changes here should had been included to mentioned commit, but were not by
mistake. Without this change manage/unmanage functionality does not work
using generic driver.

Change-Id: Ib034a1715351cbcd71a61a013571427af0b14492
Closes-Bug: #1433973
2015-03-19 12:18:33 +02:00
OpenStack Proposal Bot
38db874c65 Imported Translations from Transifex
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I535716ff9050ab7bcf9a7a31d4addc3f89ab3884
2015-03-19 06:09:25 +00:00
Jenkins
20e590e8b3 Merge "Implement manage/unmanage support in generic driver" 2015-03-19 04:53:53 +00:00