On Fri, Nov 12, 2021 at 6:13 PM Mikhail Okhrimenko
<[email protected]> wrote:
>
> Hi,
>
> I am trying to set up OVN using Openstack.
>
> 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,vxlan,geneve
> tenant_network_types = geneve
> mechanism_drivers = ovn
> extension_drivers = port_security,dns
> physical_network_mtus = vlan:1500,floating:1500
> 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_security_group = True
> firewall_driver = 
> neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
>
> [ovn]
> ovn_nb_connection = tcp:<IP>:6641
> ovn_sb_connection = tcp:<IP>:6642
> ovn_l3_scheduler = leastloaded
> ovn_metadata_enabled = True
> 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:max_tunid="16777215"
> or
> $ ovn-sbctl set SB_Global. options:max_tunid="16777215"
> then no change occurs.
>
> How can I change max_tunid from 4095 to 16777215 for supporting geneve or 
> vxlan networks in Openstack.

This bug report should probably be directed at OpenStack Neutron, I
believe they manage bugs using Launchpad [0].

However, I can also provide some insights on the topic. For overlay
type networks, Neutron will actually not provide OVN with the
segmentation ID, the VNI will be allocated by OVN itself. So to solve
your concrete problem now you can just set your vni_ranges option to a
value below 4095 and unless you are going to create 4096+ networks
today this should work fine.

OVN does not create datapaths with overlapping VNIs, so you should not
have issues with overlaps regardless of what Neutron's internal
representation of the VNI is.

0: https://bugs.launchpad.net/neutron/+filebug

-- 
Frode Nordahl

>
> --
> ---
>
> Mikhail Okhrimenko
>
> System administrator at "PS Internet Company"
>
> _______________________________________________
> discuss mailing list
> [email protected]
> https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
_______________________________________________
discuss mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss

Reply via email to