设为首页 收藏本站
云服务器等爆品抢先购,低至4.2元/月
查看: 1115|回复: 0

[经验分享] openstack-flat 网络问题

[复制链接]

尚未签到

发表于 2017-6-27 13:14:16 | 显示全部楼层 |阅读模式
  使用packstack安装,版本为M,默认为vxlan网络, 操作系统为centos7.
  由于学习的需要修改为flat网络。
  首先修改配置文件:
  /etc/neutron/plugins/ml2/ml2_conf.ini
  type_drivers = flat
  tenant_network_types =flat
  mechanism_drivers =openvswitch
  flat_networks = physnet1
  然后修改/etc/neutron/plugins/ml2/openvswitch_agent.ini
  bridge_mappings = physnet1:br-phy
  增加ovs br-phy,并且绑定对外端口:



[iyunv@myopenstack ml2]# ovs-vsctl show
73bdadc0-287a-4c0f-9c54-6ad6fb575347
Bridge br-ex
Port "qg-2ccfa701-cd"
Interface "qg-2ccfa701-cd"
type: internal
Port br-ex
Interface br-ex
type: internal
Bridge br-phy
Port "enp0s3"
Interface "enp0s3"
Port phy-br-phy
Interface phy-br-phy
type: patch
options: {peer=int-br-phy}
Port br-phy
Interface br-phy
type: internal

  然后重启service:    neutron-server  neutron-dhcp-agent neutron-openvswitch-agent
  创建网络:
DSC0000.png

  创建一个instance,使用这个网络。
DSC0001.png

  但是instance创建完成后,不能够与外界通信。
  自己尝试分析原因:
  [iyunv@myopenstack ml2]# brctl show
bridge name     bridge id               STP enabled     interfaces
qbr187d132b-9d          8000.ce4f9fccba4d       no              qvb187d132b-9d
                                                                          tap187d132b-9d
  instance创建一个linux bridge, 端口为qvb187d132b-9d。



[iyunv@myopenstack ml2]# ovs-vsctl show
73bdadc0-287a-4c0f-9c54-6ad6fb575347
Bridge br-ex
Port "qg-2ccfa701-cd"
Interface "qg-2ccfa701-cd"
type: internal
Port br-ex
Interface br-ex
type: internal
Bridge br-phy
Port "enp0s3"
Interface "enp0s3"
Port phy-br-phy
Interface phy-br-phy
type: patch
options: {peer=int-br-phy}
Port br-phy
Interface br-phy
type: internal
Bridge br-tun
fail_mode: secure
Port br-tun
Interface br-tun
type: internal
Port patch-int
Interface patch-int
type: patch
options: {peer=patch-tun}
Bridge br-flat
Port br-flat
Interface br-flat
type: internal
Port phy-br-flat
Interface phy-br-flat
type: patch
options: {peer=int-br-flat}
Bridge br-int
fail_mode: secure
Port int-br-phy
Interface int-br-phy
type: patch
options: {peer=phy-br-phy}
Port "int-br-eth0"
Interface "int-br-eth0"
type: patch
options: {peer="phy-br-eth0"}
Port br-int
Interface br-int
type: internal
Port "tap239b2780-1b"
tag: 2
Interface "tap239b2780-1b"
type: internal
Port int-br-flat
Interface int-br-flat
type: patch
options: {peer=phy-br-flat}
        Port "qvo187d132b-9d"
tag: 1
Interface "qvo187d132b-9d"
Port "qr-9e110b6b-5d"
tag: 2
Interface "qr-9e110b6b-5d"
type: internal
Port "tap2b05a39d-da"
tag: 1
Interface "tap2b05a39d-da"
type: internal
Port patch-tun
Interface patch-tun
type: patch
options: {peer=patch-int}
ovs_version: "2.5.0"

  linux bridge 连接到bridage br-int 而不是预期的 bridge br-phy.
  谁能帮忙看看这个问题的原因何在?
  非常感谢。

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-388655-1-1.html 上篇帖子: openstack controller ha测试环境搭建记录(十)——配置neutron(控制节点) 下篇帖子: Openstack的web管理端相关
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表