Nova controller节点安装-阿里云开发者社区

开发者社区> 数据库> 正文
登录阅读全文

Nova controller节点安装

简介:

[root@controller openstack]# source admin-openrc

[root@controller openstack]# mysql -uroot -pzoomtech -e "CREATE DATABASE nova"

[root@controller openstack]# mysql -uroot -pzoomtech -e "CREATE DATABASE nova_api"

[root@controller openstack]# mysql -uroot -pzoomtech -e "GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'%' IDENTIFIED BY 'openstack'"

[root@controller openstack]# mysql -uroot -pzoomtech -e "GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'localhost' IDENTIFIED BY 'openstack'"

 

[root@controller openstack]# mysql -uroot -pzoomtech -e "GRANT ALL PRIVILEGES ON nova_api.* TO 'nova'@'%' IDENTIFIED BY 'openstack'"

[root@controller openstack]# mysql -uroot -pzoomtech -e "GRANT ALL PRIVILEGES ON nova_api.* TO 'nova'@'localhost' IDENTIFIED BY 'openstack'"


[root@controller openstack]# openstack user create --domain default --password-prompt nova

[root@controller openstack]# openstack role add --project service --user nova admin

[root@controller openstack]# openstack service create --name nova --description "OpenStack Compute" compute

[root@controller openstack]# openstack endpoint create --region RegionOne compute public http://controller:8774/v2.1/%\(tenant_id\)s

[root@controller openstack]# openstack endpoint create --region RegionOne compute public http://controller:8774/v2.1/%\(tenant_id\)s

[root@controller openstack]# openstack endpoint create --region RegionOne compute internal http://controller:8774/v2.1/%\(tenant_id\)s


[root@controller openstack]# yum install openstack-nova-api openstack-nova-conductor openstack-nova-console openstack-nova-novncproxy openstack-nova-scheduler -y >> /dev/null


[root@controller openstack]# vim /etc/nova/nova.conf

[DEFAULT]

enabled_apis = osapi_compute,metadata

rpc_backend = rabbit

auth_strategy = keystone

my_ip = 10.1.1.129

use_neutron = True

firewall_driver = nova.virt.firewall.NoopFirewallDriver

[api_database]

connection = mysql+pymysql://nova:@controller/nova_api

[database]

connection = mysql+pymysql://nova:@controller/nova

[oslo_messaging_rabbit]

rabbit_host = controller

rabbit_userid = openstack

rabbit_password = openstack

[keystone_authtoken]

auth_uri = http://controller:5000

auth_url = http://controller:35357

memcached_servers = controller:11211

auth_type = password

project_domain_name = default

user_domain_name = default

project_name = service

username = nova

password = openstack

[vnc]

vncserver_listen = 10.1.1.129

vncserver_proxyclient_address = 10.1.1.129

[glance]

api_servers = http://controller:9292

[oslo_concurrency]

lock_path = /var/lib/nova/tmp


 [root@controller openstack]# su -s /bin/sh -c "nova-manage api_db sync" nova

[root@controller openstack]# su -s /bin/sh -c "nova-manage db sync" nova

 [root@controller openstack]# systemctl enable openstack-nova-api.service

 [root@controller openstack]# systemctl enable openstack-nova-consoleauth.service

 [root@controller openstack]# systemctl enable openstack-nova-scheduler.service

 [root@controller openstack]# systemctl enable openstack-nova-conductor.service

 [root@controller openstack]# systemctl enable openstack-nova-novncproxy.service

 [root@controller openstack]# systemctl start openstack-nova-api.service

 [root@controller openstack]# systemctl start openstack-nova-consoleauth.service

 [root@controller openstack]# systemctl start openstack-nova-scheduler.service

 [root@controller openstack]# systemctl start openstack-nova-conductor.service

 [root@controller openstack]# systemctl start openstack-nova-novncproxy.service

[root@controller openstack]# ps aux | grep nova


[root@controller openstack]# openstack service list

+----------------------------------+----------+----------+

| ID                               | Name     | Type     |

+----------------------------------+----------+----------+

| 58230d612d0d4acc862d4ab76c46ceb8 | keystone | identity |

| b160109f223d476198f2267894ef0403 | nova     | compute  |

+----------------------------------+----------+----------+



本文转自 OpenStack2015 51CTO博客,原文链接:http://blog.51cto.com/andyliu/1846412,如需转载请自行联系原作者

版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。

分享:
数据库
使用钉钉扫一扫加入圈子
+ 订阅

分享数据库前沿,解构实战干货,推动数据库技术变革

其他文章