Install Compute controller services in OpenStack Installation Guide for Ubuntu 12.04/14.04 (LTS) - icehouse-nova_install
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openstack-manuals |
Invalid
|
Undecided
|
Unassigned |
Bug Description
[database]
connection = mysql:/
If this is defined in /etc/nova/nova.conf
then why would this work if
Use the password you created previously to log in as root. Create a nova database user:
$ mysql -u root -p
mysql> CREATE DATABASE nova;
mysql> GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'localhost' \
IDENTIFIED BY 'NOVA_DBPASS';
mysql> GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'%' \
IDENTIFIED BY 'NOVA_DBPASS';
should be
mysql> GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'controller' \
IDENTIFIED BY 'NOVA_DBPASS';
because of
/etc/hosts
defined controller as 10.0.0.11
-------
Built: 2014-07-17T08:12:40 00:00
git SHA: 3144c8b2fabd570
URL: http://
source File: file:/home/
xml:id: nova-controller
I know that it's not the case in the install guide, but if the mysql server was to be installed on separate machine, your change wouldn't work. I think we should keep the user setup for the databases as it is now for this reason.