Artifacts code conceals what/where errors happened during plugin loading

Bug #1543105 reported by Kirill Zaitsev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Undecided
Kirill Zaitsev

Bug Description

Currently exception is converted to string and we get smth like
"2016-02-08 15:47:53.218 12604 ERROR glance.common.artifacts.loader [-] Could not load plugin from assets.glance_image.v1.package: __init__() got multiple values for keyword argument 'mutable'
"
and the stacktrace shown later conceals the place where the actual error has happened.

this doesn't help much with debugging plugin code. It would be great to have relevant stacktrace printed on errors in artifact definitions.

Tags: artifacts
Revision history for this message
Kairat Kushaev (kkushaev) wrote :
Changed in glance:
assignee: nobody → Kirill Zaitsev (kzaitsev)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/277378
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=a3e19a0abe1e68daaf90cfcd6db9e6056cf10db2
Submitter: Jenkins
Branch: master

commit a3e19a0abe1e68daaf90cfcd6db9e6056cf10db2
Author: Kirill Zaitsev <email address hidden>
Date: Mon Feb 8 15:58:58 2016 +0300

    Promote log message to exception level on artifact load failure

    Before this patch exact place of where the error happened during
    artifact load was hard to pinpoint, because it was not shown in the
    stacktrace. With this change exception is no longer just converted to
    string and printed, but also a stacktrace of exact location of the error
    is printed

    Change-Id: I1442b6743e77e2aa47a708ae1c38d7c4a54b8cd1
    Closes-Bug: #1543105

Changed in glance:
status: New → Fix Released
Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/glance 12.0.0.0b3

This issue was fixed in the openstack/glance 12.0.0.0b3 development milestone.

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.