[Ovs-Vxlan]:Tenant VMs not getting IP after following the documents steps defined.

Bug #1543918 reported by Thalabathy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-hyperv
Invalid
Undecided
Unassigned

Bug Description

Issue: Tenant VMs are not getting IP, and found that all VMs traffic gets dropped . Here setup configured with OVs-based Vxlan.
Additional rules must be add manually to VM get ip
Compute Details:

OS:windows 2012 R2 data center with GUI
Hardware: HP SL230 Gen8
DATA Nic: HP FlexFabric 10Gb 2-port 554FLR-SFP+ Adapter
Emulex Driver:10.2.531

Steps to reproduce:

1. Create Liberty vanilla Openstck setup for HyperV compute.
2. Enable Vxlan by installing and configuring OVS.
     References://cloudbase.it/open-vswitch-24-on-hyperv-part-1
3. Create network and other objects to spawn a VM.
4. Spawn a VM and check VMs are getting IP.

Observation:
 VMs are not getting IP, after adding forward flow for port internal and external.1.
found all VMs traffic gets dropped , could see drop count gets increasing while do VM nic disable and enable.

Expectation:
VM should get IP after adding defined flows(i.e. forward) for port external.1 and internal.

for Reference flow to get IP:

Hyper-V compute rules:
++++++++++++++++++++++

NXST_FLOW reply (xid=0x4):
cookie=0x866f752d3927d310, duration=1901.255s, table=0, n_packets=21, n_bytes=6414, idle_age=5, priority=1,in_port=3 actions=resubmit(,2)
cookie=0x0, duration=1888.178s, table=0, n_packets=31171, n_bytes=1996894, idle_age=0, priority=25,in_port=1 actions=NORMAL
cookie=0x0, duration=1888.139s, table=0, n_packets=30217, n_bytes=3427734, idle_age=0, priority=25,in_port=2 actions=NORMAL
cookie=0x866f752d3927d310, duration=1901.255s, table=0, n_packets=201, n_bytes=13136, idle_age=1888, priority=0 actions=drop
cookie=0x866f752d3927d310, duration=1901.254s, table=2, n_packets=0, n_bytes=0, idle_age=1901, priority=0,dl_dst=00:00:00:00:00:00/01:00:00:00:00:00 actions=resubmit(,20)
cookie=0x866f752d3927d310, duration=1901.254s, table=2, n_packets=21, n_bytes=6414, idle_age=5, priority=0,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00 actions=resubmit(,22)
cookie=0x866f752d3927d310, duration=1901.253s, table=3, n_packets=0, n_bytes=0, idle_age=1901, priority=0 actions=drop cookie=0x866f752d3927d310, duration=1901.069s, table=4, n_packets=0, n_bytes=0, idle_age=1901, priority=1,tun_id=0x3f6
actions=mod_vlan_vid:1,resubmit(,10)
cookie=0x866f752d3927d310, duration=1901.253s, table=4, n_packets=0, n_bytes=0, idle_age=1901, priority=0 actions=drop
cookie=0x866f752d3927d310, duration=1901.252s, table=6, n_packets=0, n_bytes=0, idle_age=1901, priority=0 actions=drop
cookie=0x866f752d3927d310, duration=1901.252s, table=10, n_packets=0, n_bytes=0, idle_age=1901, priority=1 actions=learn(table=20,hard_timeout=300,priority=1,cookie=0x866f752d3927d310,NXM_OF_VLAN_TCI[0..11],NXM_OF_ETH_DST[]=NXM_OF_ETH_SRC[
],load:0->NXM_OF_VLAN_TCI[],load:NXM_NX_TUN_ID[]->NXM_NX_TUN_ID[],output:NXM_OF_IN_PORT[]),output:3
cookie=0x866f752d3927d310, duration=1901.251s, table=20, n_packets=0, n_bytes=0, idle_age=1901, priority=0 actions=resubmit(,22)
cookie=0x866f752d3927d310, duration=1901.220s, table=22, n_packets=21, n_bytes=6414, idle_age=5, priority=0 actions=drop

working Ubuntu NN rules:
+++++++++++++++++++++++

cookie=0xaf998083661bbc1c, duration=6200.875s, table=0, n_packets=104411, n_bytes=6547975, idle_age=0, priority=1,in_port=1 actions=resubmit(,2)
cookie=0xaf998083661bbc1c, duration=3006.054s, table=0, n_packets=48178, n_bytes=3062181, idle_age=0, priority=1,in_port=2 actions=resubmit(,4)
cookie=0xaf998083661bbc1c, duration=6200.875s, table=0, n_packets=0, n_bytes=0, idle_age=6200, priority=0 actions=drop
cookie=0xaf998083661bbc1c, duration=6200.875s, table=2, n_packets=1, n_bytes=98, idle_age=3442, priority=0,dl_dst=00:00:00:00:00:00/01:00:00:00:00:00 actions=resubmit(,20)
cookie=0xaf998083661bbc1c, duration=6200.874s, table=2, n_packets=104396, n_bytes=6547021, idle_age=0, priority=0,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00 actions=resubmit(,22)
cookie=0xaf998083661bbc1c, duration=6200.874s, table=3, n_packets=0, n_bytes=0, idle_age=6200, priority=0 actions=drop
cookie=0xaf998083661bbc1c, duration=3376.650s, table=4, n_packets=0, n_bytes=0, idle_age=3376, priority=1,tun_id=0x3f6 actions=mod_vlan_vid:1,resubmit(,10)
cookie=0xaf998083661bbc1c, duration=6200.874s, table=4, n_packets=55834, n_bytes=3548272, idle_age=0, priority=0 actions=drop
cookie=0xaf998083661bbc1c, duration=6200.874s, table=6, n_packets=0, n_bytes=0, idle_age=6200, priority=0 actions=drop
cookie=0xaf998083661bbc1c, duration=6200.873s, table=10, n_packets=0, n_bytes=0, idle_age=6200, priority=1 actions=learn(table=20,hard_timeout=300,priority=1,cookie=0xaf998083661bbc1c,NXM_OF_VLAN_TCI[0..11],NXM_OF_ETH_DST[]=NXM_OF_ETH_SRC[],load:0->NXM_OF_VLAN_TCI[],load:NXM_NX_TUN_ID[]->NXM_NX_TUN_ID[],output:NXM_OF_IN_PORT[]),output:1
cookie=0xaf998083661bbc1c, duration=6200.873s, table=20, n_packets=1, n_bytes=98, idle_age=3442, priority=0 actions=resubmit(,22)
cookie=0xaf998083661bbc1c, duration=3376.683s, table=22, n_packets=6, n_bytes=480, idle_age=3367, hard_age=3006, dl_vlan=1 actions=strip_vlan,set_tunnel:0x3f6,output:2
cookie=0xaf998083661bbc1c, duration=6200.841s, table=22, n_packets=104391, n_bytes=6546639, idle_age=0, priority=0 actions=drop

Addition rule to work:
++++++++++++++++++

ovs-ofctl add-flow br-tun “table=22,dl_vlan=1,actions=strip_vlan,set_tunnel:0x3f6,output:4
ovs-ofctl add-flow br-tun “in_port=4,table=0,priority=1,actions=resubmit(,4)”

Revision history for this message
Alessandro Pilotti (alexpilotti) wrote :

This request is OVS related and since it refers to a guide published on cloudbase.it, the best place for a question is possibly https://ask.cloudbase.it

Changed in networking-hyperv:
status: New → Invalid
Revision history for this message
Alin Gabriel Serdean (aserdean) wrote :

This is more a config miss-use.

Try adding another bridge and add the internal/external.1 ports to that bridge. Your flows should be updated automatically.

This is subject to change in OVS 2.5 (hardcoded names and the internal port will be dropped).

Revision history for this message
Thalabathy (thalabathy-v) wrote :

The flows were not added dynamically and hence this is an issue with code.
While having Emulex driver this issue gets encountered, but while using Intel driver(VM Based compute) issue not seen.
I do not agree its invalid, also doc published site and forum site are same domain and same people does administration.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.