19830 Commits

Author SHA1 Message Date
Stephen Finucane
238e7f8920 tests: Enable SQLAlchemy 2.0 deprecation warnings
Well, sort of. We enable them but immediately filter out the ones we're
actually seeing, the rationale being that we can address these in a
piecemeal fashion without the risk of introducing new issues.

There's a lot more to be done here. However, the work done in oslo.db
[1] should provide a guide for how to resolve the outstanding issues.

[1] https://review.opendev.org/q/topic:"sqlalchemy-20"+project:openstack/oslo.db

Change-Id: I9e8d3e3a82c51c3c008ef7380f2f619ed492205e
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2022-06-16 13:04:50 +01:00
Zuul
9a8583b2ef Merge "PowerMax Driver - Improve error handling around deletes" 2022-06-15 16:45:31 +00:00
Zuul
3dfc519301 Merge "Groups: remove unneeded "status" variable" 2022-06-14 17:08:28 +00:00
Zuul
72d3c5cc6d Merge "Ceph: Remove unnecessary convert_str() calls" 2022-06-14 16:59:13 +00:00
Zuul
740baa6fb8 Merge "pylint: ibm_storage: Fix E0601 used-before-assignment error" 2022-06-14 16:59:07 +00:00
Zuul
80ed9db01f Merge "pylint: volume/api: Fix E0601 error" 2022-06-14 16:58:40 +00:00
Zuul
a1d6d3e4e8 Merge "cmd/manage and coordination: Clean up exception handling" 2022-06-14 16:58:34 +00:00
Zuul
70e6f12e47 Merge "db: Move comment" 2022-06-14 16:49:46 +00:00
Zuul
218c1f92dc Merge "[docs] Update PTL info in contributor guide" 2022-06-10 13:42:49 +00:00
Zuul
863033283f Merge "db: Remove unused API" 2022-06-09 17:04:22 +00:00
Zuul
872b7fa3d9 Merge "db: Remove final users of 'get_session'" 2022-06-09 17:04:18 +00:00
Zuul
cf786fbd37 Merge "db: Final cleanup for context-based enginefacade" 2022-06-09 16:48:46 +00:00
Zuul
d7c119fe88 Merge "db: Migrate 'purge_deleted_rows' to enginefacade" 2022-06-09 16:46:47 +00:00
Zuul
311465e501 Merge "db: Migrate online upgrade helpers to enginefacade" 2022-06-08 10:43:20 +00:00
Zuul
c7dcf1529c Merge "Remove redundant line from host_manager.py" 2022-06-08 10:11:16 +00:00
Brian Rosmaita
633c1fa9d8 Don't limit use of importlib-metadata to Python < 3.8
The cinder requirements job is failing because our restriction
of importlib_metadata to py<3.8 is conflicting with change
I5febaed02e95 to global-requirements.

The cinder restriction to py<3.8 was originally made by
change I45d0851cdb5f (merged 21 Aug 2020).

Change-Id: I0293ae0e178c6b30edf38a0b31e60de4a4f6e21e
2022-06-07 09:27:24 -04:00
Stephen Finucane
25d70a00ce db: Move comment
We split the '_check_sync' helper in 'cinder.db.manage' as part of
change Ic8c37145c66069e9194458fa7f622d98022fee4f. A comment was left in
this function which really belonged in the now-split function. Move it.

Change-Id: I9c1896c9eccd77363eedaa2817937cf8431f209a
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2022-06-07 14:26:22 +02:00
Zuul
895f3ce283 Merge "db: Migrate "worker" APIs to enginefacade" 2022-06-07 12:07:58 +00:00
Zuul
781d29e822 Merge "db: Migrate "image volume cache" APIs to enginefacade" 2022-06-07 12:07:54 +00:00
Zuul
83c3e2d525 Merge "db: Migrate "driver initiator data" APIs to enginefacade" 2022-06-07 12:02:16 +00:00
whoami-rajat
52d6fb4acf Remove redundant line from host_manager.py
With change[1], we introduced a redundant line in
cinder/scheduler/host_manager.py
This patch removes it.

[1] I07d74078dbb102490dd722029e32c74cec3aa44c

Change-Id: Ic4918c04493360a5913c8f4854bb44b6048af264
2022-06-07 13:36:21 +05:30
Zuul
0ebdca01f0 Merge "Add info about code coverage job" 2022-06-06 13:49:33 +00:00
Zuul
f6258d782a Merge "Add image_conversion_disable config" 2022-06-03 15:51:29 +00:00
Zuul
2b91ddafba Merge "Remove use of mock CONF object" 2022-06-03 14:14:11 +00:00
Zuul
1472dfe687 Merge "db: Migrate "message" APIs to enginefacade" 2022-06-02 13:55:16 +00:00
Zuul
2fe2fdfafa Merge "db: Migrate "group snapshot" APIs to enginefacade" 2022-06-02 11:15:29 +00:00
Zuul
cfb46ef1cd Merge "db: Migrate "cg snapshot" APIs to enginefacade" 2022-06-02 10:47:50 +00:00
Zuul
6cb1c682f8 Merge "db: Migrate "group" APIs to enginefacade" 2022-06-02 10:19:23 +00:00
Zuul
32e714988d Merge "db: Migrate "consistency group" APIs to enginefacade" 2022-06-02 09:39:54 +00:00
Zuul
bc9a0e9113 Merge "db: Migrate "transfer" APIs to enginefacade" 2022-06-02 07:53:09 +00:00
ricolin
a719525c1c Add image_conversion_disable config
Add new config option `image_conversion_disable`, when it's set to
`True`, image disk_format and volume format must be the same format.
Otherwise will raise ImageUnacceptable exception.
`image_conversion_disable` config is bool option, default to `False`.

The idea behind this was that in certain high scale environments,
it is possible that a cloud allows both qcow2 and raw image uploads.

However, uploading a qcow2 image and creating a large number of
volumes can cause a tremendous amount of conversions that will kill
cinder-volume. It may be undesirable to have this, so a cloud
operator can opt to disallow conversions and enforce that the user
uploads the correct image type if they want to have volumes (aka
raw in rbd case).

Closes-Bug: #1970115
Change-Id: Ic481d68639d9460d1fd14225bc17a0d8287d5fd9
2022-06-01 03:56:02 +08:00
Zuul
4b3dba1ea9 Merge "db: Migrate "backup", "backup metadata" APIs to enginefacade" 2022-05-31 13:45:26 +00:00
Zuul
43c9557ad3 Merge "db: Migrate "volume glance metadata" APIs to enginefacade" 2022-05-31 13:45:21 +00:00
Zuul
1e2be12384 Merge "db: Migrate "volume type encryption" APIs to enginefacade" 2022-05-31 13:45:17 +00:00
Zuul
d5e293a683 Merge "db: Migrate "qos specs" APIs to enginefacade" 2022-05-31 10:50:05 +00:00
Zuul
ef0a03ecf2 Merge "db: Migrate "volume type specs", "group type specs" APIs to enginefacade" 2022-05-31 09:20:41 +00:00
Zuul
8727d4e1e2 Merge "db: Migrate "volume type", "group type" APIs to enginefacade" 2022-05-31 09:20:37 +00:00
Brian Rosmaita
405173d477 Remove use of mock CONF object
We shouldn't be using a mock CONF object in tests, instead we
should be using the 'flags' method of the cinder.tests.unit.test.
TestCase class.

See https://review.opendev.org/c/openstack/cinder/+/839793/6 if
you're not sure why.

Change-Id: I100b47697afa9241dad856baef613c687428d6d1
2022-05-30 17:56:44 +08:00
Brian Rosmaita
13d2d0e3c2 [docs] Update PTL info in contributor guide
Some recent emails have made me realize that the basic contributor
doc doesn't have info about where you can find out who the current
PTL is.  This patch moves the PTL info from the bottom of the doc
to a more visible place, and adds a brief description of what the
PTL does and who the electorate is.

Change-Id: Ib1fe4fba3d4911222b2c9393700c411d08fe2805
2022-05-28 12:30:10 -04:00
OpenStack Proposal Bot
ffe87d17b8 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I89f2ca889626297a86879bfbea8485a424a97da6
2022-05-28 02:36:05 +00:00
Zuul
9b9aea2719 Merge "mypy: cinder/volume/volume_types.py" 2022-05-27 18:32:29 +00:00
Zuul
1f0ed8c001 Merge "docs: update release cycle tasks" 2022-05-27 18:32:23 +00:00
Zuul
20fb75c3e8 Merge "Scheduler Evaluator: raise recursion limit" 2022-05-27 18:32:17 +00:00
Zuul
44bdc5d071 Merge "Remove extra volume_type DB fetch on volume manage" 2022-05-27 17:47:06 +00:00
Zuul
2937ef7702 Merge "Modify manner of retrieving volume_ref" 2022-05-27 17:46:58 +00:00
Zuul
6d78fbc0ef Merge "Fix QOS computation" 2022-05-27 16:50:59 +00:00
Eric Harney
70590f991e Groups: remove unneeded "status" variable
Tidy up the create_group method a bit.

Change-Id: Ic646ce475def284850af9b98d7dc2cab61c86a20
2022-05-27 15:21:03 +00:00
Zuul
b17ad465c5 Merge "tox.ini: combine functional-py* envs" 2022-05-27 15:11:54 +00:00
Zuul
ec51683e5e Merge "Tests: Extend RBD deferred deletion interval" 2022-05-27 15:10:52 +00:00
Zuul
7f4f18dbdd Merge "PowerMax Docs - Known issues section" 2022-05-27 14:32:55 +00:00