New Question
0

Flat Networks with neutron-ovs-agent?

asked 2017-01-18 17:32:45 +0200

mario-sommer gravatar image

updated 2017-01-18 17:33:20 +0200

Because some apps don't play well in a NATed enviroment I have some provider networks mapped directly to my compute nodes. This works well on Linux compute nodes with additional external bridges and bridge_mappings.

I tried to add additional bridges and ports on Windows with ovs-vsctl add-br-ext2 and ovs-vsctl add-port br-ext2 'Ethernet 2" but that seems to fail for Interfaces without a Hyper-V Switch. On the other hand the documentation says "We currently support a single Hyper-V virtual switch ". Is there another way to achieve this with Hyper-V and neutron-ovs-agent?

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
1

answered 2017-02-17 18:24:21 +0200

abalutoiu gravatar image

Hello mario,

You could do the same on Hyper-V as you do on Linux. You have to add in neutronovsagent.conf the bridge_mappings under [ovs] group. Example:

[ovs]
bridge_mappings = public2:br-eth2

, where public2 is the name of the flat network from neutron and br-eth2 is the name of the bridge on the Hyper-V host. The only problem is that you have to use New-NetSwitchTeam to create a switch with the adapters that you'll use for OVS. Example:

New-NetSwitchTeam -Name team -TeamMembers "Ethernet1","Ethernet2"
New-VMSwitch -Name external -NetAdapterName team

After you created the switch in the way described above, you can issue the following (i.e.):

ovs-vsctl add-br br-port1
ovs-vsctl add-br br2
ovs-vsctl add-port br-port1 Ethernet1
ovs-vsctl add-port br2 Ethernet2

An example for bridge mapping for the above configuration is:

[ovs]
bridge_mappings = public2:br2

The bridge br-port1 is used for overlay network (tunneling ip) and br2 is used for flat network.

Thanks, Alin

edit flag offensive delete link more
0

answered 2017-01-26 00:20:13 +0200

aserdean gravatar image

The problem is that you need to add more external adapters to the vSwitch so OVS will be aware of them.

Unfortunately we do not have a full tutorial for it. Could you please try out the steps described in:

https://github.com/cloudbase/ovs/blob...

edit flag offensive delete link more

Comments

Actually I don't see how this should work yet. But anyway, how would the neutron_ovs_agent.conf look for that kind of configuration?

mario-sommer gravatar imagemario-sommer ( 2017-01-26 11:26:25 +0200 )edit

It will allow you to achieve what you were trying above i.e.: ovs-vsctl add-port br-ext2 'Ethernet 2" Let me know if you want me to provide you code snippets. Unfortunately OpenStack isn't my cup of tea, I will try to look it up and provide you an answer after I looked at the code behind it.

aserdean gravatar imageaserdean ( 2017-01-26 17:23:12 +0200 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2017-01-18 17:32:45 +0200

Seen: 423 times

Last updated: Feb 17 '17