2192 Commits

Author SHA1 Message Date
Jenkins
5a4a029e44 Merge "Replace deprecated [logger/LOG].warn with warning" 2016-01-09 05:32:59 +00:00
Jenkins
5b2b6f33d7 Merge "glusterfs/vol layout: remove manila-created vols upon delete_share" 2016-01-09 01:11:52 +00:00
vponomaryov
08e2a666bc Make Manila UI be installed after Horizon
Recent devstack change [1] made Horizon be installed at later point than it
was. It is inconsistent with our Devstack plugin that now installs Manila UI
earlier than Horizon. So, postpone installation of Manila UI until Horizon
exists and fix gates by this action.

[1] I8bf2ceaf7734c4f7cec68bc05d7cdbae81ef311e

Change-Id: Icb2fc77235cb7f6ec4349dacddf262c3e3be76c2
Closes-Bug: #1532300
2016-01-08 22:56:37 +02:00
Jenkins
42ca76e4f1 Merge "Drop MANIFEST.in - it's not needed with PBR" 2016-01-08 08:03:09 +00:00
Jenkins
809a200502 Merge "EMC Isilon Driver Doc Update for Extend Share" 2016-01-08 07:02:26 +00:00
Jenkins
1b0478cf70 Merge "[docs] Fix table elements view on page with list of supported features" 2016-01-08 07:01:54 +00:00
Jenkins
8aec6ac7a7 Merge "Refactor share metadata tests to use DB" 2016-01-08 05:29:45 +00:00
Jenkins
7e6108c967 Merge "Change assertTrue(isinstance()) by optimal assert" 2016-01-08 05:29:17 +00:00
Valeriy Ponomaryov
7319e0fe6f Refactor share metadata tests to use DB
For the moment tests in 'manila.tests.api.v1.test_share_metadata' module
mock all DB requests.
It leads to failures in main code if we use DB-specific things.
So, refactor all tests in that module to use test DB to unblock usage of
DB-specific things.

Change-Id: Ia584e3e6bd02f937df7630a1d09d49c888f77c8f
Partial-Bug: #1528227
2016-01-08 02:51:36 +00:00
Jenkins
b15a29e1e3 Merge "glusterfs: document Gluster NFS misbehavior" 2016-01-08 02:41:31 +00:00
huayue
44fc3021d4 Replace deprecated [logger/LOG].warn with warning
Python 3 deprecated the logger.warn method, see:
https://docs.python.org/3/library/logging.html#logging.warning, so we
prefer to use warning to avoid DeprecationWarning.

Change-Id: I6b09f67bb63fbdf31903ec175db012fc50e87f16
Closes-Bug: 1508442
2016-01-08 10:32:47 +08:00
Jenkins
5f4978c506 Merge "Add snap reserve config option to NetApp cDOT driver" 2016-01-07 22:40:16 +00:00
Jenkins
669211c7f2 Merge "Use constants instead of literals in Huawei Driver" 2016-01-07 20:24:59 +00:00
Jenkins
1a40137f2b Merge "Fix unit test of ShareSnapshotNotFound" 2016-01-07 20:24:29 +00:00
Jenkins
0a4eb03858 Merge "Fix handling of Novaclient exceptions" 2016-01-07 16:47:42 +00:00
Clinton Knight
11ef510229 Add snap reserve config option to NetApp cDOT driver
By default, Data ONTAP sets the snapshot reserve for a share to
5%.  Some users have requested a facility to override the default
for applications where snapshots aren't required. This commit adds
a config option for setting a different snap reserve value for a
specific cDOT backend.

Change-Id: Iba0bf696035353fac87f445f690bb94fa00ae0a0
Implements: blueprint netapp-cdot-snap-reserve-config-option
2016-01-07 14:53:49 +00:00
OpenStack Proposal Bot
d881a210e7 Updated from global requirements
Change-Id: I34d536db2555b647bf437540789ec0b5423e3b60
2016-01-07 14:00:43 +00:00
Jenkins
e1c8f26f60 Merge "Trivial: Remove unused logging import" 2016-01-07 13:12:56 +00:00
Jenkins
6ece846b65 Merge "Use isoformat() instead of timeutils.strtime()" 2016-01-07 11:12:41 +00:00
vponomaryov
f4a00c5965 Fix CI Tempest jobs
After merge of change [1] to devstack project, preconfigured creds for
Tempest cannot be used anymore. But Manila requires such.
For the moment, latest Tempest interfaces cannot allow us to use
preconfigured creds because of bug #1524717.
So, until this bug fixed, we should workaround Devstack changes and
set legacy opts explicitly.

Also, redefine new Nutron option 'dnsmasq_local_resolv' to 'False' value,
that is 'True' by default and was added in change [2].
Default value causes Nova operations initiated by Manila be very slow.
That leads to breakage of CI.

[1] I65b56ff681d6c27094380693c953fbc3664eceb0
[2] I17a884f467d307432a06f67a9dd93ed2fa6081a3

Change-Id: I516a6c9ab4396b14e3984d5f810210e4fcf7ec85
Related-Bug: #1531049
Closes-Bug: #1530847
2016-01-07 00:52:32 +02:00
Csaba Henk
52bfb25a51 glusterfs/vol layout: remove manila-created vols upon delete_share
With volume layout the volume we use to back a share can
be pre-created (part of the volume pool provided for Manila),
or can be created by Manila (that happens if share is created
from snapshot, in which case the volume is obtained by performing
a 'snapshot clone' gluster operation).

In terms of resource management, pre-created volumes are owned
by the pool, and Manila cloned ones are owned by Manila. So
far we kept all the volumes upon giving up its use (ie. deleting
the share it belonged to) -- we only ran a cleanup routine on them.
However, that's appropriate action only for the pool owned ones.
However, the ones we own should rather be extinguished to avoid
a resource leak. This patch implements this practice by marking
Manila owned volumes with a gluster user option.

Closes-Bug: #1506298
Change-Id: I165cc225cb7aca44785ed9ef60f459b8d46af564
2016-01-06 09:02:53 +01:00
liucheng
49761cd38a Use constants instead of literals in Huawei Driver
We judged filesystem alloctype by literals,
now we change these literals to constants.

Change-Id: Iaeb64ed83b4c44e3e7d150c615ad03f8b1b4ce90
Closes-Bug: #1529015
2016-01-06 14:30:08 +08:00
daiki kato
efc47cf3cf Fix unit test of ShareSnapshotNotFound
Unit test of ShareSnapshotNotFound isn't executed actually.
This patch fixes it.

Change-Id: I1210b10998ee9ab2c1642036747f06902239f0be
2016-01-05 06:56:07 +00:00
vponomaryov
95940a4085 Fix handling of Novaclient exceptions
If Novaclient returns exception, then Manila wrapper for Novaclient
fails with following error:

File "/opt/stack/new/manila/manila/compute/nova.py", line 160, in wrapper
    return res
UnboundLocalError: local variable 'res' referenced before assignment

So, fix it and cover with unit tests.

Change-Id: I5eec4b9e9f3857307daa2ade516f76c044c01631
Closes-Bug: #1530811
2016-01-04 12:46:03 +02:00
hparekh
04a7a3320f Drop MANIFEST.in - it's not needed with PBR
Manila uses PBR already - as you can see setup.py:

 setuptools.setup(
     setup_requires=['pbr'],
     pbr=True)

so that, we no longer need MANIFEST.in.

Change-Id: I40794e6eca1daf6c679b1574d2e630e4d78df19b
2016-01-04 00:06:59 +00:00
Jenkins
f1c096418d Merge "Replace deprecated library function os.popen() with subprocess" 2016-01-02 19:38:39 +00:00
Jenkins
34e6818bf7 Merge "Keep py3.X compatibility for urllib" 2016-01-02 18:30:18 +00:00
Harshada Mangesh Kakad
7fb5d6b406 Replace deprecated library function os.popen() with subprocess
os.popen() is deprecated since python 2.6. Resolved with use of
subprocess module.

Change-Id: I09f69b57b6dad10a5a6034b39d70f7ab3141bc2a
Closes-Bug: #1529836
2015-12-31 06:58:39 -08:00
Shuquan Huang
75e7b788a4 Change assertTrue(isinstance()) by optimal assert
Some of tests use different method of assertTrue(isinstance(A, B)) or
assertEqual(type(A), B). The correct way is to use assertIsInstance(A,
B) provided by testtools.

Change-Id: I9053c9deaa71ee12e10db73b19250b3a32f3d93c
Closes-bug: #1268480
2015-12-31 16:14:44 +08:00
Shaun Edwards
ba3d62f349 EMC Isilon Driver Doc Update for Extend Share
Updated the devref doc for the EMC Isilon Driver.

Change-Id: I53816a28a1babd1e2ed15c95baadfbe22c1f5b02
Implements: blueprint emc-isilon-driver-extend-share
2015-12-30 15:55:33 -08:00
vponomaryov
3ff9b1e5ba [docs] Fix table elements view on page with list of supported features
Doc file called 'share_back_ends_feature_support_mapping' contains
several table elements separation lines that are inconsistent with
table structure interpreter. So, replace wrong places with correct
ones.

Trivial-fix.

Change-Id: I2ae79911dd49629d5e452acd8e909331b82ef076
2015-12-30 16:19:05 +02:00
Jenkins
0af7c9649b Merge "Set timeout for parmiko ssh connection" 2015-12-30 03:14:51 +00:00
Jenkins
74f97548c9 Merge "Fix wrong flake8 exception and pep8 violations" 2015-12-29 22:12:50 +00:00
houming-wang
3cb2500722 Trivial: Remove unused logging import
In some Manila source code files, oslo log is imported but not used.
Remove it.
from oslo_log import logging
LOG = logging.getLogger(__name__)

Closes-Bug: #1529254
Change-Id: I06a98b4929e2adb5c43c754799026d4637107bd7
2015-12-28 21:44:26 -05:00
darkwsh
f6d54dde0c Set timeout for parmiko ssh connection
Set manila-server connection timeout enabled via configuration
file on generic driver to prevent ssh connections getting
stuck if manila-server is slow in responding or some network
problems occur.

Closes-Bug: #1528203
Change-Id: Icd72c561aa37fad447e3f6e1eade3b2f57d74521
2015-12-27 17:14:36 -08:00
houming-wang
9a74a01855 Fix wrong flake8 exception and pep8 violations
In the tox.ini, [flake8] section, "exclude =
.venv,.tox,dist,doc,openstack,*egg". From this rule, all 'openstack'
directories are excluded. This rule is intended to exclude
manila/openstack/common code check, but this is wrong
because it also exclude checks against manila/api/openstack and
manila/tests/api/openstack. We should fix it

Change-Id: Ie820e3931e83a82c40b0d9b9d943787a5d6ec363
Closes-Bug: #1529092
2015-12-24 21:45:39 -05:00
Jenkins
a921e2574a Merge "EMC VNX: Fix the interface garbage in VNX backend" 2015-12-25 00:34:14 +00:00
Jenkins
2cc722e125 Merge "Move the config environment variables into devstack/settings file" 2015-12-25 00:34:08 +00:00
Jenkins
1d3b1cb51d Merge "Remove unused oslo-incubator _i18n.py from Manila" 2015-12-25 00:23:15 +00:00
Jenkins
6f4a3090b7 Merge "EMC Isilon Driver Support For Extend Share" 2015-12-24 22:59:53 +00:00
Jenkins
d12fbc9e68 Merge "Add space to message in manila/consistency_group/api.py" 2015-12-24 21:54:02 +00:00
Jenkins
18fbfee6ef Merge "Document correction in quick_start.rst" 2015-12-24 21:53:55 +00:00
Jenkins
91b63552e7 Merge "HPE3PAR finds CIFS share with either prefix" 2015-12-24 20:06:01 +00:00
Jenkins
7adb6d80b0 Merge "Prevent removal of share server used by CG" 2015-12-24 19:37:32 +00:00
Jenkins
8ffa0fc227 Merge "Support standard Manila capability flags in NetApp cDOT driver" 2015-12-24 19:37:25 +00:00
Jenkins
2acfe40071 Merge "Remove duplicate keys from dictionary" 2015-12-24 19:21:49 +00:00
Jenkins
940531512f Merge "EMC VNX: Add multi-pools support" 2015-12-24 19:21:43 +00:00
Jenkins
e382d71711 Merge "Pop off user/tenant kwargs in RequestContext init" 2015-12-24 17:38:01 +00:00
Jenkins
1e8c469a39 Merge "Mock out service availability check in unit test" 2015-12-24 15:29:17 +00:00
houming-wang
88e816d627 Remove unused oslo-incubator _i18n.py from Manila
Since oslo-incubator is no longer maintained[1] after
90ae25e38915cc502d9e9c52d59e8fb668a72ae1. And
openstack/common/_i18n.py is not referenced by Manila. Let's remove it.

[1] http://lists.openstack.org/pipermail/openstack-dev/2015-November/
    079343.html

Change-Id: I4622e6fa04ddd756937cd950238a88b46dca93e2
Closes-Bug: #1529083
2015-12-24 08:07:15 -05:00