5937 Commits

Author SHA1 Message Date
Clifford Emeka
818f4e1d06 Change the default value for is_public for share group type creation
The default value for "is_public" parameter for share group type
creation should be True. However, it is set to `false`. Fix the
error in the documentation and sets the default value of `is_public`
to `true`.

Closes-bug: #1997743
Change-Id: Ia596ec0ffcf16414c6b4a5f0e1631e7a755af23a
2023-04-03 08:56:27 +01:00
Zuul
f3ec5e738c Merge "[doc] Add sample dummy driver config" 2023-03-28 15:02:35 +00:00
Zuul
1dc7287a94 Merge "adds share server uuid on migration cancel" 2023-03-28 15:02:33 +00:00
Simon Dodsley
6ac66c1967 Pure Storage - bump version numbers for 2023.2 (Bobcat)
Pure uses the version number of the driver to identify which
customers are using which versions of OpenStack.

This will help granular analysis of which driver is being
used in each OpenStack version

Change-Id: I0d4cf3b668850b7ba5c99b24f4efa3764b4e4875
2023-03-24 09:27:20 -04:00
Zuul
4682f457df Merge "Update master for stable/2023.1" 2023-03-23 18:06:21 +00:00
Goutham Pacha Ravi
e1b9241384 [doc] Add sample dummy driver config
This should help new contributors have an easier
on-ramp to certain kinds of manila development.

Change-Id: I55a43cccec2f8a1987042398c9f8057a95f44d8f
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2023-03-22 21:12:01 +00:00
Clifford Emeka
86e0e3887f adds share server uuid on migration cancel
Closes-bug: #1989819

Change-Id: I6064d31d20eb10c5e0d42e9aff18d512c200e378
2023-03-22 12:29:37 +01:00
Zuul
8fa97dfb7b Merge "[coordination] backend_url should be secret" 2023-03-21 07:57:29 +00:00
Takashi Kajinami
8ec4687566 [coordination] backend_url should be secret
The backend_url option can sometimes contain secrets.

For example when redis coordination backend is used and authentication
is enabled in redis, the plain redis password is put as an URL element.

[coordination]
backend_url=redis://:password@127.0.0.1:6379

Closes-Bug: #2012246
Change-Id: Ia815720cedda2f5c70205ffda5c765364cee8f8c
2023-03-20 18:37:48 +09:00
Takashi Kajinami
729aad4b2b Remove TripleO job
This job has actually attracted no interest and has been kept
experimental. Now TripleO project is being deprecated so we should
drop this unused job.

Change-Id: Ia098bacc7d53f878d736a324847edd5c02e40631
2023-03-14 14:29:25 +09:00
7f3f6dcbe1 Update master for stable/2023.1
Add file to the reno documentation build to show release notes for
stable/2023.1.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2023.1.

Sem-Ver: feature
Change-Id: I93344e494493bf6b7853b48053eee7aa134f85be
2023-03-03 10:24:58 +00:00
Zuul
f03e84ae62 Merge "[NetApp] Fix DHSS mode fails to create share on a new pool" 16.0.0.0rc1 16.0.0 2023-03-02 12:44:15 +00:00
Zuul
51f75da64e Merge "update capacity filter during extend share" 2023-03-01 18:41:21 +00:00
andrebeltrami
7e08ed4ce5 [NetApp] Fix DHSS mode fails to create share on a new pool
This patch fixes #1928241 checking if the share pool name
is in vserver aggregates list, if it is not, the share server
cannot be reused and a new one is created. This fix also
includes NetApp Flexgroup and Flexvol.

Closes-Bug: #1928241
Change-Id: I24bf98f6d7c962ff9430748ff0bc88c647b9946c
2023-03-01 15:09:56 -03:00
Zuul
f075b1bd7d Merge "[NetApp] catch errors on getting vserver when reusing share server" 2023-02-28 00:59:41 +00:00
Zuul
c0b889d886 Merge "[docs] Update documentation for Infinidat driver" 2023-02-27 23:43:24 +00:00
haixin
e5d644fec3 update capacity filter during extend share
use size increase to calculate provisioned_ratio during
extend share.

Closes-Bug: #1968891

Change-Id: I2d4903d6a2fda588b126a062c755db2fa2b09cdb
2023-02-27 23:14:50 +00:00
Zuul
29db644db5 Merge "NetApp: move split job to end" 2023-02-27 19:35:49 +00:00
Zuul
ffe63a9c4c Merge "Fix db query for service cleanup." 2023-02-27 17:24:04 +00:00
Alexander Deiter
29f97d5f38 [docs] Update documentation for Infinidat driver
Update the step for the user account as mentioned
in the official Infinidat documentation.

Signed-off-by: Alexander Deiter <adeiter@infinidat.com>
Change-Id: I3f733682c8805e6258c945c81ce012badaf80796
2023-02-26 22:09:24 +02:00
Zuul
74ae712d58 Merge "Add 'state' column in 'services' table." 2023-02-24 23:52:59 +00:00
Zuul
e5504f03c0 Merge "Fix exception in share transfer accept routine" 2023-02-24 21:07:15 +00:00
Zuul
8de44f11d0 Merge "[CI] Bump timeout for the migrations test case" 2023-02-24 13:30:07 +00:00
Kiran Pawar
ce42bd9e1a Fix db query for service cleanup.
Instead of getting all services, fetch topic related entries from db
during service cleanup.

Related-bug: #1990839
Depends-on: I8b71c4c27ff8fcb25616a95a5ed8362a7f4ffc61
Change-Id: I9e911021bd144b76d39193e5480d5ca88973973e
2023-02-24 12:33:20 +00:00
Zuul
a85649718e Merge "tox4 needs allowlist_externals for fast8" 2023-02-24 08:01:00 +00:00
Zuul
4befddacae Merge "[NetApp] Configure VLAN/MTU through subnet metadata" 2023-02-24 08:00:58 +00:00
Felipe Rodrigues
e2729946fc [NetApp] Configure VLAN/MTU through subnet metadata
The NetApp driver can setup a share server VLAN segmentation
and MTU based on the subnet metadata. If the subnet metadata has
`set_vlan`, the driver will configure the segmentation
following the metadata fields. If the subnet metadata has the
`set_mtu` field, the MTU is configured according its value.

If share network subnet does not have those metadata fields,
the segmentation configuration keeps working as before, that's it,
it is set according to the values provided by Manila network plugin.

Change-Id: I69731b187527d8d443893dcc94c604688d73e696
2023-02-23 22:26:30 -03:00
Zuul
6e7d63244e Merge "NetApp ONTAP: REST transition - DHSS True functions" 2023-02-24 00:46:19 +00:00
Zuul
0cd7e1cecd Merge "NetApp ONTAP: REST transition - Data motion related functions" 2023-02-24 00:40:42 +00:00
Zuul
131eda6e3c Merge "NetApp ONTAP: REST transition - DHSS False Basic operations" 2023-02-23 23:11:31 +00:00
Maurice Escher
209b8ccab1
allow overide of basepython with TOX_PYTHON env
Change-Id: I3579773b3414c6b6a4a652747de5f7166c9f668a
2023-02-23 13:16:04 +01:00
Nahim Alves de Souza
65c82408ff NetApp ONTAP: REST transition - DHSS True functions
This patch contains the functions related to DHSS True only
functions, that is, the operations related to share servers and
network configurations.

Many functions that are used on DHSS True operations were already
covered in previous patches because they are also used
by DHSS False operations.

This patch covers DHSS True specific implementation for:

  > DHSS True driver initialization and periodic tasks
  > Setup share server
  > Delete share server
  > Security services configurations (AD, LDAP and Kerberos)
  > Create share from snapshot
  > Share server migration

partially-implements: bp netapp-ontap-rest-api-client

Change-Id: Ia8992e8125c4fc7f30fb94f19449cd62b95a4831
Co-authored-by: Caique Mello <caiquemellosbo@gmail.com>
Co-authored-by: Felipe Rodrigues <felipefuty01@gmail.com>
Co-authored-by: Helena Dantas <helenamylena@gmail.com>
Co-authored-by: Matheus Andrade <matheus.andrade@netapp.com>
Co-authored-by: Lucas Oliveira <lucasmoliveira059@gmail.com>
Co-authored-by: Luisa Amaral <luisarfamaral@gmail.com>
Co-authored-by: Luiz Santos <luizfelipe.looze@gmail.com>
Co-authored-by: Raffaela de Castro Cunha <raffaelacunha@gmail.com>
Co-authored-by: Renan Vitor <renanv@netapp.com>
2023-02-23 11:52:10 +00:00
Nahim Alves de Souza
b0a1ad9785 NetApp ONTAP: REST transition - Data motion related functions
This patch implements functions related to data motion with
DHSS False. It covers:
  > share migration
  > share replication
  > create share from snapshot

partially-implements: bp netapp-ontap-rest-api-client

Change-Id: I2db309651473e6bdc7ef58dd4d2ffa6f083f665a
Co-authored-by: Caique Mello <caiquemellosbo@gmail.com>
Co-authored-by: Felipe Rodrigues <felipefuty01@gmail.com>
Co-authored-by: Helena Dantas <helenamylena@gmail.com>
Co-authored-by: Matheus Andrade <matheus.andrade@netapp.com>
Co-authored-by: Lucas Oliveira <lucasmoliveira059@gmail.com>
Co-authored-by: Luisa Amaral <luisarfamaral@gmail.com>
Co-authored-by: Luiz Santos <luizfelipe.looze@gmail.com>
Co-authored-by: Raffaela de Castro Cunha <raffaelacunha@gmail.com>
Co-authored-by: Renan Vitor <renanpiranguinho@gmail.com>
2023-02-23 11:51:56 +00:00
Kiran Pawar
98be6376b2 Add 'state' column in 'services' table.
When manila services are stopped or restarted via stop(), the DB
entries are not deleted, they are destroyed only in kill() method. In
cluster deployments, where multiple instances of manila services are
deployed via PODs, unique hostname is derived from node name. However
if pods are deployed again and launched on new hosts/nodes, the old
entries of manila service remains as it is.
Fix it by adding 'state' column in 'services' table and introducing
per service cleanup function. On service stop, state is changed to
'stopped' and cleanup function will delete 'stopped' services unless
they are 'up' again before cleanup periodic interval.

Closes-bug: #1990839
Change-Id: I8b71c4c27ff8fcb25616a95a5ed8362a7f4ffc61
2023-02-23 11:12:00 +00:00
Maurice Escher
243721dc89
tox4 needs allowlist_externals for fast8
Change-Id: I239c54cedcb3e0dd125ef702d8a3aee8049df578
2023-02-23 10:44:33 +01:00
Zuul
793c5c362e Merge "Fix Manila API error message" 2023-02-23 06:59:10 +00:00
Goutham Pacha Ravi
51a0f20f76 [CI] Bump timeout for the migrations test case
We frequently face slow nodes on the CI, and tests
are timing out because new migrations were added
in this release and the test will likely need more
time on slow nodes.

Change-Id: I41fb3936cd302d958371e2b86dd2f32cab4d612a
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2023-02-22 11:15:54 -08:00
Zuul
af57c4dfd5 Merge "Remove placeholder from upgrade check" 2023-02-22 14:25:56 +00:00
CaiqueMello
a092c79f25 NetApp ONTAP: REST transition - DHSS False Basic operations
This patch contains the implementation for the basic operations
for DHSS False (cluster and SVM scoped account) using the ONTAP
REST API. It covers:

  > Driver initialization
  > Periodic tasks
  > Share create/delete/manage/unmanage
  > Share extend/shrink
  > Share access allow/deny
  > Share snapshot create/delete/manage/unmanage

partially-implements: bp netapp-ontap-rest-api-client

Change-Id: I7ad046a45551ce5cad07e390530877bcd5cd7e93
Co-authored-by: Caique Mello <caiquemellosbo@gmail.com>
Co-authored-by: Felipe Rodrigues <felipefuty01@gmail.com>
Co-authored-by: Helena Dantas <helenamylena@gmail.com>
Co-authored-by: Matheus Andrade <matheus.andrade@netapp.com>
Co-authored-by: Lucas Oliveira <lucasmoliveira059@gmail.com>
Co-authored-by: Luisa Amaral <luisarfamaral@gmail.com>
Co-authored-by: Luiz Santos <luizfelipe.looze@gmail.com>
Co-authored-by: Raffaela de Castro Cunha <raffaelacunha@gmail.com>
Co-authored-by: Renan Vitor <renanv@netapp.com>
2023-02-22 13:56:06 +00:00
Goutham Pacha Ravi
ef111c59ea Fix exception in share transfer accept routine
The exception being handled has a typo and our pylint
job's failing. While we're fixing it up, it's worth adding
some unit tests for the exception handling.

Change-Id: Ia12f85686ddb69ebecf502955f1ce9f1956627d4
Closes-Bug: #2007881
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2023-02-21 15:51:53 -08:00
Zuul
f7d22df286 Merge "NetApp: Use default_ad_site in active directory" 2023-02-21 22:19:00 +00:00
Zuul
bb645be1df Merge "TrivialFix: Fix releasenote file location" 2023-02-21 20:41:12 +00:00
Felipe Rodrigues
a4090a6d78 TrivialFix: Fix releasenote file location
The file `macrosan-add-configuration-option-282fa1026748c4f9.yaml`
is located in a wrong directory. Move it to right place.

Change-Id: I4b7cf8cb4288cb85baac978212cb7f2f158bcf4e
2023-02-21 16:18:44 -03:00
Maurice Escher
6a887f24d2
check_exec: /usr/bin/python3 bad interpreter
use /usr/bin/env python3

Closes-Bug: #2007975
Change-Id: I517e7245492ee68b25675628366998456173959a
2023-02-21 14:11:35 +01:00
Maurice Escher
dd13d5ae39
NetApp: move split job to end
Volumes may be busy during split operation, so other actions would fail,
e.g. applying snapdir visibility, setting volume size ..

Closes-Bug: #2007970
Change-Id: I3e36f77f4e46c90af8445601e10eadf9c55ed5f6
2023-02-21 13:17:40 +01:00
Kiran Pawar
0a66bd095c NetApp: Use default_ad_site in active directory
From version 2.76, 'default_ad_site' which if provided set domain
controller discovery mode to 'site'.

Related-bug: #1988146

Depends-On: I8e21e9170eace134a51efed84de1ccc58eb7eaaa
Change-Id: I251e4f94ef04e9ad2fe24844fb8ce1947f42d752
2023-02-21 11:09:30 +00:00
Zuul
cf86b23896 Merge "Metadata for Share Network Subnet Resource" 2023-02-21 01:45:59 +00:00
Zuul
79abb08152 Merge "Nova: Remove unused server operations" 2023-02-21 01:08:14 +00:00
Zuul
b35ed8cf71 Merge "Nova: Remove unused image apis" 2023-02-21 01:08:12 +00:00
Zuul
5a21666551 Merge "service instance: Read public ssh key directly" 2023-02-20 21:26:43 +00:00