21006 Commits

Author SHA1 Message Date
Biser Milanov
d9e31ee702 test_storpool.py: Assume volumes have a volume type
All volumes since the Train release have a volume type [1], so test
cases with a non-present volume type can be removed

[1]: https://docs.openstack.org/cinder/latest/admin/default-volume-types.html

Change-Id: I1df86c7d1653ece74c9cde5f77cfdaac431f581c
2024-11-22 11:16:47 +02:00
Zuul
41a07d63bf Merge "Remove unused httplib2" 2024-11-20 14:06:18 +00:00
Zuul
e79cb1b7d9 Merge "StorPool: DRY volumeCreate() in create_volume()" 2024-11-19 07:52:10 +00:00
Zuul
4aadc0784d Merge "Tests: Skip multiprocess test when using 1 cpu" 2024-11-15 19:01:11 +00:00
Zuul
a0eb7ee9a7 Merge "Nimble: Report max_oversubscription_ratio via backend capabilities" 2024-11-15 18:44:09 +00:00
Takashi Kajinami
0f4c0c7a18 Remove unused httplib2
The httlib2 library was added to be used by google backup driver[1],
but it was then replaced by google-auth-httplib2 .

[1] cf5653c17c1dce2a85ced8b6969a0503d5cca416
[2] 79d7a4e8da6f1118b5c235928876cf78085f4332

Change-Id: I1635ee8e5bd3b257ed64070a590a3820a2682667
2024-11-15 23:56:44 +09:00
Zuul
ab08f40f30 Merge "datacore: Mock is_valid_ipv6 to fix unit tests with netaddr >= 1.0.0" 2024-11-15 11:28:17 +00:00
Zuul
6f3c92986f Merge "Fix a typo for assert_called_with" 2024-11-15 11:28:10 +00:00
Zuul
42ef3cad9f Merge "Pure Storage - bump version numbers for 2025.1 (Epoxy)" 2024-11-15 11:28:05 +00:00
Zuul
6210005aa7 Merge "mypy: Print mypy version used" 2024-11-15 10:52:39 +00:00
Vasyl Saienko
05f6b708a3 Nimble: Report max_oversubscription_ratio via backend capabilities
Allow to use different oversubscription ratios per HPE Nimble
backend.

Change-Id: If8d91a789dd7619404ca493fda3cd230fdecc651
2024-11-15 07:13:26 +00:00
Zuul
bf3973eb52 Merge "Hitachi: fix to initialize a lock counter" 2024-11-12 19:41:17 +00:00
Zuul
6e2884468d Merge "Fix "signature_verified" metadata propagation to images" 2024-11-07 16:22:04 +00:00
Zuul
b0662ce5ca Merge "Pin upper version of mypy" 2024-11-07 00:42:40 +00:00
Rodrigo Barbieri
c65f43cb98 Fix "signature_verified" metadata propagation to images
The property "signature_verified" is added by cinder
to volumes created from images. That property is
propagated to glance when images are created from such
volumes. Later, when creating volumes from such images
again, the image property conflicts with cinder trying to
add the property again. The solution is to never
propagate such cinder property in the first place.

Closes-bug: #1823445
Change-Id: Id46877e490b17c00ba1cf8cf312dd2f456760a23
2024-11-06 17:12:52 -03:00
Zuul
05c12e4bec Merge "Always upload image volumes in a native thread" 2024-11-06 19:38:53 +00:00
Zuul
75b478b781 Merge "Add wsgi module" 2024-11-05 18:41:59 +00:00
Alan Bishop
c42f046617 Always upload image volumes in a native thread
Fix the code that uploads volumes to glance so that calls to
image_service.update() always execute in a native thread. This
ensures other eventlet threads aren't blocked until the upload
completes.

Related-Bug: #2080060
Change-Id: I326a2aa024e4969efb4420653224995f407e014f
2024-11-04 12:11:53 -08:00
Zuul
3e0705f6b4 Merge "HPE 3PAR: Add HPE Alletra MP related information" 2024-11-04 16:41:34 +00:00
Takashi Natsume
cf3205ecf8 Fix a typo for assert_called_with
Change-Id: I5d4ed3a95f51daeef94dce83c4a9153f633008ba
Signed-off-by: Takashi Natsume <takanattie@gmail.com>
2024-11-01 11:09:03 +00:00
Zuul
c4bedc1de1 Merge "Imported Translations from Zanata" 2024-10-31 08:39:41 +00:00
Zuul
a3151a1cb0 Merge "Tests: Fix double mocking in test_rbd" 2024-10-30 15:40:24 +00:00
Eric Harney
c44ce8be0c Pin upper version of mypy
Each time a new version of mypy is released,
we need to update some code to fix the mypy gate job.

Pin it and require a manual bump, like we do with hacking.

Change-Id: I10c43e81a0d49bfa0c796e2244dd7af72db6c739
2024-10-28 13:07:46 -04:00
Eric Harney
e1c8131152 Tests: Fix double mocking in test_rbd
This was triggering unit test failures in
cinder.tests.unit.volume.test_volume.VolumeTestCase.
test_create_volume_from_volume_with_enc_2, presumably
because the double mocking broke cleanup here.

Change-Id: I97d1a54b849c99621fa17be47fb147e83dd8806f
2024-10-25 12:16:13 -04:00
Eric Harney
d3807bb59a mypy: Print mypy version used
"tox -e mypy" doesn't show which version of
mypy is being used, add this for convenience.

Change-Id: Ic0fc286d78ab4040d005507948c7019d2949f471
2024-10-24 20:08:04 +00:00
OpenStack Proposal Bot
b88b62203a Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ia9d798bac70e28ab78cca5d06600a41eff0bd2d8
2024-10-24 03:56:24 +00:00
Eric Harney
cd7a4da7af Tests: Fix type error in volume encryption unit tests
Use booleans instead of strings.

Now that more unit test code runs, a few other errors
were detected and fixed:
 - Missing --force-password arg
 - Modifying "encryption" dict's provider field was
   updating the dict also stored in the mock, causing
   mismatches in unit tests.  Don't modify this dict,
   just use/manipulate the provider arg that we need.

Change-Id: I50f426a77f389f13278a21ad7193c8bbdbd8fd7a
2024-10-22 16:22:31 -04:00
Takashi Kajinami
be4e08c620 datacore: Mock is_valid_ipv6 to fix unit tests with netaddr >= 1.0.0
netaddr 1.0.0 changed its behavior and it now raises TypeError in case
a non string value is passed. Now the exception is not caught in
oslo.utils, and we may not catch it there because using the function
for non-string value is apparently incorrect.

Mock the method in datacore unit tests which does not present strings
to the function because of quite "naive" mocking. We can later drop
the mock if anyone from Datacore can work on updating the mock strategy
in their unit tests.

Change-Id: Ibe4d4df6915dd621a13c2108f5d4b3194498ce55
2024-10-21 08:37:09 +00:00
Zuul
a357d009fa Merge "Fix mypy errors" 2024-10-18 20:31:10 +00:00
raghavendrat
23660015de HPE 3PAR: Add HPE Alletra MP related information
In documentation, added information for using HPE Alletra MP
storage system. HPE Alletra MP is newer version of existing
HPE Alletra 9k storage system.

Change-Id: I136506634c62525c89d0b80f0fcdcb63bf4c5302
2024-10-18 16:43:26 +00:00
Zuul
9b81871695 Merge "Remove fallback for Python 2" 2024-10-18 16:41:07 +00:00
Takashi Kajinami
a820cd4619 Fix mypy errors
Fix the argument type mismatches detected now.

Change-Id: I0f1b7cbee9fc64fd1dba8c488a0634cbbe23adb6
2024-10-16 00:55:04 +09:00
Takashi Kajinami
8c5b35a1a9 tox: Drop envdir
tox now always recreates an env although the env is shared using envdir
options.
~~~
$ tox -e genpolicy
genpolicy: recreate env because env type changed from
{'name': 'genconfig', 'type': 'VirtualEnvRunner'} to
{'name': 'genpolicy', 'type': 'VirtualEnvRunner'}
~~~

According to the maintainer of tox, this functionality is not intended
to be supported.
https://github.com/tox-dev/tox/issues/425#issuecomment-1011944293

Change-Id: I50ac742749b3a58cfd143ce92da72118e497f2af
2024-10-13 01:27:59 +09:00
Eric Harney
005be05ec3 Tests: Skip multiprocess test when using 1 cpu
When only one cpu is present, the "backup_workers"
option cannot be set to 2 because the maximum value
of it is set to processutils.get_worker_count().

This is rare, so skip this test when only 1 cpu
is present.

Closes-Bug: #2083541
Change-Id: I83df179a032c1a60eee31eaac1bd4a0c9a4e307d
2024-10-08 16:42:28 +00:00
Biser Milanov
5566f9a43f StorPool: DRY volumeCreate() in create_volume()
Change-Id: I7387a467bb8e2cbf170a7484dc95ef9f132b6ad0
2024-10-07 13:08:09 +05:30
Zuul
774d784aca Merge "Tests: Clean up RBD image unit tests" 2024-10-04 17:32:35 +00:00
Zuul
f8f1ae77f4 Merge "Hitachi: Support matrix fix" 2024-10-04 16:40:25 +00:00
Zuul
04b93fa43a Merge "RBD: Fix handling of RBD errors in get_manageable_volumes" 2024-10-04 16:40:14 +00:00
Shogo Takazawa
c7a3db2461 Hitachi: Support matrix fix
Storage assisted migration was supported with this patch
(https://review. opendev.org/c/openstack/cinder/+/842905),
but in the support matrix, the item
``Volume Migration (Storage Assisted)`` is still ``missing``,
so it has been corrected to ``complete``.

Change-Id: Ia9af3bf5130dfc0c6ab5a5cf18d8d5c9263fcf92
2024-10-04 15:18:05 +09:00
Simon Dodsley
6fe5949437 Pure Storage - bump version numbers for 2025.1 (Epoxy)
Pure uses the version number of the driver to identify which
customers are using which versions of OpenStack.

This will help granular analysis of which driver is being
used in each OpenStack version.

Change-Id: Icccfa0cce148b34603cf25587c6ab8924d8f216b
2024-10-02 10:10:41 -04:00
Atsushi Kawai
bce0f26398 Hitachi: fix to initialize a lock counter
This patch fixes Hitachi driver to initialize a lock counter, in a
method to re-login to REST-API server,
for fixing the bug which send unnecessary request to unlock storage
resource group.

Closes-Bug: #2033448
Change-Id: I8d0da7bf499bc4ac352949c942c41494a51b3874
2024-09-30 05:18:44 +00:00
Zuul
b07e4147f9 Merge "Ceph: Add option to keep only last n snapshots per backup" 2024-09-27 11:55:28 +00:00
Rajat Dhasmana
e57c350d0b nit: Add FIXME to image volume cache
The image volume cache now has logic to clone across pools based on
the value reported by the driver.
There is a case that was missed which is added as a FIXME in this
patch.

Change-Id: I34d7b6788290669d687f9c47f54db084442a7ee3
2024-09-25 20:17:58 +05:30
OpenStack Proposal Bot
c76680a684 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ifccffe2b1978e7676cd7039ac6e6741a2b1851b4
2024-09-25 03:11:23 +00:00
Zuul
a14312cc34 Merge "Add cinder-manage command to update service_uuid" 2024-09-17 14:36:55 +00:00
Zuul
b4e849e74f Merge "Mock get_all_classes in setUp()" 2024-09-16 18:47:42 +00:00
Zuul
0bc6f7c995 Merge "Remove hard coded class in FakeFilterScheduler" 2024-09-16 16:26:07 +00:00
Zuul
edfd397404 Merge "Use FakeHostManager for scheduler tests" 2024-09-16 16:26:00 +00:00
Zuul
abeb06ab6c Merge "Use FakeHostManager for weigher tests" 2024-09-16 16:08:04 +00:00
Zuul
59c3779bf9 Merge "Enhance FakeHostManager class" 2024-09-16 16:08:00 +00:00