3301 Commits

Author SHA1 Message Date
Daniel Mellado
5dc5ecf392 Allow skipping manila tempest tests.
This commit allows to skip manila tempest tests when manila is set to
false in tempest.CONF service_available. This would allow to disable
manila testing in an environment where all the plugins are installed
(i.e. a package-based installation).

Change-Id: I75dd2fd86df7500ad0bc4f633ed39f7595e9dc8c
2017-01-12 13:59:18 +00:00
Tom Barron
ad2ce70233 [devref] copy samples/local.conf correctly
Fix the command cited in the devref devstack doc to copy
samples/local.conf up one directory for use as basis for
a local.conf with manila plugin added.

TrivialFix

Change-Id: Iab4d35d41444a05757a3f2a5552e7b4939007327
2016-12-18 14:57:00 -05:00
Jenkins
cc19d7b4a7 Merge "Add DriverFilter and GoodnessWeigher documentation" 2016-12-16 20:00:06 +00:00
tpsilva
d679ee5ca3 Add DriverFilter and GoodnessWeigher documentation
This patch adds the documentation related to DriverFilter and
GoodnessWeigher added with change ID
I873f4152e16efdeb30ceae26335a7974dc9b4b69.

Change-Id: I03df00e4852ac5eed74d1079ec8830272f813e4d
Closes-bug: #1605737
2016-12-16 18:26:02 +00:00
Jenkins
8b9078080f Merge "Setting up a development env with devstack instructions" 2016-12-15 22:44:13 +00:00
Victoria Martinez de la Cruz
d560b1c465 Setting up a development env with devstack instructions
Adds instructions on how to set up a fully functional manila
development environment using Devstack to the Developers Reference.

Partially-implements bp improve-manila-developer-docs

Change-Id: Id9781046716af2e04a0aea2734fbe4590bfd28dc
2016-12-15 12:17:18 -03:00
Jenkins
d2bdd58feb Merge "Decouple Manila UI from Manila Devstack plugin" 2016-12-13 11:15:10 +00:00
Jenkins
f2c2366e04 Merge "[Generic driver] Fix generation of admin export location" 2016-12-13 05:35:30 +00:00
Victoria Martinez de la Cruz
4d36064cba Decouple Manila UI from Manila Devstack plugin
Whereas the bug report associated to this fix is about
Manila UI not working, this fix addresses more than this.

On the first place, it decouples Manila UI from Manila Devstack
plugin. This is a desired change since not every Manila user
needs to work with the UI, and it doesn't make sense to have
Manila UI bits on the Manila code if we can place all Manila UI
related code on the Manila UI repo and, in this case,
Manila UI Devstack plugin. This patch-set removes all the traces
of Manila UI setup from the Manila Devstack plugin.
Manila UI Devstack plugin was added in 457249be7ab3849b3479b96077a411ca37c37a95.

And, secondly, it fixes Manila UI deploy with Devstack. Enabling
manila-ui plugin on Devstack properly sets the UI component for
Manila.

Change-Id: I7a3372371e25c69d3df6d395c703a6412750effd
Closes-Bug: #1570033
2016-12-12 12:43:14 -03:00
Jenkins
a67c8a3c15 Merge "Change network allocation of Unity driver to 1" 2016-12-12 13:46:28 +00:00
Jenkins
584ddc414b Merge "Fix undefined attribute in scenario test class" 2016-12-12 13:33:24 +00:00
Jenkins
692b81130d Merge "Fix Manila service image config for 3rd party CIs" 2016-12-12 13:28:44 +00:00
Valeriy Ponomaryov
c162c45404 [Generic driver] Fix generation of admin export location
For managed and created from snapshot shares.

Change-Id: I6e7eca54725d1aef994d617f253e73909a9d8303
Closes-Bug: #1646097
2016-12-12 15:33:23 +03:00
Jenkins
e8af5394b8 Merge "Add support for manage/unmanage snapshots in HNAS driver" 2016-12-12 12:10:07 +00:00
Rodrigo Barbieri
b66f04ed7e Fix undefined attribute in scenario test class
An attribute check is being performed: "if not self.image_ref"
but self.image_ref may not be defined at all, leading to the
following error. So, let's define it first so it can be properly
evaluated.

AttributeError: 'TestShareBasicOpsNFS' object
has no attribute 'image_ref'

TrivialFix

Change-Id: I0c454009b95c5cb0b6fc1304bb0cba1ff87c9fe9
2016-12-12 09:17:47 -02:00
Rodrigo Barbieri
6168f16c25 Fix Manila service image config for 3rd party CIs
3rd party CIs cannot set this config by exporting an env var
or local.conf setting, as it is always being overriden in code.

Change-Id: Ia2a4790d3a0d03faa231b400c32f6c1928bdca1f
Closes-bug: #1649249
2016-12-12 09:14:57 -02:00
Tina Tang
c517667298 Change network allocation of Unity driver to 1
One IP port is enough for share server created on Unity system.
This patch change the IP allocation in Unity driver from 2 to 1.

Change-Id: I3e8ea3f5fe1d3e713239d5c0fb19733abc97f5bd
Closes-Bug: 1648328
2016-12-12 03:22:58 +00:00
Jenkins
9315928347 Merge "[LVM,Generic drivers] Fix relationships between parent and child shares" 2016-12-09 20:20:17 +00:00
Jenkins
ab3d1337f5 Merge "Replace six.iteritems() with .items()" 2016-12-09 18:18:04 +00:00
Valeriy Ponomaryov
c93e812a58 [LVM,Generic drivers] Fix relationships between parent and child shares
Reportedly [1], the kernel-nfs-server has a bug where we have overlap of
filesystem identifiers using LVM volumes and their snapshots.

We face this bug in manila LVM driver and Generic driver when we use
cinder LVM driver. So, fix it generating unique UUID for all
snapshots (only for LVM, because we cannot do it in Generic driver
while we do not have "mount-snapshot" feature support there) and
child volumes that will be exported as child shares.

[1] https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1071733

Change-Id: Ib93bfb0d4184da1e70ecece6fde6931e44d05a30
Closes-Bug: #1645751
2016-12-09 20:23:26 +03:00
Jenkins
4936ffceac Merge "Add "update_access" interface support for VNX." 2016-12-09 13:15:06 +00:00
Jenkins
44a0cd72f6 Merge "Add share_type filter support to pool_list" 2016-12-09 12:18:40 +00:00
Jenkins
9e73babd98 Merge "[TrivialFix] Fix doc typo error" 2016-12-09 11:18:15 +00:00
gengchc2
00221d59b9 Replace six.iteritems() with .items()
1.As mentioned in [1], we should avoid using
six.iteritems to achieve iterators. We can
use dict.items instead, as it will return
iterators in PY3 as well. And dict.items/keys
will more readable. 2.In py2, the performance
about list should be negligible, see the link [2].
[1] https://wiki.openstack.org/wiki/Python3
[2] http://lists.openstack.org/pipermail/openstack-dev/2015-June/066391.html

Change-Id: Ic68ba358d51002e1a1aeac6159248ffb730b5daf
2016-12-09 13:44:44 +08:00
Cedric Zhuang
d5c1e7a36b Add "update_access" interface support for VNX.
The VNX manila driver doesn't support the "update_access" API.
Add support for this API which implements following functions:
* Add a list of access rules.
* Remove a list of access rules.
* Recover access rules.

Change-Id: I49de0864e2f2c74d1b4d0f57fa0939a6d8c7c5df
Implements: blueprint vnx-manila-update-access
2016-12-09 10:41:39 +08:00
zhongjun
d5643c75f5 Add share_type filter support to pool_list
Administrators intend to get the pool's information filtered
by share type(actually filtered by share_type's *extra_spec*)
more directly.
The blueprint is to add a filter key 'share_type' to cover
this situation.

APIImpact
Implements: blueprint pool-list-by-share-type
Change-Id: Ifd64bb84d03a02aa0a118cc42e1d1b373c439884
2016-12-09 09:59:34 +08:00
jeckxie
aaa664bee2 [TrivialFix] Fix doc typo error
Change-Id: I7f7b9126c195c687e2a3d3d74ec0f21fc69e8bf0
2016-12-09 08:43:29 +08:00
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