Commit Graph

194 Commits

Author SHA1 Message Date
Zuul 9e81815674 Merge ""--wait" option added for snapshot create/revert/delete commands" 2024-04-01 14:55:23 +00:00
Takashi Kajinami 0510ccbd61 Remove --nova-net-id option
Support for nova-network was removed from manila during Ocata cycle[1],
and nova-network was actually removed from nova several cycles ago.

[1] b213a25c44c0d49edefaa17d3a4de7a88c3c2de0

Change-Id: I4e9d4c7459fcae7bee8ff4919b61f22811336423
2024-03-28 00:45:48 +09:00
tspyderboy 202f65bd83 "--wait" option added for snapshot create/revert/delete commands
1) Creating a snapshot:
$ manila snapshot-create share1 --name testshare1snapshot --wait
<CLI waits on the share snapshot to become available before providing snapshot details>

2) Deleting a snapshot:
$ manila snapshot-delete testshare1snapshot --wait
<CLI waits on the share snapshot to be deleted before returning to the prompt>

3) Reverting a share to its snapshot:
$ manila revert-to-snapshot testshare1snapshot --wait

Closes-Bug: #1898307
Change-Id: Ib248e48c53c4c6c5886f2693e3bc26a0848fff3a
2024-03-26 16:11:23 +05:30
tspyderboy 3103b8c56a "--wait" option added for managing/unmanaging a share snapshot
Implements: Add "--wait" to asynchronous operation commands
Closes-Bug: #1898312
Change-Id: I354ca855352228911f809769ce89d06af8dd9f61
2024-03-20 09:04:58 +05:30
Zuul af8f3faf0f Merge "Human readable export location CLI changes" 2024-03-12 22:17:38 +00:00
jayaanand.borra@netapp.com b097cec84f Human readable export location CLI changes
OpenStack CLI option is added to support user friently export location.

example command:
$ openstack share create nfs 1 --name share_name --mount-point-name custom_export_path

partially-implements: bp human-readable-export-locations
Depends-On: I72ac7e24ddd4330d76cafd5e7f78bac2b0174883
Change-Id: If896065a74fc4ebabd09b677e5eb0329cecfaab9
2024-03-11 13:47:12 -04:00
OpenStack Release Bot 62400f2925 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: I9bcaa2e248292f0e77132caeab03e4d31a225769
2024-03-07 15:36:33 +00:00
Zuul 5000f1cb1f Merge "reno: Update master for unmaintained/wallaby" 2024-03-06 17:38:12 +00:00
OpenStack Release Bot 8c2db514a9 reno: Update master for unmaintained/xena
Update the xena release notes configuration to build from
unmaintained/xena.

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

Change-Id: Iee7f8fe00844e6d7ebfcad8ddae97ab7c6eb9bce
2024-03-06 11:12:44 +00:00
Zuul 5907822db6 Merge "[OSC] Fix output format for osc share subnet create" 2024-03-04 18:19:29 +00:00
Zuul 5fd1e894d0 Merge "CLI for disable service reason" 2024-02-28 23:40:06 +00:00
haixin 67cadf3831 CLI for disable service reason
Adds cli option to allow users to give reason
for service-disable.

Closes-Bug: #2037700
Depends-On: I3d7c46945366ac9e1d305c2f6de2233859259bf7

Change-Id: I0b6ac3a3a16a3eaa56758bc0b7f77bfbf2eef9e7
2024-02-27 09:44:28 +08:00
OpenStack Release Bot 5551c9420b reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: I88ab7c23b5c2d154d34ee5f2b0a038e1e7ca1ee4
2024-02-20 13:09:22 +00:00
Zuul 91bd8fc327 Merge "Fix share force delete case" 2024-02-17 00:27:23 +00:00
Kiran Pawar 99be0ce9cc Fix share force delete case
Manilaclient force delete sends two REST requests, first
force delete and then delete. Fix it.

Change-Id: I8257c04f2b5f1a02533dc0fa5d37ae6ff923a56a
Closes-Bug: #2051737
2024-02-01 07:39:07 +00:00
Goutham Pacha Ravi 3ec364d1fd Fix "per_share_gigabytes" in "openstack quota set"
The "per_share_gigabytes" quota param was introduced
in API version 2.62; when using older API versions,
we shouldn't be setting this parameter.

Closes-Bug: #2047249
Change-Id: I1eceee52726cef3494648521e4516010ca02f095
2024-01-26 11:43:49 -08:00
Zuul 64f58141bb Merge "Fix default share type resolution in OSC" 2023-10-02 19:27:40 +00:00
Goutham Pacha Ravi a870c13cf1 Fix default share type resolution in OSC
This patch also fixes an incorrect docstring
in the share types SDK method.

Closes-Bug: #2030686
Change-Id: Iaea9746e6f4e133574f5504d906a49cc80fa4243
2023-09-22 20:05:03 +00:00
OpenStack Release Bot a0781399bf Update master for stable/2023.2
Add file to the reno documentation build to show release notes for
stable/2023.2.

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

Sem-Ver: feature
Change-Id: I36b6f62cbca78394b942b0d6dbe2d98a137c2c3d
2023-09-08 14:45:28 +00:00
Zuul 2cdbf4eccb Merge "Deprecate "manila" CLI client" 2023-08-31 18:21:59 +00:00
Zuul 8a3f65bf2f Merge "Implement share backup" 2023-08-31 14:30:51 +00:00
Kiran Pawar 5e24577904 Implement share backup
Add share backup feature. This will allow the user to create,
restore and delete backups as well as listing backups and showing
the details of a specific backup.

Implement: blueprint share-backup
Depends-On: Ice01ab7892b1eb52b3202f2c79957977f73f3aca
Change-Id: I2c3848cbbeb921ede74756e25e58ef82277e0d2b
2023-08-29 06:59:35 +00:00
silvacarloss 4eccd68794 Allow restricting access rules
Access rules can now have the visibility of sensible fields
restricted, as well as the deletion can be prevented.

To do so, two new parameters were implemented in the access create
command: `restrict_visibility` and `restrict_deletion`.

In order to drop the delete restriction, users must specify
the `unrestrict` option while issuing the share access delete
command.

Depends-On: Iea422c9d6bc99a81cd88c5f4b7055d6a1cf97fdc

Change-Id: I31899a563c621e6f799e320fd990f9e510a8a9cc
2023-08-28 01:30:56 +00:00
Goutham Pacha Ravi 1734b45fa5 Support for resource locks
Add OSC and SDK interfaces to create,
view, update and delete resource locks.

Depends-On: I146bc09e4e8a39797e22458ff6860346e11e592e
Partially-Implements: bp allow-locking-shares-against-deletion
Change-Id: Ib8586a4f80aa8c172d876c6745ae73b7bdaf4705
2023-08-23 16:25:56 -07:00
Goutham Pacha Ravi ba9a388786 Deprecate "manila" CLI client
This has been a long time coming; we have finally
reached full feature parity and new features have
only been permitted in the openstack CLI plugin for
a couple of releases now.

We're signalling a major version bump for the package
with this change.

Implements: bp/openstack-client-support
Change-Id: I0a72883f1cd8a5ab9df9c349b6876248fe9edee3
2023-08-23 22:10:03 +00:00
Kiran Pawar 7a15a2a1ae Add '--count' option for snapshot list API.
Added support for display count info in share snapshot list
and detail APIs:

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

Microversion upgraded to 2.79

Related-Bug: #2024556
Depends-On: I37d8ca9022e2ea2c107c6695e20e951d7950043a
Change-Id: I230c2195c414eec28ebc5e5e9714726731307a95
2023-08-18 12:12:47 +00:00
Zuul 8e1b721fc3 Merge "Metadata for Share Network Subnets" 2023-07-10 13:14:39 +00:00
Felipe Rodrigues e3f01e5c2a Metadata for Share Network Subnets
Extend these into OSC capabilities where appropriate.
Bumps max microversion to 2.78.

Depends-On: I8d5a03eb127941a84eea5e6e9bdf76b3489f17a8
Implements: bp/metadata-for-share-resources
Change-Id: I204cd0aeb66dfb7f0b4da29413b80d76a6034aa3
2023-07-07 16:25:38 -03:00
Zuul 3e9d75421d Merge "Add defaultadsite to security service" 2023-05-25 16:09:24 +00:00
Clifford Emeka 799278e644 [OSC] Fix output format for osc share subnet create
The format of the osc share network subnet create command
output has been updated to return a list of hosts instead
of a dictionary, as we do for other commands in the client.
With this change, we are enhancing the consistency of the
client and the readability of the output.

Closes-bug: #1989818

Change-Id: I05413e9e8b846d725d8fe021daf5d320857aac2f
2023-03-26 17:03:13 +01:00
Kiran Pawar 95763cdb05 Use suitable api version for OSC.
In manilaclient i.e. manila commands, if user supplied version is above
the max version supported by server, manilaclient adjust to max version.
This was missing in openstack commands which results in failure that
version is not supported. Fix by discovering most suitable version and
use it for client creation.

Closes-bug: #1960490
Change-Id: I734f6953e8b0266b38f0cb6e1581c4201f2bd676
2023-03-15 08:58:54 +00:00
Zuul 5abe263463 Merge "Fix share network create command with the AZ option" 2023-03-10 13:13:14 +00:00
hassanasghar 1e37914502 Fix share network create command with the AZ option
Previously, "share network create" command was trying to look up
the availability-zone provided by the user. However, this is not supported
by the AvailabilityZoneManager.

Drop the AZ lookup if the option is used and pass the user provided value
to the API.

Closes-Bug: 1962288
Change-Id: I3ec926122eed932caebcb31b9afd0f811f1f3c8e
2023-03-08 20:59:31 +00:00
Kiran Pawar 6e9433cd31 Add defaultadsite to security service
Allows to configure optional field 'defaultadsite' in security-service
for microversion >= 2.76.

Closes-bug: #1988146
Depends-on: I8e21e9170eace134a51efed84de1ccc58eb7eaaa
Change-Id: I0cc280b1d8e25980c2723688fb0f221faa057f2e
2023-02-22 09:09:43 +00:00
Zuul d697bb5a3d Merge "Update micversion to 2.77,support share transfer between project." 2023-02-21 22:14:42 +00:00
OpenStack Release Bot 7a5d39b9a7 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: Ibc6f421579b459e30e4305dfb5f1f023062e1632
2023-02-21 14:50:02 +00:00
haixin d54326ff7c Update micversion to 2.77,support share transfer between project.
Depends-On: I8facf9112a6b09e6b7aed9956c0a87fb5f1fc31f
Partially-Implements: blueprint transfer-share-between-project

Change-Id: I3d5d0a57574edd350dc79a52879aa67016122f56
2023-02-17 16:10:34 +08:00
Kiran Pawar a0f6a2e920 Add quiesce_wait_time for replica promote
Allows to configure optional field 'quiesce_wait_time' in share
replica promote for microversion >= 2.75.

Closes-bug: #2000171
Change-Id: I9ea0705da97d4343b36db3d8023ca237437768cf
Depends-On: Ib02063ee8b82f7374cd89f90e7f24a845c6c7cd7
2023-02-16 08:42:14 +00:00
Ashley Rodriguez bbfd7d5468 Metadata for Share Snapshots
Introduce MetadataCapableResource and
MetadataCapableManager to abstract away
metadata operations for a resource and
collections of resources in the manilaclient
SDK. Extend these into OSC capabilities
where appropriate. Bumps max microversion to 2.73.

In this change:
1) Shares
2) Snapshots

Depends-On: I91151792d033a4297557cd5f330053d78895eb78
Implements: bp/metadata-for-share-resources
Change-Id: I82791614b62b540eb108e99ae8ee5ce62b36b42c
2023-02-03 19:35:24 +00:00
Maurice Escher 43943fdf67 Support --os-key option
keystoneclient Session expects as cert argument, one of the followings:
 * None (no client certificate),
 * a path to client certificate,
 * a tuple with client certificate/key paths.

The change updates manilaclient code to support the last case (ie:
os_cert and os_key are non-empty) with the --os-key option
and OS_KEY environment variable.

Closes-Bug: #1999775
Change-Id: I09313b7c55a5f9d4ec032a37e69a1d79db29d648
2022-12-22 16:54:57 +00:00
sneha.gaddam 7a6f7097f7 Fix the Create Share Group from Snap Shot create.
Closes-Bug: #1990013
Change-Id: Iba5ca5eed1abf2e28d365295cd3b641c565d7fc1
2022-09-16 21:21:55 +00:00
OpenStack Release Bot e6c337b7ae Update master for stable/zed
Add file to the reno documentation build to show release notes for
stable/zed.

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

Sem-Ver: feature
Change-Id: I130840f6be454449aae8498bbac833045809a039
2022-09-07 09:22:41 +00:00
Zuul 34a4cd241d Merge "Support multiple subnets per AZ" 2022-09-01 21:47:04 +00:00
Felipe Rodrigues 586c6030ed Support multiple subnets per AZ
Add new command ``share-network-subnet-create-check`` to
check if a new subnet configuration can be allocated to a
share-network. Bump CLI version to support the multiple
subnets feature and fix the list operation.

The equivalent OSC command is also added. Run the subnet
create command using the new option --check-only.

Depends-On: I7de9de4ae509182e9494bba604979cce03acceec
Partially-Implements: blueprint multiple-share-network-subnets
Signed-off-by: Andre Beltrami <debeltrami@gmail.com>
Co-Authored-by: Felipe Rodrigues <felipefuty01@gmail.com>
Change-Id: I7702f458f6bca5e3947479a13a843f30873597a7
2022-09-01 16:34:51 -03:00
Zuul d408117a21 Merge "[reno] Announce openstackclient GA" 2022-09-01 18:01:34 +00:00
kpdev db1bba7cde Add 'share-network' option for share replica create.
Partial-Bug: #1925486

Depends-On: I9049dcd418fbb16d663ab8ed27b90c765fafc5d3
Change-Id: Ie1ace4aca5d5384feb311421afa13bf51e24aebe
2022-08-31 14:27:06 +00:00
Goutham Pacha Ravi a9172c1fa3 [reno] Announce openstackclient GA
and the future deprecation of the "manila"
shell as users know it.

Partially-Implements: bp/openstack-client-support
Change-Id: I110b66df43916254ec54345cb675bd6f42f2f03b
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2022-08-30 18:58:32 -08:00
Goutham Pacha Ravi 06f7ea6255 [OSC] Don't use default type with snapshot clones
When creating a share with OSC, the client looks up the
default share type when one is unspecified. However, one
doesn't need to specify a share type when creating a share
from a snapshot.

Change-Id: I39984c2b953b16d2cdbc92ecaf5f3b701a33b283
Closes-Bug: #1980985
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2022-08-03 20:05:36 +05:30
Zuul a4b1482157 Merge "Avoid any capitalization of the name "None"" 2022-07-28 19:58:19 +00:00