From 3dd4a18dd93feadcd869ceecce8228e56aca8c92 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Wed, 30 Oct 2013 19:18:35 +0100 Subject: [PATCH] Install Guide: Change order of cinder setup First update the configuration file, then run openstack-db Change-Id: I69aad78243238c31aa47306ebdcf7d5ab33f6873 backport: havana Closes-Bug: #1246391 --- .../section_cinder-controller.xml | 42 ++++++++++--------- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/doc/install-guide/section_cinder-controller.xml b/doc/install-guide/section_cinder-controller.xml index 9e3745668e..9308932ebb 100644 --- a/doc/install-guide/section_cinder-controller.xml +++ b/doc/install-guide/section_cinder-controller.xml @@ -35,29 +35,13 @@ - The Block Storage Service stores volume information in a database. + + The Block Storage Service stores volume information in a database. The examples in this section use the same MySQL database that is used by other OpenStack services. - -To create the Block Storage Service database and tables and a cinder database user, run the openstack-db command. + Configure the Block Storage Service to use the database. Replace CINDER_DBPASS with a password of your choosing. - # openstack-db --init --service cinder --password CINDER_DBPASS - - - The Block Storage Service stores volume information in a database. - The examples in this section use the same MySQL database that is used by other OpenStack services. - Using the password that you set in the previous example, log in as root to create a cinder database. - # mysql -u root -p -mysql> CREATE DATABASE cinder; -mysql> GRANT ALL PRIVILEGES ON cinder.* TO 'cinder'@'localhost' \ -IDENTIFIED BY 'CINDER_DBPASS'; -mysql> GRANT ALL PRIVILEGES ON cinder.* TO 'cinder'@'%' \ -IDENTIFIED BY 'CINDER_DBPASS'; - - - - Configure the Block Storage Service to use the created database. # openstack-config --set /etc/cinder/cinder.conf \ database connection mysql://cinder:CINDER_DBPASS@controller/cinder Edit /etc/cinder/cinder.conf @@ -69,7 +53,25 @@ IDENTIFIED BY 'CINDER_DBPASS'; connection = mysql://cinder:CINDER_DBPASS@localhost/cinder ... - + + + + + To create the Block Storage Service database and tables and a + cinder database user, run the + openstack-db command. + + # openstack-db --init --service cinder --password CINDER_DBPASS + + + Using the password that you set in the previous example, log in as root to create a cinder database. + # mysql -u root -p +mysql> CREATE DATABASE cinder; +mysql> GRANT ALL PRIVILEGES ON cinder.* TO 'cinder'@'localhost' \ +IDENTIFIED BY 'CINDER_DBPASS'; +mysql> GRANT ALL PRIVILEGES ON cinder.* TO 'cinder'@'%' \ +IDENTIFIED BY 'CINDER_DBPASS'; + Create the database tables for the Block Storage Service.