Skip to content

Commit 26da40e

Browse files
authored
Merge pull request #1378 from stackhpc/cinder-db-migration-doc
Document Cinder database migration issue
2 parents bc562dd + 9bab590 commit 26da40e

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

doc/source/operations/upgrading-openstack.rst

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,23 @@ Known issues
151151
OpenSearch upgrade. To workaround this, you can run the following PUT request
152152
to enable allocation again:
153153

154-
..code-block:: console
154+
.. code-block:: console
155155
156-
curl -X PUT "https://<kolla-vip>:9200/_cluster/settings?pretty" -H 'Content-Type: application/json' -d '{ "transient" : { "cluster.routing.allocation.enable" : "all" } } '
156+
curl -X PUT "https://<kolla-vip>:9200/_cluster/settings?pretty" -H 'Content-Type: application/json' -d '{ "transient" : { "cluster.routing.allocation.enable" : "all" } } '
157+
158+
* Cinder database migrations fail during the upgrade process when the
159+
``use_quota`` column is set to ``NULL``, which can be the case on deleted
160+
volumes and snapshots if OpenStack has been in operation for several
161+
releases. See `Launchpad bug 2070475
162+
<https://bugs.launchpad.net/cinder/+bug/2070475>`__ for details. Until the
163+
`database migrations are fixed
164+
<https://review.opendev.org/c/openstack/cinder/+/923635>`__, the data can be
165+
fixed with the following MySQL queries:
166+
167+
.. code-block:: mysql
168+
169+
UPDATE volumes SET use_quota = 1 WHERE use_quota IS NULL AND deleted_at IS NOT NULL;
170+
UPDATE snapshots SET use_quota = 1 WHERE use_quota IS NULL AND deleted_at IS NOT NULL;
157171
158172
Security baseline
159173
=================

0 commit comments

Comments
 (0)