Created attachment 914954[details]
logs from engine and vdsm
Description of problem:
I tried to create a disk on a gluster storage domain and failed with the following error in vdsm.log:
43487e4b-817c-46f0-a062-4317dacb370e::ERROR::2014-07-06 15:43:59,398::task::866::Storage.TaskManager.Task::(_setError) Task=`43487e4b-817c-46f0-a062-4317dacb370e`::Unexpected error
Traceback (most recent call last):
File "/usr/share/vdsm/storage/task.py", line 873, in _run
return fn(*args, **kargs)
File "/usr/share/vdsm/storage/task.py", line 334, in run
return self.cmd(*self.argslist, **self.argsdict)
File "/usr/share/vdsm/storage/securable.py", line 77, in wrapper
return method(self, *args, **kwargs)
File "/usr/share/vdsm/storage/sp.py", line 1796, in createVolume
desc=desc, srcImgUUID=srcImgUUID, srcVolUUID=srcVolUUID)
File "/usr/share/vdsm/storage/sd.py", line 429, in createVolume
preallocate, diskType, volUUID, desc, srcImgUUID, srcVolUUID)
File "/usr/share/vdsm/storage/volume.py", line 375, in create
imgPath = image.Image(repoPath).create(sdUUID, imgUUID)
File "/usr/share/vdsm/storage/image.py", line 126, in create
os.mkdir(imageDir)
OSError: [Errno 2] No such file or directory: '/rhev/data-center/b6869cda-8e14-410f-b323-4fe17b521a9f/1b1ae61b-bd6a-40c7-97ea-818a99668e9c/images/8a8c0c60-ddba-4b4e-944e-ce489320a6dc'
Version-Release number of selected component (if applicable):
vdsm-4.16.0-3.git601f786.el6.x86_64
ovirt-engine-3.5.0-0.0.master.20140629172257.git0b16ed7.el6.noarch
How reproducible:
Always
Steps to Reproduce:
1. Create a gluster storage domain, attach and activate it in a shared DC
2. Create a disk on the gluster domain
Actual results:
Add disk operation fails with the mentioned error in vdsm.log
The link for the mount path of the gluster storage domain doesn't seem to exist even though the linking operation for that domain reported as success in vdsm.log during the storage domain activation
Linking operation for domain 1b1ae61b-bd6a-40c7-97ea-818a99668e9c:
Thread-88::INFO::2014-07-06 15:55:29,042::sp::1120::Storage.StoragePool::(_linkStorageDomain) Linking /rhev/data-center/mnt/glusterSD/orion.qa.lab.tlv.redhat.com:_elad-ovirt/1b1ae61b-bd6a-40c7-97ea-818a99668e9c to
/rhev/data-center/b6869cda-8e14-410f-b323-4fe17b521a9f/1b1ae61b-bd6a-40c7-97ea-818a99668e9c
Link doesn't exist under /rhev/data-center/pool/ :
[root@green-vdsb b6869cda-8e14-410f-b323-4fe17b521a9f]# pwd
/rhev/data-center/b6869cda-8e14-410f-b323-4fe17b521a9f
[root@green-vdsb b6869cda-8e14-410f-b323-4fe17b521a9f]# ll
total 20
lrwxrwxrwx. 1 vdsm kvm 105 Jul 6 15:57 146f410f-f906-4d4a-bb29-75f2341a3612 -> /rhev/data-center/mnt/lion.qa.lab.tlv.redhat.com:_export_rhevm-3-iso/146f410f-f906-4d4a-bb29-75f2341a3612
lrwxrwxrwx. 1 vdsm kvm 100 Jul 6 15:57 3370be57-fe1b-4bed-bd18-afb58a6d40af -> /rhev/data-center/mnt/lion.qa.lab.tlv.redhat.com:_export_elad_1/3370be57-fe1b-4bed-bd18-afb58a6d40af
lrwxrwxrwx. 1 vdsm kvm 66 Jul 6 15:57 81647cc2-d186-4f99-b480-9aa31861675b -> /rhev/data-center/mnt/blockSD/81647cc2-d186-4f99-b480-9aa31861675b
lrwxrwxrwx. 1 vdsm kvm 114 Jul 6 15:57 f5966475-1b14-40c0-96cc-c303590e1ed8 -> /rhev/data-center/mnt/vserver-spider.eng.lab.tlv.redhat.com:_vol__pnfs_acanan/f5966475-1b14-40c0-96cc-c303590e1ed8
lrwxrwxrwx. 1 vdsm kvm 100 Jul 6 15:57 mastersd -> /rhev/data-center/mnt/lion.qa.lab.tlv.redhat.com:_export_elad_1/3370be57-fe1b-4bed-bd18-afb58a6d40af
[root@green-vdsb b6869cda-8e14-410f-b323-4fe17b521a9f]
I tried to deactivate and activate the domain several times, it didn't help.
Expected results:
1) Link should exist for gluster domain
2) If link doesn't exist, it means that user cannot perform basic operations on the storage domain, which means that the domain must be reported as inactive,
Additional info: logs from engine and vdsm
Comment 1Federico Simoncelli
2014-08-01 16:26:29 UTC
*** Bug 1124397 has been marked as a duplicate of this bug. ***
Performed basic operations on a gluster domain:
activate, deactivate, attach, detach, disk creation and running a VM with a disk from the gluster domain attached to it.
All went fine.
Verified using ovirt-3.5-RC1.1
Created attachment 914954 [details] logs from engine and vdsm Description of problem: I tried to create a disk on a gluster storage domain and failed with the following error in vdsm.log: 43487e4b-817c-46f0-a062-4317dacb370e::ERROR::2014-07-06 15:43:59,398::task::866::Storage.TaskManager.Task::(_setError) Task=`43487e4b-817c-46f0-a062-4317dacb370e`::Unexpected error Traceback (most recent call last): File "/usr/share/vdsm/storage/task.py", line 873, in _run return fn(*args, **kargs) File "/usr/share/vdsm/storage/task.py", line 334, in run return self.cmd(*self.argslist, **self.argsdict) File "/usr/share/vdsm/storage/securable.py", line 77, in wrapper return method(self, *args, **kwargs) File "/usr/share/vdsm/storage/sp.py", line 1796, in createVolume desc=desc, srcImgUUID=srcImgUUID, srcVolUUID=srcVolUUID) File "/usr/share/vdsm/storage/sd.py", line 429, in createVolume preallocate, diskType, volUUID, desc, srcImgUUID, srcVolUUID) File "/usr/share/vdsm/storage/volume.py", line 375, in create imgPath = image.Image(repoPath).create(sdUUID, imgUUID) File "/usr/share/vdsm/storage/image.py", line 126, in create os.mkdir(imageDir) OSError: [Errno 2] No such file or directory: '/rhev/data-center/b6869cda-8e14-410f-b323-4fe17b521a9f/1b1ae61b-bd6a-40c7-97ea-818a99668e9c/images/8a8c0c60-ddba-4b4e-944e-ce489320a6dc' Version-Release number of selected component (if applicable): vdsm-4.16.0-3.git601f786.el6.x86_64 ovirt-engine-3.5.0-0.0.master.20140629172257.git0b16ed7.el6.noarch How reproducible: Always Steps to Reproduce: 1. Create a gluster storage domain, attach and activate it in a shared DC 2. Create a disk on the gluster domain Actual results: Add disk operation fails with the mentioned error in vdsm.log The link for the mount path of the gluster storage domain doesn't seem to exist even though the linking operation for that domain reported as success in vdsm.log during the storage domain activation Linking operation for domain 1b1ae61b-bd6a-40c7-97ea-818a99668e9c: Thread-88::INFO::2014-07-06 15:55:29,042::sp::1120::Storage.StoragePool::(_linkStorageDomain) Linking /rhev/data-center/mnt/glusterSD/orion.qa.lab.tlv.redhat.com:_elad-ovirt/1b1ae61b-bd6a-40c7-97ea-818a99668e9c to /rhev/data-center/b6869cda-8e14-410f-b323-4fe17b521a9f/1b1ae61b-bd6a-40c7-97ea-818a99668e9c Link doesn't exist under /rhev/data-center/pool/ : [root@green-vdsb b6869cda-8e14-410f-b323-4fe17b521a9f]# pwd /rhev/data-center/b6869cda-8e14-410f-b323-4fe17b521a9f [root@green-vdsb b6869cda-8e14-410f-b323-4fe17b521a9f]# ll total 20 lrwxrwxrwx. 1 vdsm kvm 105 Jul 6 15:57 146f410f-f906-4d4a-bb29-75f2341a3612 -> /rhev/data-center/mnt/lion.qa.lab.tlv.redhat.com:_export_rhevm-3-iso/146f410f-f906-4d4a-bb29-75f2341a3612 lrwxrwxrwx. 1 vdsm kvm 100 Jul 6 15:57 3370be57-fe1b-4bed-bd18-afb58a6d40af -> /rhev/data-center/mnt/lion.qa.lab.tlv.redhat.com:_export_elad_1/3370be57-fe1b-4bed-bd18-afb58a6d40af lrwxrwxrwx. 1 vdsm kvm 66 Jul 6 15:57 81647cc2-d186-4f99-b480-9aa31861675b -> /rhev/data-center/mnt/blockSD/81647cc2-d186-4f99-b480-9aa31861675b lrwxrwxrwx. 1 vdsm kvm 114 Jul 6 15:57 f5966475-1b14-40c0-96cc-c303590e1ed8 -> /rhev/data-center/mnt/vserver-spider.eng.lab.tlv.redhat.com:_vol__pnfs_acanan/f5966475-1b14-40c0-96cc-c303590e1ed8 lrwxrwxrwx. 1 vdsm kvm 100 Jul 6 15:57 mastersd -> /rhev/data-center/mnt/lion.qa.lab.tlv.redhat.com:_export_elad_1/3370be57-fe1b-4bed-bd18-afb58a6d40af [root@green-vdsb b6869cda-8e14-410f-b323-4fe17b521a9f] I tried to deactivate and activate the domain several times, it didn't help. Expected results: 1) Link should exist for gluster domain 2) If link doesn't exist, it means that user cannot perform basic operations on the storage domain, which means that the domain must be reported as inactive, Additional info: logs from engine and vdsm