OpenStack: How to Rebuild Ironic’s Database

cropped-97743-computer-room

Move the current database to a backup location for safe keeping.

# mv /var/lib/ironic-inspector/inspector.sqlite /root/

Restart Ironic services. Here we are hitting them all to be safe.

# for service in `systemctl list-unit-files | grep ironic | awk ‘{print $1}’`; do  systemctl restart $service; done

Now rebuild the database.

# ironic-inspector-dbsync –config-file /etc/ironic-inspector/inspector.conf upgrade

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s