OSTF: exception to be displayed might be "swallowed"

Bug #1652281 reported by Dmitry Mescheryakov on 2016-12-23
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
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

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

Changed in fuel:
status: New → In Progress
Changed in fuel:
importance: Undecided → Medium

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

Changed in fuel:
status: In Progress → Fix Committed

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

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

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  Edit
Everyone can see this information.

Other bug subscribers