OSTF: exception to be displayed might be "swallowed"

Bug #1652281 reported by Dmitry Mescheryakov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
Medium
Dmitry Mescheryakov

Bug Description

When an OSTF test fails, an exception might be swallowed and as a result it is hard to debug what exactly went wrong. An example from ostf.log from job https://ci.fuel-infra.org/job/master.fuel-library.pkgs.ubuntu.neutron_vlan_ha/12876/console

2016-12-20 19:51:20 ERROR (test_mixins) exception() takes at least 2 arguments (1 given)
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/fuel_health/common/test_mixins.py", line 174, in verify
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/fuel_health/nmanager.py", line 811, in _assign_floating_ip_to_instance
    LOG.exception()
TypeError: exception() takes at least 2 arguments (1 given)

Changed in fuel:
assignee: nobody → Dmitry Mescheryakov (dmitrymex)
milestone: none → 11.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-ostf (master)

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

Changed in fuel:
status: New → In Progress
Changed in fuel:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-ostf (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/429816

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

Reviewed: https://review.openstack.org/414551
Committed: https://git.openstack.org/cgit/openstack/fuel-ostf/commit/?id=ca43f607707503ca172ae00c8fec0c61c9f46b34
Submitter: Jenkins
Branch: master

commit ca43f607707503ca172ae00c8fec0c61c9f46b34
Author: Dmitry Mescheryakov <email address hidden>
Date: Fri Dec 23 15:36:20 2016 +0400

    Add missing message parameter to LOG.exception call

    Without the parameter call fails, see referenced bug for example.

    Change-Id: Iaba6290ec92aabc8c9a0336dd3d6bf30de81ac3e
    Closes-Bug: #1652281

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-ostf (stable/newton)

Reviewed: https://review.openstack.org/429816
Committed: https://git.openstack.org/cgit/openstack/fuel-ostf/commit/?id=13427c84482495acc5afb87415c7d463e7c3f42a
Submitter: Jenkins
Branch: stable/newton

commit 13427c84482495acc5afb87415c7d463e7c3f42a
Author: Dmitry Mescheryakov <email address hidden>
Date: Fri Dec 23 15:36:20 2016 +0400

    Add missing message parameter to LOG.exception call

    Without the parameter call fails, see referenced bug for example.

    Change-Id: Iaba6290ec92aabc8c9a0336dd3d6bf30de81ac3e
    Closes-Bug: #1652281

tags: added: in-stable-newton
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/fuel-ostf 11.0.0.0rc1

This issue was fixed in the openstack/fuel-ostf 11.0.0.0rc1 release candidate.

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.