Gate test is masking failure details

Bug #1334798 reported by Paul Michali
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
neutron
Expired
Low
Unassigned

Bug Description

Both the 2.6 and 2.7 gate tests are failing, console log indicating two failures, but only showing one failure 'process-retcode'. When looking at testr_results it shows a fail and only mentions:

ft1.12873: neutron.tests.unit.services.vpn.service_drivers.test_ipsec.TestValidatorSelection.test_reference_driver_used_StringException

Here is 2.7 logs: http://logs.openstack.org/51/102351/4/check/gate-neutron-python27/a757b36/

Upon future investigation, it was found that there was non-printable characters in an oslo file. With manual testing, it shows the error:

$ python -m neutron.openstack.common.lockutils python -m unittest neutron.tests.unit.services.vpn.service_drivers.test_ipsec.TestValidatorSelection.test_reference_driver_used
F
======================================================================
FAIL: test_reference_driver_used (neutron.tests.unit.services.vpn.service_drivers.test_ipsec.TestValidatorSelection)
neutron.tests.unit.services.vpn.service_drivers.test_ipsec.TestValidatorSelection.test_reference_driver_used
----------------------------------------------------------------------
_StringException: Empty attachments:
  pythonlogging:''
  pythonlogging:'neutron.api.extensions'

traceback-1: {{{
Traceback (most recent call last):
  File "neutron/common/rpc.py", line 63, in cleanup
    assert TRANSPORT is not None
AssertionError
}}}

Traceback (most recent call last):
  File "neutron/tests/unit/services/vpn/service_drivers/test_ipsec.py", line 52, in setUp
    super(TestValidatorSelection, self).setUp()
  File "neutron/tests/base.py", line 188, in setUp
    n_rpc.init(CONF)
  File "neutron/common/rpc.py", line 56, in init
    aliases=TRANSPORT_ALIASES)
  File "/opt/stack/oslo.messaging/oslo/messaging/transport.py", line 185, in get_transport
    invoke_kwds=kwargs)
  File "/opt/stack/stevedore/stevedore/driver.py", line 45, in __init__
    verify_requirements=verify_requirements,
  File "/opt/stack/stevedore/stevedore/named.py", line 55, in __init__
    verify_requirements)
  File "/opt/stack/stevedore/stevedore/extension.py", line 170, in _load_plugins
    self._on_load_failure_callback(self, ep, err)
  File "/opt/stack/stevedore/stevedore/driver.py", line 50, in _default_on_load_failure
    raise err
  File "/opt/stack/oslo.messaging/oslo/messaging/_drivers/impl_fake.py", line 48
SyntaxError: Non-ASCII character '\xc2' in file /opt/stack/oslo.messaging/oslo/messaging/_drivers/impl_fake.py on line 48, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

A fix will be done for the oslo error, but we need to investigate why the gate test does not show any information on the error.

Tags: unittest
Revision history for this message
Eugene Nikanorov (enikanorov) wrote :

I think that's the behavior of the testr, but that's what needs to be verified.
I doubt we can do anything in neutron to address this

tags: added: unittest
Changed in neutron:
importance: Undecided → Low
status: New → Opinion
Changed in neutron:
status: Opinion → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for neutron because there has been no activity for 60 days.]

Changed in neutron:
status: Incomplete → Expired
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.