Openstack Floating IP not working using OVN

Hi All ,

I just finish to deploy a Openstack Install following the Charm Deploy Guide ( https://docs.openstack.org/project-deploy-guide/charm-deployment-guide/2023.2/ ) and almost everything is working except the external network . I am familiar with Openvswitch and linuxbridge agent , but at this time I tried with OVN and now I can not access my first test instance .

Here my configuration :

root@juju-vm-01:~# juju status ovn-central 
Model      Controller        Cloud/Region      Version  SLA          Timestamp
openstack  maas-dc3-default  maas-dc3/default  3.1.8    unsupported  18:17:10Z

App                       Version  Status  Scale  Charm                   Channel        Rev  Exposed  Message
neutron-api                        active      0  neutron-api             2023.2/stable  583  no       Unit is ready
neutron-api-mysql-router  8.0.37   active      0  mysql-router            8.0/stable     189  no       Unit is ready
neutron-api-plugin-ovn    23.1.0   active      0  neutron-api-plugin-ovn  2023.2/stable  113  no       Unit is ready
ovn-central               22.09.1  active      3  ovn-central             23.09/stable   190  no       Unit is ready

Unit            Workload  Agent  Machine  Public address  Ports          Message
ovn-central/3*  active    idle   24       172.19.0.116    6641-6642/tcp  Unit is ready
ovn-central/4   active    idle   25       172.19.0.117    6641-6642/tcp  Unit is ready (leader: ovnsb_db)
ovn-central/5   active    idle   26       172.19.0.118    6641-6642/tcp  Unit is ready (leader: ovnnb_db northd: active)

Machine  State    Address       Inst id        Base          AZ       Message
24       started  172.19.0.116  neutron-vm-01  ubuntu@22.04  default  Deployed
25       started  172.19.0.117  neutron-vm-02  ubuntu@22.04  default  Deployed
26       started  172.19.0.118  neutron-vm-03  ubuntu@22.04  default  Deployed
root@juju-vm-01:~# juju status ovn-chassis 
Model      Controller        Cloud/Region      Version  SLA          Timestamp
openstack  maas-dc3-default  maas-dc3/default  3.1.8    unsupported  18:18:00Z

App           Version  Status  Scale  Charm         Channel        Rev  Exposed  Message
ceph-osd               active      0  ceph-osd      reef/stable    577  no       Unit is ready (1 OSD)
nova-compute  28.0.1   active      3  nova-compute  2023.2/stable  718  no       Unit is ready
ovn-chassis   23.09.0  active      3  ovn-chassis   23.09/stable   233  no       Unit is ready

Unit              Workload  Agent  Machine  Public address  Ports  Message
nova-compute/7*   active    idle   10       172.19.0.14            Unit is ready
  ovn-chassis/3*  active    idle            172.19.0.14            Unit is ready
nova-compute/8    active    idle   12       172.19.0.13            Unit is ready
  ovn-chassis/2   active    idle            172.19.0.13            Unit is ready
nova-compute/9    active    idle   13       172.19.0.12            Unit is ready
  ovn-chassis/0   active    idle            172.19.0.12            Unit is ready

Machine  State    Address      Inst id         Base          AZ       Message
10       started  172.19.0.14  srv-compute-04  ubuntu@22.04  default  Deployed
12       started  172.19.0.13  srv-compute-03  ubuntu@22.04  default  Deployed
13       started  172.19.0.12  srv-compute-02  ubuntu@22.04  default  Deployed

I setup the ovn-chassi and ovn-central using that config file neutron.yaml

root@juju-vm-01:~# cat neutron.yaml 
ovn-chassis:
  bridge-interface-mappings: 'ovsbr2004:eno3.2004 ovsbr2000:eno2'
  ovn-bridge-mappings: 'physnet1:ovsbr2004 physnet2:ovsbr2000'
neutron-api:
  neutron-security-groups: true
  flat-network-providers: "physnet1 physnet2"
  debug: true
  verbose: true

At Openstack everything is correctly setup include network and routers

root@juju-vm-01:~# openstack network list 
+--------------------------------------+----------------------+--------------------------------------+
| ID                                   | Name                 | Subnets                              |
+--------------------------------------+----------------------+--------------------------------------+
| 6fef2543-0480-428e-87b2-7ac006f5f507 | external_net | 23dbfd84-9997-44b9-9654-b02b7ae91e1e |
| d68ffd48-393a-4f66-82ff-1ce22a24e52a | INTERNAL_PROJECT_NET | 2fe9b422-919c-4f07-94a6-482647ff5e06 |
+--------------------------------------+----------------------+--------------------------------------+

Here the external network created

root@juju-vm-01:~# openstack network show 6fef2543-0480-428e-87b2-7ac006f5f507
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | UP                                   |
| availability_zone_hints   |                                      |
| availability_zones        |                                      |
| created_at                | 2024-06-12T17:28:32Z                 |
| description               |                                      |
| dns_domain                | None                                 |
| id                        | 6fef2543-0480-428e-87b2-7ac006f5f507 |
| ipv4_address_scope        | None                                 |
| ipv6_address_scope        | None                                 |
| is_default                | False                                |
| is_vlan_transparent       | None                                 |
| mtu                       | 1500                                 |
| name                      | external_net                 |
| port_security_enabled     | False                                |
| project_id                | d06e5e7d610d43b49ecfcefe9838c542     |
| provider:network_type     | flat                                 |
| provider:physical_network | physnet1                             |
| provider:segmentation_id  | None                                 |
| qos_policy_id             | None                                 |
| revision_number           | 6                                    |
| router:external           | External                             |
| segments                  | None                                 |
| shared                    | True                                 |
| status                    | ACTIVE                               |
| subnets                   | 23dbfd84-9997-44b9-9654-b02b7ae91e1e |
| tags                      |                                      |
| updated_at                | 2024-06-13T14:10:18Z                 |
+---------------------------+--------------------------------------+

The router is correctly set

root@juju-vm-01:~# openstack router show   663e2602-19f2-46d6-b95e-2a0e07142723 
+-------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field                   | Value                                                                                                                                                                                    |
+-------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| admin_state_up          | UP                                                                                                                                                                                       |
| availability_zone_hints |                                                                                                                                                                                          |
| availability_zones      |                                                                                                                                                                                          |
| created_at              | 2024-06-13T14:41:29Z                                                                                                                                                                     |
| description             |                                                                                                                                                                                          |
| external_gateway_info   | {"network_id": "6fef2543-0480-428e-87b2-7ac006f5f507", "external_fixed_ips": [{"subnet_id": "23dbfd84-9997-44b9-9654-b02b7ae91e1e", "ip_address": "172.19.9.191"}], "enable_snat": true} |
| flavor_id               | None                                                                                                                                                                                     |
| id                      | 663e2602-19f2-46d6-b95e-2a0e07142723                                                                                                                                                     |
| interfaces_info         | [{"port_id": "ac4d335b-5484-446f-909c-768d5325b09f", "ip_address": "192.168.89.1", "subnet_id": "2fe9b422-919c-4f07-94a6-482647ff5e06"}]                                                 |
| name                    | INTERNAL_PROJECT_ROUTER                                                                                                                                                                  |
| project_id              | b0eb806f31584b9d82374d5040c4f26b                                                                                                                                                         |
| revision_number         | 4                                                                                                                                                                                        |
| routes                  |                                                                                                                                                                                          |
| status                  | ACTIVE                                                                                                                                                                                   |
| tags                    |                                                                                                                                                                                          |
| updated_at              | 2024-06-13T14:45:45Z                                                                                                                                                                     |
+-------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

I can’t even ping the router IP address at 172.19.9.191 . At the openvswitch-agent setup I used to troubleshooting it the ip netns at server where the router is running . With the OVN I was not able to find out where the it is running and also I was not able to see logs to identify it was created or not .

Any help on this ?

Problem Solved .

I remove application ovn-central , ovn-chassi and neutron-api . After redo all step all works .