netplugin icon indicating copy to clipboard operation
netplugin copied to clipboard

cannot assign pkt-tag that is greater than 4096 to a vxlan virtual network

Open yuxiangning opened this issue 8 years ago • 3 comments

I met an error when playing with the three nodes cluster.

vagrant@netplugin-node1 ~]$ netctl network create --subnet=100.0.2.0/24 --encap=vxlan --pkt-tag=5000 vtep5000 ERRO[0000] pktTag Value Out of bound

$ netctl global info Fabric mode: default Vlan Range: 1-4094 Vxlan range: 1-10000

yuxiangning avatar Aug 10 '16 18:08 yuxiangning

I don't see this issue anymore. Was it consistently reproducible?

I tried on https://github.com/contiv/netplugin/commit/ff611a2f064496246fa724fe64f46ac9586d4bf4

[vagrant@netplugin-node1 mhrobinson]$ netctl global info
Fabric mode: default
Forward mode: bridge
ARP mode: proxy
Vlan Range: 1-4094
Vxlan range: 1-10000
Private subnet: 172.19.0.0/16

[vagrant@netplugin-node1 mhrobinson]$ netctl network create --subnet=100.0.2.0/24 --encap=vxlan --pkt-tag=5000 vtep5000
Creating network default:vtep5000

[vagrant@netplugin-node1 mhrobinson]$ netctl network ls
Tenant   Network   Nw Type  Encap type  Packet tag  Subnet        Gateway   IPv6Subnet  IPv6Gateway
------   -------   -------  ----------  ----------  -------       ------    ----------  -----------
default  vtep5000  data     vxlan       5000        100.0.2.0/24

mhrobinson avatar Apr 19 '17 05:04 mhrobinson

Looks like issue has been fix'd from earlier release . Issue doesn't seem to be exist in current release . Have tried follow version :

[vagrant@netplugin-node1 ~]$ netctl -v netctl version Version: 1.0.0-beta-07-26-2017.21-06-22.UTC GitCommit: 1e2213f BuildTime: 07-26-2017.21-06-22.UTC

Here are some logs outputs :

netctl global info Fabric mode: default Forward mode: bridge ARP mode: proxy Vlan Range: 1-4094 Vxlan range: 1-10000 Private subnet: 172.19.0.0/16

netctl network create --subnet=100.0.2.0/24 --encap=vxlan --pkt-tag=5000 vtep5000 Creating network default:vtep5000

[vagrant@netplugin-node1 mhrobinson]$ netctl network ls Tenant Network Nw Type Encap type Packet tag Subnet Gateway IPv6Subnet IPv6Gateway


default vtep5000 data vxlan 5000 100.0.2.0/24

g1rana avatar Jul 26 '17 21:07 g1rana

Looks like this was fixed 6 days after this issue was reported: https://github.com/contiv/contivmodel/pull/40

dseevr avatar Jul 26 '17 21:07 dseevr