O'Reilly logo

OpenStack Cloud Computing Cookbook by Kevin Jackson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Configuring OpenStack Image Service with MySQL

In order to scale OpenStack effectively, we must move our local database store for OpenStack Image Service to a central, scalable, and more resilient database tier. For this, we will use our MySQL database.

Getting ready

To begin with, ensure you are logged into the server where OpenStack Image Service is installed, and become the root user.

How to do it...

Carry out the following steps:

  1. Once OpenStack Image Service is installed, we can now create the glance database in our MySQL database server. We do this as follows:
    PASSWORD=openstack
    mysql -uroot -p$PASSWORD -e 'CREATE DATABASE glance;'
    
  2. We now create a glance user, with the password openstack and with privileges to use this database, as follows:

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required