本文主要是介绍openstack Queens版本在centos7.1,最小化安装(安装neutron(计算节点)),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
Hosts
10.0.2.111 controller
10.0.2.112 compute1
确保这网络OK
ping -c 4 openstack.org
ping -c 4 compute1
ping -c 4 controller
yum installopenstack-neutron-linuxbridge ebtables ipset -y
修改配置文件
[root@compute1 ~]# vim/etc/neutron/neutron.conf
[DEFAULT]
# ...
transport_url = rabbit://openstack:test.2018@controller
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 = neutron
password = test.2018
[oslo_concurrency]
# ...
lock_path = /var/lib/neutron/tmp
配置Linux网桥代理
修改配置文件
/etc/neutron/plugins/ml2/linuxbridge_agent.ini
[linux_bridge]
physical_interface_mappings =provider:eno16777736
[securitygroup]
firewall_driver =neutron.agent.linux.iptables_firewall.IptablesFirewallDriver
enable_security_group = true
[vxlan]
enable_vxlan = true
local_ip = 10.0.2.112
l2_population = true
确保值为1
[root@compute1 ~]# sysctl -a |grepnet.bridge.bridge-nf-call-iptables
net.bridge.bridge-nf-call-iptables =1
[root@compute1 ~]# sysctl -a |grepnet.bridge.bridge-nf-call-ip6tables
net.bridge.bridge-nf-call-ip6tables =1
配置Compute服务以使用网络服务
修改配置文件
/etc/nova/nova.conf
[neutron]
url = http://controller:9696
auth_url = http://controller:35357
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = neutron
password = test.2018
启动服务
# systemctl restartopenstack-nova-compute.service
# systemctl enable neutron-linuxbridge-agent.service
# systemctl startneutron-linuxbridge-agent.service
这篇关于openstack Queens版本在centos7.1,最小化安装(安装neutron(计算节点))的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!