<div dir="ltr"><div dir="ltr">Hello,<br><br>We have deployed an <font face="monospace">openstack-ansible</font> cluster to test it on_metal with OVN and defined <b>dedicated gateway hosts</b> connecting to the external network with the <font face="monospace"><b>network-gateway_hosts</b></font> host group. Unfortunately, we are not able to connect to the external/provider networks. It seems that traffic wants to reach external networks via the hypervisor nodes and not the gateway hosts.</div><div dir="ltr"><br>Any suggestions on changes needed to our configuration will be highly appreciated.<br><br>Environment:<br>-Openstack Antelope<br>-Ubuntu 22 on all hosts<br>-3 infra hosts - 1xNIC (ens1)<br>-2 compute hosts - 1xNIC (ens1)<br>-2 gateway hosts - 2xNIC (ens1 internal, ens2 external)<br>-No linux bridges are created.<br><br>The gateway hosts are the only ones physically connected to the external network via physical interface ens2. Therefore, we need all external provider network traffic to traverse via these gateway hosts.<br><br>Tenant networks work fine and VMs can talk to each other. However, when a VM is spawned with a floating IP to the external network, they are unable to reach the outside network.<br><br>Relevant content from openstack-ansible configuration files:<br><br><br>=.=.=.=.=.=.=.=<br>openstack_user_config.yml</div><div dir="ltr">=.=.=.=.=.=.=.=<br>```<br>...<br>provider_networks:<br>    - network:<br>        container_bridge: "br-mgmt"<br>        container_type: "veth"<br>        container_interface: "ens1"<br>        ip_from_q: "management"<br>        type: "raw"<br>        group_binds:<br>          - all_containers<br>          - hosts<br>        is_management_address: true<br>    - network:<br>        container_bridge: "br-vxlan"<br>        container_type: "veth"<br>        container_interface: "ens1"<br>        ip_from_q: "tunnel"<br>        #type: "vxlan"<br>        type: "geneve"<br>        range: "1:1000"<br>        net_name: "geneve"<br>        group_binds:<br>          - neutron_ovn_controller<br>    - network:<br>        container_bridge: "br-flat"<br>        container_type: "veth"<br>        container_interface: "ens1"<br>        type: "flat"<br>        net_name: "flat"<br>        group_binds:<br>          - neutron_ovn_controller<br>    - network:<br>        container_bridge: "br-vlan"<br>        container_type: "veth"<br>        container_interface: "ens1"<br>        type: "vlan"<br>        range: "101:300,401:500"<br>        net_name: "vlan"<br>        group_binds:<br>          - neutron_ovn_controller<br>    - network:<br>        container_bridge: "br-storage"<br>        container_type: "veth"<br>        container_interface: "ens1"<br>        ip_from_q: "storage"<br>        type: "raw"<br>        group_binds:<br>          - glance_api<br>          - cinder_api<br>          - cinder_volume<br>          - nova_compute<br>                 <br>...<br><br>compute-infra_hosts:<br>  inf1:<br>    ip: 172.16.0.1<br>  inf2:<br>    ip: 172.16.0.2<br>  inf3:<br>    ip: 172.16.0.3<br><br>compute_hosts:<br>  cmp4:<br>    ip: 172.16.0.21<br>  cmp3:<br>    ip: 172.16.0.22<br><br>network_hosts:<br>  inf1:<br>    ip: 172.16.0.1<br>  inf2:<br>    ip: 172.16.0.2<br>  inf3:<br>    ip: 172.16.0.3<br><br>network-gateway_hosts:<br>  net1:<br>    ip: 172.16.0.31<br>  net2:<br>    ip: 172.16.0.32<br><br>```<br><br><br>=.=.=.=.=.=.=.=<br>user_variables.yml</div><div dir="ltr">=.=.=.=.=.=.=.=<br>```<br>---<br>debug: false<br>install_method: source<br>rabbitmq_use_ssl: False<br>haproxy_use_keepalived: False<br>...<br>neutron_plugin_type: ml2.ovn<br>neutron_plugin_base:<br>  - neutron.services.ovn_l3.plugin.OVNL3RouterPlugin<br><br>neutron_ml2_drivers_type: geneve,vlan,flat<br>neutron_ml2_conf_ini_overrides:<br>  ml2:<br>    tenant_network_types: geneve<br><br>...<br>```<br><br>=.=.=.=.=.=.=.=<br>env.d/neutron.yml</div><div dir="ltr">=.=.=.=.=.=.=.=<br>```<br>component_skel:<br>  neutron_ovn_controller:<br>    belongs_to:<br>      - neutron_all<br>  neutron_ovn_northd:<br>    belongs_to:<br>      - neutron_all<br><br>container_skel:<br>  neutron_agents_container:<br>    contains: {}<br>  properties:<br>    is_metal: true<br>  neutron_ovn_northd_container:<br>    belongs_to:<br>      - network_containers<br>    contains:<br>      - neutron_ovn_northd<br><br>```<br><br>=.=.=.=.=.=.=.=<br>env.d/nova.yml</div><div dir="ltr">=.=.=.=.=.=.=.=<br>```<br>component_skel:<br>  nova_compute_container:<br>    belongs_to:<br>      - compute_containers<br>      - kvm-compute_containers<br>      - lxd-compute_containers<br>      - qemu-compute_containers<br>    contains:<br>      - neutron_ovn_controller<br>      - nova_compute<br>    properties:<br>      is_metal: true<br>```<br><br>=.=.=.=.=.=.=.=<br>group_vars/network_hosts</div><div dir="ltr">=.=.=.=.=.=.=.=<br>```<br>openstack_host_specific_kernel_modules:<br>  - name: "openvswitch"<br>    pattern: "CONFIG_OPENVSWITCH"<br>```<br><br>The nodes layout is like this:<br><br> <img src="cid:ii_lm26wmpy0" alt="image.png" width="563" height="436"><br><br><br>Any guidance on what we have wrong or how to improve this configuration will be appreciated. We need to make external traffic for VMs to go out via the gateway nodes and not the compute/hypervisor nodes.<br><br>Thank you.<br><br>Roger<br></div></div>