Merge "Use create schema instead of upgrade for ironic"

This commit is contained in:
Zuul 2020-05-12 18:09:46 +00:00 committed by Gerrit Code Review
commit fc0b53d2b3

View File

@ -2,7 +2,11 @@
cp -f /shared/ironic.conf /etc/ironic/ironic.conf cp -f /shared/ironic.conf /etc/ironic/ironic.conf
ironic-dbsync --config-file /etc/ironic/ironic.conf upgrade DB_VERSION="$(ironic-dbsync --config-file /etc/ironic/ironic.conf version)"
if [ "${DB_VERSION}" == "None" ];
then
ironic-dbsync --config-file /etc/ironic/ironic.conf create_schema
fi
/usr/bin/ironic-conductor & /usr/bin/ironic-conductor &
/usr/bin/ironic-api & /usr/bin/ironic-api &