$mysql -u root -p
mysql>drop database nova;
mysql>create database nova;
mysql>grant all privileges on nova.* to 'nova'@'%' identified by 'yournovapassword';
mysql>grant all privileges on nova.* to 'nova'@'localhost' identified by 'yournovapassword';
mysql>flush privileges;
mysql>exit
$sudo nova-manage db sync
After issuing the above commands, you need to restart all nova services on the controller node.
$sudo service nova-api restart
$sudo service nova-cert restart
$sudo service nova-consoleauth restart
$sudo service nova-scheduler restart
$sudo service nova-conductor restart
$sudo service nova-novncproxy restart
$sudo service nova-network restart
You also need to restart nova-compute on the compute nodes.
$sudo service nova-compute restart
You may need to do the following after:
- Add custom flavors (nova flavor-create)
- Add VM networks (nova net-create)
- Add floating IP pool (nova floating-ip-bulk-create)
- Edit the security rules for a project to access instances (best done through the dashboard)
References:
No comments:
Post a Comment