neutron_lbaas.tests.unit.agent.test_agent.TestLbaasService.test_main failure in Python 3.6

Bug #1750999 reported by Thomas Goirand
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
octavia
Invalid
Undecided
Unassigned

Bug Description

While building the neutron-lbaas package in Debian Sid with Python 3.6, I get the below failure. As this looks like a broken test rather than a software bug, I've disabled running the unit test at package build time, however, it'd be nice to have it fixed.

My wet finger double guess without looking too much, is that there's a string type issue in this test that Python 3.6 doesn't like.

FAIL: neutron_lbaas.tests.unit.agent.test_agent.TestLbaasService.test_main
neutron_lbaas.tests.unit.agent.test_agent.TestLbaasService.test_main
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/neutron/tests/base.py", line 132, in func
    return f(self, *args, **kwargs)
  File "/home/zigo/sources/openstack/queens/services/neutron-lbaas/build-area/neutron-lbaas-12.0.0~rc1/neutron_lbaas/tests/unit/agent/test_agent.py", line 45, in test_main
    agent.main()
  File "/home/zigo/sources/openstack/queens/services/neutron-lbaas/build-area/neutron-lbaas-12.0.0~rc1/neutron_lbaas/agent/agent.py", line 66, in main
    common_config.init(sys.argv[1:])
  File "/usr/lib/python3/dist-packages/neutron/common/config.py", line 78, in init
    **kwargs)
  File "/usr/lib/python3/dist-packages/oslo_config/cfg.py", line 2492, in __call__
    default_config_files, default_config_dirs)
  File "/usr/lib/python3/dist-packages/oslo_config/cfg.py", line 2374, in _pre_setup
    prog = os.path.basename(sys.argv[0])
  File "/usr/lib/python3.6/posixpath.py", line 144, in basename
    p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not MagicMock

Tags: auto-abandon
Revision history for this message
Akihiro Motoki (amotoki) wrote :

neutron-lbaas is now maintained by the octavia team. I forward this to octavia launchpad but it is now frozen. More recommended way is to file a bug on octavia storyboard (neutron-lbaas project).

affects: neutron → octavia
Revision history for this message
Gregory Thiemonge (gthiemonge) wrote : auto-abandon-script

Abandoned after re-enabling the Octavia launchpad.

Changed in octavia:
status: New → Invalid
tags: added: auto-abandon
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.