After a clone of an encrypted volume is created, an attach is attempted.
PowerMax driver requires the provider_location be populated in order
to find the volume to attach. For this, the volume object needs to be
updated.
Closes-Bug: #1913054
Change-Id: Idf5b3783ddc333d6d60f28a3d08e5fd28e5c1fa8
Storage assisted volume migration for NetApp SolidFire driver was
merged in Victoria release cycle [1]. This patch updates the
support-matrix to claim driver support to the feature.
[1] https://review.opendev.org/c/openstack/cinder/+/746941
Change-Id: I87fb30b7faddf615d6df4401de444b9d9f7cb2e2
Pure's "pure_host_personality" configuration option currently defaults
to a non valid value according to its choices.
This affects tools leveraging the "get_driver_options" mechanism, since
the default value for the option was not considered a valid option.
This patch sets the default explicitly and adds it as a valid choice.
Change-Id: I381b80920d812a3f3b5f75b6dae66aa932f6baa4
Require LVM version 2.02.107 (circa 2014).
Warn if the driver starts on a machine with an
older LVM version.
This is the first version that supports
"lvs --readonly".
Change-Id: Ibc49d870442a10605558c244ed97ce7671dc594e
We only need information about existence of
LVs, which is readable w/ --readonly.
This should perform better in general
and may help dodge the problem appearing in
bug #1901783.
This requires LVM 2.02.107+.
Related-Bug: #1901783
Change-Id: Ib2a6dac8d074decfbbba2ca8330714f80d2973c9
This test fails if /etc/ceph/ceph.client.admin.keyring
exists. Mock out isfile() to get the behavior the unit
test expects.
Closes-Bug: #1909109
Change-Id: Ie9fd2a0e14b426c68f7c7a22db590a2d94fa0084
[[ is a bash extension and therefore not
available on platforms where sh is not bash.
Use bash explicitly.
Change-Id: I3f31acd5fc3d7422270be53510962dcbc08db602
The Cinder Basic volume quality of service documentation does
not provide enough information to understand difference
between options to control volume quality of service.
These option can categorized into fixed and burst IOPS per volume
and fixed and burst bandwidth per volume.
Change-Id: Ia4533185fece4576640968e91c0112add7ce73ae
Closes-Bug: #1894052
As per the community goal of migrating the policy file
format from JSON to YAML[1], we need to do two things:
1. Change the default value of '[oslo_policy] policy_file''
config option from 'policy.json' to 'policy.yaml' with
upgrade checks.
2. Deprecate the JSON formatted policy file on project side
via warning in doc and format releasenotes.
1st item if already done by cinder in Stein so this commit
only cover the 2nd item.
Since oslo.policy 3.6.0, by default oslo policy will
fallback to existing policy.json file to give operator some
time to migrate it to new default policy.yaml. But cinder
already changed the default value to policy.yaml long back
since Stein so no need to fallback to default JSON file. To
do that it disable this fallback via flag to oslo.policy.
Also convert the tests/unit/policy.json to policy.yaml file.
Additionally, made some corrections to outdated documentation
when removing references to a "policy.json" file.
[1]https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html
Co-Authored-By: Brian Rosmaita <rosmaita.fossdev@gmail.com>
Change-Id: Iaf8a454e60d1e4b66981b61175f89203cc15e439
Cinder can fail to create an image-based volume if RBD mirroring
is enabled. With the journaling-based approach to RBD mirroring,
ceph will still create a snapshot as a result of volume creation.
The volume create in _create_from_image_download() results in
a snapshot getting created, resulting in a race where delete_volume()
gets a VolumeIsBusy exception.
Change-Id: Ib80e04512ec34a390e9e17af2f3544e18cad8598
Closes-Bug: #1900775
Bring the versions specified in requirements.txt and test-req.txt
closer to what's actually being used in the py36 and py38 testenvs,
and update lower-constraints to reflect the updated requirements.
What has made this necessary right now is that the latest pip has
introduced a much stricter resolver, and the cinder lower-constraints
job is failing because cinder is imposing some constraints which are
too low for some dependencies, and we can't get away with that under
the stricter resolver.
Change-Id: I42af21b1c4247d04d479f1fc1ecd6f9baac0cfc9
[Spectrum Virtualize Family] Fixed issues in change_vdisk_iogrp.
During retyping a volume between I/O groups, if addvdiskaccess fails
an exception is raised and if movevdisk fails rmvdiskaccess should be
done for new I/O group before failing the retype operation.
Closes bug: #1896214
Change-Id: Ic1f770a7c7850c9897f42999968820eac4d6ed47