Hi Haven,

From the error, API is failing to find the local storage pool for the volume 
for disk ID: 2-2000. I'm not sure if importing VM with local storage is widely 
tested so there can be an issue there. There could be some difference in pool's 
path as returned by listUnmanagedInstances vs listStoragePools APIs.
Can you please share output of:

  *   listUnmanagedInstances API for the VM
  *   listStoragePools API for the storage pool that corresponds to datastore 
named - localsr1

Regards,
Abhishek
________________________________
From: haven <382829...@qq.com.INVALID>
Sent: 10 December 2021 22:02
To: dev <dev@cloudstack.apache.org>
Subject: import existing instance from vsphere to cloudstack failed

Hi devs
&nbsp; &nbsp; I tried to&nbsp; &nbsp;import existing instance from vsphere to 
cloudstack failed, this instance use vsphere local storage datastore .already 
enabled localstorage vmware zone and found that localstorage in 
cloudstack,&nbsp; get same error again。Is there any way to import it normally?


ENV:
Version: cloudstack 4.15.2&nbsp;
vsphere:6.5


API:
http://x.x.x.x:8090/client/api/?clusterid=8f5efc66-17a9-4f80-925b-92722a04a501&amp;name=localstorage&amp;serviceofferingid=a9544da9-cc83-4ed0-9cf5-52e46f9e9361&amp;command=importUnmanagedInstance&amp;nicnetworklist[0].network=7b0b27c0-7827-4505-9c53-a7969406562b&amp;nicnetworklist[0].nic=%E7%BD%91%E7%BB%9C%E9%80%82%E9%85%8D%E5%99%A8%201&amp;response=json


Error:
{"queryasyncjobresultresponse":{"accountid":"623017de-4b49-11ec-b1af-52540044e80f","userid":"6232957f-4b49-11ec-b1af-52540044e80f","cmd":"org.apache.cloudstack.api.command.admin.vm.ImportUnmanagedInstanceCmd","jobstatus":2,"jobprocstatus":0,"jobresultcode":530,"jobresulttype":"object","jobresult":{"errorcode":530,"errortext":"Storage
 pool for disk 硬盘 1(2-2000) with datastore: localsr1 not found in zone ID: 
db959f5f-2b65-435f-8cd7-2efb7d87c3c7"},"created":"2021-12-10T13:10:29+0800","completed":"2021-12-10T13:10:30+0800","jobid":"2ce8de02-8abc-41ef-acd5-2c205b206598"}}

 

Reply via email to