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 854953 - 3.1 - beta3 - [vdsm] Logs show AttributeError when domain is not reachable and attempting to release hostId
Summary: 3.1 - beta3 - [vdsm] Logs show AttributeError when domain is not reachable an...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: vdsm
Version: 6.3
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: beta
: ---
Assignee: Federico Simoncelli
QA Contact: vvyazmin@redhat.com
URL:
Whiteboard: storage
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-06 11:34 UTC by Gadi Ickowicz
Modified: 2022-07-09 05:39 UTC (History)
11 users (show)

Fixed In Version: vdsm-4.9.6-37.0
Doc Type: Bug Fix
Doc Text:
Previously, VDSM attempted to to release the hostId lock on an unreachable storage domain, and wrote potentially confusing messages to the vdsm.log file. Attempts to release hostId lock are no longer made for unreachable storage, and the potentially confusing error messages aren't written to the vdsm.log file.
Clone Of:
Environment:
Last Closed: 2012-12-04 19:10:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
vdsm logs (577.50 KB, application/x-gzip)
2012-09-06 11:34 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-06 11:34:36 UTC
Created attachment 610271 [details]
vdsm logs

Description of problem:
When a domain is not reachable, during the attempt to stop the domain monitor for that domain, the following is visible in the vdsm logs:

Thread-45::DEBUG::2012-09-06 13:01:15,768::domainMonitor::150::Storage.DomainMonitorThread::(_monitorLoop) Stopping domain monitor for 64bfae48-2ccd-4c05-b523-1fdeb90f4d2c
Thread-45::DEBUG::2012-09-06 13:01:15,768::domainMonitor::159::Storage.DomainMonitorThread::(_monitorLoop) Unable to release the host id 1 for domain 64bfae48-2ccd-4c05-b523-1fdeb90f4d2c
Traceback (most recent call last):
  File "/usr/share/vdsm/storage/domainMonitor.py", line 156, in _monitorLoop
    self.domain.releaseHostId(self.hostId, unused=True)
AttributeError: 'NoneType' object has no attribute 'releaseHostId'
Thread-318::DEBUG::2012-09-06 13:01:15,769::sp::1555::Storage.StoragePool::(updateMonitoringThreads) Storage Pool `8877b085-e5c5-4962-a15e-105cf6829bc7` stopped monitoring domain `64bfae48-2ccd-4c05-b523-1fdeb90f4
d2c

This error does not seem to affect the operation itself, but should probably not be written to the log

Version-Release number of selected component (if applicable):
vdsm-4.9.6-32.0.el6_3.x86_64


Steps to Reproduce:
1. Block connection between host and non-master storage domain
2. AttributeError should be visible in the logs

  
Actual results:
AttributeError is visible in the logs

Expected results:
AttributeError should not be printed to the logs

Additional info:

Comment 2 Federico Simoncelli 2012-09-13 15:48:59 UTC
DomainMonitor shouldn't releaseHostId if the domain is missing

In this patch:
* do not release releaseHostId if the domain is missing
* improve the checks for produce() and isIsoDomain()

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

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

Comment 4 Gadi Ickowicz 2012-10-22 08:50:48 UTC
verified in vdsm-4.9.6-37.0.el6_3.x86_64. no attribute error in logs

Comment 10 errata-xmlrpc 2012-12-04 19:10:52 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.