3249 Commits

Author SHA1 Message Date
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
Jenkins
845ba22619 Merge "Fix share writable in host-assisted migration" 2016-11-29 22:09:55 +00:00
Rodrigo Barbieri
ec0cda28cd Fix share writable in host-assisted migration
For drivers that implement update_access always through recovery
mode, access rules previously set to read-only were being reset
to read-write when the Data Service was adding/removing its access
rule.

Fixed it by integrating the logic that casts DB rules to read-only
into access helper class.

Change-Id: Ife35dcdb99dffa2f266b5c2f6a68fe163da7edd3
Closes-bug: #1626523
2016-11-29 16:55:32 -02:00
Ha Van Tu
6e906bacd9 [api-ref] Refactor Manila scheduler stats API
This patch makes the scheduler stats API reference more readable
and maintainable.

Change-Id: I78aeb7e273abc86922de2e69e4c6b0a2e75d0c1c
2016-11-29 10:19:37 +07:00
Jenkins
b05900b422 Merge "hacking: Use uuidutils to generate UUID" 2016-11-28 22:06:02 +00:00
Pan
eeef132269 TrivialFix: Remove Duplicate Keys
Removing duplicate keys from the tests

Change-Id: I299b9cf4a7b860ce16de6617dd5b4b551c3d985e
2016-11-28 12:48:36 -05:00
Jenkins
d2b491154b Merge "Show team and repo badges on README" 2016-11-25 19:34:19 +00:00
Jenkins
5328719185 Merge "[api-ref] Refactor Manila snapshot API" 2016-11-25 13:45:38 +00:00
Flavio Percoco
9716042318 Show team and repo badges on README
This patch adds the team's and repository's badges to the README file.
The motivation behind this is to communicate the project status and
features at first glance.

For more information about this effort, please read this email thread:

http://lists.openstack.org/pipermail/openstack-dev/2016-October/105562.html

To see an example of how this would look like check:

b'https://gist.github.com/d281d3e7bd4da998ab834a085c1ba7b3\n'

Change-Id: I32e2e2a045130f9d229c8de459dc7d52d5eac928
2016-11-25 12:39:22 +01:00
Jenkins
2ad181cffc Merge "Add Admin network support to HNAS driver" 2016-11-24 12:45:40 +00:00
Jenkins
69802e44d5 Merge "Fix wrong instructions in the install guide" 2016-11-24 01:59:09 +00:00
Goutham Pacha Ravi
3ee1da619c Fix wrong instructions in the install guide
DHSS=False does not imply lack of support for
share management, it implies lack of support for
share server management.

TrivialFix

Change-Id: Idd5b041d102d728212e0d171df605b90b4ff75d3
2016-11-24 01:56:38 +05:30
Jenkins
608eea570e Merge "Replace 'assertEqual(None, ...)' with 'assertIsNone(...)'" 2016-11-23 18:28:40 +00:00
Jenkins
5592844649 Merge "Update .coveragerc after the removal of openstack directory" 2016-11-23 15:58:42 +00:00
vponomaryov
3f2f3f9086 [Devstack] Fix devstack plugin compatibility
Recent devstack commit [1] broke manila devstack plugin compatibility.
So, fix it by removing dependency on deleted env var in the same way
as it is done in devstack [2].

[1] I7c66e1d8d65f562596543ed8ca402dba8c8ea271
[2] I4e5c7e86aefe72fc21c77d423033e9b169318fec

Change-Id: I351f90a60e4693300cc3d3bbd1183bd8fa6acc9a
Closes-Bug: #1644194
2016-11-23 14:00:33 +02:00
Jenkins
799fc8d55f Merge "Fix extend operation of shrinked share in generic driver" 2016-11-22 13:57:02 +00:00
Rodrigo Barbieri
ce39a50782 Add Admin network support to HNAS driver
Adding Admin Network support to more easily integrate HNAS
EVS networks into the admin network to perform share migrations.

DocImpact

Implements: blueprint hnas-admin-network

Change-Id: I797595aec580e9ec2dcfdf88e965ae29988b1dee
2016-11-21 16:34:23 -02:00
Xiaoyang Zhang
77a0349adc Fix extend operation of shrinked share in generic driver
If a share is shrank from 10G to 5G, the volume is still 10G.
This share`s size display is 5G, but the share extend newsize
must be > 10G in the old code. So, I think only need to perform
resize_filesystem when the share extend newsize <= volume size.
The volume extension is performed only when new size larger than
volume size.

Change-Id: I7e49b446445b8005e2eb23e1d439354eb24915e0
Close-Bug: #1639188
2016-11-21 15:01:58 +08:00
Jenkins
ac2d20b8aa Merge "[Tempest] Port remote_client into Manila" 2016-11-19 21:37:24 +00:00
Marc Koderer
7683f2a3ca [Tempest] Make share size configurable in scenario tests
The scenario tests missing a way to configure
the share size created during the test.

Change-Id: I58d433a39037cbdb4ad92f956cfc27c54739fe1a
Closes-bug: #1642548
2016-11-17 20:27:23 +00:00
Daniel Mellado
d03b5699fd [Tempest] Port remote_client into Manila
Manila tempest tests make use of remote_client [1], which won't be making it
to the tempest stable interfaces, as it imports tempest code which would
result in a circular dependency.

This commit ports a reduced version of remote_client into manila code in
order to have manila's tempest plugin to drop the dependency on it.

[1] https://github.com/openstack/tempest/blob/master/tempest/common/utils/linux/remote_client.py

Partially-Implements: bp/tempest-no-deps

Change-Id: I97a8c57adce9cd541766cc1a2f21ca9ceb92efe9
2016-11-17 09:30:10 -06:00
Jenkins
97c764a9ea Merge "devref/driver_requirements: add cephfs protocol" 2016-11-17 08:53:58 +00:00
Jenkins
235cb476b3 Merge "Compare the encoded tag more accurately for huawei driver" 2016-11-16 21:24:26 +00:00
Tom Barron
f2ffae1870 hacking: Use uuidutils to generate UUID
Added hacking check to ensure that UUIDs are not generated
by uuid4() since we should do this using oslo_utils.uuidutils.

Based on this nova change [1].

[1] I73ee63fbd4f451d3aa5dc1a2a734d68c308b4440

Change-Id: Ic7783c29fbd838c827ccc8ee44aa757fef8e9169
2016-11-16 16:06:40 -05:00
Ramana Raja
c66660c658 devref/driver_requirements: add cephfs protocol
... to the list of supported protocols in manila.

Change-Id: I7b5ed28fec5ffc550dc4840c0197b5da323b0c8a
2016-11-17 01:30:00 +05:30
Jenkins
a704dc8be6 Merge "Add Rally CI jobs with Manila scenarios" 2016-11-16 18:54:10 +00:00
Valeriy Ponomaryov
a82b9c2671 Add Rally CI jobs with Manila scenarios
Rally project has Manila support. So, add its scenarios to Manila
to be able to run them in CI.

Change-Id: Ie689ec15a8a2c77824fbf74de66dc852589bad1d
2016-11-16 16:05:27 +02:00
Jenkins
341d5299de Merge "Fix spelling mistakes in cover.sh" 2016-11-16 12:57:32 +00:00
Jenkins
781d7d9e3b Merge "Correct the order of parameters in assertEqual()" 2016-11-16 12:50:16 +00:00
zhangyanxian
f2f66c8ada Fix spelling mistakes in cover.sh
TrivalFix

Change-Id: Iedc1fc108d090e11d8d942379aa8c32d212d16e1
2016-11-16 11:42:40 +00:00
OpenStack Proposal Bot
e2a4151df0 Updated from global requirements
Change-Id: I535fa12ff2b29dacc1ca75bd81065c34cb9f1210
2016-11-15 19:51:18 +00:00
Jenkins
d2cbb01669 Merge "Check ceph backend connection on driver setup" 2016-11-15 13:20:56 +00:00
Jan Provaznik
af79b9f5b7 Check ceph backend connection on driver setup
Check that ceph connection really works when setting up
the driver instead of doing real connect later in init_host
phase. This mitigates the risk that the service crashes/respawns
in an infinite loop because of a connection error.

Change-Id: Ia71b55dab1535ce351310108aaf53304b15ab757
Closes-Bug: 1640169
2016-11-15 12:35:39 +01:00
melissaml
34f5274931 Replaces uuid.uuid4 with uuidutils.generate_uuid()
Openstack common has a wrapper for generating uuids.
We should only use that function when generating uuids for consistency.

Change-Id: Ie68850e529eee51c66e8d29a9025e1390576bc1a
Closes-bug: #1082248
2016-11-14 10:51:24 -05:00
Jenkins
dbab8415ea Merge "Remove unused link" 2016-11-14 12:33:47 +00:00
liyanhang
ca22725fdb Remove unused link
Change-Id: Ic05556dfa6a979a9e465dbbc3172d8b5e37a3eef
2016-11-14 10:20:48 +00:00
Jenkins
bcb064becb Merge "[install] Make the rabbitmq configuration simpler" 2016-11-13 01:39:15 +00:00
chenxing
e01af35b88 [install] Make the rabbitmq configuration simpler
Update from this commit https://review.openstack.org/#/c/389971/1
in the openstack-manuals project.

Change-Id: I862d3b4e310136c7b9bc151fdfa82b07e8c04978
2016-11-12 14:58:44 +00:00
Jenkins
eb380e23fb Merge "Use cors.set_defaults instead of cfg.set_defaults" 2016-11-12 12:08:03 +00:00
Jenkins
7db7cb7718 Merge "Fix share manage tempest test cleanup" 2016-11-11 16:18:06 +00:00
Jenkins
ed4de010de Merge "Add support of endpoint_type and region_name to clients manila uses" 2016-11-11 13:40:54 +00:00
Jenkins
641596dfc8 Merge "Fix missing 'migration_completing' task state" 2016-11-10 19:10:38 +00:00
Daniel Mellado
8d8371de60 Add testscenario to test-requirements
As Manila bundling oslo.db is not installing testscenario, all python
gates are failing when trying to import it. This commit fixes it so the
gates won't be blocked.

This is a workaround of oslo.db not having testscenarios on its
requirements file.

Closes-Bug: #1640774

Change-Id: I660322666565408f6015da7aa82723a842d62a2d
2016-11-10 14:43:16 +00:00
tpsilva
1eadb5a51c Fix share manage tempest test cleanup
test_share_manage.ManageNFSShareTest might leave undeleted shares on
backend if some tests are not run. This happens because the shares are
created and unmanaged on resource_setup and are expected to be managed
and deleted on the tests. If the tests don't run, the cleanup will not
delete the shares because they are already unmanaged, thus leaving them
created on the backend.

This patch fixes this issue by moving the share creation and unmanage
operations from resource_setup to the tests themselves.

Closes-bug: #1639848

Change-Id: I2d1790f0a323fdc7b11805842985ca5907dd23c3
2016-11-10 09:36:44 -02:00
OpenStack Proposal Bot
1c5446e302 Updated from global requirements
Change-Id: I8ba18e21d8d22c2895c75d57fc3e976eaeeac59f
2016-11-08 21:23:41 +00:00
Jenkins
4c5e69d268 Merge "Add utility of boolean value parser" 2016-11-08 19:35:43 +00:00
Jenkins
5dfeebb536 Merge "Remove fake CG support from Generic share driver" 2016-11-05 02:31:27 +00:00
Valeriy Ponomaryov
e77cf5bdaf [Devstack] Create additional custom share types by default
They are useful for case we install several back ends with different
drivers, their modes and capabilities.

New share types have fixed names based on driver modes:
- dhss_true
- dhss_false

It is possible to define their extra specs using following env vars:
- MANILA_DHSS_TRUE_SHARE_TYPE_EXTRA_SPECS
- MANILA_DHSS_FALSE_SHARE_TYPE_EXTRA_SPECS

that defaults to existing following env var:
- MANILA_DEFAULT_SHARE_TYPE_EXTRA_SPECS

Use case in CI: we are able to use more than one predefined share_type
in tempest and rally tests.

Change-Id: I7278a897bb89f0562e1eda449b725d965cb10566
2016-11-04 19:01:42 +03:00
Valeriy Ponomaryov
899941c60e Remove fake CG support from Generic share driver
Generic share driver has fake support of consistency groups. It was
implemented only for testing purpose. Now, it is redundant, because
we have 'dummy' share driver that already used to test this behavior.

So, drop fake CG support from Generic share driver and disable
appropriate tempest tests.

Change-Id: I6ce07fd3a11cd62a3a01ba4ee7c424b839a62757
Closes-Bug: #1638994
2016-11-04 16:41:54 +02:00
Li Wei
f8b962b9c8 Correct the order of parameters in assertEqual()
The order of parameters should be assertEqual(expected, actual).

Change-Id: I0815b1d76fd1f8a90ad3d5f08d70fc5cc4e5d7b7
2016-11-04 15:40:21 +08:00