Skip to content

Commit

Permalink
Merge pull request #1378 from stackhpc/cinder-db-migration-doc
Browse files Browse the repository at this point in the history
Document Cinder database migration issue
  • Loading branch information
Alex-Welsh authored Nov 19, 2024
2 parents bc562dd + 9bab590 commit 26da40e
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions doc/source/operations/upgrading-openstack.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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://<kolla-vip>:9200/_cluster/settings?pretty" -H 'Content-Type: application/json' -d '{ "transient" : { "cluster.routing.allocation.enable" : "all" } } '
curl -X PUT "https://<kolla-vip>: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
<https://bugs.launchpad.net/cinder/+bug/2070475>`__ for details. Until the
`database migrations are fixed
<https://review.opendev.org/c/openstack/cinder/+/923635>`__, 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
=================
Expand Down

0 comments on commit 26da40e

Please sign in to comment.