mysql -u root -pabc-123
---
create database nova_api;
crate database nova;
create database nova_cell0;
create database placement;
grant all privileges on nova_api.* to 'nova'@'localhost' identified by 'nova';
grant all privileges on nova_api.* to 'nova'@'%' identified by 'nova';
grant all privileges on nova.* to 'nova'@'localhost' identified by 'nova';
grant all privileges on nova.* to 'nova'@'%' identified by 'nova';
grant all privileges on nova_cell0.* to 'nova'@'localhost' identified by 'nova';
grant all privileges on nova_cell0.* to 'nova'@'%' identified by 'nova';
grant all privileges on placement.* to 'nova'@'localhost' identified by 'nova';
grant all privileges on placement.* to 'nova'@'%' identified by 'nova';
flush privileges;
exit
6.2 Keystone注册nova
6.2.1 Keystone创建nova用户
openstack user create --domain default --password=nova nova
6.2.2 Keystone中将nova用户添加为admin权限并且添加进test项目
openstack role add --project test --user nova admin
6.2.3 创建nova计算服务
openstack service create --name nova --description "OpenStack Compute" compute
openstack service list