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
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
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
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
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
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
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
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
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
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
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
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
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
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