5613 Commits

Author SHA1 Message Date
Zuul
37c41e57cf Merge "Support group specs search for share group type API" 2021-12-21 23:26:46 +00:00
Zuul
09cf65a36a Merge "Move db release note to correct folder" 2021-12-20 17:41:02 +00:00
Zuul
c29fa635a1 Merge "NetApp OnTap: Fix compatibility check for share migrate" 2021-12-15 23:54:48 +00:00
Zuul
23ac0b6d5d Merge "Fix ignored [neutron] options" 2021-12-15 02:38:35 +00:00
Zuul
5712fe596a Merge "Move release notes to correct folders" 2021-12-14 19:27:55 +00:00
Victoria Martinez de la Cruz
3a1e23801f Support group specs search for share group type API
Add support for group_specs filter search in share group type list API.

Implements: blueprint support-group-spec-search-share-group-type-api
Change-Id: I10caed1d524614a74a75e8f856b0579ab11dc4b5
2021-12-09 17:26:11 +00:00
Zuul
5ff97f51a2 Merge "early return for _share_replica_update() if there is no active replica" 2021-12-09 00:09:13 +00:00
Zuul
00332b3d19 Merge "[NetApp] Fix default thin_provisioned volumes on AFF" 2021-12-08 22:11:17 +00:00
Zuul
1856bf632c Merge "Follow up for share server migration enhancements" 2021-12-08 21:18:28 +00:00
Zuul
dad3cc805c Merge "Update admin, user and contributor guide" 2021-12-08 20:48:38 +00:00
Fabio Oliveira
9417ece456 NetApp OnTap: Fix compatibility check for share migrate
The issue happens when the parameter 'encrypt-destination' is sent to
OnTap devices with version lower than 9.0 or OnTapi lower then 1.110.

This patch adds a condition to check these versions and ignore the flag
addition if needed on '_send_volume_move_request'.

Closes-Bug: 1915237
Change-Id: Id9faa4f73996cb7467b7361d0406c980f06905c2
2021-12-08 16:17:57 -03:00
Zuul
c09a5f08c4 Merge "Add api-ref for security service update" 2021-12-08 15:21:06 +00:00
Goutham Pacha Ravi
578e3c78c2 Move release notes to correct folders
Idb4b6de5108dd1862df7de97d0ffdc15282b1d74 recently merged and
is backport worthy to all maintained older stable releases.

I34020da6a929f5c7ae1c63bc0f2ef338c49dbe10 was committed
to stable/xena when it was still under development; the bug-fix
in question is not back portable to other stable branches, so
backporting this release note fix to stable/xena should suffice.

Change-Id: I751b6e4a3288cde7a98c0ddc55deac7a0682010d
Related-bug: #1942124
Related-Bug: #1475351
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2021-12-07 14:21:27 -08:00
Goutham Pacha Ravi
021e7ab02f Move db release note to correct folder
This change must be backported to stable/wallaby
as well.

Change-Id: I6d4f2cc263fc7dd099ce27e674709baf3916ea9b
Related-Bug: #1908352
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2021-12-07 14:14:32 -08:00
silvacarloss
40da25f286 Add api-ref for security service update
Updates the API reference to fit into the changes merged in the
add/update security service in share networks feature.

Change-Id: Id7dd45dc23c41c1ade28b042f87b216142b8a062
2021-12-06 19:07:13 -03:00
Zuul
21d93dc5d1 Merge "Handle successful deletion of snapshot if quota commit fails" 2021-12-03 23:28:13 +00:00
Megharth
a6177bcc0d Handle successful deletion of snapshot if quota commit fails
Replaced a non-existing snapshot delete method
with an appropriate one and added tests for
the same

Closes-Bug: #1475351
Change-Id: Idb4b6de5108dd1862df7de97d0ffdc15282b1d74
2021-12-03 19:24:10 +00:00
Maurice Escher
7b7d18e142 early return for _share_replica_update() if there is no active replica
If the parent share of the replica has no active replica,
this is an error situation where _share_replica_update() simply
returns and logs a warning if the replica being acted on has not
been already in error state itself before.

Change-Id: I9bdbbaafba413fa4b2a783130fd58a4b6c2cea4b
Partial-Bug: #1924230
2021-12-03 15:49:55 +00:00
Goutham Pacha Ravi
6943b31697 [devstack] Use OSC to set up share types
We used a workaround to solve the lack of legacy credentials
in our devstack plugin script by sourcing credentials early [1].

This workaround breaks when using the devstack-system-admin
persona from the /etc/openstack/clouds.yaml that devstack
sets up, because we'd be sourcing project credentials that aren't
popped off in time [2]. Cloud profiles work with OSC, we could
switch to that in the devstack plugin rather than rely on legacy
credential helpers from devstack. The only remaining piece is the
group type setup [3] which is expected to be complete soon.

[1] https://review.opendev.org/c/openstack/manila/+/818617
[2] https://review.opendev.org/c/openstack/devstack/+/817074
[3] https://review.opendev.org/c/openstack/python-manilaclient/+/805064

Change-Id: Icc15f427cc02054021fa23626ea14e6cd37b18fb
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2021-12-02 15:43:19 -08:00
Zuul
72ecaf0fab Merge "[api-ref] Fix datatype of cast_rules_to_readonly" 2021-12-02 11:59:13 +00:00
tutkuna
d4c0f4a907 [api-ref] Fix datatype of cast_rules_to_readonly
Fixing cast_rules_to_readonly type from string to boolean
for share instances and share replicas.

The API-REF had the wrong type for these fields.

Closes-Bug: #1948717

Change-Id: Ie8defe1fcb03bced9887ba1b41d5b062ba477924
2021-12-02 00:39:34 +00:00
Zuul
7b30e33ebd Merge "Deletes the six library and all its usages from manila/utils.py" 2021-12-01 06:57:36 +00:00
Zuul
d4e16a30b9 Merge "[TrivialFix] Fix up a bugfix release note" 2021-11-30 12:26:43 +00:00
Zuul
7e392f3acb Merge "Fix glusterfs test bug" 2021-11-23 19:33:21 +00:00
Zuul
7dd17f4ed0 Merge "replace deprecated pyparsing method" 2021-11-23 15:13:55 +00:00
Zuul
469e547b88 Merge "Modify docker instalation for fedora systems" 2021-11-23 12:33:08 +00:00
Goutham Pacha Ravi
0dbe028009 replace deprecated pyparsing method
pyparsing renamed a method used to define the operator
precedence hierarchy [1]. The method's behavior was preserved
although opt-in override enhancements to the paranthesis were
introduced.

Needed-by: https://review.opendev.org/818614/
[1] ab2f220dd2

Change-Id: I77ea03284c1db6b4eb171ef6e2e88ac506304502
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2021-11-22 13:08:20 -08:00
silvacarloss
792207100b Source admin credentials for manila setup
A change that stops loading credentials from userrc_early file [1]
was merged. Creating resources using the python-manilaclient
requires some parameters that were set while loading such file.

This change starts loading the credentials during the manila setup,
so the client can normally create the resources.

Change-Id: Id872f6e62b6464544a4edfbc2d3e7c954042f6e2
2021-11-19 15:03:10 -03:00
Zuul
91e7430d97 Merge "Add release notes command to tox" 2021-11-17 22:27:14 +00:00
Zuul
70b0f6427e Merge "[doc] update cli doc about extend share" 2021-11-16 19:52:51 +00:00
Zuul
db13668e92 Merge "[doc] update doc about query user message" 2021-11-16 19:52:47 +00:00
silvacarloss
7500d22bca Modify docker instalation for fedora systems
Use install_package instead of using a specific package manager
while installing docker on fedora systems. With DNF also a
possibility, the better option is to do not take a stand in chosing
which package manager will be used to install packages.

We have a install_package function that will use the appropriate
package manager to install the programs we need to install.

Change-Id: I0524554dae2d6970191ba3afa583480c391b5c3c
2021-11-11 18:59:40 -03:00
5bf206285d Drop non-ASCII character from manila config
Noticed the issue with packstack deployment
on CentOS 9-Stream[1]. The issue is raised
by puppet when non-utf8 encoding is used like
LANG=en_US or LANG=C.

Other option is to force LANG=en_US.UTF-8
with the deployment but just for this
description help(all other services working fine),
doesn't look good so proposing to drop that non-ASCII
character.

Issue got caught in CentOS 9-Stream only as it
disabled locale forwarding in OpenSSH by default[2].

[1] https://review.opendev.org/c/x/packstack/+/816796
[2] https://bugzilla.redhat.com/show_bug.cgi?id=2002734

Change-Id: Ia99cc5313bed950e3363ae311b741395d60eb57b
2021-11-11 20:06:19 +05:30
Nahim Alves de Souza
c1db551775 [NetApp] Fix default thin_provisioned volumes on AFF
The NetApp ONTAP driver was creating thin provisioned volumes on
AFF systems even when the thin provisioned extra spec was saying
the contrary.

ONTAP AFF systems create thin provisioned volumes by default, which
differs from FAS systems, that creates thick provisioned volumes by
default.

The NetApp ONTAP driver was modified to fix this misbehavior.

Change-Id: I9218bf0d7cb607dd75e892ce86af958d43a7fcdb
Closes-Bug: #1929421
2021-11-10 14:09:05 +00:00
haixin
fb1aaa93ff [doc] update doc about query user message
Change-Id: I22d35ac31f024712a2bdd6df307682de04301c22
2021-11-10 11:37:42 +08:00
haixin
ba7f1a4e44 [doc] update cli doc about extend share
Change-Id: I0122c33cb967f5674ffb10adb07864d379d79d7f
2021-11-10 09:59:36 +08:00
Zuul
67664839b3 Merge "[doc] Update PTL documentation" 2021-11-08 22:15:53 +00:00
Zuul
7d498f5235 Merge "[doc] Fix config and install guide for the generic driver" 2021-11-08 12:15:38 +00:00
silvacarloss
94a55f396b [doc] Update PTL documentation
Adds a call out to the release session of the PTL documentation.
It is important to release new code for branches in a specific
order (from the newest branch to the older ones)

Change-Id: Id32daf390fd31f58b10635b6c7e434741ff8a08f
2021-11-05 18:28:30 -03:00
Ashley Rodriguez
d9b2b9d0db Fix glusterfs test bug
Added retry method to set_vol_option

Closes-Bug: #1943836
Change-Id: I52f3b16569614025341dff614ce8e12d1048ba2d
2021-11-05 19:18:10 +00:00
Goutham Pacha Ravi
d3176fdf04 [TrivialFix] Fix up a bugfix release note
Change-Id: I1cb7c1972e0cbe5deb270e80e85b2c3e35ec16f7
2021-11-02 14:38:04 -07:00
Besjana Gjika
b62081e138 Deletes the six library and all its usages from manila/utils.py
The manila/utils.py is still using six library and some of its methods, which are useless as Python 2 is no more used.

The import of six library and encodeutils from oslo_utils are removed as well as their usage inside the code.

Closes-Bug: #1948029
Change-Id: I855022b9bd038449c0eb87868d6cf39413341db0
2021-10-29 11:44:42 +00:00
Zuul
2d62329abd Merge "service_instance: allow overriding the instance name" 2021-10-27 23:31:49 +00:00
Goutham Pacha Ravi
9b21f4e476 [doc] Fix config and install guide for the generic driver
The generic driver needs to communicate with cinder, nova, neutron
and glance. It does so using credentials set in the configuration
file; some of this information was missing in our install and config
guides.

Change-Id: Ia7dc0e441057487e42b356b5d0ee22d5615be0a5
Closes-Bug: #1948646
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2021-10-26 22:08:36 +00:00
David Caro
abfa2e2311
service_instance: allow overriding the instance name
This uses the method _get_service_instance_name to generate the name
of the share service instance, instead of using directly the share
service id.

Note that it changes the default value of the
service_instance_name_template option to match the current default and
keep backwards compatibility.

Closes-Bug: #1945463
Change-Id: I3ee10f53315a37b47bd66eba082502b4209f4d95
Signed-off-by: David Caro <me@dcaro.es>
2021-10-26 10:58:51 +02:00
Zuul
a659470852 Merge "Adapt CephFS driver to do not try to escape export ip" 2021-10-26 01:08:32 +00:00
Zuul
7d4e507e94 Merge "doc: admin: generic_driver: extend documentation" 2021-10-25 22:40:29 +00:00
silvacarloss
43ebc12fb5 Adapt CephFS driver to do not try to escape export ip
Changes CephFS driver to do not try to escape export ip in case it
is a hostname. The CephFS driver might use the hostname as an
export ip in case no ``cephfs_ganesha_server_ip`` is configured.
If that happens, we should not be allowing ip validations to occur
uppon a hostname, because it differs from an IPv4 or IPv6 and that
isn't necessarily an issue.

Change-Id: I1bd57eec3474768596cfab1bf2f8eb6123cc95a8
2021-10-18 13:24:56 +00:00
Takashi Kajinami
2fd701e657 Fix ignored [neutron] options
The following three options have had no effect since implementation
to use these parameters were unintentionally removed by [1].
 - url
 - url_timeout
 - auth_strategy

This fixes/deprecates these parameters. The details are as follows.

1) url
This option is fixed and now overrides the endpoint url which Manila
uses to connect neutron. Default of the url option is changed to keep
the existing behavior by default.

2) url_timeout
This option is just deprecated, because there is already the timeout
parameter in keystoneauth to define request timeout.

3) auth_strategy
This option is also deprecated. The auth mechanism should be defined
by the auth_type parameter in keystoneauth instead.

[1] 7fc492ea79ab0dbbc3d50bf477ae2a1586281dda

Closes-Bug: #1946990
Change-Id: I34cfff78d70a5e1cbd2ee75da36b692cb19a45a4
2021-10-13 23:55:05 +09:00
Simon Dodsley
34d2094843 Pure Storage FlashBlade Manila - Version increment for Yoga
Change-Id: If61081cd11b15285a6ecef747f274b51ce95687c
2021-10-06 12:41:29 -04:00