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
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
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
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
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
We judged filesystem alloctype by literals,
now we change these literals to constants.
Change-Id: Iaeb64ed83b4c44e3e7d150c615ad03f8b1b4ce90
Closes-Bug: #1529015
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
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
os.popen() is deprecated since python 2.6. Resolved with use of
subprocess module.
Change-Id: I09f69b57b6dad10a5a6034b39d70f7ab3141bc2a
Closes-Bug: #1529836
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
Updated the devref doc for the EMC Isilon Driver.
Change-Id: I53816a28a1babd1e2ed15c95baadfbe22c1f5b02
Implements: blueprint emc-isilon-driver-extend-share
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
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
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
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
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