3330 Commits

Author SHA1 Message Date
Jenkins
b4032496ac Merge "Updated Hitachi NAS Platform Driver documentation" 2016-09-29 12:43:45 +00:00
ChangBo Guo(gcb)
63524af89d Use method is_ipv6_enabled from oslo.utils
oslo.utils provides similar function[1] to check if ipv6 is supported.
Though Manila and oslo.utils implemented in different way, we can
improve the version of oslo.utils to make it suitable to other projects.

[1]https://github.com/openstack/oslo.utils/blob\
/d1e08f533d4351f10b8103e24c254004b6627a29/oslo_utils/netutils.py#L170

TrivialFix

Change-Id: I4ff99189943f4ca56f0532e58b1aedc63516074d
2016-09-29 20:35:18 +08:00
Jenkins
a2b79e1d5f Merge "[api-ref] Remove temporary block in conf.py" 2016-09-29 11:00:53 +00:00
Jenkins
297d8bef3b Merge "Adjust doc about threading" 2016-09-28 15:30:58 +00:00
Jenkins
f25fb7132e Merge "[TrivialFix] Correct file mode settings" 2016-09-28 12:13:09 +00:00
Cao Xuan Hoang
1d1028633c Files with no code must be left completely empty
As per OpenStack licensing guide lines [1]:
[H104] Files with no code shouldn't contain any license header nor
comments, and must be left completely empty.

[1] http://docs.openstack.org/developer/hacking/#openstack-licensing

Change-Id: I7704e9defc555373f47036b28cfa2287ad67b0f8
2016-09-28 17:00:30 +07:00
Luong Anh Tuan
ac8b894d4b TrivialFix: Remove default=None when set defaul value in Config
By default oslo.cfg sets the default values as None [1], there is
no need to explicitly do this.

[1] https://github.com/openstack/oslo.config/blob/master/oslo_config/cfg.py#L829

Change-Id: I65fbfdf20ca98441cc88b2a62b5029001144e31d
2016-09-28 09:20:00 +00:00
xiaozhuangqing
82a4244eff [TrivialFix] Correct file mode settings
Drop the undesired executable bit for the following files:
  1. manila_tempest_tests/services/share/v2/json/shares_client.py
  2. manila_tempest_tests/tests/api/test_share_networks.py

Also add pep8 check for new executable files under manila_tempest_tests.

Change-Id: Iaa509fdf4e0ebeb60d71b053f62459992c938468
2016-09-28 17:02:24 +08:00
Ha Van Tu
9152425f2f [api-ref] Refactor Manila security service API
This patch make security service api reference to be more readable
and maintainable.

Change-Id: I802f09baee7dda91999983947aca8406a57d445e
2016-09-28 09:30:10 +07:00
Anh Tran
ac89ea065d Remove redundant 'the'
TrivialFix

Change-Id: I131d72082382d0fa003271954065558446e6be55
2016-09-28 09:21:30 +07:00
ChangBo Guo(gcb)
7b0505bf5e Adjust doc about threading
There are two ways to give other greenthread chance to run:
greenthread.sleep(0) or time.sleep(0). Add the second way in
threading.rst and recommend the first way for contributors.

Also, PyMySQL works well with eventlet [1], and it's the default MySQL
DB API driver for oslo.db now[2].
So adjust 'threading model' doc with such info.

[1] https://wiki.openstack.org/wiki/PyMySQL_evaluation
[2] http://docs.openstack.org/developer/oslo.db/installation.html

Change-Id: Ifcf48cddcf52ce720ceb275cc3eb4d6be61a3ca5
2016-09-28 02:15:26 +00:00
Jenkins
5c794d4f98 Merge "Updated from global requirements" 2016-09-27 15:41:57 +00:00
tpsilva
53198f068a Updated Hitachi NAS Platform Driver documentation
This patch updates the documentation for the Hitachi NAS Platform
File Services Driver for OpenStack.

Closes-bug: #1536812
Closes-bug: #1614833
Closes-bug: #1616618
Closes-bug: #1623105

Change-Id: I0291efcadf244b7911969cfb367387a5998f1a23
2016-09-27 08:44:30 -03:00
OpenStack Proposal Bot
15a7538e87 Updated from global requirements
Change-Id: I9ded29337245774fad055854cee7fa11e61640cf
2016-09-27 10:01:04 +00:00
ChangBo Guo(gcb)
e071dc0f26 Remove unused methods
Manila doesn't use methods ensure_tree and delete_if_exists anywhere,
and oslo.utils provides same methods in module fileutils. We can use
them from oslo.utils if we need in the futrue.

TrivialFix

Change-Id: I280b674dca3738d26c2bed2cf71e94775b370cd5
2016-09-27 09:59:34 +08:00
Jenkins
e34d9f52ba Merge "Fix check for nfsd presence" 2016-09-26 13:23:02 +00:00
Jenkins
856d5a3221 Merge "Bring remote and local executors into accord" 2016-09-26 12:43:10 +00:00
zengyingzhe
d14e906ac0 Fix huawei driver username/password encoding bug
While huawei driver reads username/password configuration from
configuration file, if the value is plain text, huawei driver'll
encode this text and write back to configuration file.

huawei driver leverages base64.b64encode to implement the encoding.
The encoded result is a byte string, and then is converted to
unicode string.

In py2, this works fine. However, in py3, the unicode string
converted from byte string is like "b'***'", *** is the orginal
string supposed to be.

So the encoded string is broken, and exception occurs while decoding
from it.

This patch fixes the incorrect unicode string converting and make
the encoded result string right.

Change-Id: I2483ae4999484b3a67c7d443f9b3cc214a3473b2
Closes-Bug: #1613242
2016-09-26 11:51:31 +00:00
ChangBo Guo(gcb)
5e333fc0f8 Use fnmatch from oslo.utils
Standard library fnmatch in Python versions <= 2.7.9 has thread safe
issue[1], we can use thread safe version from oslo.utils.

[1]https://bugs.python.org/issue23191

Change-Id: I42e9deed338ef6a9a75bb84fa9efd1aaf2baeccd
2016-09-26 13:29:36 +08:00
Jenkins
8b277fd7d8 Merge "Updated from global requirements" 2016-09-23 18:02:38 +00:00
Jenkins
77d245618f Merge "Fix huawei driver cannot delete qos while status is idle" 2016-09-23 15:33:30 +00:00
OpenStack Proposal Bot
9bf3f2eb42 Updated from global requirements
Change-Id: Idbc657cc22d72a0390f9a504ee6cf9f9d548e545
2016-09-23 15:24:45 +00:00
Alexey Ovchinnikov
332cbf253a Fix check for nfsd presence
Check for nfsd has been implemented incorrectly and has
apparently checked nothing. This change fixes that.

Change-Id: I2cc735744fcb588e9945e34de4cd4cc2270078f8
Closes-Bug: 1616061
2016-09-23 16:24:49 +03:00
Jenkins
4b77503863 Merge "3PAR driver fails to validate conf share server IPs" 2016-09-23 02:55:08 +00:00
Ha Van Tu
945aa1826f [api-ref] Refactor Manila availability-zones API
This patch makes availability-zones API be more readable and
maintainable.

Change-Id: I622b2470996b0e43cf9dcefdf72172759b3daec8
2016-09-23 02:31:10 +00:00
zengyingzhe
f20ab15beb Fix huawei driver cannot delete qos while status is idle
Currently, there are 3 statuses for qos:
  - 'active', 'inactivated' and 'idle'

If qos status is 'idle', the qos deletion will fail because
huawei driver doesn't deactivate it before deleting.

This change fixes this bug by deactivating qos first if qos
status is not 'inactivated'.

Change-Id: I40f937c22d77d8e07fba176bdc09ca461f01733a
Closes-Bug: #1625424
2016-09-22 11:35:55 +00:00
Jenkins
1238c79f24 Merge "Add tempest tests for mtu and gateway fields" 2016-09-22 11:01:34 +00:00
Alexey Ovchinnikov
49856dc9c8 Bring remote and local executors into accord
It appears that remote executor (processutils.ssh_execute)
and local executor (processutils.execute) have different
expectations for command keywords containing spaces. This
difference manifests itself in helper failures either for
one executor type or for another. This change adds command
preprocessing to generic driver which seems to be the only
active user of both remote executor and failing helpers.

Change-Id: I26eaca3ca652171fbf20d7580f90eef4f935332e
Closes-Bug: 1621033
2016-09-22 09:18:35 +03:00
Jenkins
da04d7bcf1 Merge "Make port_binding_extension mandatory if host_id is specified" 2016-09-21 16:30:54 +00:00
Jenkins
6868d8a8c5 Merge "[api-ref] Refactor Manila quota set API" 2016-09-21 15:21:27 +00:00
Marc Koderer
f60a0683bc Add tempest tests for mtu and gateway fields
This adds a cross check whether the neutron values
are matching the manila db/api value.

Change-Id: I096579704e217a91431dc5201a60beb43e015417
Closes-bug: #1612528
2016-09-21 16:35:05 +02:00
Jenkins
d7befa90cc Merge "Make nfs-kernel-server run on a clean host" 2016-09-21 14:21:50 +00:00
Marc Koderer
e0080bff62 Make port_binding_extension mandatory if host_id is specified
In case create_port is called with host_id it's better to fail if
port_binding_extension is not available. Otherwise there won't
be any binding and no logging that the port will be inactive.

Change-Id: I65595308bc71ae78c992fd97e3f26fd718b249ec
Closes-bug: #1602525
2016-09-21 14:54:51 +02:00
Ha Van Tu
02a0cb8b3e [api-ref] Refactor Manila quota set API
This patch refactors Manila quota set API to make it be readable
and maintainable.

Change-Id: I0a275b3ab4dc8e7ba5675562599bd853f03fa30e
2016-09-21 11:04:59 +00:00
Nguyen Phuong An
583aea4949 [api-ref] Remove temporary block in conf.py
The os-api-ref 1.0.0 is out. We can remove the support to older version
now.

Change-Id: I9974796c2e2ccab5d2f4f651d082632de040f3c4
Reference: Ia6245d502fde38cd4d63aa4a786b6296b22a37a1
2016-09-21 08:26:31 +00:00
Alexey Ovchinnikov
a2ce6c0aa3 Make nfs-kernel-server run on a clean host
nfsd refuses to start on a host with empty /etc/exports. This
change adds a workaround for affected first-party drivers.

Change-Id: If62fdc4219ceb02455bc55c717b7f2c7f34b0dca
Closes-Bug: 1616061
2016-09-21 11:26:28 +03:00
Jenkins
cbb58baada Merge "delete python bytecode including pyo before every test run" 2016-09-20 15:12:23 +00:00
Jenkins
570f498281 Merge "Updated from global requirements" 2016-09-20 10:05:50 +00:00
Jenkins
2e44248d1f Merge "[api-ref] Refactor limits and services API" 2016-09-20 09:19:05 +00:00
Jenkins
71266b2f64 Merge "[api-ref] Refactor manila extension API" 2016-09-20 09:17:42 +00:00
Jenkins
5c3e6a8099 Merge "[api-ref] Refactor consistency group API" 2016-09-20 09:17:36 +00:00
Jenkins
b4ff5fe27d Merge "Update reno for stable/newton" 2016-09-20 08:22:16 +00:00
Bin Zhou
b6fa89bae3 Modify use of assertTrue(A in B)
Developers should use assertIn(A, B) instead of assertTrue(A in B ).

TrivialFix

Change-Id: Icb1f58f462f982d9c4b0795d1a7f010b08c9b387
2016-09-20 09:11:20 +08:00
OpenStack Proposal Bot
be82d59280 Updated from global requirements
Change-Id: Ica7a006e2203c3f004bf2718f800790e3f441b22
2016-09-20 00:26:30 +00:00
Jay Mehta
cef6dddcee 3PAR driver fails to validate conf share server IPs
With 3PAR, share server(VFS) can have up to 4 IP addresses.
During bootup, driver queries 3PAR to get list of all IP addresses
and validates it against IP addresses provided in manila.conf. If
there is a mismatch, driver throws exception.

The bug was with 3PAR file client which always returns only one IP
address. To make driver backward compatible with 3PAR client,
mediator.py formats the value retured by client and passes it to
driver.py. This patch now correctly accepts all the IP addresses
as obtained from 3PAR and validates configured IPs against it.

Also removing unused function.

Updated and added new unit tests

Added release notes

Closes-Bug: #1621016

Change-Id: I1eeb18cc9905a71cd38c383bc0ab49e0a560ffc9
2016-09-19 15:10:22 -07:00
Goutham Pacha Ravi
bc4712e35e Manila install guide: Fix wrong instructions
Previously only the DHSS=True mode was documented
in post install steps. The assumption that the generic driver
was being configured existed in other places as well.

* add DHSS=False documentation as necessary with the
   LVM driver.
* correct assumptions in other places to clarify usage
   of appropriate share driver modes.

Change-Id: Ic1356453e510e8f360269fb45a41379329ce68c2
Closes-Bug: #1616257
2016-09-16 17:35:43 +00:00
Lucky samadhiya
d82ac34d0a delete python bytecode including pyo before every test run
Change-Id: Ib1cee0ee3d482b23bbaa19956a10bb2e8fc7d559
2016-09-16 13:57:08 +05:30
Jenkins
16c522bf5e Merge "Update installation tutorial and api-ref instructions" 2016-09-16 00:23:47 +00:00
Goutham Pacha Ravi
d2f1d289e9 Update installation tutorial and api-ref instructions
This documentation has been brought in-tree in Newton.

TrivialFix

Change-Id: I943b55b22d23a1b84a886746852165656c5aa01e
2016-09-15 14:09:04 +00:00
Doug Hellmann
3d39c901a0 Update reno for stable/newton
Change-Id: I22edc0930670ec615461d0f78554dbfdfe0d1d8e
2016-09-15 08:55:22 -04:00