mysql -uroot -p123456
create database nova_api;
create database nova;
create database nova_cell0;
grant all privileges on nova_api.* to 'nova'@'localhost' identified by 'nova_dbpass';
grant all privileges on nova_api.* to 'nova'@'%' identified by 'nova_dbpass';
grant all privileges on nova.* to 'nova'@'%' identified by 'nova_dbpass';
grant all privileges on nova.* to 'nova'@'localhost' identified by 'nova_dbpass';
grant all privileges on nova_cell0.* to 'nova'@'localhost' identified by 'nova_dbpass';pass';
grant all privileges on nova_cell0.* to 'nova'@'%' identified by 'nova_dbpass';
flush privileges;
exit;
管理Nova用户及服务
创建nova用户
openstack user create --domain default --password nova_pass nova
把nova用户添加到service项目,拥有admin权限
openstack role add --project service --user nova admin
创建nova服务
openstack service create --name nova --description "OpenStack Compute" compute