networking-odl is not py3 (python3.6.7) compatible

Bug #1822559 reported by Lajos Katona
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-odl
Fix Released
Undecided
Lajos Katona

Bug Description

Starting networking-odl with devstack, and enabling python3 in local.conf (USE_PYTHON3=True), results in exception like this:
INFO networking_odl.cmd.set_ovs_hostconfigs [-] Logging enabled!
INFO networking_odl.cmd.set_ovs_hostconfigs [-] SET-HOSTCONFIGS: Executing cmd: ovs-vsctl get Open_vSwitch . _uuid
INFO networking_odl.cmd.set_ovs_hostconfigs [-] SET-HOSTCONFIGS: Executing cmd: ovs-vsctl get Open_vSwitch . datapath_types
ERROR networking_odl.cmd.set_ovs_hostconfigs [-] Fatal error: a bytes-like object is required, not 'str': TypeError: a bytes-like object is required, not 'str'
ERROR networking_odl.cmd.set_ovs_hostconfigs Traceback (most recent call last):
ERROR networking_odl.cmd.set_ovs_hostconfigs File "/opt/stack/networking-odl/networking_odl/cmd/set_ovs_hostconfigs.py", line 488, in main
ERROR networking_odl.cmd.set_ovs_hostconfigs set_ovs_extid_hostconfigs(conf=conf, ovs_vsctl=OvsVsctl())
ERROR networking_odl.cmd.set_ovs_hostconfigs File "/opt/stack/networking-odl/networking_odl/cmd/set_ovs_hostconfigs.py", line 257, in set_ovs_extid_hostconfigs
ERROR networking_odl.cmd.set_ovs_hostconfigs userspace_datapath_types = ovs_vsctl.userspace_datapath_types()
ERROR networking_odl.cmd.set_ovs_hostconfigs File "/opt/stack/networking-odl/networking_odl/cmd/set_ovs_hostconfigs.py", line 419, in userspace_datapath_types
ERROR networking_odl.cmd.set_ovs_hostconfigs for datapath_type in USERSPACE_DATAPATH_TYPES
ERROR networking_odl.cmd.set_ovs_hostconfigs File "/opt/stack/networking-odl/networking_odl/cmd/set_ovs_hostconfigs.py", line 420, in <genexpr>
ERROR networking_odl.cmd.set_ovs_hostconfigs if datapath_types.find(datapath_type) >= 0)
ERROR networking_odl.cmd.set_ovs_hostconfigs TypeError: a bytes-like object is required, not 'str'
ERROR networking_odl.cmd.set_ovs_hostconfigs
+/opt/stack//networking-odl/devstack/entry_points:bind_opendaylight_controller:1 exit_trap
+./stack.sh:exit_trap:522 local r=1

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic

$ python3 --version
Python 3.6.7

Tags: python3
Changed in networking-odl:
assignee: nobody → Lajos Katona (lajos-katona)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to networking-odl (master)

Fix proposed to branch: master
Review: https://review.openstack.org/650876

Changed in networking-odl:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-odl (master)

Reviewed: https://review.opendev.org/650876
Committed: https://git.openstack.org/cgit/openstack/networking-odl/commit/?id=96c6972b9d4d8150ffd991ec3396feb56903b183
Submitter: Zuul
Branch: master

commit 96c6972b9d4d8150ffd991ec3396feb56903b183
Author: Lajos Katona <email address hidden>
Date: Mon Apr 8 10:52:38 2019 +0200

    set_ovs_hostconfigs on py3 fails with TypeError

    In case of running devstack with USE_PYTHON3=True the command
    neutron-odl-ovs-hostconfig --noovs_dpdk --bridge_mappings=public:
    veth-pub-int fails with TypeError: a bytes-like object is required, not
    'str'.

    Change-Id: I2be64126e336f47676969abe4d81d5a739cb8599
    Closes-Bug: #1822559

Changed in networking-odl:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/networking-odl 15.0.0.0b1

This issue was fixed in the openstack/networking-odl 15.0.0.0b1 development milestone.

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.