l2gw-agent can't connect to ovsdb server by default

Bug #2015171 reported by Takashi Kajinami
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
puppet-neutron
Invalid
Medium
Unassigned

Bug Description

l2gw-agent requires access to ovsdb over tcp by default.
However currently manager is not configured so the agent can't connect to ovsdb and we see the following error appears repeatedly.

```
2023-04-04 02:05:44.154 89769 WARNING networking_l2gw.services.l2gateway.agent.ovsdb.base_connection [None req-7bd4055e-8ba3-49e8-b880-be3688215553 - - - - - -] Unable to reach OVSDB server 127.0.0.1: ConnectionRefusedError: [Errno 111] ECONNREFUSED
2023-04-04 02:05:45.156 89769 WARNING networking_l2gw.services.l2gateway.agent.ovsdb.base_connection [None req-7bd4055e-8ba3-49e8-b880-be3688215553 - - - - - -] Unable to reach OVSDB server 127.0.0.1: ConnectionAbortedError: [Errno 103] ECONNABORTED
2023-04-04 02:05:46.158 89769 WARNING networking_l2gw.services.l2gateway.agent.ovsdb.base_connection [None req-7bd4055e-8ba3-49e8-b880-be3688215553 - - - - - -] Unable to reach OVSDB server 127.0.0.1: ConnectionRefusedError: [Errno 111] ECONNREFUSED
2023-04-04 02:05:47.159 89769 WARNING networking_l2gw.services.l2gateway.agent.ovsdb.base_connection [None req-7bd4055e-8ba3-49e8-b880-be3688215553 - - - - - -] Unable to reach OVSDB server 127.0.0.1: ConnectionAbortedError: [Errno 103] ECONNABORTED
2023-04-04 02:05:48.161 89769 WARNING networking_l2gw.services.l2gateway.agent.ovsdb.base_connection [None req-7bd4055e-8ba3-49e8-b880-be3688215553 - - - - - -] Unable to reach OVSDB server 127.0.0.1: ConnectionRefusedError: [Errno 111] ECONNREFUSED
2023-04-04 02:05:49.163 89769 WARNING networking_l2gw.services.l2gateway.agent.ovsdb.base_connection [None req-7bd4055e-8ba3-49e8-b880-be3688215553 - - - - - -] Unable to reach OVSDB server 127.0.0.1: ConnectionAbortedError: [Errno 103] ECONNABORTED
2023-04-04 02:05:50.166 89769 WARNING networking_l2gw.services.l2gateway.agent.ovsdb.base_connection [None req-7bd4055e-8ba3-49e8-b880-be3688215553 - - - - - -] Unable to reach OVSDB server 127.0.0.1: ConnectionRefusedError: [Errno 111] ECONNREFUSED
2023-04-04 02:05:51.167 89769 WARNING networking_l2gw.services.l2gateway.agent.ovsdb.base_connection [None req-7bd4055e-8ba3-49e8-b880-be3688215553 - - - - - -] Unable to reach OVSDB server 127.0.0.1: ConnectionAbortedError: [Errno 103] ECONNABORTED
2023-04-04 02:05:52.169 89769 WARNING networking_l2gw.services.l2gateway.agent.ovsdb.base_connection [None req-7bd4055e-8ba3-49e8-b880-be3688215553 - - - - - -] Unable to reach OVSDB server 127.0.0.1: ConnectionRefusedError: [Errno 111] ECONNREFUSED
2023-04-04 02:05:53.170 89769 WARNING networking_l2gw.services.l2gateway.agent.ovsdb.base_connection [None req-7bd4055e-8ba3-49e8-b880-be3688215553 - - - - - -] Unable to reach OVSDB server 127.0.0.1: ConnectionAbortedError: [Errno 103] ECONNABORTED
2023-04-04 02:05:54.173 89769 WARNING networking_l2gw.services.l2gateway.agent.ovsdb.base_connection [None req-7bd4055e-8ba3-49e8-b880-be3688215553 - - - - - -] Unable to reach OVSDB server 127.0.0.1: ConnectionRefusedError: [Errno 111] ECONNREFUSED
2023-04-04 02:05:54.173 89769 ERROR networking_l2gw.services.l2gateway.agent.ovsdb.base_connection [None req-7bd4055e-8ba3-49e8-b880-be3688215553 - - - - - -] Socket error in connecting to the OVSDB server: ConnectionRefusedError: [Errno 111] ECONNREFUSED
2023-04-04 02:05:54.173 89769 ERROR networking_l2gw.services.l2gateway.agent.ovsdb.base_connection Traceback (most recent call last):
2023-04-04 02:05:54.173 89769 ERROR networking_l2gw.services.l2gateway.agent.ovsdb.base_connection File "/usr/lib/python3.9/site-packages/networking_l2gw/services/l2gateway/agent/ovsdb/base_connection.py", line 73, in __init__
2023-04-04 02:05:54.173 89769 ERROR networking_l2gw.services.l2gateway.agent.ovsdb.base_connection self.socket.connect((str(gw_config.ovsdb_ip),
2023-04-04 02:05:54.173 89769 ERROR networking_l2gw.services.l2gateway.agent.ovsdb.base_connection File "/usr/lib/python3.9/site-packages/eventlet/greenio/base.py", line 256, in connect
2023-04-04 02:05:54.173 89769 ERROR networking_l2gw.services.l2gateway.agent.ovsdb.base_connection socket_checkerr(fd)
2023-04-04 02:05:54.173 89769 ERROR networking_l2gw.services.l2gateway.agent.ovsdb.base_connection File "/usr/lib/python3.9/site-packages/eventlet/greenio/base.py", line 54, in socket_checkerr
2023-04-04 02:05:54.173 89769 ERROR networking_l2gw.services.l2gateway.agent.ovsdb.base_connection raise socket.error(err, errno.errorcode[err])
2023-04-04 02:05:54.173 89769 ERROR networking_l2gw.services.l2gateway.agent.ovsdb.base_connection ConnectionRefusedError: [Errno 111] ECONNREFUSED
2023-04-04 02:05:54.173 89769 ERROR networking_l2gw.services.l2gateway.agent.ovsdb.base_connection
```

Changed in puppet-neutron:
importance: Undecided → Medium
assignee: nobody → Takashi Kajinami (kajinamit)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-neutron (master)
Changed in puppet-neutron:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on puppet-neutron (master)

Change abandoned by "Takashi Kajinami <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/puppet-neutron/+/879416

Revision history for this message
Takashi Kajinami (kajinamit) wrote :

I digged into the documentation of l2gw and learned we need a bit more configurations to make l2gw work.
https://docs.openstack.org/networking-l2gw/rocky/readme.html#getting-started

I'll mark this as invalid for now because the issue is much wider than what I was looking for initially.

Changed in puppet-neutron:
status: In Progress → Invalid
assignee: Takashi Kajinami (kajinamit) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.