1144 Commits

Author SHA1 Message Date
Zuul
4656ad2e9c Merge "Fix decoder path and add transfer commands" into stable/2023.2 4.6.1 2023-10-17 23:11:53 +00:00
Goutham Pacha Ravi
ed34956613 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
(cherry picked from commit a870c13cf1bdba15c30f0935ac2f5c637e6e8fee)
2023-10-02 21:06:36 +00:00
Goutham Pacha Ravi
4080d49426 Fix "test_share_access_show" osc functional test
The "updated_at" attribute on access rules is
now properly set in manila, and can no longer
be empty.

Related-Bug: #2031193
Change-Id: I9c24aff7dc88c628aaf9419cd75f23357fede050
(cherry picked from commit 244e87af2f5f6aba76042b0aa4b40b1102141296)
2023-09-25 15:07:01 +00:00
Goutham Pacha Ravi
9fc1a05c84 Fix decoder path and add transfer commands
the file path to the decoder is better resolved
with the module path.

share transfer commands exist in the manila
shell, it'll be helpful to show the OSC translations
to these as well.

Implements: bp/openstack-client-support
Change-Id: I85d7ebd5c5c34c95402c0ea95f358bef91d26657
(cherry picked from commit 946c11373f5536c3912dc2753f41cd72292a6626)
2023-09-20 19:30:36 +00:00
273058cb97 Update TOX_CONSTRAINTS_FILE for stable/2023.2
Update the URL to the upper-constraints file to point to the redirect
rule on releases.openstack.org so that anyone working on this branch
will switch to the correct upper-constraints list automatically when
the requirements repository branches.

Until the requirements repository has as stable/2023.2 branch, tests will
continue to use the upper-constraints list on master.

Change-Id: I276b0e7635e31d86b83c183aae30c965edfcb1f6
2023-09-08 14:45:27 +00:00
3fac3aa3a6 Update .gitreview for stable/2023.2
Change-Id: If21bbb2997be891aa4ce15d1ab50089f8089640d
2023-09-08 14:45:26 +00:00
Zuul
2cdbf4eccb Merge "Deprecate "manila" CLI client" 4.6.0 2023-08-31 18:21:59 +00:00
Zuul
8a3f65bf2f Merge "Implement share backup" 2023-08-31 14:30:51 +00:00
silvacarloss
32f1a9a943 Bump tox version
This issue [1] is showing up on the functional jobs in the gate,
which are using the system tox.  So tell tox to upgrade itself
to the version that gets around that issue.

[1] https://github.com/tox-dev/pyproject-api/issues/101

Change-Id: Ib2a3ddb4bc8175f2769d1cd3510f00485349192a
2023-08-31 10:23:50 +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
Goutham Pacha Ravi
0a0d610c63 [CI] switch to using osc for bootstrap
"manila" CLI isn't being installed globally
due to a recent change in devstack [1]. We
can switch to OSC since that's being installed
and linked appropriately.

[1] https://review.opendev.org/c/openstack/devstack/+/558930

Change-Id: I93d5a400cd562a599309da0e5f0e92c8657b4265
2023-08-16 14:51:16 -07:00
lkuchlan
2f6cd660c6 Enable the option to return the response body
As a continuation of the patch mentioned below:
https://review.opendev.org/c/openstack/python-manilaclient/+/890330

Change-Id: I4c1c1e089a726608124693c13eca73ce12fd5b8e
4.5.1
2023-08-09 10:39:03 +03:00
lkuchlan
47b0ac7d59 Enable the option to return the response body
As part of our efforts to enhance automation and CI for Manila,
we have begun developing code in the Tobiko tool to support the
Manila client. During create/get operations, we have observed
that the returned body contains solely the resource id in the
format <Share: <id>>.
To address this, we are introducing a patch that allows retrieving
the full body response, not just the id resource.

Change-Id: Ia15274e75aa5d3da04d861a64a2f437cd4a9a584
2023-08-03 13:16:30 +03:00
Zuul
8e1b721fc3 Merge "Metadata for Share Network Subnets" 4.5.0 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
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
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
Zuul
07486204b6 Merge "Fix formatting of OSC server migration check-only" 2023-02-16 22:50:18 +00: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
Zuul
8399923d50 Merge "Metadata for Share Snapshots" 2023-02-08 22:21:58 +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
Goutham Pacha Ravi
782e85df30 Drop duplicate tox config
"usedevelop" is specified and set to true
in the default testenv and doesn't need to be
specified in the specific environments.

Change-Id: I8adee2feec3ac46f22c04cae86ed0559785ee414
2023-01-04 09:58:16 -08:00
silvacarloss
bdd268e1a1 Fix tox4 errors
Change-Id: Ib627b001405fef8a4d1e424a875fcc9c34296f4b
2023-01-04 11:36:59 -03: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
Goutham Pacha Ravi
cb14e965ef Fix functional tests failing with python 3.10
argparse module had a change [1] in header text denoting optional
arguments. The header text now reads "options" instead of
"optional arguments"

[1] https://docs.python.org/3/whatsnew/3.10.html#argparse
Closes-Bug: #2000092

Change-Id: I2d7caa6e3c5a6a493639dc655a6722992540281e
2022-12-19 23:58:32 +00:00
kushalaa
05135dc1e2 Fix formatting of OSC server migration check-only
When the default table formatting is used, we can improve
readability by transforming the capabilities dictionaries
into paragraphs.

Closes-Bug: #1989817

Change-Id: I5479c12ff97c12fbb5ab06d161d37b1dd736e8a2
2022-12-19 01:06:32 -08:00
Zuul
cb78d0e17b Merge "Switch to 2023.1 Python3 unit tests and generic template name" 4.2.0 2022-11-17 17:41:21 +00:00
Zuul
f5bf36b1ec Merge "Respect OS_CACERT when using Manila OSC plugin" 2022-10-11 18:42:33 +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
Pierre Riteau
aa3ed6b952 Respect OS_CACERT when using Manila OSC plugin
Closes-Bug: #1989577
Change-Id: I881cdb4b5821c6c6a218a1b09c181714e1585b94
2022-09-14 12:41:07 +02:00
c0083e27f1 Switch to 2023.1 Python3 unit tests and generic template name
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for antelope. Also,
updating the template name to generic one.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: Ie50227dd542e22ba32ff69e820c4f015fd47acdd
2022-09-14 09:13:24 +00:00
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
19a99b9de3 Merge "[OSC] Fix share deletion when using share group id" 2022-09-02 11:17:22 +00:00
Zuul
c31ed22eb5 Merge "[OSC] Implement Share Server Migration set task-state" 4.1.0 2022-09-01 22:43:15 +00:00
Zuul
33256a1c22 Merge "Make the OSC plugin handle the --insecure flag" 2022-09-01 22:06:17 +00:00
Zuul
34a4cd241d Merge "Support multiple subnets per AZ" 2022-09-01 21:47:04 +00:00
Zuul
5387b11aa7 Merge "[OSC] Implement Share Server Migration check" 2022-09-01 20:42:36 +00:00
Franca Mgbogu
09ab2c3064 [OSC] Implement Share Server Migration set task-state
This commit adds 'openstack share server migration set'
which resets 'task-state-' that implements the same
functionality as 'manila share-server-reset-task-state ' command.

Partially-implements: bp openstack-client-support
Change-Id: I79bde1e70213e2d28192978cddec955869e26ef0
2022-09-01 16:55:44 -03: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