在CentOS下部署Openstack-安装nova计算服务

安装

1
yum install -y openstack-nova-api openstack-nova-cert openstack-nova-conductor openstack-nova-console openstack-nova-novncproxy openstack-nova-scheduler openstack-nova-compute

创建数据库

1
2
3
mysql -uroot –p
CREATE DATABASE nova;
GRANT ALL PRIVILEGES ON nova.* TO'nova'@'192.168.0.0/255.255.0.0' IDENTIFIED BY 'nova';

修改配置文件链接数据库和rabbitmq


导入数据库

1
nova-manage db sync

修改配置文件中keystone、vnc的配置



创建nova服务和api

1
keystone service-create --name=nova --type=compute --description="OpenStackCompute"


1
2
3
4
5
keystone endpoint-create \
> --service-id=$(keystone service-list | awk '/ compute / {print$2}') \
> --publicurl=http://192.168.1.103:8774/v2/%\(tenant_id\)s \
> --internalurl=http://192.168.1.103:8774/v2/%\(tenant_id\)s \
> --adminurl=http://192.168.1.103:8774/v2/%\(tenant_id\)s

启动服务

1
2
3
4
5
6
7
8
9
10
11
12
13
14
service openstack-nova-api restart
service openstack-nova-cert restart
service openstack-nova-compute restart
service openstack-nova-novncproxy restart
service openstack-nova-consoleauth restart
service openstack-nova-conductor restart
service openstack-nova-scheduler restart
chkconfig openstack-nova-api on
chkconfig openstack-nova-cert on
chkconfig openstack-nova-compute on
chkconfig openstack-nova-novncproxy on
chkconfig openstack-nova-consoleauth on
chkconfig openstack-nova-conductor on
chkconfig openstack-nova-scheduler on

本文作者:Qiu Qingyu
版权声明:本博客所有文章除特别声明外,均采用CC BY-NC-SA 3.0 CN许可协议。转载请注明出处!
本文永久链接:http://qiuqingyu.cn/2015/12/12/在CentOS下部署Openstack-安装nova计算服务/