From 9bab590e551311d3d5f1c619006d6a67b2f91dbe Mon Sep 17 00:00:00 2001 From: Pierre Riteau Date: Tue, 19 Nov 2024 15:07:50 +0100 Subject: [PATCH] Document Cinder database migration issue Also fix the adjacent code block while here. --- doc/source/operations/upgrading-openstack.rst | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/doc/source/operations/upgrading-openstack.rst b/doc/source/operations/upgrading-openstack.rst index 9f82e91c4..43c6efa6e 100644 --- a/doc/source/operations/upgrading-openstack.rst +++ b/doc/source/operations/upgrading-openstack.rst @@ -151,9 +151,23 @@ Known issues OpenSearch upgrade. To workaround this, you can run the following PUT request to enable allocation again: - ..code-block:: console + .. code-block:: console - curl -X PUT "https://:9200/_cluster/settings?pretty" -H 'Content-Type: application/json' -d '{ "transient" : { "cluster.routing.allocation.enable" : "all" } } ' + curl -X PUT "https://:9200/_cluster/settings?pretty" -H 'Content-Type: application/json' -d '{ "transient" : { "cluster.routing.allocation.enable" : "all" } } ' + +* Cinder database migrations fail during the upgrade process when the + ``use_quota`` column is set to ``NULL``, which can be the case on deleted + volumes and snapshots if OpenStack has been in operation for several + releases. See `Launchpad bug 2070475 + `__ for details. Until the + `database migrations are fixed + `__, the data can be + fixed with the following MySQL queries: + + .. code-block:: mysql + + UPDATE volumes SET use_quota = 1 WHERE use_quota IS NULL AND deleted_at IS NOT NULL; + UPDATE snapshots SET use_quota = 1 WHERE use_quota IS NULL AND deleted_at IS NOT NULL; Security baseline =================