Segmentation ID should be lower or equal to 4095
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hi,
I am trying to set up OVN using Openstack.
OS: CentOS Stream release 8
OVN 21.06
Openstack wallaby
When creating a network in openstack, we get an error:
"Segmentation ID should be lower or equal to 4095."
ml2 config:
# ML2 general
[ml2]
type_drivers = flat,vlan,
tenant_
mechanism_drivers = ovn
extension_drivers = port_security,dns
physical_
path_mtu = 1558
overlay_ip_version = 4
# ML2 geneve networks
[ml2_type_geneve]
vni_ranges = 5000:6000
max_header_size = 38
# ML2 VLAN networks
[ml2_type_vlan]
network_vlan_ranges = vlan:3900:3999
# ML2 VXLAN networks
[ml2_type_vxlan]
vni_ranges = 5000:6000
# Security groups
[securitygroup]
enable_
firewall_driver = neutron.
[ovn]
ovn_nb_connection = tcp:<IP>:6641
ovn_sb_connection = tcp:<IP>:6642
ovn_l3_scheduler = leastloaded
ovn_metadata_
isolated_metadata = True
When I execute the command
$ ovn-nbctl get NB_Global. options:max_tunid
or
$ ovn-sbctl get SB_Global. options:max_tunid
I get "4095"
If I manually try to change max_tunid using the command
$ ovn-nbctl set NB_Global. options:
or
$ ovn-sbctl set SB_Global. options:
then no change occurs.
How can I change max_tunid from 4095 to 16777215 for supporting geneve or vxlan networks in Openstack.
Hello Mikhail:
"max_tunid" is a read only parameter set by OVN (Neutron can only read it). It is used to determine the capacity of the cluster depending on the tunnel types enabled for encapsulation.
This option is useful only when VXLAN is enabled, due to limitations in the protocol header. For more info, please read [1].
In a nutshell, if you allow VXLAN, then the "max_tunid" value will be reduced to 4095. If not, the value will be 16711680 (0xFF0000).
Regards.
[1]https://<email address hidden> /msg06771. html