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

 

 

 


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值