In general, if you have the openstack-utils
package installed you
can use the openstack-db
command to perform the below operations by
running:
openstack-db --service <service> --update
For example:
openstack-db --service keystone --update
This will run the database upgrade command appropriate for that
service. For reference purposes, here are the actual commands that
will be run by openstack-db
:
On the Keystone host, run:
# keystone-manage db_sync
On the Cinder host, run:
# cinder-manage db sync
Swift does not require an explicit schema upgrade.
On the Glance API host, run:
# glance-manage db_sync
On the Nova API host, run:
# nova-manage db sync
On the Neutron host, run:
# neutron-db-manage \
--config-file /etc/neutron/neutron.conf \
--config-file /etc/neutron/plugin.ini upgrade head