Issue link: https://read.uberflip.com/i/1334488
Chapter 7 143 To use a particular release PPA we issue the following command: f Milestones (periodic releases leading up to a stable release) sudo add-apt-repository ppa:openstack-ppa/milestone sudo apt-get update f Bleeding Edge (Master Development Branch) sudo add-apt-repository ppa:openstack-ppa/bleeding-edge sudo apt-get update Once you have configured apt to look for an alternative place for packages, you can repeat the preceding process for installing packages, if you are creating a new machine based on a different package set. Or, you can simply type: sudo apt-get upgrade This will make apt look in the new package archive areas for later releases of packages. 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: mysql -uroot -p$PASSWORD -e "GRANT ALL PRIVILEGES ON glance.* TO 'glance'@'%';" mysql -u root -p$PASSWORD -e "SET PASSWORD FOR 'glance'@'%' = PASSWORD('openstack');" www.it-ebooks.info

