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

Bug 924835

Summary: Cannot import VM - ImagePathError: Image path does not exist or cannot be accessed/created
Product: Red Hat Enterprise Virtualization Manager Reporter: Jiri Belka <jbelka>
Component: vdsmAssignee: Ayal Baron <abaron>
Status: CLOSED DUPLICATE QA Contact: Haim <hateya>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 3.2.0CC: abaron, bazulay, ewarszaw, hateya, iheim, lpeer, yeylon, ykaul
Target Milestone: ---Keywords: Regression, TestBlocker
Target Release: 3.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-25 09:38:20 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.log
none
engine.log none

Description Jiri Belka 2013-03-22 15:31:53 UTC
Created attachment 714608 [details]
vdsm.log

Description of problem:

While importing a VM I get this popup error:

win2008_32bit:

    Cannot import VM. VM's Image does not exist.

Thread-8320::ERROR::2013-03-22 16:26:02,033::task::833::TaskManager.Task::(_setError) Task=`60727d3a-a6cf-4088-98df-411f185d37c2`::Unexpected error
Traceback (most recent call last):
  File "/usr/share/vdsm/storage/task.py", line 840, 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 2925, in getVolumeInfo
    imgUUID=imgUUID, volUUID=volUUID).getInfo()
  File "/usr/share/vdsm/storage/fileSD.py", line 250, in produceVolume
    return fileVolume.FileVolume(repoPath, self.sdUUID, imgUUID, volUUID)
  File "/usr/share/vdsm/storage/fileVolume.py", line 71, in __init__
    volume.Volume.__init__(self, repoPath, sdUUID, imgUUID, volUUID)
  File "/usr/share/vdsm/storage/volume.py", line 128, in __init__
    self.validate()
  File "/usr/share/vdsm/storage/volume.py", line 140, in validate
    self.validateImagePath()
  File "/usr/share/vdsm/storage/fileVolume.py", line 533, in validateImagePath
    raise se.ImagePathError(imageDir)
ImagePathError: Image path does not exist or cannot be accessed/created: ('/rhev/data-center/ffec9aa4-692c-11e2-9e91-001a4a013f3a/131d564c-52d1-4bba-8d60-39e889a8bc08/images/62787b06-d836-4e14-afc7-023e08aeee96',)

Seems like related issue to BZ924834. Again pool uuid in the path. Export domain is NFS.

Version-Release number of selected component (if applicable):
sf11
vdsm-xmlrpc-4.10.2-12.0.el6ev.noarch
vdsm-4.10.2-12.0.el6ev.x86_64
vdsm-cli-4.10.2-12.0.el6ev.noarch
vdsm-python-4.10.2-12.0.el6ev.x86_64

Red Hat Enterprise Linux Server release 6.4 (Santiago)

How reproducible:
100%

Steps to Reproduce:
1. Have a VM on export domain
2. Try to import
3.
  
Actual results:
Cannot import VM. VM's Image does not exist.

Expected results:
This _MUST_ work.

Additional info:

Comment 1 Haim 2013-03-22 16:33:09 UTC
please attach engine log.

Comment 2 Haim 2013-03-22 16:42:04 UTC
Jiri, 

I suspect something is wrong with the export path, can you please execute the following commands on the hypervisor:

tree /rhev/data-center/ffec9aa4-692c-11e2-9e91-001a4a013f3a

ls -l /rhev/data-center/ffec9aa4-692c-11e2-9e91-001a4a013f3a/131d564c-52d1-4bba-8d60-39e889a8bc08/images/62787b06-d836-4e14-afc7-023e08aeee96

vdsClient -s 0 getStorageDomainInfo 131d564c-52d1-4bba-8d60-39e889a8bc08

Comment 4 Jiri Belka 2013-03-25 08:14:38 UTC
[root@dell-r210ii-03 ~]# tree /rhev/data-center/ffec9aa4-692c-11e2-9e91-001a4a013f3a
/rhev/data-center/ffec9aa4-692c-11e2-9e91-001a4a013f3a [error opening dir]

0 directories, 0 files
[root@dell-r210ii-03 ~]# ls -l /rhev/data-center/ffec9aa4-692c-11e2-9e91-001a4a013f3a/131d564c-52d1-4bba-8d60-39e889a8bc08/images/62787b06-d836-4e14-afc7-023e08aeee96
ls: cannot access /rhev/data-center/ffec9aa4-692c-11e2-9e91-001a4a013f3a/131d564c-52d1-4bba-8d60-39e889a8bc08/images/62787b06-d836-4e14-afc7-023e08aeee96: No such file or directory
[root@dell-r210ii-03 ~]# vdsClient -s 0 getStorageDomainInfo 131d564c-52d1-4bba-8d60-39e889a8bc08
        uuid = 131d564c-52d1-4bba-8d60-39e889a8bc08
        pool = ['ffec9aa4-692c-11e2-9e91-001a4a013f3a']
        lver = -1
        version = 0
        role = Regular
        remotePath = 10.34.63.204:/mnt/export/nfs/export
        spm_id = -1
        type = NFS
        class = Backup
        master_ver = 0
        name = str02-nfs-export

Comment 5 Jiri Belka 2013-03-25 08:15:33 UTC
Created attachment 715898 [details]
engine.log

Comment 6 Eduardo Warszawski 2013-03-25 09:38:20 UTC

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