<div dir="ltr"><div>Hi, Maor<br><br> you are right. i update the database and it works normally <br><br> Thanks for your help:-)<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-11-19 16:34 GMT+08:00 Maor Lipchuk <span dir="ltr"><<a href="mailto:mlipchuk@redhat.com" target="_blank">mlipchuk@redhat.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Coffee,<br>
<br>
<br>
The OVF_STORE disk sync the VMs and Templates data in an un-synchronous way every 60 minutes (see [1])<br>
this might be the reason that sometime you see the entities candidate for import and sometime you don't.<br>
<br>
There are patches which sync the VMs/Templates data once the Storage Domain is being moved to maintenance<br>
the bug is <a href="https://bugzilla.redhat.com/1138124" target="_blank">https://bugzilla.redhat.com/1138124</a><br>
the patch for fixing it is at <a href="http://gerrit.ovirt.org/#/c/33158/" target="_blank">http://gerrit.ovirt.org/#/c/33158/</a><br>
<br>
The REST examples can be found here:<br>
<a href="http://www.ovirt.org/Features/ImportStorageDomain#REST" target="_blank">http://www.ovirt.org/Features/ImportStorageDomain#REST</a><br>
<br>
To see the candidates for import you should use the following URL:<br>
<a href="http://localhost:8080/api/storagedomains/68ca2f73-9b15-4839-83c9-859244ad2cd3/vms;unregistered" target="_blank">http://localhost:8080/api/storagedomains/68ca2f73-9b15-4839-83c9-859244ad2cd3/vms;unregistered</a><br>
<br>
You should see also the links for unregistered Vms and Templates,<br>
I will take a look at it now and let you know if this was fixed already.<br>
<br>
<br>
[1]<br>
At <a href="http://www.ovirt.org/Features/ImportStorageDomain#Restrictions" target="_blank">http://www.ovirt.org/Features/ImportStorageDomain#Restrictions</a>:<br>
"For better sync of the entities in the Storage Domain with the OVF_STORE disk, it is better to update the OvfUpdateIntervalInMinutes option in vdc_options from 60 minutes to 2-5 minutes, as so : update vdc_options set option_value = 2 where option_name = 'OvfUpdateIntervalInMinutes'; (see [5])"<br>
<br>
<br>
Regards,<br>
Maor<br>
<div><div class="h5"><br>
<br>
<br>
----- Original Message -----<br>
> From: "Coffee Chou" <<a href="mailto:coffee.zyr@gmail.com">coffee.zyr@gmail.com</a>><br>
> To: <a href="mailto:users@ovirt.org">users@ovirt.org</a><br>
> Sent: Wednesday, 19 November, 2014 10:18:24 AM<br>
> Subject: [ovirt-users] [oVirt-Users] Problems of ImportStorageDomain<br>
><br>
> Hi, all<br>
> I am testing the feature of ImprotStorageDomain recently, but meet some<br>
> problems.<br>
><br>
> <a href="http://www.ovirt.org/Features/ImportStorageDomain" target="_blank">http://www.ovirt.org/Features/ImportStorageDomain</a><br>
> <a href="http://www.ovirt.org/Features/ImportUnregisteredEntities" target="_blank">http://www.ovirt.org/Features/ImportUnregisteredEntities</a><br>
><br>
><br>
> I have two setups: DC-A, DC-B, NFS storage: test-import<br>
><br>
> My steps are:<br>
> 1. In DC-A, create some VMs and create their disks on test-import<br>
> 2. maintenance the storage test-import, detach the storage from DC-A<br>
> 3. login to DC-B, click "import domain", chose Data/NFS and enter the path of<br>
> test-import, click "ok"<br>
> 4. Active storage test-import<br>
><br>
> Expect result:<br>
> 1. there are two new subtags in test-import: "vm import" and "template<br>
> import"<br>
> 2. the VMs which were create on test-import are listing in the subtag "vm<br>
> import"<br>
> 3. I can chose VM and import it to DC-B<br>
><br>
> However, it worked randomly:<br>
> sometimes i can see subtags with VMs in DC-B, but sometimes i can not see any<br>
> VM, and sometimes i can't even see the subtags.<br>
><br>
> I tried to access RestAPI, but it return me these links:<br>
> <link<br>
> href="/api/storagedomains/c7492e17-4418-4a55-ad06-c39cea8c44cf/permissions"<br>
> rel="permissions"/><br>
> <link href="/api/storagedomains/c7492e17-4418-4a55-ad06-c39cea8c44cf/disks"<br>
> rel="disks"/><br>
> <link<br>
> href="/api/storagedomains/c7492e17-4418-4a55-ad06-c39cea8c44cf/storageconnections"<br>
> rel="storageconnections"/><br>
> <link<br>
> href="/api/storagedomains/c7492e17-4418-4a55-ad06-c39cea8c44cf/disksnapshots"<br>
> rel="disksnapshots"/><br>
> <link<br>
> href="/api/storagedomains/c7492e17-4418-4a55-ad06-c39cea8c44cf/diskprofiles"<br>
> rel="diskprofiles"/><br>
> without /vms and /templates tags<br>
><br>
> is this feature available now? or did i miss anything?<br>
><br>
> Thank you in advance:-)<br>
><br>
</div></div>> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
> <a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
><br>
</blockquote></div><br></div>