4189 Commits

Author SHA1 Message Date
Zuul
158fef40b2 Merge "QNAP: Add support for QES 2.0.0" 2018-01-11 11:36:02 +00:00
Zuul
01c811de04 Merge "Fix default and detailed share type result not correct" 2018-01-10 14:54:45 +00:00
Zuul
c6a05f2274 Merge "DocImpact: Add quotas per share type" 2018-01-09 02:39:29 +00:00
Chris Yang
69b8810264 QNAP: Add support for QES 2.0.0
This patch do the following change to the QNAP Manila driver:
1. Add support for QNAP QES firmware 2.0.0.

Change-Id: Ifd4a1f042cd35fc0b2fd77fa8602a9aead65bc62
Implements: blueprint qnap-support-qes-200
2018-01-09 02:01:45 +08:00
Zuul
087753be05 Merge "Add support for enhanced features to the QNAP Manila driver" 2018-01-08 16:40:50 +00:00
Zuul
c72616ce9c Merge "Always disable root-squash" 2018-01-08 06:02:16 +00:00
Ben Swartzlander
f28ef954ba Fix volume attach error in generic driver
The generic driver doesn't understand the new 'reserved'
volume state and errors out when it detects that state.

Closes-Bug: #1741568

Change-Id: Ic14186d47b4d16a03c5c1e52933be5fa4660ee28
2018-01-05 16:35:16 -05:00
Ben Swartzlander
8429b9e4d5 Always disable root-squash
Initially, root squashing was only disabled for rw
shares, but it should also be disabled for ro shares.

Closes bug: #1735832

Change-Id: I916e8c6a8fb553350a977795cb1c4ab4ef817b98
2018-01-05 18:39:19 +00:00
Chris Yang
487aa691fd Add support for enhanced features to the QNAP Manila driver
This adds enhanced supports to the QNAP Manila driver:
 - Thin Provisioning
 - SSD Cache
 - Deduplication
 - Compression

Change-Id: I0c92ecf6ac55e2f6fbf1d41132e97fa2d40c3ebd
Implements: blueprint qnap-enhance-support
2018-01-05 15:01:10 +08:00
Arjun Kashyap
c4b59336c2 Fix error message in the manage API
When the manage API is called on a particular share without specifying
the share type and the also the default share type is not found, the API
raises an error message which contains the share_type_id of default
sharetype which is not existant. The error message which should be
displayed is "Default share type not found.". The fix for this bug is
to change the parameters sent to the ShareTypeNotFound class, changing
it from ShareTypeNotFound(reason=msg) to ShareTypeNotFound(message=msg).

**Previously:
manila manage \
stack-VirtualBox@prague#lvm-single-pool \
NFS \
127.0.0.1:/opt/stack/data/manila/mnt/share-2cd5d0de-994b-4cbf-bf55-9808e
49266f0
ERROR: Share type %(share_type_id)s could not be found.

**Now:
manila manage \
stack-VirtualBox@prague#lvm-single-pool \
NFS \
127.0.0.1:/opt/stack/data/manila/mnt/share-2cd5d0de-994b-4cbf-bf55-9808e
49266f0
ERROR: Default share type not found.

Closes-Bug: #1705533
Change-Id: I36a76a93b7d0f54c1e9aec43e332cb94b0b389f3
2018-01-05 03:37:02 +00:00
junboli
cb6556ffcb DocImpact: Add quotas per share type
Add docs for implementation of quotas per share type

Change-Id: I7d2b87c9e1055a6fb9a8dc50ae17769fa17dc3ee
Closes-Bug: #1705540
2018-01-04 20:00:17 +00:00
Zuul
171a773093 Merge "Fix running docs job failure" 2018-01-03 12:41:50 +00:00
Zuul
23385fd49a Merge "ganesha: read and store non-ASCII data in exports" 2018-01-03 08:58:39 +00:00
junboli
8145889290 Fix running docs job failure
D005 No newline at end of file

Change-Id: Id829adfb0d23b2e69b82d1222edd61dbb7d77cce
Closes-Bug: #1741006
2018-01-03 16:53:32 +08:00
Zuul
fcf07dffc2 Merge "Updated from global requirements" 2018-01-03 04:31:25 +00:00
Zuul
c6c0559926 Merge "Replace invalid link in manila doc" 2018-01-03 04:28:39 +00:00
Zuul
a497f21484 Merge "Api-ref: add show details for share type" 2018-01-03 04:28:38 +00:00
Zuul
5d0f1f7e6d Merge "Raise error when image status is not active" 2018-01-03 04:27:38 +00:00
Zuul
0d8a426f54 Merge "Add utils methods to write files" 2018-01-02 20:05:19 +00:00
junboli
5bfe68664a Raise error when image status is not active
when the image is not active status, it should be raise
error, because there is no need to take an error status
image to create share server.

Change-Id: Ib31b9a627a9bbd413e46bfc09775e0c6d30ac084
Closes-Bug: #1740010
2018-01-02 18:46:55 +00:00
Ramana Raja
15727cd157 ganesha: read and store non-ASCII data in exports
For py27, allow reading and storing non-ASCII data in exports
stored as Ceph RADOS objects (This is possible with py3).
Do this by decoding binary data and encoding text data with 'utf-8'
when reading and writing RADOS export objects.

TrivialFix

Change-Id: Idcf8b1c1ed1a65e2cce19726997694d993879c14
2018-01-02 18:06:54 +05:30
junboli
ee11996bf9 Api-ref: add show details for share type
Add missing show details for a specified share type
in api ref.

Change-Id: Iffa5cdcb86d9d9d34950fd7e7365b1608f8716bf
2017-12-31 16:12:06 +08:00
Zuul
098546fbf4 Merge "QNAP Manila driver: Access rule setting is override by the later rule setting." 2017-12-28 23:21:56 +00:00
Zuul
7ef7633c08 Merge "Fix incorrect api ref parameters" 2017-12-27 03:15:00 +00:00
Zuul
6d737c8c70 Merge "Fix install docs reference error" 2017-12-27 01:55:46 +00:00
Rui Yuan Dou
1d6c736e2d Replace invalid link in manila doc
Change-Id: I54c1479f97c8647e9b63f25b0e608cc3170c8018
2017-12-27 09:29:06 +08:00
junboli
26808c59c2 Fix incorrect api ref parameters
fix incorrect ``snapshot_id``, ``project_id``
and ``status``, besides, remove some unused
parameters.

Change-Id: I6d9e359957bf459032e0796a52879cab7c4caaa5
2017-12-26 21:23:03 +08:00
Ramana Raja
f5812012ac [Doc] Correct a known restriction in cephfs_driver
TrivialFix

Change-Id: Ie369f997fa09e5e1128ba745df1163411d6be24f
2017-12-26 16:39:41 +05:30
Zuul
fb6b2c0b53 Merge "Add policy documentation and sample file [10/10]" 2017-12-25 09:38:28 +00:00
Chris Yang
205ef44283 QNAP Manila driver: Access rule setting is override by the later rule setting.
When user try to add access rule1 and access rule2, share will first set to
the rule1 and then override by the rule2.

We expect that share should apply both access rule1 and access rule2.

Change-Id: Id77cffb5efe4388e3b66aa85fc89cf6f51d5bd98
Closes-Bug: #1736370
2017-12-25 09:32:02 +08:00
junboli
d2ac6cfafa Fix install docs reference error
TrivialFix

Change-Id: Id89807c19fc9ebda662a5a375b7e3890c6792110
2017-12-23 18:10:03 +08:00
junboli
6af780c1e4 Fix default and detailed share type result not correct
When request default share type and show share type detailed,
the share type results is not correct, because the values of
attribute required_extra_specs is always empty.

Change-Id: I68fc4e2ba30bbd87b5417fe48688edd96cbcee5d
Closes-Bug: #1733742
2017-12-22 14:49:07 +00:00
Zuul
11bf61f5ba Merge "Remove in-tree tempest plugin" 2017-12-22 13:40:44 +00:00
Raissa Sarmento
797048c5ce Remove in-tree tempest plugin
Remove in-tree tempest plugin in favor of newly
created manila-tempest-plugin repository.

Change-Id: I1fb124598f38067fee469df124ee684f748c6f57
2017-12-22 11:11:38 +00:00
OpenStack Proposal Bot
cc1e941f3b Updated from global requirements
Change-Id: Id4fa24194bacb1d0838393a38f8134eed4c04476
2017-12-22 02:57:02 +00:00
zhongjun
d0c695b48e Add policy documentation and sample file [10/10]
This patch adds documentation and sample
file for default policy in code feature.

Change-Id: I597971a19ec61a1bf8c991b2712ec7644b2e2693
Partial-Implements: blueprint policy-in-code
2017-12-22 01:56:44 +00:00
Zuul
c72557266b Merge "Change ensure share to make startup faster" 2017-12-21 23:39:12 +00:00
Zuul
b7935e4e38 Merge "[policy in code] Add support for AZ, scheduler and message resource [9/10]" 2017-12-21 19:59:16 +00:00
zhongjun
64eaeae6bd [policy in code] Add support for AZ, scheduler and message resource [9/10]
This patch adds policy in code support for availability_zone,
scheduler_stats and message resources.

Change-Id: I9a79b5ececc583e85149cc920321e461e832b245
Partial-Implements: blueprint policy-in-code
2017-12-20 06:22:02 +00:00
Zuul
98a46ba6a8 Merge "[policy in code] Add support for share and type extra resource [8/10]" 2017-12-20 05:32:27 +00:00
Zuul
e8aa32be76 Merge "[policy in code] Add support for replicas, networks and security services [7/10]" 2017-12-20 05:29:23 +00:00
zhongjun
5ac4310e0e [policy in code] Add support for share and type extra resource [8/10]
This patch adds policy in code support for share instance,
share export location and share type extra specs resources.

Change-Id: I9a89b4ececc583e85249cc925950e462e805b215
Partial-Implements: blueprint policy-in-code
2017-12-20 01:34:28 +00:00
Zuul
f15f52408b Merge "[policy in code] Add support for group resource [6/10]" 2017-12-19 16:24:47 +00:00
zhongjun
a23d09eb01 [policy in code] Add support for replicas, networks and security services [7/10]
This patch adds policy in code support for replica, network
and security service resources.

Change-Id: I9a79b5ececc583e85149cc920950e462e805b245
Partial-Implements: blueprint policy-in-code
2017-12-19 12:22:18 +00:00
zhongjun
4f959eeaf7 [policy in code] Add support for group resource [6/10]
This patch adds policy in code support for group
resources.

Change-Id: I9a79b5ececc583e80149cc920950e462e805b142
Partial-Implements: blueprint policy-in-code
2017-12-19 11:59:59 +00:00
Zuul
6f42dec916 Merge "Fix quota usages update deleting same share from several API endpoints" 2017-12-19 03:49:33 +00:00
OpenStack Proposal Bot
daf509b66f Updated from global requirements
Change-Id: Iacf62484110250ff1f7763b037bab73603d002af
2017-12-19 01:22:37 +00:00
Zuul
81c4ee6c5f Merge "Fix getting share networks and security services error" 2017-12-18 13:57:24 +00:00
Jiao Pengju
9f69258cab Fix getting share networks and security services error
It will fail when non-admin tenants try to get share networks
and security services with option '{all_tenants: 1}'.
The reason is that the policy of 'get_all_share_networks' and
'get_all_security_services' are admin api, they do not allow
the non-admin tenants list the share networks and security
services with all_tenants=1. This patch removes the policy check
of non-admin tenants and allows non-admin tenants to request to
list with 'all_tenants=1', however 'all_tenants' in the request
is just ignored.

Change-Id: Ied021b66333f1254cd232bbc38562a4a9b762ad2
Co-Authored-By: Goutham Pacha Ravi <gouthampravi@gmail.com>
Related-Bug: #1721787
2017-12-18 09:17:40 +08:00
OpenStack Proposal Bot
ba25aaf543 Updated from global requirements
Change-Id: I6c87e77b5a55e1a22112c7fa5d2fdd9f0335b27c
2017-12-15 21:36:48 +00:00