RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 853703 - 3.1 - [vdsm] python Attribute Error for DomainMonitorThread during domain state change
Summary: 3.1 - [vdsm] python Attribute Error for DomainMonitorThread during domain sta...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: vdsm
Version: 6.3
Hardware: All
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Federico Simoncelli
QA Contact: Haim
URL:
Whiteboard: storage
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-02 09:12 UTC by Gadi Ickowicz
Modified: 2022-07-09 05:38 UTC (History)
9 users (show)

Fixed In Version: vdsm-4.9.6-39.0
Doc Type: Bug Fix
Doc Text:
The DomainMonitorThread attribute produces an attribute error when a connection to the NFS ISO domain is blocked. The onDomainConnectivityStateChange event was erroneously being reported as an attribute of DomainMonitorThread which triggers the attribute error when onDomainConnectivityStateChange is being called. onDomainConnectivityStateChange is now properly called as an event and not an attribute.
Clone Of:
Environment:
Last Closed: 2012-12-04 19:08:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
VDSM + engine logs (1.75 MB, application/x-bzip)
2012-09-02 09:12 UTC, Gadi Ickowicz
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2012:1508 0 normal SHIPPED_LIVE Important: rhev-3.1.0 vdsm security, bug fix, and enhancement update 2012-12-04 23:48:05 UTC

Description Gadi Ickowicz 2012-09-02 09:12:37 UTC
Created attachment 609037 [details]
VDSM + engine logs

Description of problem:
When a domain's status is changing to invalid, the following error is visible in the logs:

Thread-151::WARNING::2012-08-30 13:28:07,651::domainMonitor::207::Storage.DomainMonitorThread::(_monitorDomain) Could not emit domain state change event
Traceback (most recent call last):
  File "/usr/share/vdsm/storage/domainMonitor.py", line 203, in _monitorDomain
    self.onDomainConnectivityStateChange.emit(
AttributeError: 'DomainMonitorThread' object has no attribute 'onDomainConnectivityStateChange'


Version-Release number of selected component (if applicable):
4.9-31.0

How reproducible:
?

Steps to Reproduce:
1. Block connection to NFS ISO domain (with 1 host, 1 storage domain)
2. Error appears in VDSM logs

  
VSDM logs attached

Comment 5 Federico Simoncelli 2012-09-06 12:59:00 UTC
Fix onDomainConnectivityStateChange in DomainMonitorThread

The onDomainConnectivityStateChange event is not a DomainMonitorThread
attribute.

Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=853703
Signed-off-by: Federico Simoncelli <fsimonce>
Change-Id: If3b7e7c788b54726a3c820f4f2180884c74d93ef

http://gerrit.ovirt.org/#/c/7772/

Comment 8 Haim 2012-10-24 17:06:43 UTC
verified on vdsm 4.9.6-39. 
after blocking ISO domain, I no longer gets the error but the following print:


Thread-720::DEBUG::2012-10-24 21:57:02,862::domainMonitor::216::Storage.DomainMonitorThread::(_monitorDomain) Domain 3580fd98-876a-4de0-8fe5-c4aadf5180d4 changed its status to Invalid
Thread-776::DEBUG::2012-10-24 21:57:02,863::misc::1165::Event.Storage.DomainMonitor.onDomainConnectivityStateChange::(_emit) Emitting event
Thread-776::DEBUG::2012-10-24 21:57:02,864::misc::1176::Event.Storage.DomainMonitor.onDomainConnectivityStateChange::(_emit) Calling registered method `<functools.partial object at 0x7fdb78067f18>`
Thread-776::DEBUG::2012-10-24 21:57:02,865::misc::1186::Event.Storage.DomainMonitor.onDomainConnectivityStateChange::(_emit) Event emitted

Comment 11 errata-xmlrpc 2012-12-04 19:08:39 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-2012-1508.html


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