OpenStack: How to Rebuild Ironic’s Database


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

This site uses Akismet to reduce spam. Learn how your comment data is processed.