diff --git a/docker/ironic/ironic-api/extend_start.sh b/docker/ironic/ironic-api/extend_start.sh index 7ac9f90200..ebe85b893b 100644 --- a/docker/ironic/ironic-api/extend_start.sh +++ b/docker/ironic/ironic-api/extend_start.sh @@ -4,6 +4,17 @@ # of the KOLLA_BOOTSTRAP variable being set, including empty. if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then ironic-dbsync upgrade + ironic-dbsync online_data_migrations + exit 0 +fi + +if [[ "${!KOLLA_UPGRADE[@]}" ]]; then + ironic-dbsync upgrade + exit 0 +fi + +if [[ "${!KOLLA_OSM[@]}" ]]; then + ironic-dbsync online_data_migrations exit 0 fi