Skip to content

Document Cinder database migration issue #1378

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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