<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Thank you so much for catching this, it made my life a bunch more easier!
<div><br>
</div>
<div>When we wanted to upgrade from oVirt-3.0 to 3.1, we followed the procedure of exporting all of the machines to export domain, crashed the entire system and started building it up again. When it was up and running, we tried importing the machines back,
they all failed and we couldn´t figure anything out from just that non-saying error message and cryptic errors in engine log. But then I remembered reading something a while back about this, searched back and compared our error messages, and they matched.
So I then dove into the storage and changed all of the references from the old name to the new, and importing was all smooth sailing from there:
<div># sed -i '' 's/oldnetname/newnetname/g' master/vms/*/*.ovf</div>
<div><br>
</div>
<div>Devs: I can´t remember, is this explained anywhere in the upgrading documents, that the bridge names need to be the same before and after, or that you need to modify that afterwards if they´ve changed?</div>
<div><br>
<div>
<div>11 sep 2012 kl. 16.22 skrev Thomas Scofield:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div>Bugs filed.</div>
<div><br>
</div>
<div><a href="https://bugzilla.redhat.com/show_bug.cgi?id=856219">https://bugzilla.redhat.com/show_bug.cgi?id=856219</a></div>
<div><a href="https://bugzilla.redhat.com/show_bug.cgi?id=856234">https://bugzilla.redhat.com/show_bug.cgi?id=856234</a></div>
<div><br>
</div>
<br>
<div class="gmail_quote">On Tue, Sep 11, 2012 at 1:16 AM, Haim Ateya <span dir="ltr">
<<a href="mailto:hateya@redhat.com" target="_blank">hateya@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 09/11/2012 12:32 AM, Thomas Scofield wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
While trying to import a virtual machine I got very generic error message in the web interface "Failed to import Vm host to ovirt", in the engine.log I got this java exception below. After doing some digging I realized the problem was I did not map the network
bridge names from my previous machine to the bridge name used on the current machine. After modifing the master/vms/e94464d3-ae44-45ac-<u></u>b09b-0e17f784a378/e94464d3-<u></u>ae44-45ac-b09b-0e17f784a378.<u></u>ovf file and updating the references to the bridge
name the import worked as expected. Could more information be added to the error message to indicate the source of the problem? Are there any plans to allow the network configuration to be modified as part of the import?<br>
</blockquote>
<br>
</div>
Hi Thomas,<br>
<br>
thanks for your feedback (and nice catch!).<br>
please file 2 new bugs around this issue (one for the unhandled exception and another for more informative error message).<br>
<br>
<a href="https://bugzilla.redhat.com/enter_bug.cgi?product=oVirt" target="_blank">https://bugzilla.redhat.com/<u></u>enter_bug.cgi?product=oVirt</a><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div class="h5"><br>
2012-09-10 17:04:29,436 INFO [org.ovirt.engine.core.<u></u>vdsbroker.irsbroker.<u></u>GetVmsInfoVDSCommand] (ajp--0.0.0.0-8009-3) START, GetVmsInfoVDSCommand(<u></u>storagePoolId = 04f7efb6-f9f8-11e1-af92-<u></u>6805ca00c345, ignoreFailoverLimit = false, compatabilityVersion
= null, storageDomainId = 913e496b-b0a3-4b2e-a481-<u></u>7d1a101c89db, vmIdList = null), log id: 223efce6<br>
2012-09-10 17:04:29,446 INFO [org.ovirt.engine.core.<u></u>vdsbroker.irsbroker.<u></u>GetVmsInfoVDSCommand] (ajp--0.0.0.0-8009-3) FINISH, GetVmsInfoVDSCommand, log id: 223efce6<br>
2012-09-10 17:04:29,470 INFO [org.ovirt.engine.core.<u></u>vdsbroker.irsbroker.<u></u>GetImageDomainsListVDSCommand] (ajp--0.0.0.0-8009-3) START, GetImageDomainsListVDSCommand(<u></u>storagePoolId = 04f7efb6-f9f8-11e1-af92-<u></u>6805ca00c345, ignoreFailoverLimit
= false, compatabilityVersion = null, imageGroupId = b9d80d3d-0b3d-4249-8f12-<u></u>3bc7e8b93464), log id: 682b1cec<br>
2012-09-10 17:04:29,483 INFO [org.ovirt.engine.core.<u></u>vdsbroker.irsbroker.<u></u>GetImageDomainsListVDSCommand] (ajp--0.0.0.0-8009-3) FINISH, GetImageDomainsListVDSCommand, return: [], log id: 682b1cec<br>
2012-09-10 17:04:29,484 INFO [org.ovirt.engine.core.<u></u>vdsbroker.irsbroker.<u></u>DoesImageExistVDSCommand] (ajp--0.0.0.0-8009-3) START, DoesImageExistVDSCommand(<u></u>storagePoolId = 04f7efb6-f9f8-11e1-af92-<u></u>6805ca00c345, ignoreFailoverLimit =
false, compatabilityVersion = null, storageDomainId = 913e496b-b0a3-4b2e-a481-<u></u>7d1a101c89db, imageGroupId = b9d80d3d-0b3d-4249-8f12-<u></u>3bc7e8b93464, imageId = 60fb55ea-1450-4f3e-b3ac-<u></u>4ba0db3e80ab), log id: 6677ff61<br>
2012-09-10 17:04:29,548 INFO [org.ovirt.engine.core.<u></u>vdsbroker.irsbroker.<u></u>DoesImageExistVDSCommand] (ajp--0.0.0.0-8009-3) FINISH, DoesImageExistVDSCommand, return: true, log id: 6677ff61<br>
2012-09-10 17:04:29,602 INFO [org.ovirt.engine.core.bll.<u></u>ImportVmCommand] (pool-3-thread-49) [30fbeac] Running command: ImportVmCommand internal: false. Entities affected : ID: 70fc57d2-4f51-4029-a7ce-<u></u>9e7705b27723 Type: Storage<br>
2012-09-10 17:04:29,607 INFO [org.ovirt.engine.core.utils.<u></u>transaction.<u></u>TransactionSupport] (pool-3-thread-49) [30fbeac] transaction rolled back<br>
2012-09-10 17:04:29,608 ERROR [org.ovirt.engine.core.bll.<u></u>ImportVmCommand] (pool-3-thread-49) [30fbeac] Command org.ovirt.engine.core.bll.<u></u>ImportVmCommand throw exception: java.lang.<u></u>StringIndexOutOfBoundsExceptio<u></u>n: String index out
of range: 4<br>
at java.lang.<u></u>AbstractStringBuilder.<u></u>deleteCharAt(<u></u>AbstractStringBuilder.java:<u></u>766) [rt.jar:1.6.0_24]<br>
at java.lang.StringBuilder.<u></u>deleteCharAt(StringBuilder.<u></u>java:280) [rt.jar:1.6.0_24]<br>
at org.ovirt.engine.core.bll.<u></u>ImportVmCommand.<u></u>auditInvalidInterfaces(<u></u>ImportVmCommand.java:933) [engine-bll.jar:]<br>
at org.ovirt.engine.core.bll.<u></u>ImportVmCommand.AddVmNetwork(<u></u>ImportVmCommand.java:801) [engine-bll.jar:]<br>
at org.ovirt.engine.core.bll.<u></u>ImportVmCommand$3.<u></u>runInTransaction(<u></u>ImportVmCommand.java:488) [engine-bll.jar:]<br>
at org.ovirt.engine.core.bll.<u></u>ImportVmCommand$3.<u></u>runInTransaction(<u></u>ImportVmCommand.java:482) [engine-bll.jar:]<br>
at org.ovirt.engine.core.utils.<u></u>transaction.<u></u>TransactionSupport.<u></u>executeInNewTransaction(<u></u>TransactionSupport.java:204) [engine-utils.jar:]<br>
at org.ovirt.engine.core.bll.<u></u>ImportVmCommand.addVmToDb(<u></u>ImportVmCommand.java:482) [engine-bll.jar:]<br>
at org.ovirt.engine.core.bll.<u></u>ImportVmCommand.<u></u>executeCommand(<u></u>ImportVmCommand.java:476) [engine-bll.jar:]<br>
at org.ovirt.engine.core.bll.<u></u>CommandBase.<u></u>ExecuteWithoutTransaction(<u></u>CommandBase.java:804) [engine-bll.jar:]<br>
at org.ovirt.engine.core.bll.<u></u>CommandBase.<u></u>executeActionInTransactionScop<u></u>e(CommandBase.java:896) [engine-bll.jar:]<br>
at org.ovirt.engine.core.bll.<u></u>CommandBase.runInTransaction(<u></u>CommandBase.java:1203) [engine-bll.jar:]<br>
at org.ovirt.engine.core.utils.<u></u>transaction.<u></u>TransactionSupport.<u></u>executeInSuppressed(<u></u>TransactionSupport.java:168) [engine-utils.jar:]<br>
at org.ovirt.engine.core.utils.<u></u>transaction.<u></u>TransactionSupport.<u></u>executeInScope(<u></u>TransactionSupport.java:107) [engine-utils.jar:]<br>
at org.ovirt.engine.core.bll.<u></u>CommandBase.Execute(<u></u>CommandBase.java:911) [engine-bll.jar:]<br>
at org.ovirt.engine.core.bll.<u></u>CommandBase.ExecuteAction(<u></u>CommandBase.java:268) [engine-bll.jar:]<br>
at org.ovirt.engine.core.bll.<u></u>MultipleActionsRunner.<u></u>executeValidatedCommands(<u></u>MultipleActionsRunner.java:<u></u>182) [engine-bll.jar:]<br>
at org.ovirt.engine.core.bll.<u></u>MultipleActionsRunner.<u></u>RunCommands(<u></u>MultipleActionsRunner.java:<u></u>162) [engine-bll.jar:]<br>
at org.ovirt.engine.core.bll.<u></u>MultipleActionsRunner$1.run(<u></u>MultipleActionsRunner.java:84) [engine-bll.jar:]<br>
at org.ovirt.engine.core.utils.<u></u>threadpool.ThreadPoolUtil$<u></u>InternalWrapperRunnable.run(<u></u>ThreadPoolUtil.java:64) [engine-utils.jar:]<br>
at java.util.concurrent.<u></u>Executors$RunnableAdapter.<u></u>call(Executors.java:471) [rt.jar:1.6.0_24]<br>
at java.util.concurrent.<u></u>FutureTask$Sync.innerRun(<u></u>FutureTask.java:334) [rt.jar:1.6.0_24]<br>
at java.util.concurrent.<u></u>FutureTask.run(FutureTask.<u></u>java:166) [rt.jar:1.6.0_24]<br>
at java.util.concurrent.<u></u>ThreadPoolExecutor.runWorker(<u></u>ThreadPoolExecutor.java:1110) [rt.jar:1.6.0_24]<br>
at java.util.concurrent.<u></u>ThreadPoolExecutor$Worker.run(<u></u>ThreadPoolExecutor.java:603) [rt.jar:1.6.0_24]<br>
at java.lang.Thread.run(Thread.<u></u>java:679) [rt.jar:1.6.0_24]<br>
<br>
2012-09-10 17:04:29,641 INFO [org.ovirt.engine.core.<u></u>vdsbroker.irsbroker.<u></u>GetVmsInfoVDSCommand] (ajp--0.0.0.0-8009-10) START, GetVmsInfoVDSCommand(<u></u>storagePoolId = 04f7efb6-f9f8-11e1-af92-<u></u>6805ca00c345, ignoreFailoverLimit = false,
compatabilityVersion = null, storageDomainId = 913e496b-b0a3-4b2e-a481-<u></u>7d1a101c89db, vmIdList = null), log id: 1ef604dc<br>
2012-09-10 17:04:29,648 INFO [org.ovirt.engine.core.<u></u>vdsbroker.irsbroker.<u></u>GetVmsInfoVDSCommand] (ajp--0.0.0.0-8009-10) FINISH, GetVmsInfoVDSCommand, log id: 1ef604dc<br>
<br>
<br>
<br>
</div>
</div>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/<u></u>mailman/listinfo/users</a><br>
</blockquote>
<br>
</blockquote>
</div>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
http://lists.ovirt.org/mailman/listinfo/users<br>
</blockquote>
</div>
<br>
<div><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">
<div><br class="Apple-interchange-newline">
<br>
</div>
<div>Med Vänliga Hälsningar<br>
-------------------------------------------------------------------------------<br>
Karli Sjöberg<br>
Swedish University of Agricultural Sciences<br>
Box 7079 (Visiting Address Kronåsvägen 8)<br>
S-750 07 Uppsala, Sweden<br>
Phone: +46-(0)18-67 15 66</div>
<div><a href="mailto:karli.sjoberg@adm.slu.se">karli.sjoberg@slu.se</a></div>
</span></div>
<br>
</div>
</div>
</body>
</html>