Bug 920688 - VDSM attribute error exception when trying to write to vdsm log.
Summary: VDSM attribute error exception when trying to write to vdsm log.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: vdsm
Version: 3.2.0
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: ---
: 3.2.0
Assignee: Yaniv Bronhaim
QA Contact: Elad
URL:
Whiteboard: infra
: 920692 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-12 14:44 UTC by Leonid Natapov
Modified: 2022-07-09 05:57 UTC (History)
9 users (show)

Fixed In Version: vdsm-4.10.2-13.0.el6ev
Doc Type: Bug Fix
Doc Text:
Previously, VDSM threw an attribute error exception when trying to write to the log. A patch to VDSM prevents attribute error exceptions when trying to write to the log.
Clone Of:
Environment:
Last Closed: 2013-06-10 20:45:42 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
vdsm log (690.22 KB, application/x-xz)
2013-03-12 14:44 UTC, Leonid Natapov
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHV-47060 0 None None None 2022-07-09 05:57:16 UTC
Red Hat Product Errata RHSA-2013:0886 0 normal SHIPPED_LIVE Moderate: rhev 3.2 - vdsm security and bug fix update 2013-06-11 00:25:02 UTC
oVirt gerrit 11305 0 None None None Never

Description Leonid Natapov 2013-03-12 14:44:57 UTC
Created attachment 709004 [details]
vdsm log

vdsm attribute error exception when trying to write to log.

Here is the exception:
--------------------

Thread-311651::DEBUG::2013-03-10 23:25:38,437::misc::1161::Event.Storage.DomainMonitor.onDomainConnectivityStateChange::(_emit) Emitting event
Thread-311651::WARNING::2013-03-10 23:25:38,437::misc::1179::Event.Storage.DomainMonitor.onDomainConnectivityStateChange::(_emit) Could not run registered method because of an exception
Traceback (most recent call last):
  File "/usr/share/vdsm/storage/misc.py", line 1171, in _emit
    logUtils.funcName(func))
  File "/usr/share/vdsm/logUtils.py", line 30, in funcName
    return func.func_name
AttributeError: 'functools.partial' object has no attribute 'func_name'

full vdsm log attached.

Comment 1 Dan Kenigsberg 2013-03-12 21:57:13 UTC
This issue has been solved upstream and should be easily backported

commit 297f05889f292c2803f3e7b0d470c59cba8e1c7e
Author: Dan Kenigsberg <danken>
Date:   Wed Jan 23 14:37:03 2013 +0200

    logUtils.funcName: work on partial methods

Comment 2 Itamar Heim 2013-03-16 21:30:58 UTC
*** Bug 920692 has been marked as a duplicate of this bug. ***

Comment 3 Cheryn Tan 2013-04-03 07:01:36 UTC
This bug is currently attached to errata RHBA-2012:14332. If this change is not to be documented in the text for this errata please either remove it from the errata, set the requires_doc_text flag to minus (-), or leave a "Doc Text" value of "--no tech note required" if you do not have permission to alter the flag.

Otherwise to aid in the development of relevant and accurate release documentation, please fill out the "Doc Text" field above with these four (4) pieces of information:

* Cause: What actions or circumstances cause this bug to present.

* Consequence: What happens when the bug presents.

* Fix: What was done to fix the bug.

* Result: What now happens when the actions or circumstances above occur. (NB: this is not the same as 'the bug doesn't present anymore')

Once filled out, please set the "Doc Type" field to the appropriate value for the type of change made and submit your edits to the bug.

For further details on the Cause, Consequence, Fix, Result format please refer to:

https://bugzilla.redhat.com/page.cgi?id=fields.html#cf_release_notes

Thanks in advance.

Comment 4 Haim 2013-04-09 13:42:53 UTC
no need for DOC.
unable to reproduce in vdsm-4.10.2-14.0.el6ev.x86_64

Comment 6 errata-xmlrpc 2013-06-10 20:45:42 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2013-0886.html


Note You need to log in before you can comment on or make changes to this bug.