Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1360294

Summary: vdsm throws false errors during NFS Storage Domain creation and attaching
Product: Red Hat Enterprise Virtualization Manager Reporter: Yuri Obshansky <yobshans>
Component: vdsmAssignee: Fred Rolland <frolland>
Status: CLOSED UPSTREAM QA Contact: Raz Tamir <ratamir>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.0.2CC: amureini, bazulay, frolland, lsurette, nsoffer, srevivo, ycui, ykaul
Target Milestone: ovirt-4.2.0   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-20 14:19:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
vdsm 1 log file none

Description Yuri Obshansky 2016-07-26 12:07:22 UTC
Description of problem:
I got errors during attaching Storage Domain
jsonrpc.Executor/7::ERROR::2016-07-26 05:51:57,264::sdc::140::Storage.StorageDomainCache::(_findDomain) looking for unfetched domain 6c5e4924-9762-4d80-bc1a-590c8c9b1d7a
jsonrpc.Executor/7::ERROR::2016-07-26 05:51:57,264::sdc::157::Storage.StorageDomainCache::(_findUnfetchedDomain) looking for domain 6c5e4924-9762-4d80-bc1a-590c8c9b1d7a

jsonrpc.Executor/7::ERROR::2016-07-26 05:51:58,836::sdc::146::Storage.StorageDomainCache::(_findDomain) domain 6c5e4924-9762-4d80-bc1a-590c8c9b1d7a not found
Traceback (most recent call last):
  File "/usr/share/vdsm/storage/sdc.py", line 144, in _findDomain
    dom = findMethod(sdUUID)
  File "/usr/share/vdsm/storage/sdc.py", line 174, in _findUnfetchedDomain
    raise se.StorageDomainDoesNotExist(sdUUID)
StorageDomainDoesNotExist: Storage domain does not exist: (u'6c5e4924-9762-4d80-bc1a-590c8c9b1d7a',)

As I remember, we discussed it early. And it is like expected errors, but it looks so bad in log file. 
System should not log false errors.

Version-Release number of selected component (if applicable):
RHEVM: 4.0.2-0.2.rc1.el7ev
LIBVIRT Version: libvirt-1.2.17-13.el7_2.5
VDSM Version: vdsm-4.18.5.1-1.el7ev

How reproducible:
Create many NFS Storage Domains 
tail the vdsm log file for errors

Steps to Reproduce:
1.
2.
3.

Actual results:
Throws errors

Expected results:
Should not throws errors.

Additional info:
take a look attached vdsm log file

Comment 1 Yuri Obshansky 2016-07-26 12:08:03 UTC
Created attachment 1184227 [details]
vdsm 1 log file

Comment 2 Nir Soffer 2016-07-26 12:16:41 UTC
This is an old issue caused by the current way storage domain cache works.
Not sure if it is feasible to change the storage domain cache, but we can
probably silence these false errors that should be debug messages.

I would consider this for 4.2.

Comment 3 Allon Mureinik 2017-06-20 12:25:45 UTC
Fred, did the work on bug 1223538 also solve this one?

Comment 4 Fred Rolland 2017-06-20 13:51:19 UTC
Yes, it is solved in:
https://gerrit.ovirt.org/#/c/71139/5
https://gerrit.ovirt.org/#/c/72142/2