← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1750999] Re: neutron_lbaas.tests.unit.agent.test_agent.TestLbaasService.test_main failure in Python 3.6

 

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).

** Project changed: neutron => octavia

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1750999

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

Status in octavia:
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/octavia/+bug/1750999/+subscriptions


References