6038 Commits

Author SHA1 Message Date
Zuul
aafc221027 Merge "Resource Locks: Support for share deletion lock" 2023-08-23 23:27:37 +00:00
Yian Zong
ac8a9a2380 Adds a new Manila driver for Dell PowerFlex storage backend
Adds a new Manila driver to support Dell PowerFlex storage backend.
It will include the minimum set of Manila features.

Implements: blueprint dell-powerflex-manila-driver
Change-Id: I4dc81bf75135b32f1971ca21eee298bca33441cf
2023-08-23 16:04:22 +00:00
Zuul
16af92c694 Merge "Adds a new Manila driver for Dell PowerStore storage backend" 2023-08-23 12:27:28 +00:00
Zuul
7cab4e341d Merge "Add pre-commit" 2023-08-22 22:14:54 +00:00
Zuul
bad756b1cc Merge "Turn off global venv in rally jobs" 2023-08-22 19:44:20 +00:00
Zuul
4ddccaf390 Merge "[RFE] NetApp share server migration get progress" 2023-08-22 10:47:28 +00:00
Zuul
6527af5a4c Merge "Remove trailing spaces, convert dos2unix" 2023-08-21 19:52:48 +00:00
Goutham Pacha Ravi
f641577d8a Resource Locks: Support for share deletion lock
Add CRUD APIs for resource locks with support
for preventing deletion of shares (applies to
soft-deletions and unmanage operations as well).

Change-Id: I146bc09e4e8a39797e22458ff6860346e11e592e
Implements: bp/allow-locking-shares-against-deletion
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2023-08-18 10:47:25 -07:00
Zuul
a93a844398 Merge "NetApp ONTAP: Fix SnapMirror snapshots not being cleaned up" 2023-08-17 14:55:58 +00:00
Yian Zong
09555c80de Adds a new Manila driver for Dell PowerStore storage backend
Adds a new Manila driver to support Dell PowerStore storage backend.
It will support NFS share operations and snapshot operations.

Implements: blueprint dell-powerstore-manila-driver
Change-Id: If0d0a7820a1ae2392e5e0e4a4b65c4e631f4c3d4
2023-08-17 08:19:08 +00:00
Goutham Pacha Ravi
5a4404f059 Turn off global venv in rally jobs
Devstack's recent global venv changes [1]
resulted in our rally jobs being broken.
We can turn off the GLOBAL_VENV logic in
devstack for these jobs while we investigate
how to fix this elsewhere.

Change-Id: I8c3483b9cee7337f48742989b3ddc90b7d09a6b2
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2023-08-16 15:25:19 -07:00
Zuul
624dbabc25 Merge "[NetApp] Fix share server migration" 2023-08-16 21:01:58 +00:00
MelloCaique
bb7a06bf32 [RFE] NetApp share server migration get progress
Implement method share_server_migration_get_progress to get the
share server migration percent based in the total size of shares
(GB) tranfered from source to destination.

Depends-On: I9eae95ff3f66a3497b00ca582491afec58ae6dc3

Closes-bug: #2030969

Change-Id: If4bf3378388cc0d9ea03f58b0ab5abd9a268bfdd
2023-08-14 12:39:14 +00:00
Zuul
824fdb3270 Merge "[DOC] Add Snapshot Metadata Documentation" 2023-08-11 19:45:35 +00:00
ashrod98
3497062d49 [DOC] Add Snapshot Metadata Documentation
Change-Id: Ic1aafb1b746ea11cfd103bb98d0d6d02a215bf1d
2023-08-11 17:43:55 +00:00
zhongjun
0b99fdaa9a Implement share backup
Add share backup feature in Data Copy Service and
Share Service. It will allow the user to create, restore
and delete backups as well as listing backups and showing
the details of a specific backup.

APIImpact
DOCImpact

Change-Id: I7d10cf47864cd21932315375d84dc728ff738f23
Implement: blueprint share-backup
2023-08-10 11:11:42 +00:00
Zuul
364000c140 Merge "NetApp: Improve REST API cover and fix internals" 2023-08-04 00:49:18 +00:00
Zuul
2318b27f40 Merge "Fix error message from share server API" 2023-08-03 11:32:41 +00:00
Zuul
5f733d3d97 Merge "[NetApp] Fix NetApp driver create from snapshot" 2023-08-02 22:26:20 +00:00
Nahim Alves de Souza
b4cc96d5fd NetApp: Improve REST API cover and fix internals
Improve coverage of REST API feature merged in stable 2023.1.
Fix Netapp internals tests

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

Co-authored-by: Caique Mello <caiquemellosbo@gmail.com>
Co-authored-by: Helena Dantas <helenamylena@gmail.com>
Co-authored-by: Lucas Oliveira <lucasmoliveira059@gmail.com>
Co-authored-by: Matheus Andrade <matheus.andrade@netapp.com>
Co-authored-by: Renan Vitor <renanpiranguinho@gmail.com>
Change-Id: Ia5fe1834cc6643d5df0a25f9f4a074911d8ad550
2023-08-02 13:45:34 +00:00
MatheusAndrade777
a934499834 [NetApp] Fix share server migration
SVM Migration was failing using NetApp driver after changes on share server structure,
since now the share server can have more than one subnet.

This patch fix all the errors related to this change.

Closes-bug: #2018300
Change-Id: I9eae95ff3f66a3497b00ca582491afec58ae6dc3
2023-08-01 14:01:31 +00:00
Kiran Pawar
c88aac595b [API] Validate display name/description length
In case of snapshot create/update, if display name or  description is
above max limit (fields created in db with limit 255), manila
internally throws DB exception. But the error reported to user is not
meaningful.
Fix by validating name/description length should not cross max limit.

Closes-bug: #2023964
Change-Id: I6b1a274da3692700650f84736877c0ae98d46c81
2023-08-01 08:22:32 +00:00
Zuul
afd0d723bb Merge "Update timedelta and old schedules as per netapp_snapmirror_schedule" 2023-08-01 00:13:39 +00:00
Felipe Rodrigues
456b90898f Fix error message from share server API
Fixing share server api error message when share network
does not exist.

Closes-bug: #2025649
Change-Id: I19a2f7dbb2375b2d3a281efa673da986f29aa9d6
2023-07-31 09:31:38 -03:00
Zuul
3b9cfe126f Merge "Handle access rules on share replicas." 2023-07-27 05:59:21 +00:00
Raffaela Cunha
69efb9ae53 [NetApp] Fix NetApp driver create from snapshot
Changes were done in create_share_from_snapshot
method so that a scoped account does not need to get the
source and the destination cluster names and does not have the
permissions.

Closes-Bug: #1922512
Change-Id: Ib36c81c213a374a918378854ce0a89ce70acf1d0
2023-07-26 13:22:24 +00:00
Kiran Pawar
da23b652fb Update timedelta and old schedules as per netapp_snapmirror_schedule
Asynchronous SnapMirror schedules are set using netapp config option
'netapp_snapmirror_schedule'. The delta for determining replica is
in-sync or out-of-sync updated to twice the schedule time seconds.
Also, not only new snapmirrors, but also old ones should
have a schedule according to the current
'netapp_snapmirror_schedule' config.

Closes-bug: #1996859
Depends-On: I0390f82dfdc130d49e3af6928996dd730e3cf69f
Change-Id: Ifbe0575f6c359929344763666e4d93d8c6084e83
2023-07-26 10:47:03 +00:00
Kiran Pawar
0e7812657b Add count info in 'snapshot list' API
Added support for display count info in share snapshot
list&detail APIs:

1. /v2/snapshots?with_count=True
2. /v2/snapshots/detail?with_count=True

New microversion added 2.79

Closes-bug: #2024556
Change-Id: I37d8ca9022e2ea2c107c6695e20e951d7950043a
2023-07-25 08:33:15 +00:00
Zuul
e31be16130 Merge "fix to get soft-deleted objects on db model query" 2023-07-17 21:33:47 +00:00
Zuul
a01cdc7719 Merge "Fix duplicate entries in share_server_backend_details" 2023-07-10 19:06:46 +00:00
Maurice Escher
945579aefc Handle access rules on share replicas.
Currently rules that are copied from source share would hang in
'queued_to_apply' forever. To fix this check access_rule_status of
the created replica and accordingly update access rule and state.

Change-Id: Ie7ddd9f631510ba97e92a1eb0eb9a5d944ec1b3b
Closes-Bug: #2000253
2023-07-10 15:44:19 +00:00
Zuul
68127fe444 Merge "skip periodic update on replicas in 'error_deleting'" 2023-06-27 12:50:34 +00:00
Maurice Escher
ca90c87c47
skip periodic update on replicas in 'error_deleting'
Change-Id: I737dbc5138c81e6708b9ebae7e7c11622e124a3d
Closes-Bug: #2024578
2023-06-26 13:28:22 +02:00
Goutham Pacha Ravi
4351805302 [Doc] Annotate max api microversion in Antelope
Change-Id: Icc37b55bf17063eb3796d2934c35e53cd34011b2
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2023-06-24 00:31:11 +00:00
Kiran Pawar
37278df338 Fix duplicate entries in share_server_backend_details
share_server_backend_details_set() add entries in db table without
checking existing entries with given combinaton of share_server_id
and key. This causes duplicate records. Fix it by validating presence
of share server id and key.

Closes-bug: #2024658
Change-Id: I58dcd9716cf95d0d696c13a4c831df787726bcda
2023-06-22 15:01:12 +00:00
Takashi Kajinami
5daf9bd6ca Stop overriding auth/identity options of tempest
... because these options are configured by devstack. This allows us to
honor some options which determine whether these accounts should be
used(eg. TEMPEST_HAS_ADMIN)

Also, this fixes the inconsistent default value of admin password (it
defaults to 'secret' in devstack).

Change-Id: I6221168ad400346bf1542ed7715c481295e42e04
2023-06-20 01:26:46 +00:00
Zuul
c976f041dd Merge "[DOC] Add doc for Scheduler Hints" 2023-06-10 17:52:40 +00:00
Zuul
f5df898cd4 Merge "[DOC] Add doc for Share Transfer" 2023-06-09 13:16:31 +00:00
Nahim Alves de Souza
21356fee2d [DOC] Add doc for Scheduler Hints
Closes-bug: #2008029
Change-Id: Icfdba020267bc1270f7d581b635730f20d99135e
2023-06-09 11:15:44 +00:00
Zuul
ff417fe2d9 Merge "[api-ref] Enhance quotas per share types doc" 2023-06-08 17:52:37 +00:00
Zuul
76feed440f Merge "Enhance quota documentation" 2023-06-06 01:47:34 +00:00
Zuul
f23264d0d2 Merge "Update the generic driver 'Known restrictions' section" 2023-06-05 23:02:26 +00:00
MelloCaique
e9f4bf7474 [DOC] Add doc for Share Transfer
Change-Id: Id60a0e009320a1e7b7ae7a84faf76c8bc3a50828
2023-06-02 14:07:44 +00:00
Zuul
3b7360abad Merge "Add max share extend size limited by share_type" 2023-06-01 14:27:53 +00:00
Stephen Finucane
3d1641c2f7 Add pre-commit
This is helpful to automate code style checks when commiting, avoiding
the need to remember to do this manually.

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I138fcee1842e516caf65b57cce123397ef8128bc
2023-06-01 12:11:43 +01:00
Stephen Finucane
23e6493dee Remove trailing spaces, convert dos2unix
These are issues that pre-commit identified. Address them now.

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I19f7d3689a000c41787b3fe15632564928bbf6a6
2023-06-01 12:11:43 +01:00
Kiran Pawar
7a4a81b53c Add max share extend size limited by share_type
Allows set max share extend size that can be created in extra_specs
for each share_type. At API level as part of share extend for admin,
max share extend size will be checked whereas for non-admin users,
max share size will be checked.
New extra_specs key is added to set max extend size of share
i.e.'provisioning:max_share_extend_size'

Closes-Bug: #1987253
Change-Id: I61e590ed1851e8fa15996dc61e8e17e9413a9d91
2023-05-31 03:32:10 +00:00
Zuul
bc70c12b89 Merge "db: Migrate "share metadata" APIs to enginefacade" 2023-05-30 22:53:26 +00:00
Zuul
86c32784ce Merge "db: Migrate "share network subnet metadata" APIs to enginefacade" 2023-05-30 22:47:20 +00:00
Zuul
3ee707d48e Merge "db: Migrate "share network subnet" APIs to enginefacade" 2023-05-30 22:47:18 +00:00