OpenStack-nova组件部署

控制节点Nova服务配置

创建nova数据库,并执行授权操作

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
给Nova服务关联endpoint(端点)
openstack endpoint create --region RegionOne compute public http://controller:8774/v2.1
openstack endpoint create --region RegionOne compute internal http://controller:8774/v2.1
openstack endpoint create --region RegionOne compute admin http://controller:8774/v2.1

安装nova组件(nova-api、nova-conductor、nova-novncproxy、nova-scheduler)

 yum -y install openstack-nova-api openstack-nova-conductor openstack-nova-novncproxy openstack-nova-scheduler

修改nova配置文件(nova.conf)

cp -a /etc/nova/nova.conf{,.bak}
grep -Ev '^$|#' /etc/nova/nova.conf.bak > /etc/nova/nova.conf
 openstack-config --set /etc/nova/nova.conf D
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值