l2gateway-agent throws exception during connection towards ovsdb under py36:
Mar 15 04:56:49 l2gwcont neutron-l2gateway-agent[4273]: ERROR networking_l2gw.services.l2gateway.agent.ovsdb.base_connection [None req-92ed38a7-47ee-41e4-a7d1-ccda98db06c5 demo admin] Exception [a bytes-like object is required, not 'str'] occurred while sending message to the OVSDB server: TypeError: a bytes-like object is required, not 'str'
Mar 15 04:56:49 l2gwcont neutron-l2gateway-agent[4273]: ERROR networking_l2gw.services.l2gateway.agent.ovsdb.base_connection Traceback (most recent call last):
Mar 15 04:56:49 l2gwcont neutron-l2gateway-agent[4273]: ERROR networking_l2gw.services.l2gateway.agent.ovsdb.base_connection File "/opt/stack/networking-l2gw/networking_l2gw/services/l2gateway/agent/ovsdb/base_connection.py", line 274, in send
Mar 15 04:56:49 l2gwcont neutron-l2gateway-agent[4273]: ERROR networking_l2gw.services.l2gateway.agent.ovsdb.base_connection bytes_sent = self.socket.send(jsonutils.dumps(message))
Mar 15 04:56:49 l2gwcont neutron-l2gateway-agent[4273]: ERROR networking_l2gw.services.l2gateway.agent.ovsdb.base_connection File "/usr/local/lib/python3.6/dist-packages/eventlet/greenio/base.py", line 395, in send
Mar 15 04:56:49 l2gwcont neutron-l2gateway-agent[4273]: ERROR networking_l2gw.services.l2gateway.agent.ovsdb.base_connection return self._send_loop(self.fd.send, data, flags)
Mar 15 04:56:49 l2gwcont neutron-l2gateway-agent[4273]: ERROR networking_l2gw.services.l2gateway.agent.ovsdb.base_connection File "/usr/local/lib/python3.6/dist-packages/eventlet/greenio/base.py", line 382, in _send_loop
Mar 15 04:56:49 l2gwcont neutron-l2gateway-agent[4273]: ERROR networking_l2gw.services.l2gateway.agent.ovsdb.base_connection return send_method(data, *args)
Mar 15 04:56:49 l2gwcont neutron-l2gateway-agent[4273]: ERROR networking_l2gw.services.l2gateway.agent.ovsdb.base_connection TypeError: a bytes-like object is required, not 'str'
/usr/bin/python3.6 /usr/local/bin/neutron-l3-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/l3_agent.ini
Environment:
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic
neutron: 03d0e43c3206384bd70a91a19d791d695c84a90e
devstack: e86a6aa9243ce908c71b2131686dbdeab61e57d9
networking-l2gw: f9308feb5585d0a4c30b110b6437234affe5e516
Fix proposed to branch: master /review. opendev. org/666019
Review: https:/