Mark Goddard d656492d4b 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
2023-09-20 17:11:41 +01:00

17 lines
723 B
YAML

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
---
- name: "Perform ironic online data migrations"
command: ironic-dbsync --config-file /etc/ironic/ironic.conf online_data_migrations
environment: "{{ bifrost_venv_env }}"