Commit Graph

1834 Commits

Author SHA1 Message Date
Zuul 4e71afe6ab Merge "Update master for stable/2024.1" 2024-03-15 15:03:59 +00:00
Zuul bc5cd49287 Merge "reno: Update master for victoria Unmaintained status" 2024-03-12 18:34:42 +00:00
Zuul 76b4948bf2 Merge "reno: Update master for wallaby Unmaintained status" 2024-03-12 18:30:13 +00:00
OpenStack Release Bot c3131dbd86 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: I7c0921f70283c5d1ddabdda01994980068e93a0b
2024-03-08 13:53:18 +00:00
OpenStack Release Bot 6d0ffb5314 reno: Update master for xena Unmaintained status
The stable/xena branch has been deleted, so reno can't find its
release notes.  Use the xena-eom tag to indicate the end of the
Cinder project's maintenance of the Xena series.

This strategy is what we used for the yoga transition, and was
discussed at a cinder weekly meeting:
https://meetings.opendev.org/irclogs/%23openstack-meeting-alt/%23openstack-meeting-alt.2024-02-07.log.html#t2024-02-07T14:06:09

Change-Id: Ia0ecad37108abef7819518119950a279b8070a0c
2024-03-06 16:59:46 +00:00
OpenStack Release Bot 274da7f65f reno: Update master for wallaby Unmaintained status
The stable/wallaby branch has been deleted, so reno can't find its
release notes.  Use the wallaby-eom tag to indicate the end of the
Cinder project's maintenance of the Wallaby series.

This strategy is what we used for the yoga transition, and was
discussed at a cinder weekly meeting:
https://meetings.opendev.org/irclogs/%23openstack-meeting-alt/%23openstack-meeting-alt.2024-02-07.log.html#t2024-02-07T14:06:09

Change-Id: I7410621b98fd9b9b24c654cfe533f0542f8d6874
2024-03-06 16:55:22 +00:00
OpenStack Release Bot e199e6fd60 reno: Update master for victoria Unmaintained status
The stable/victoria branch has been deleted, so reno can't find its
release notes.  Use the victoria-eom tag to indicate the end of the
Cinder project's maintenance of the Victoria series.

This strategy is what we used for the yoga transition, and was
discussed at a cinder weekly meeting:
https://meetings.opendev.org/irclogs/%23openstack-meeting-alt/%23openstack-meeting-alt.2024-02-07.log.html#t2024-02-07T14:06:09

Change-Id: Iefd9121ad051b1dfd7ebd67dc5572f39252b2c1d
2024-03-06 16:48:49 +00:00
Zuul e01516dbb0 Merge "Add os-extend_volume_completion volume action." 2024-02-27 18:41:48 +00:00
Konrad Gube dd8ba12681 Add os-extend_volume_completion volume action.
Change-Id: Ifdeab1a8cd634bbe63c25fae17448c0789b297c9
2024-02-27 15:24:16 +00:00
Zuul 9720298611 Merge "Honour all_tenants in consistency group list" 2024-02-16 16:29:29 +00:00
OpenStack Release Bot 9f8a5c767e reno: Update master for yoga Unmaintained status
The stable/yoga branch has been deleted, so reno can't find its
release notes.  Use the yoga-eom tag to indicate the end of the
Cinder project's maintenance of the Yoga series.

This strategy was agreed upon at today's cinder weekly meeting:
https://meetings.opendev.org/irclogs/%23openstack-meeting-alt/%23openstack-meeting-alt.2024-02-07.log.html#t2024-02-07T14:06:09

Change-Id: Ib6af80aae60ba359bf02ceeb7626b1c0e0610142
2024-02-07 15:08:34 +00:00
Ghanshyam Mann ba5e68e36b Update python classifier in setup.cfg
As per the current release tested runtime, we test
till python 3.11 so updating the same in python
classifier in setup.cfg

Change-Id: Iecc91f97afea4916a0ee619362b1a5eebd966f24
2024-01-08 20:20:59 -08:00
Zuul c38dc223ac Merge "Mock sleep for client tests" 2023-12-15 17:24:00 +00:00
OpenStack Release Bot 877af0770c 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: Ibade8b4870bb3a785ab99f06a46be72f1c35f33c
2023-09-08 14:56:23 +00:00
Rajat Dhasmana cf2c27cc97 Honour all_tenants in consistency group list
Although consistency groups are deprecated, the CLI command and
API support still exists. Currently it accepts the --all-tenant
parameter but doesn't pass it to the API request.
This patch corrects that behavior.

The test for consistency group were removed with the removal of
v2 API and also no tests existed for consistency group list so
no point in adding them at this point.

Change-Id: Ib3557efa50941d75d7f7f0cac01404f5c2db4526
2023-09-05 17:17:43 +05:30
Brian Rosmaita 1c3fb4f068 Use generic testing template
Change If402f9ae0ca06fec0 replaced cycle-specific testing templates
that had to be changed in each project's zuul config file with a
generic template that only needs to be updated in one place, namely,
in the openstack-zuul-jobs repo.

Apparently cinderclient didn't get the memo, so we fix that now.

Change-Id: I1144ed99b98e91035c88bc4cc8a065ab0249a012
2023-09-01 17:55:42 -04:00
Brian Rosmaita f1f14dfbb7 Use tox 4.11.0
We're hitting https://github.com/tox-dev/pyproject-api/issues/101 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.

Change-Id: Ifabdce8876d287c52cdec9777393fcb7c82c8fc1
2023-08-30 16:35:07 -04:00
Eric Harney 1cb748bb82 Mock sleep for client tests
This takes 7s of sleep time off of a
unit test run.

Change-Id: I88f2e68abf92819d68f7692917354b9edbebfde5
2023-08-24 14:26:48 -04:00
Zuul f64df99134 Merge "Update functional jobs for 2023.2" 2023-05-15 17:29:37 +00:00
Zuul dc6bb1837b Merge "Use tox 4" 2023-05-05 22:27:42 +00:00
Brian Rosmaita 26115ba7b1 Update functional jobs for 2023.2
Based on the python runtimes for 2023.2 [0], we should be running
functional jobs on python 3.9 and python 3.10.

[0] https://governance.openstack.org/tc/reference/runtimes/2023.2.html

Change-Id: Ifc7dc6588af420aa56cd862dd9f558a4506eb1a0
2023-04-17 18:58:23 -04:00
Brian Rosmaita 1260de9e61 Use tox 4
Changes:
- eliminate whitespace in passenv values
- removed skipsdist=True, which in tox 4 appears to prevent os-brick
  from being installed in the testenvs
- made 4.4.1 the tox minversion to catch relevant bugfixes; since
  tox is not constrained, we'll actually be using the most recent
  version of tox 4
- had to adjust the functional testenv's setenv, which wasn't
  overriding OS_TEST_PATH like it did with tox 3
- used generative section names to define the various functional
  py3 testenvs we want to support locally (namely, py38, py39,
  py310, and py311)

This patch makes tox 4 the default so that we can hopefully catch
problems locally before they block the gate.

Change-Id: I01c4d44efa64650cdb46fac34a770a7aa5881baf
2023-04-17 18:28:01 -04:00
Eric Harney e16ae767c4 Remove USE_PYTHON3 setting from .zuul.yaml
We don't need this anymore since all of our jobs are
Python 3.

Change-Id: Ib7e85a72a28ff507cb1371b365b6bfa5fbf70d81
2023-03-09 14:04:10 -05:00
Eric Harney a75c5bfbc4 Add Python 3.10 to setup.cfg metadata
We support 3.10 as of Antelope.

Change-Id: Ia32f0488f4fe90527b1fbd0cb663e33e8537a458
2023-03-09 11:29:12 -05:00
OpenStack Release Bot c2dced2dcf 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: I4d6270b745e171516de982102dbc6e5d9010da19
2023-02-24 17:35:09 +00:00
Zuul f7a612ef3e Merge "Update minimum requirements" 2023-02-13 21:55:52 +00:00
Zuul f045928d82 Merge "Add test coverage for shell snapshot-create w/ metadata" 2023-02-13 19:26:47 +00:00
Zuul 4655a23987 Merge "Add support for collect-timing option" 2023-02-13 18:53:56 +00:00
Rajat Dhasmana 5436a5f1b6 Update minimum requirements
This patch updates keystoneauth1 minimum version. The current
used version 4.3.1 was released in 22 Feb, 2021 which is ~2 years
old.
Updating the version to 5.0.0 released in 15 July, 2022 and
upper-constraints have 5.1.1 released on 3 Jan, 2023.

Change-Id: If8a958345ae62006b8e6221a60ff3217e31823ac
2023-02-13 16:16:55 +00:00
Zuul c8eb9bd0a9 Merge "remove simplejson requirement" 2023-02-10 20:11:04 +00:00
Zuul 6579899d3a Merge "Move print operations to shell_utils" 2023-01-26 18:13:28 +00:00
Eric Harney 59677fb2e5 remove simplejson requirement
The json lib has been included in CPython for
ages, so the ImportError case never happens.

Change-Id: I669bc397323a0e83d4a9768b124a7d99bafaf38a
2023-01-26 14:30:35 +00:00
Brian Rosmaita c66b9911b8 Continue using tox 3
Use the classic cinderclient tox.ini that has worked so well in the
past with tox 3; only change is to add the tox<4 requires statement.
Also adjust .zuul.yaml to express our preference for tox<4 in the
case that zuul has to install tox.

Change-Id: Ib1f55f9431033ad043507c6f751ee9bfe57d5cbb
2023-01-18 11:25:08 -05:00
Cyril Roelandt 20506ef3a8 Python3.11: fix crashes in ShellTest
In Python3.11, global flags must be placed right at the start of a
regular expression.

The following regex:

	r'.*?(?m)^Lists all volumes.',
must become:

        r'(?m).*?^Lists all volumes.',

However, since we are using re.MULTILINE, we actually do not need to use
a global flag.

This commit fixes the following tests in Python3.11:
- cinderclient.tests.unit.test_shell.ShellTest.test_help_arg_no_subcommand
- cinderclient.tests.unit.test_shell.ShellTest.test_help
- cinderclient.tests.unit.test_shell.ShellTest.test_help_on_subcommand
- cinderclient.tests.unit.test_shell.ShellTest.test_help_on_subcommand_mv

Closes-Bug: #1983047
Change-Id: If20abef109ddd7107c83b5886beb666a6550a640
2022-12-21 13:31:33 +00:00
Zuul 9a4a7868b8 Merge "Python3.11: Fix argparse-related test failures" 2022-12-12 23:13:37 +00:00
Zuul 594317f163 Merge "Remove python-dev from bindep" 2022-11-18 15:45:02 +00:00
Eric Harney dec8d4a9ee Add test coverage for shell snapshot-create w/ metadata
This path is not currently unit tested.

Change-Id: If38c6352f5e1f0a50e4a0d29fbdd5263ccba3b29
2022-11-17 13:32:11 -05:00
Eric Harney 2d7ae2cd38 Move print operations to shell_utils
Move more code to shell_utils that is only used
for shell operations.

The benefit of this is that the cinderclient library
becomes lighter-weight, because users of the lib
no longer have to import prettytable and extra code.

Change-Id: I7bf6bd91ee5746d1ad4bd4504f3a056d03ae86a9
2022-11-15 10:12:41 -05:00
Brian Rosmaita 9df653571d Handle downgraded client for snapshot-create
When a CLI user specifies --os-volume api-version 3.66, the shell
will execute the appropriate shell code, but if the server only
supports < 3.66, the client is automatically downgraded and correctly
uses the pre-3.66 SnapshotManager.create() method.

In that case, the 'force' parameter, which is technically not allowed
in mv 3.66 (but which silently accepts a True value for backward
compatibility), will have a value of None, which the pre-3.66 code
happily passes to cinder as '"force": null' in the request body, and
which then fails the Block Storage API request-schema check.

Handle this situation by detecting a None 'force' value and setting
it to its pre-3.66 default value of False.

Change-Id: I3ad8283c2a9aaac58c8d2b50fa7ac86b617e5dd3
Closes-bug: #1995883
2022-11-08 18:48:18 -05:00
Hervé Beraud 8a664728b6 Remove python-dev from bindep
It is no longer supported by jammy and lead us to the following errors with the announce-release job.

```
No package matching 'python-dev' is available
```

Change-Id: I12a31b044d5f88a26984d13adff08dd9c778fe0c
2022-11-07 11:03:56 +01:00
OpenStack Release Bot 6f67187b82 Add Python3 antelope unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for antelope.

See also the PTI in governance [1].

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

Change-Id: If67262fe0f9269e5cb25ebb365e78ebc6cbb3b70
2022-09-09 13:44:46 +00:00
Brian Rosmaita c354adb368 Update bindep for ubuntu jammy
Python 3.10 unit tests are failing on jammy because the 'python-dev'
package is not available on that platform.  See py310 failures on
https://review.opendev.org/c/openstack/python-cinderclient/+/856719/1

Change-Id: I01501b9dac831c71ac62a2cc624dc0c4933c9c15
2022-09-09 09:36:36 -04:00
OpenStack Release Bot 51edff7f34 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: I593949dae5dd2faf94a639ced8feca80323329f5
2022-09-09 10:28:11 +00:00
Alan Bishop 730a8c7728 Bump API max version to 3.70
Bump MAX_VERSION to 3.70 to support the following:
- 3.69 - Allow null value for shared_targets
- 3.70 - Support encrypted volume transfers

Implements: bp/transfer-encrypted-volume
Depends-On: I459f06504e90025c9c0b539981d3d56a2a9394c7
Change-Id: I11072d6d8a185037c7f4cdd52c45933b0cccaf05
2022-08-09 13:54:04 -07:00
Cyril Roelandt 90eb9d2be6 Python3.11: Fix argparse-related test failures
In Python3.11, the following code crashes:

$ cat test.py
import argparse

parser = argparse.ArgumentParser(description='Short sample app')
subparsers = parser.add_subparsers()
subparsers.add_parser('foo')
subparsers.add_parser('foo')

$ python3.11 test.py
Traceback (most recent call last):
  File "/tmp/arg.py", line 6, in <module>
    subparsers.add_parser('foo')
  File "/usr/lib/python3.11/argparse.py", line 1197, in add_parser
    raise ArgumentError(self, _('conflicting subparser: %s') % name)
argparse.ArgumentError: argument {foo}: conflicting subparser: foo

It is now forbidden to use add_parser() multiple times with the same
arguments, which is exactly what we do in the following tests:

- cinderclient.tests.unit.test_shell.TestLoadVersionedActions.test_load_versioned_actions
- cinderclient.tests.unit.test_shell.TestLoadVersionedActions.test_load_actions_with_versioned_args

In order to fix the tests failures, we make sure to reset the parser and
subparsers before calling add_parser().

While not strictly necessary, we split those tests into two functions,
for readability purposes.

Closes-Bug: #1983054
Change-Id: I2d4cb81a394f3c10e5f01945d894746a904fb5df
2022-07-28 21:46:35 +02:00
zack chen 1f3b663485 Fix extension loading from python path
Commit 3502a5591a broke extension loading
from pythonpath. Incompatible on python3.6.8, python3.8, python3.9. Put
it back.

Closes-Bug: #1980184
Change-Id: I5b67c93e3c789252d9bd35ee69dddbe1b556dec4
2022-06-29 14:38:18 +08:00
Ghanshyam Mann 2c7d463f37 Update python testing as per zed cycle testing runtime
In Zed cycle, we have dropped the python 3.6/3.7[1] testing
and its support. Moving the py36 job to py38 based but to run on
ubuntu focal as c8s does not seems to have py38.
Also updating the python classifier also to reflect the same.

[1] https://governance.openstack.org/tc/reference/runtimes/zed.html

Change-Id: Ic26a360d2bb09fa6622d1acaa5021c5afbc70240
2022-05-19 18:24:31 +00:00
OpenStack Release Bot d60630c3e1 Update master for stable/yoga
Add file to the reno documentation build to show release notes for
stable/yoga.

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

Sem-Ver: feature
Change-Id: I96aa28bd09724d3f14935e1dbf13f7e791261ccb
2022-02-25 12:43:42 +00:00
Brian Rosmaita ee59b68d71 Prepare for Yoga cinderclient release
Add a release note prelude for the Yoga release.

Change-Id: Id601999762596713c94e7805a7d76dbcf31edf24
2022-02-24 16:19:44 -05:00
Zuul d1853510c0 Merge "Add volume reimage command" 2022-02-24 20:54:44 +00:00