六:OPENSTACK Queens部署computer服务
Posted MisterChen
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了六:OPENSTACK Queens部署computer服务相关的知识,希望对你有一定的参考价值。
备注:在计算节点安装computer服务
部署计算节点computer,安装软件包
[root@computer ~]# yum install -y openstack-nova-compute
编辑配置文件nova.conf
vim /etc/nova/nova.conf
[DEFAULT]
enabled_apis = osapi_compute,metadata
transport_url = rabbit://openstack:123456@controller
my_ip = 192.168.1.111
use_neutron = True
firewall_driver = nova.virt.firewall.NoopFirewallDriver
[api]
auth_strategy = keystone
[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 = 123456
[vnc]
enabled = True
server_listen = 0.0.0.0
server_proxyclient_address = $my_ip
novncproxy_base_url = http://192.168.1.110:6080/vnc_auto.html
[glance]
api_servers = http://controller:9292
[oslo_concurrency]
lock_path = /var/lib/nova/tmp
[placement]
os_region_name = RegionOne
project_domain_name = Default
project_name = service
auth_type = password
user_domain_name = Default
auth_url = http://controller:35357/v3
username = placement
password = 123456
[libvirt]
virt_type = kvm
在controller节点查看
[root@controller ~]# openstack compute service list --service nova-compute
启动服务
[root@controller ~]# systemctl enable libvirtd.service openstack-nova-compute.service
[root@controller ~]# systemctl start libvirtd.service openstack-nova-compute.service
备注:当您添加新的计算节点时,您必须在控制器节点上运行nova管理cellv2发现主机来注册这些新的计算节点。或者,您可以在/etc/nov/nova.conf中设置适当的间隔
su -s /bin/sh -c "nova-manage cell_v2 discover_hosts --verbose" nova
或者:
修改nova.conf修改时间间隔:
[scheduler]
discover_hosts_in_cells_interval = 300
以上是关于六:OPENSTACK Queens部署computer服务的主要内容,如果未能解决你的问题,请参考以下文章
saltstack 自动化部署openstack queens 版本