Hi,

I want to import a FC storage domain from an oVirt 4.3.10 setup to a fresh 
installed oVirt 4.5.5. 

I could move domain to maintenance, detach, remove from 4.3.10 and import with 
activate option to 4.5.5 for one FC LUN fine. 
When i tried for the second FC lun - during import,activate i get "Error while 
executing action Attach Storage Domain: Internal Engine Error" and in 
engine.log i get " Query 'GetUnregisteredDisksQuery' failed: null',  

and on the standalone engine, i get :-

2024-06-26 07:15:07,277+05 ERROR 
[org.ovirt.engine.core.bll.storage.domain.AttachStorageDomainToPoolCommand] 
(default task-102) [] An error occurred while fetching unregistered disks from 
Storage Domain id 'a5a72b44-f9bc-4e5b-ab43-ca2b1d97b429'
2024-06-26 07:15:07,277+05 ERROR 
[org.ovirt.engine.core.bll.storage.domain.AttachStorageDomainToPoolCommand] 
(default task-102) [] Command 
'org.ovirt.engine.core.bll.storage.domain.AttachStorageDomainToPoolCommand' 
failed: Failed to retrieve unregistered disks
2024-06-26 07:15:07,277+05 ERROR 
[org.ovirt.engine.core.bll.storage.domain.AttachStorageDomainToPoolCommand] 
(default task-102) [] Exception: java.lang.RuntimeException: Failed to retrieve 
unregistered disks

I have checked using "Scan Disk" on the FC lun before exporting from 4.3.10 and 
there were no floating disks. I have checked if any of the VM's on the domain 
have any of their disks on any other storage domain - there are none.

On the host used for importing the domain, i get :-

2024-06-26 07:15:04,829+0530 INFO  (jsonrpc/5) [storage.hba] Scanning FC 
devices (hba:42)
2024-06-26 07:15:04,938+0530 INFO  (periodic/0) [vdsm.api] START 
repoStats(domains=()) from=internal, 
task_id=9f03d412-56a7-4f3f-85b6-c3fd72a68817 (api:31)
2024-06-26 07:15:04,938+0530 INFO  (periodic/0) [vdsm.api] FINISH repoStats 
return={'7c9e748c-442b-48d0-9b35-a769d349c73b': {'code': 0, 'lastCheck': '3.7', 
'delay': '0.000974057', 'valid': True, 'version': 0, 'acquired': True, 
'actual': True}, 'a589fe14-f40a-4d67-afcd-ec74b07009cf': {'code': 0, 
'lastCheck': '3.7', 'delay': '0.000501601', 'valid': True, 'version': 0, 
'acquired': True, 'actual': True}, '6b625ecb-1cd1-43c5-b533-32000cd050ec': 
{'code': 0, 'lastCheck': '3.7', 'delay': '0.000570869', 'valid': True, 
'version': 5, 'acquired': True, 'actual': True}} from=internal, 
task_id=9f03d412-56a7-4f3f-85b6-c3fd72a68817 (api:37)
2024-06-26 07:15:04,968+0530 INFO  (jsonrpc/5) [storage.hba] Scanning FC 
devices: 0.14 seconds (utils:373)
2024-06-26 07:15:04,968+0530 INFO  (jsonrpc/5) [storage.multipath] Waiting 
until multipathd is ready (multipath:95)
2024-06-26 07:15:07,003+0530 INFO  (jsonrpc/5) [storage.multipath] Waited 2.04 
seconds for multipathd (tries=2, ready=2) (multipath:120)
2024-06-26 07:15:07,003+0530 INFO  (jsonrpc/5) [storage.multipath] Resizing 
multipath devices (multipath:223)
2024-06-26 07:15:07,014+0530 INFO  (jsonrpc/5) [storage.multipath] Resizing 
multipath devices: 0.01 seconds (utils:373)
2024-06-26 07:15:07,014+0530 INFO  (jsonrpc/5) [storage.storagedomaincache] 
Refreshing storage domain cache: 2.60 seconds (utils:373)
2024-06-26 07:15:07,263+0530 INFO  (jsonrpc/5) [storage.volumemanifest] 
Creating image directory 
'/rhev/data-center/mnt/blockSD/a5a72b44-f9bc-4e5b-ab43-ca2b1d97b429/images/f054c394-2b49-4087-9e9d-0490b23e34e4'
 (blockVolume:106)
2024-06-26 07:15:07,263+0530 ERROR (jsonrpc/5) [storage.volumemanifest] 
Unexpected error (blockVolume:110)
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/vdsm/storage/blockVolume.py", line 
108, in validateImagePath
    os.mkdir(imageDir, 0o755)
FileNotFoundError: [Errno 2] No such file or directory: 
'/rhev/data-center/mnt/blockSD/a5a72b44-f9bc-4e5b-ab43-ca2b1d97b429/images/f054c394-2b49-4087-9e9d-0490b23e34e4'
2024-06-26 07:15:07,263+0530 INFO  (jsonrpc/5) [vdsm.api] FINISH prepareImage 
error=Image path does not exist or cannot be accessed/created: 
('/rhev/data-center/mnt/blockSD/a5a72b44-f9bc-4e5b-ab43-ca2b1d97b429/images/f054c394-2b49-4087-9e9d-0490b23e34e4',)
 from=::ffff:10.10.99.100,51116, flow_id=872d7930-e487-4fe4-8e0a-599074105d7b, 
task_id=523690f8-24b3-4f1f-801e-8391ebb087a2 (api:35)
2024-06-26 07:15:07,263+0530 ERROR (jsonrpc/5) [storage.taskmanager.task] 
(Task='523690f8-24b3-4f1f-801e-8391ebb087a2') Unexpected error (task:860)
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/vdsm/storage/blockVolume.py", line 
108, in validateImagePath
    os.mkdir(imageDir, 0o755)
FileNotFoundError: [Errno 2] No such file or directory: 
'/rhev/data-center/mnt/blockSD/a5a72b44-f9bc-4e5b-ab43-ca2b1d97b429/images/f054c394-2b49-4087-9e9d-0490b23e34e4'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/vdsm/storage/task.py", line 867, in 
_run
    return fn(*args, **kargs)
  File "<decorator-gen-169>", line 2, in prepareImage
  File "/usr/lib/python3.9/site-packages/vdsm/common/api.py", line 33, in method
    ret = func(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/vdsm/storage/hsm.py", line 2958, in 
prepareImage
    legality = dom.produceVolume(imgUUID, volUUID).getLegality()
  File "/usr/lib/python3.9/site-packages/vdsm/storage/sd.py", line 1188, in 
produceVolume
    return self.getVolumeClass()(self.mountpoint, self.sdUUID, imgUUID,
  File "/usr/lib/python3.9/site-packages/vdsm/storage/volume.py", line 881, in 
__init__
    self._manifest = self.manifestClass(repoPath, sdUUID, imgUUID, volUUID)
  File "/usr/lib/python3.9/site-packages/vdsm/storage/blockVolume.py", line 40, 
in __init__
    volume.VolumeManifest.__init__(self, repoPath, sdUUID, imgUUID,
  File "/usr/lib/python3.9/site-packages/vdsm/storage/volume.py", line 67, in 
__init__
    self.validate()
  File "/usr/lib/python3.9/site-packages/vdsm/storage/blockVolume.py", line 
135, in validate
    volume.VolumeManifest.validate(self)
  File "/usr/lib/python3.9/site-packages/vdsm/storage/volume.py", line 99, in 
validate
    self.validateImagePath()
  File "/usr/lib/python3.9/site-packages/vdsm/storage/blockVolume.py", line 
111, in validateImagePath
    raise se.ImagePathError(imageDir)
vdsm.storage.exception.ImagePathError: Image path does not exist or cannot be 
accessed/created: 
('/rhev/data-center/mnt/blockSD/a5a72b44-f9bc-4e5b-ab43-ca2b1d97b429/images/f054c394-2b49-4087-9e9d-0490b23e34e4',)
2024-06-26 07:15:07,263+0530 INFO  (jsonrpc/5) [storage.taskmanager.task] 
(Task='523690f8-24b3-4f1f-801e-8391ebb087a2') aborting: Task is aborted: 
"value=Image path does not exist or cannot be accessed/created: 
('/rhev/data-center/mnt/blockSD/a5a72b44-f9bc-4e5b-ab43-ca2b1d97b429/images/f054c394-2b49-4087-9e9d-0490b23e34e4',)
 abortedcode=254" (task:1165)
2024-06-26 07:15:07,264+0530 ERROR (jsonrpc/5) [storage.dispatcher] FINISH 
prepareImage error=Image path does not exist or cannot be accessed/created: 
('/rhev/data-center/mnt/blockSD/a5a72b44-f9bc-4e5b-ab43-ca2b1d97b429/images/f054c394-2b49-4087-9e9d-0490b23e34e4',)
 (dispatcher:66)
2024-06-26 07:15:07,264+0530 INFO  (jsonrpc/5) [jsonrpc.JsonRpcServer] RPC call 
Image.prepare failed (error 254) in 2.85 seconds (__init__:300)

Any help will be useful, we are moving from 4.3.10 on IBM servers and storage 
to 4.5.5 on DELL servers and storage

Regards
Sumit Basu
_______________________________________________
Users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/[email protected]/message/AS7SLW4HFMYXCRLYF3BG66SOJ6MZL2N7/

Reply via email to