Use create schema instead of upgrade for ironic
Ironic uses SQLite as database. SQLite does not support ALTER which is used in alembic migration. Change-Id: I3495f7eae9a9e22175052005314e82ab280bfdf2 Closes: #235
This commit is contained in:
parent
528407edc7
commit
e6d2bf9ecb
@ -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 &
|
||||||
|
Loading…
Reference in New Issue
Block a user