本文主要是介绍OpenStack-train版安装之计算节点安装Nova(计算服务)、安装Neutron(组网服务),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
计算节点安装Nova(计算服务)、安装Neutron(组网服务)
- 安装Nova(计算服务)
- 安装Neutron(组网服务)
安装Nova(计算服务)
- 安装和配置
# yum install openstack-nova-compute -y
配置,修改配置文件/etc/nova/nova.conf,在对应分组【[组名]】下添加配置:
[DEFAULT]
enabled_apis = osapi_compute,metadata
transport_url = rabbit://openstack:RABBIT_PASS@controller
my_ip = 192.168.0.31
use_neutron = true
firewall_driver = nova.virt.firewall.NoopFirewallDriver
[api]
auth_strategy = keystone
[keystone_authtoken]
www_authenticate_uri = http://controller:5000/
auth_url = http://controller:5000/
memcached_servers = controller:11211
auth_type = password
project_domain_name = Default
user_domain_name = Default
project_name = service
username = nova
password = NOVA_PASS
[vnc]
enabled = true
server_listen = 0.0.0.0
server_proxyclient_address = $my_ip
novncproxy_base_url = http://192.168.0.11:6080/vnc_auto.html
[glance]
api_servers = http://controller:9292
[oslo_concurrency]
lock_path = /var/lib/nova/tmp
[placement]
region_name = RegionOne
project_domain_name = Default
project_name = service
auth_type = password
user_domain_name = Default
auth_url = http://controller:5000/v3
username = placement
password = PLACEMENT_PASS
[libvirt]
virt_type = qemu
设置开机启动并启动服务:
# systemctl enable libvirtd.service openstack-nova-compute.service
# systemctl start libvirtd.service openstack-nova-compute.service
注意:如果创建实例出现超时问题,修改/etc/nova/nova.conf,重启openstack-nova-compute.service:
block_device_allocate_retries=300
block_device_allocate_retries_interval=5
block_device_creation_timeout=600
- 验证
状态是否正常(控制节点执行):
# openstack compute service list --service nova-compute
添加计算节点(控制节点执行):
# su -s /bin/sh -c "nova-manage cell_v2 discover_hosts --verbose" nova
Nova状态检查(报403状态,安装Placement时00-placement-api.conf配置缺少):
# nova-status upgrade check
- 说明
- 详细说明参考官网:
https://docs.openstack.org/nova/train/install/compute-install-rdo.html - 本章节使用计算节点1(compute1)作为示例,其他计算节点只需要调整配置文件中的IP。
安装Neutron(组网服务)
- 安装和配置
# yum install openstack-neutron-linuxbridge ebtables ipset -y
配置,修改配置文件/etc/neutron/neutron.conf,在对应分组【[组名]】下添加配置:
[DEFAULT]
transport_url = rabbit://openstack:RABBIT_PASS@controller
auth_strategy = keystone
[keystone_authtoken]
www_authenticate_uri = http://controller:5000
auth_url = http://controller:5000
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = neutron
password = NEUTRON_PASS
[oslo_concurrency]
lock_path = /var/lib/neutron/tmp
配置,修改配置文件/etc/neutron/plugins/ml2/linuxbridge_agent.ini,在对应分组【[组名]】下添加配置:
[linux_bridge]
physical_interface_mappings = provider:eno16777736,eno172_16_0:eno33554984
[vxlan]
enable_vxlan = true
local_ip = 192.168.0.31
l2_population = true
[securitygroup]
enable_security_group = true
firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver
配置,修改配置文件/etc/nova/nova.conf,在对应分组【[组名]】下添加配置:
[neutron]
auth_url = http://controller:5000
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = neutron
password = NEUTRON_PASS
设置开机启动并启动服务:
# systemctl restart openstack-nova-compute.service# systemctl enable neutron-linuxbridge-agent.service
# systemctl start neutron-linuxbridge-agent.service
- 验证
状态是否正常:
# openstack network agent list
- 说明
- 详细说明参考官网:
https://docs.openstack.org/neutron/train/install/compute-install-rdo.html - 本章节使用计算节点1(compute1)作为示例,其他计算节点只需要调整配置文件中的IP。
这篇关于OpenStack-train版安装之计算节点安装Nova(计算服务)、安装Neutron(组网服务)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!