Bug 839919 - [vdsm]oop can't load storage_exception module when directory permission has problem
[vdsm]oop can't load storage_exception module when directory permission has p...
Status: CLOSED DUPLICATE of bug 841863
Product: oVirt
Classification: Community
Component: vdsm (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Saggi Mizrahi
Depends On:
  Show dependency treegraph
Reported: 2012-07-13 04:20 EDT by Royce Lv
Modified: 2014-12-29 12:34 EST (History)
11 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-08-05 22:00:04 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Royce Lv 2012-07-13 04:20:31 EDT
Description of problem:
when backstorage (LOCALFS/NFS)has permission problems: 
e.g.:owner/group is not vdsm/kvm
fileUtils.validateAccess will return false,
but the new OOP can't load module storage_exception and throw error:
  File "/usr/share/vdsm/storage/task.py", line 861, in _run
    return fn(*args, **kargs)
  File "/usr/share/vdsm/logUtils.py", line 38, in wrapper
    res = f(*args, **kwargs)
  File "/usr/share/vdsm/storage/hsm.py", line 2143, in createStorageDomain
    typeSpecificArg, storageType, domVersion)
  File "/usr/share/vdsm/storage/nfsSD.py", line 75, in create
    cls._preCreateValidation(sdUUID, mntPoint, remotePath, version)
  File "/usr/share/vdsm/storage/nfsSD.py", line 46, in _preCreateValidation
  File "/usr/share/vdsm/storage/fileSD.py", line 51, in validateDirAccess
  File "/usr/share/vdsm/storage/remoteFileHandler.py", line 270, in callCrabRPCFunction
    *args, **kwargs)
  File "/usr/share/vdsm/storage/remoteFileHandler.py", line 186, in callCrabRPCFunction
    res, err = pickle.loads(rawResponse)
  File "/usr/lib64/python2.7/pickle.py", line 1382, in loads
    return Unpickler(file).load()
  File "/usr/lib64/python2.7/pickle.py", line 858, in load
  File "/usr/lib64/python2.7/pickle.py", line 1090, in load_global
    klass = self.find_class(module, name)
  File "/usr/lib64/python2.7/pickle.py", line 1124, in find_class
ImportError: No module named storage_exception

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

How reproducible:
create a storage domain using a path with a wrong owner/group

Steps to Reproduce:
Actual results:

Expected results:

Additional info:
Comment 1 Mark Wu 2012-07-16 22:21:03 EDT
Post to http://gerrit.ovirt.org/#/c/6354/
Comment 2 Itamar Heim 2012-08-05 16:34:15 EDT
Mark - same issue/solution as in bug 841863 and http://gerrit.ovirt.org/6463
Comment 3 Mark Wu 2012-08-05 22:00:04 EDT
Itamar, got it. Thanks for your information!

*** This bug has been marked as a duplicate of bug 841863 ***

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