ironic: Perform online data migrations with localhost DB

Previously online data migrations were not performed in the default
configuration where the database address is 'localhost'. I'm not sure
why this condition was used, but it was present in the original
change I685efd14bf3567a126311b676a50b0abb0f043db submitted adding the
online data migrations back in the Stein release.

This change removes the condition to perform online data migrations
regardless of the database address.

Change-Id: I60d0f61a3c6fd3573b2031f7dba5d8a29e178394
Closes-Bug: #2036772
This commit is contained in:
Mark Goddard 2023-09-20 17:05:53 +01:00
parent 16b34f378d
commit d656492d4b
2 changed files with 7 additions and 1 deletions

View File

@ -14,4 +14,3 @@
- name: "Perform ironic online data migrations"
command: ironic-dbsync --config-file /etc/ironic/ironic.conf online_data_migrations
environment: "{{ bifrost_venv_env }}"
when: ironic.database.host != 'localhost'

View File

@ -0,0 +1,7 @@
---
fixes:
- |
Fixes an issue where online data migrations were not performed in the
default Bifrost configuration where ``localhost`` is used as the database
address. See `LP#2036772
<https://bugs.launchpad.net/bifrost/+bug/2036772>`__ for details.