Commit Graph

6259 Commits

Author SHA1 Message Date
Zuul c9cf3540ff Merge "db: Unwind unnecessary independent transactions" 2024-03-27 17:19:26 +00:00
Zuul b0d6056282 Merge "[DOC] Add snapshot metadata to user guide" 2024-03-26 20:51:56 +00:00
Zuul c7dcf18319 Merge "[doc] Admin only modifiable metadata" 2024-03-26 20:21:33 +00:00
ashrod98 5b3c29548f [DOC] Add snapshot metadata to user guide
Add code block for share snapshot create, list,
set and unset to user guide.

Closes-Bug: 2058941
Change-Id: Ibed2063a92a9f338553f1db879c45545fcdbf2ee
2024-03-25 15:52:15 +00:00
Stephen Finucane 3be71e3e07 db: Unwind unnecessary independent transactions
We need to maintain these on quotas (for now) but not on other
operations.

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I991d6127c14b5f06ca9ca8e6caccbc392e639b42
2024-03-25 11:32:49 +00:00
silvacarloss e5e3b10656 [doc] Admin only modifiable metadata
Updates to the administrator and configuration metadata to address
the new configuration option, which allows administrators to
specify metadata items that should not be updated by less
privileged users.

Signed-off-by: silvacarloss <ces.eduardo98@gmail.com>

Partial-Bug: #2057707
Change-Id: If8d51d50630f0581d588e07c3c086442b451c360
2024-03-20 17:43:33 -03:00
Zuul 4dc5f6b730 Merge "Fix the link to get the next share replica" 2024-03-20 17:46:58 +00:00
OpenStack Release Bot 0c8cc2333b Update master for stable/2024.1
Add file to the reno documentation build to show release notes for
stable/2024.1.

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

Sem-Ver: feature
Change-Id: If6933ad6a578042eef9c56652d5273dafd29602e
2024-03-14 11:55:18 +00:00
Zuul 18ffa38116 Merge "Change admin metadata config option name" 2024-03-13 22:27:21 +00:00
Zuul 12a4c6627c Merge "[doc] Update CephFS admin guide" 2024-03-13 22:27:19 +00:00
Zuul 6c04a9621f Merge "Deprecate the Ceph NFSProtocolHelper" 2024-03-13 22:27:17 +00:00
Zuul adf48763db Merge "Add more tests for share/snapshot deferred deletion" 2024-03-13 19:56:47 +00:00
Zuul 0ca91f11b6 Merge "Human readable export location NetApp driver changes" 2024-03-13 18:04:30 +00:00
Zuul 1bfbfac266 Merge "[CI] Drop glusterfs jobs" 2024-03-13 16:42:38 +00:00
Zuul bd3b074aa5 Merge "Forbid resetting state of active replicas" 2024-03-13 14:08:49 +00:00
Kiran Pawar a0bcf312f3 Add more tests for share/snapshot deferred deletion
Partially-implements: bp/deferred-deletion
Change-Id: I49c7916d4823c691f3fffe6797a779b086589188
2024-03-13 12:35:28 +00:00
Okeke Christian c8236141f8 Fix the link to get the next share replica
The url to get the next share replica is broken when performing
pagination. The new API uses underscore to represent resource.
This fix resolves the broken link for share replicas by using alias.

Closes-bug: #2023754
Change-Id: I31e32c0bcfb60b53121da9a96df3b44ad2b3ac67
2024-03-13 11:45:11 +01:00
jayaanand.borra@netapp.com 4f36847de9 Human readable export location NetApp driver changes
NetApp driver changes to accommodate human readable
share location. Export path is updated with
human frendly value if present else use share-id.

partially-implements: bp human-readable-export-locations
Depends-On: I72ac7e24ddd4330d76cafd5e7f78bac2b0174883
Change-Id: I2f5bfdbc9d0458c7b9198a3eb94b3b095d5b5e04
2024-03-13 01:34:21 -04:00
Zuul d4fb4319f5 Merge "refactoring: modify function parameters and annotations to match" 2024-03-13 04:47:12 +00:00
Youngjun 8806fbe1c2 refactoring: modify function parameters and annotations to match
- the parameter description in the parameter and annotation did not match, so this was fixed.

Change-Id: I1557b74b5a2d0b81f68aa15149490bb178a5a716
Signed-off-by: Youngjun <yj.yoo@okestro.com>
2024-03-13 09:53:04 +09:00
Zuul 64f03ed4f7 Merge "Remove unused oslo.db.concurrency namespace options" 2024-03-12 23:06:04 +00:00
Zuul f5a8202c53 Merge "Deprecate Windows SMB share driver" 2024-03-12 22:03:36 +00:00
Zuul 42cf099bb4 Merge "Implement the share backup for NetApp driver" 2024-03-12 22:03:34 +00:00
Zuul b6010bb746 Merge "Add support for share/snapshot deferred deletion" 2024-03-12 21:51:10 +00:00
Zuul 012c256bab Merge "Share backups enhancement" 2024-03-12 21:51:06 +00:00
silvacarloss 5a0ebacb88 Deprecate the Ceph NFSProtocolHelper
A couple of releases ago, we started supporting clustered NFS
gateways [1], and we mentioned we had clear intentions to make
this the default choice for the deployments.

In this change, we are deprecating the NFSProtocolHelper, which
will be removed in the next skip-level release.

This means that Manila will no longer support exports created over
a NFS Ganesha instance that is not managed by the Ceph Cluster.

[1] https://review.opendev.org/c/openstack/manila/+/848987

Change-Id: I062a8c552d7d94e010cef6694bec6da68d7ea180
2024-03-12 20:39:01 +00:00
Zuul 99722dbea8 Merge "Add doc for service disable reason" 2024-03-12 18:53:00 +00:00
Kiran Pawar 558288e00a Add support for share/snapshot deferred deletion
Implements: bp/deferred-deletion
Change-Id: I9e55e1706fc0c3d9f65f73e13ba2a20f355c74f4
2024-03-12 14:22:25 +00:00
agireesh 6909a7c213 Share backups enhancement
Added new column named 'backup_type' in 'share_backups' table
and changes the share common api libs to support the dhss_true
configuration for share backup creation

Partially-implements: bp/share-backup
Change-Id: Ifb88ec096674ea8bc010c1c3f6dea1b51be3beaa
2024-03-12 15:56:38 +05:30
agireesh dfbf51bafd Implement the share backup for NetApp driver
Implement the share backup feature for NetApp driver.
NetApp SnapVault technology is used to create and restore
the backup for NetApp ONTAP share. backup delete workflow
just delete the transferred snapshot from destination
backup volume.

Depends-On: Ifb88ec096674ea8bc010c1c3f6dea1b51be3beaa
Change-Id: I5a4edbf547e7886fb4fa9c1bed90110a33f9bf3b
2024-03-12 10:12:25 +05:30
Goutham Pacha Ravi 26ec5dadb6 [doc] Update CephFS admin guide
There's a new driver mode supported since
Antelope (introduced in Zed) that supports
ceph orchestrator deployed CephFS NFS clusters.
We were missing documentation regarding this.

Also consolidate the admin/configuration references
for this driver; this deletes all the outdated
information in the existing config guide.

Partially-implements: bp use-cephadm-nfs-ganesha
Change-Id: I43952d890629e60465059a5b4242817becb198b1
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2024-03-11 20:38:10 +00:00
haixin 37f1564c67 Add doc for service disable reason
Change-Id: Ie2774a16323cf03a741583165fc7079cc8ca096d
2024-03-11 08:56:43 +08:00
Gray Lutalo b7a1b5b2cf Forbid resetting state of active replicas
In a replication setup, users encountered a critical
issue where they unintentionally reset the replica_state
of an active replica while attempting to resolve errors
on a non-active replica. This led to a situation with no
active replica, causing data loss. Users expected
server-side validation to prevent such actions.

This commit implements the necessary validation in the
codebase to ensure that the reset_replica_state action
cannot be applied to active replicas, addressing the
reported issue and improving data integrity in
replication setups.

Co-Authored-By: Solly <solobarine@gmail.com>
Closes-Bug: #2015328
Change-Id: I629669476e585a834673b8c8b49ad4b0270b877f
2024-03-09 07:40:42 +01:00
silvacarloss 987352d6cb Change admin metadata config option name
This change is a follow-up to a change that merged recently [1].
We are changing the name of the config option to make it similar
to the policy we have defined for updating some metadata that
should only be manipulated by administrators.

[1] https://review.opendev.org/c/openstack/manila/+/909175

Related-Bug: #2050010
Change-Id: I9a8a27f1181b92291f2d4ad5fd9d4483e2dacc50
2024-03-08 20:36:35 +00:00
Zuul a230ea511e Merge "Human readable export location core implementation" 2024-03-08 18:10:03 +00:00
jayaanand.borra@netapp.com ea1ac5f448 Human readable export location core implementation
Export locations are usually too difficult to memo
rize.Currently, there is no way to determine the
export location before the share is created, so
users wait until the share creation request gets
completed, and then they check the export
locations to mount the share. The generated
export locations are often not human readable
 and it is hard to memorize and control them.

Implements: bp/human-readable-export-locations
Change-Id: I72ac7e24ddd4330d76cafd5e7f78bac2b0174883
2024-03-07 17:20:30 -05:00
Zuul a5532c3080 Merge "reno: Update master for unmaintained/xena" 2024-03-06 16:55:14 +00:00
Zuul f5b822ae07 Merge "reno: Update master for unmaintained/victoria" 2024-03-06 16:52:44 +00:00
OpenStack Release Bot 5470961fb5 reno: Update master for unmaintained/xena
Update the xena release notes configuration to build from
unmaintained/xena.

Change-Id: I22133f8d1c1a50ccf48ff3475703fe3031118520
2024-03-06 11:13:18 +00:00
OpenStack Release Bot ff3f875d5e reno: Update master for unmaintained/wallaby
Update the wallaby release notes configuration to build from
unmaintained/wallaby.

Change-Id: I18776fe290aec903e8c1abe92dd5f1ddd9119464
2024-03-06 11:12:27 +00:00
OpenStack Release Bot 52a995c1ac reno: Update master for unmaintained/victoria
Update the victoria release notes configuration to build from
unmaintained/victoria.

Change-Id: Ib511a5b553441030e9d0bd6686497b162661ebf7
2024-03-06 11:11:32 +00:00
Takashi Kajinami 12e1ec4959 Deprecate Windows SMB share driver
This feature was added and maintained by Cloudbase as part of effort to
support Windows-only OpenStack but Winstackers project was retired and
there seems to be no on requiring this deployment architecture now.

Because the driver hasn't been get any meaningful update for some time
and we no longer have Hyper-V CI active, this proposes deprecating
the driver so that we can retire it in 2024.2 at the earliest.

[1] d9c0bda0b7

Change-Id: Icec29f5512d4c4ce8c8d7ccb1f2d3823bffa7ed9
2024-03-05 17:40:40 +09:00
Zuul f4c77bfe71 Merge "Add cephfs filesystem to shares metadata" 2024-03-01 07:52:13 +00:00
Zuul 7b685d9dda Merge "Add a new config option to specify admin metadata" 2024-02-29 17:06:48 +00:00
Zuul 618576ff31 Merge "Add disabled reason field to service." 2024-02-28 21:27:48 +00:00
silvacarloss 7e585a3bb5 Add cephfs filesystem to shares metadata
Make use of the `get_optional_share_creation_data` driver interface
to metadata in shares' created using the cephfs protocol.

Closes-Bug: #2050010
Change-Id: I91b51f974840f593334f2dcddfcfd45adfe87780
2024-02-27 18:09:31 -03:00
haixin 12ef157c3b Add disabled reason field to service.
update micversion to 2.83
user can set disabled reason for service.

Closes-Bug: #2037700

Change-Id: I3d7c46945366ac9e1d305c2f6de2233859259bf7
2024-02-27 14:27:37 +08:00
Takashi Kajinami 696f9ea8a2 Drop reference to WalkVersionsMixin from oslo.db
The WalkVersionsMixin class was already removed from oslo.db, because
of removal of sqlalchemy-migrate support.

Change-Id: I952e0aed8705fd4fc0b89f6ee34f31da1b30c656
2024-02-26 18:50:27 +09:00
silvacarloss 3429717601 Add a new config option to specify admin metadata
- A new config option named ``admin_metadata_keys`` was introduced
and we expect it to be set in the DEFAULT section of the manila
configuration file. It is expected that administrators will provide
a list of metadata keys that can only be updated by administrators
through this configuration option.

- Drivers will be able to set metadata while creating shares
through the `get_optional_share_creation_data` driver interface.

Closes-Bug: #2050010
Change-Id: I6412710c7db89747d23033e1a5a6be9de5886b0b
2024-02-22 14:31:44 -03:00
Zuul 25d923925a Merge "is_valid_ip_address: Catch non-string values early" 2024-02-20 21:57:34 +00:00