<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Mar 20, 2017 at 5:56 PM, Gianluca Cecchi <span dir="ltr">&lt;<a href="mailto:gianluca.cecchi@gmail.com" target="_blank">gianluca.cecchi@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="">On Thu, Mar 9, 2017 at 1:01 PM, Fred Rolland <span dir="ltr">&lt;<a href="mailto:frolland@redhat.com" target="_blank">frolland@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div></div>I don&#39;t think it will work.<br>We rely heavily on LVM when working with iSCSI and FC and I am not sure how LVM will handle this kind of operation.<br></div><div>A storage domain is a VG that contains PVs (LUNS), and each disk is a LV.<br></div></div><div class="m_7455012243182300986gmail-HOEnZb"><div class="m_7455012243182300986gmail-h5"><div class="gmail_extra"><br></div></div></div></blockquote><div><br></div></span><div>Actually I executed several times raw &quot;dd&quot; operations to change internal disks of CentOS servers and in general they did have LVM structures with PV, VGs, LVs inside....</div><div><br></div><div>Finally I had some time to test and it seems it worked without problems.</div><div>I created a storage domain of 50Gb with 2 VMs on it and one of them had also a snapshot.</div><div>I was able to import at target a dd-copy of it as an iSCSI domain without problems.</div><div>I also created a template on the source domain, but its import fails: I get no error message at web admin gui level, but no action executed actually... on engine log file level I get an error of this type:</div><div><br></div><div><div>2017-03-19 01:37:24,387+01 ERROR [org.ovirt.engine.core.bll.<wbr>CommandsFactory] (default task-11) [b7a5ef2f-694f-4d5a-851b-<wbr>c52a5b1f0104] An exception has occurred while trying to create a command object for command &#39;<wbr>ImportVmTemplateFromConfigurat<wbr>ion&#39; with parameters &#39;ImportVmTemplateParameters:{<wbr>commandId=&#39;ad3c8e81-4787-46bf-<wbr>97cb-fe3bfa9f891e&#39;, user=&#39;null&#39;, commandType=&#39;Unknown&#39;}&#39;: WELD-000049: Unable to invoke protected final void org.ovirt.engine.core.bll.<wbr>CommandBase.postConstruct() on org.ovirt.engine.core.bll.<wbr>exportimport.<wbr>ImportVmTemplateFromConfigurat<wbr>ionCommand@353de47b</div><div>2017-03-19 01:37:24,388+01 ERROR [org.ovirt.engine.core.bll.<wbr>PrevalidatingMultipleActionsRu<wbr>nner] (default task-11) [b7a5ef2f-694f-4d5a-851b-<wbr>c52a5b1f0104] Failed to execute multiple actions of type &#39;<wbr>ImportVmTemplateFromConfigurat<wbr>ion&#39;: null</div><div>2017-03-19 01:37:24,388+01 ERROR [org.ovirt.engine.core.bll.<wbr>PrevalidatingMultipleActionsRu<wbr>nner] (default task-11) [b7a5ef2f-694f-4d5a-851b-<wbr>c52a5b1f0104] Exception: java.lang.NullPointerException</div><div>        at org.ovirt.engine.core.bll.<wbr>NestedCommandFactory.<wbr>createWrappedCommand(<wbr>NestedCommandFactory.java:24) [bll.jar:]</div></div><div><br></div><div>Does it depend on the method or is there any problem in general in template import for storage domain import?</div><div>See below for details of the approach used.</div><div>Full engine logs and vdsm logs on target to crosscheck are here:</div><div><br></div><div><div>vdsm logs</div><div><a href="https://drive.google.com/file/d/0BwoPbcrMv8mvUkhtejMxN0QxTUk/view?usp=sharing" target="_blank">https://drive.google.com/file/<wbr>d/<wbr>0BwoPbcrMv8mvUkhtejMxN0QxTUk/<wbr>view?usp=sharing</a></div><div><br></div><div>engine logs<br></div><div><a href="https://drive.google.com/file/d/0BwoPbcrMv8mvRGpHSU5jOU5IbTQ/view?usp=sharing" target="_blank">https://drive.google.com/file/<wbr>d/<wbr>0BwoPbcrMv8mvRGpHSU5jOU5IbTQ/<wbr>view?usp=sharing</a></div></div></div></div></div></blockquote><div><br></div><div><br></div><div>Any comment to previous e-mail? Are there any known problems with template import?</div><div>Any chance to see the error logs provided?</div><div>Thanks,</div><div>Gianluca</div><div> </div></div></div></div>