← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1858421] Re: [neutronclient]unit tests in py36 failed due to UnicodeEncodeError

 

** Also affects: python-neutronclient
   Importance: Undecided
       Status: New

** Changed in: python-neutronclient
       Status: New => Confirmed

** Changed in: python-neutronclient
   Importance: Undecided => Critical

** Changed in: neutron
       Status: New => Invalid

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

Title:
  [neutronclient]unit tests in py36 failed due to UnicodeEncodeError

Status in neutron:
  Invalid
Status in python-neutronclient:
  Confirmed

Bug description:
  UTs report the following error:
  UnicodeEncodeError: 'ascii' codec can't encode characters in position 19-21: ordinal not in range(128)

  
  2020-01-06 09:01:44.749984 | ubuntu-bionic | Traceback (most recent call last):
  2020-01-06 09:01:44.749996 | ubuntu-bionic |   File "/home/zuul/src/opendev.org/openstack/python-neutronclient/.tox/cover/lib/python3.6/site-packages/cliff/app.py", line 401, in run_subcommand
  2020-01-06 09:01:44.750008 | ubuntu-bionic |     result = cmd.run(parsed_args)
  2020-01-06 09:01:44.750020 | ubuntu-bionic |   File "/home/zuul/src/opendev.org/openstack/python-neutronclient/.tox/cover/lib/python3.6/site-packages/cliff/command.py", line 185, in run
  2020-01-06 09:01:44.750034 | ubuntu-bionic |     return_code = self.take_action(parsed_args) or 0
  2020-01-06 09:01:44.750055 | ubuntu-bionic |   File "/home/zuul/src/opendev.org/openstack/python-neutronclient/.tox/cover/lib/python3.6/site-packages/stestr/commands/run.py", line 247, in take_action
  2020-01-06 09:01:44.750069 | ubuntu-bionic |     all_attachments=all_attachments, pdb=args.pdb)
  2020-01-06 09:01:44.750080 | ubuntu-bionic |   File "/home/zuul/src/opendev.org/openstack/python-neutronclient/.tox/cover/lib/python3.6/site-packages/stestr/commands/run.py", line 543, in run_command
  2020-01-06 09:01:44.750091 | ubuntu-bionic |     all_attachments=all_attachments)
  2020-01-06 09:01:44.750101 | ubuntu-bionic |   File "/home/zuul/src/opendev.org/openstack/python-neutronclient/.tox/cover/lib/python3.6/site-packages/stestr/commands/run.py", line 609, in _run_tests
  2020-01-06 09:01:44.750111 | ubuntu-bionic |     return run_tests()
  2020-01-06 09:01:44.750122 | ubuntu-bionic |   File "/home/zuul/src/opendev.org/openstack/python-neutronclient/.tox/cover/lib/python3.6/site-packages/stestr/commands/run.py", line 606, in run_tests
  2020-01-06 09:01:44.750132 | ubuntu-bionic |     all_attachments=all_attachments)
  2020-01-06 09:01:44.750143 | ubuntu-bionic |   File "/home/zuul/src/opendev.org/openstack/python-neutronclient/.tox/cover/lib/python3.6/site-packages/stestr/commands/load.py", line 245, in load
  2020-01-06 09:01:44.750155 | ubuntu-bionic |     all_attachments)
  2020-01-06 09:01:44.750166 | ubuntu-bionic |   File "/home/zuul/src/opendev.org/openstack/python-neutronclient/.tox/cover/lib/python3.6/site-packages/stestr/commands/load.py", line 278, in _load_case
  2020-01-06 09:01:44.750177 | ubuntu-bionic |     case.run(result)
  2020-01-06 09:01:44.750187 | ubuntu-bionic |   File "/home/zuul/src/opendev.org/openstack/python-neutronclient/.tox/cover/lib/python3.6/site-packages/testtools/testsuite.py", line 171, in run
  2020-01-06 09:01:44.750198 | ubuntu-bionic |     result.status(**event_dict)
  2020-01-06 09:01:44.750208 | ubuntu-bionic |   File "/home/zuul/src/opendev.org/openstack/python-neutronclient/.tox/cover/lib/python3.6/site-packages/testtools/testresult/real.py", line 468, in status
  2020-01-06 09:01:44.750220 | ubuntu-bionic |     _strict_map(methodcaller('status', *args, **kwargs), self.targets)
  2020-01-06 09:01:44.750231 | ubuntu-bionic |   File "/home/zuul/src/opendev.org/openstack/python-neutronclient/.tox/cover/lib/python3.6/site-packages/testtools/testresult/real.py", line 443, in _strict_map
  2020-01-06 09:01:44.750242 | ubuntu-bionic |     return list(map(function, *sequences))
  2020-01-06 09:01:44.750253 | ubuntu-bionic |   File "/home/zuul/src/opendev.org/openstack/python-neutronclient/.tox/cover/lib/python3.6/site-packages/testtools/testresult/real.py", line 570, in status
  2020-01-06 09:01:44.750264 | ubuntu-bionic |     target.status(**kwargs)
  2020-01-06 09:01:44.750274 | ubuntu-bionic |   File "/home/zuul/src/opendev.org/openstack/python-neutronclient/.tox/cover/lib/python3.6/site-packages/testtools/testresult/real.py", line 468, in status
  2020-01-06 09:01:44.750285 | ubuntu-bionic |     _strict_map(methodcaller('status', *args, **kwargs), self.targets)
  2020-01-06 09:01:44.750297 | ubuntu-bionic |   File "/home/zuul/src/opendev.org/openstack/python-neutronclient/.tox/cover/lib/python3.6/site-packages/testtools/testresult/real.py", line 443, in _strict_map
  2020-01-06 09:01:44.750307 | ubuntu-bionic |     return list(map(function, *sequences))
  2020-01-06 09:01:44.750318 | ubuntu-bionic |   File "/home/zuul/src/opendev.org/openstack/python-neutronclient/.tox/cover/lib/python3.6/site-packages/testtools/testresult/real.py", line 909, in status
  2020-01-06 09:01:44.750328 | ubuntu-bionic |     self._hook.status(*args, **kwargs)
  2020-01-06 09:01:44.750339 | ubuntu-bionic |   File "/home/zuul/src/opendev.org/openstack/python-neutronclient/.tox/cover/lib/python3.6/site-packages/testtools/testresult/real.py", line 826, in status
  2020-01-06 09:01:44.750351 | ubuntu-bionic |     self.on_test(self._inprogress.pop(key))
  2020-01-06 09:01:44.750369 | ubuntu-bionic |   File "/home/zuul/src/opendev.org/openstack/python-neutronclient/.tox/cover/lib/python3.6/site-packages/testtools/testresult/real.py", line 901, in _handle_test
  2020-01-06 09:01:44.750380 | ubuntu-bionic |     self.on_test(test_record.to_dict())
  2020-01-06 09:01:44.750394 | ubuntu-bionic |   File "/home/zuul/src/opendev.org/openstack/python-neutronclient/.tox/cover/lib/python3.6/site-packages/stestr/subunit_trace.py", line 211, in show_outcome
  2020-01-06 09:01:44.750405 | ubuntu-bionic |     print_attachments(stream, test)
  2020-01-06 09:01:44.750423 | ubuntu-bionic |   File "/home/zuul/src/opendev.org/openstack/python-neutronclient/.tox/cover/lib/python3.6/site-packages/stestr/subunit_trace.py", line 126, in print_attachments
  2020-01-06 09:01:44.750435 | ubuntu-bionic |     stream.write("    %s\n" % line)
  2020-01-06 09:01:44.750455 | ubuntu-bionic | UnicodeEncodeError: 'ascii' codec can't encode characters in position 19-21: ordinal not in range(128)

  [1] https://5c11f158099961d70c1b-2bb0e09cfc1bf1e619272dff8ccf0e99.ssl.cf1.rackcdn.com/701125/2/check/openstack-tox-py36/7cd2d50/testr_results.html.gz
  [2] https://4c1c2017ba267e863f0a-3b6370d63c6b23df02c432a79d6e9242.ssl.cf1.rackcdn.com/701171/2/check/openstack-tox-py36/cfe5046/testr_results.html.gz

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


References