Openstack:如何进行此桥映射?

问题描述 投票:-1回答:1

我有一台正在运行的openstack服务器,可以正常工作,但只能与external-net(extnet,映射到br-ex)一起使用我想使用内部net(intnet),但未映射到br-int。怎么映射呢?我已经尝试编辑packstack conf

CONFIG_NEUTRON_OVN_BRIDGE_MAPPINGS=extnet:br-ex,intnet:br-int
CONFIG_NEUTRON_OVS_BRIDGE_IFACES=br-ex:eno1,br-int:eno2

但适用于]时>

packstack --answer-file `date +"%d.%m.%y"`.conf

它纠正了答案文件,并且删除了我的修改

# Comma-separated list of bridge mappings for the OpenStack
# Networking Open Virtual Network plugin. Each tuple in the list must
# be in the format <physical_network>:<ovs_bridge>. Example: physnet1
# :br-eth1,physnet2:br-eth2,physnet3:br-eth3
CONFIG_NEUTRON_OVN_BRIDGE_MAPPINGS=extnet:br-ex

# Comma-separated list of colon-separated Open vSwitch
# <bridge>:<interface> pairs. The interface will be added to the
# associated bridge. If you desire the bridge to be persistent a value
# must be added to this directive, also
# CONFIG_NEUTRON_OVN_BRIDGE_MAPPINGS must be set in order to create
# the proper port. This can be achieved from the command line by
# issuing the following command: packstack --allinone --os-neutron-
# ovn-bridge-mappings=ext-net:br-ex --os-neutron-ovn-bridge-interfaces
# =br-ex:eth0
CONFIG_NEUTRON_OVN_BRIDGE_IFACES=

而且我的语法似乎是正确的。我的问题是:如何手动添加映射?我这样尝试过

vim /etc/neutron/plugins/ml2/ml2_conf.ini
bridge_mappings = extnet:br-ex,intnet:br-int

并且在重启中子后,配置为使用intnet的距离失败并显示消息

 ERROR neutron.plugins.ml2.managers [req-707b1004-ee7c-4449-b9f7-6465862bb8a8 2d88a48b96004d47bba6af01ef0fbd2c 9daaa34268c846c5aad322a7765602ce - default default] Failed to bind port eb533bc8-75b4-4852-8f85-de57a84c64a4 on host virtuale.myhost.priv for vnic_type normal using segments [{'network_id': 'ba05def0-580e-4019-97e7-1a8779be2184', 'segmentation_id': None, 'physical_network': u'intnet', 'id': 'c28bc550-afb5-49d0-bf82-c9310ae42c2e', 'network_type': u'flat'}]

因此,我认为映射不起作用,当然,如果我使用extnet等距启动。

谢谢

我有一台正在运行的openstack服务器,可以正常工作,但只能与external-net(extnet,映射到br-ex)一起使用,我想使用内部net(intnet),但没有映射到br-int。怎么映射呢?我试图编辑...

openstack
1个回答
0
投票

解决方案,使用新的OVN作为机制,而不是OVS。我在应答文件上设置了这些变量。

© www.soinside.com 2019 - 2024. All rights reserved.