Bug 856219 - Exception when importing virtual machine with invalid bridge
Summary: Exception when importing virtual machine with invalid bridge
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-core
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Nobody's working on this, feel free to take it
QA Contact:
URL:
Whiteboard: network
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-11 13:28 UTC by Tom Scofield
Modified: 2013-03-24 07:12 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-24 07:12:18 UTC
oVirt Team: ---
Embargoed:


Attachments (Terms of Use)

Description Tom Scofield 2012-09-11 13:28:26 UTC
Description of problem:
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. The exception was caused by the network bridge names from my previous machine not being mapped to the bridge name used on the current machine

Version-Release number of selected component (if applicable):
ovirt 3.1

How reproducible:
Modify the import OVF file to an invalid network bridge and attempt to import.

Steps to Reproduce:
1. Modify the import OVF file to an invalid network bridge
2. attempt to import
3.
  
Actual results:
Through web interface the "Failed to import Vm host to ovirt" error is given.

Expected results:
Import process starts.

Additional info:
2012-09-10 17:04:29,436 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.GetVmsInfoVDSCommand] (ajp--0.0.0.0-8009-3) START, GetVmsInfoVDSCommand(storagePoolId = 04f7efb6-f9f8-11e1-af92-6805ca00c345, ignoreFailoverLimit = false, compatabilityVersion = null, storageDomainId = 913e496b-b0a3-4b2e-a481-7d1a101c89db, vmIdList = null), log id: 223efce6
2012-09-10 17:04:29,446 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.GetVmsInfoVDSCommand] (ajp--0.0.0.0-8009-3) FINISH, GetVmsInfoVDSCommand, log id: 223efce6
2012-09-10 17:04:29,470 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.GetImageDomainsListVDSCommand] (ajp--0.0.0.0-8009-3) START, GetImageDomainsListVDSCommand(storagePoolId = 04f7efb6-f9f8-11e1-af92-6805ca00c345, ignoreFailoverLimit = false, compatabilityVersion = null, imageGroupId = b9d80d3d-0b3d-4249-8f12-3bc7e8b93464), log id: 682b1cec
2012-09-10 17:04:29,483 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.GetImageDomainsListVDSCommand] (ajp--0.0.0.0-8009-3) FINISH, GetImageDomainsListVDSCommand, return: [], log id: 682b1cec
2012-09-10 17:04:29,484 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.DoesImageExistVDSCommand] (ajp--0.0.0.0-8009-3) START, DoesImageExistVDSCommand(storagePoolId = 04f7efb6-f9f8-11e1-af92-6805ca00c345, ignoreFailoverLimit = false, compatabilityVersion = null, storageDomainId = 913e496b-b0a3-4b2e-a481-7d1a101c89db, imageGroupId = b9d80d3d-0b3d-4249-8f12-3bc7e8b93464, imageId = 60fb55ea-1450-4f3e-b3ac-4ba0db3e80ab), log id: 6677ff61
2012-09-10 17:04:29,548 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.DoesImageExistVDSCommand] (ajp--0.0.0.0-8009-3) FINISH, DoesImageExistVDSCommand, return: true, log id: 6677ff61
2012-09-10 17:04:29,602 INFO  [org.ovirt.engine.core.bll.ImportVmCommand] (pool-3-thread-49) [30fbeac] Running command: ImportVmCommand internal: false. Entities affected :  ID: 70fc57d2-4f51-4029-a7ce-9e7705b27723 Type: Storage
2012-09-10 17:04:29,607 INFO  [org.ovirt.engine.core.utils.transaction.TransactionSupport] (pool-3-thread-49) [30fbeac] transaction rolled back
2012-09-10 17:04:29,608 ERROR [org.ovirt.engine.core.bll.ImportVmCommand] (pool-3-thread-49) [30fbeac] Command org.ovirt.engine.core.bll.ImportVmCommand throw exception: java.lang.StringIndexOutOfBoundsException: String index out of range: 4
        at java.lang.AbstractStringBuilder.deleteCharAt(AbstractStringBuilder.java:766) [rt.jar:1.6.0_24]
        at java.lang.StringBuilder.deleteCharAt(StringBuilder.java:280) [rt.jar:1.6.0_24]
        at org.ovirt.engine.core.bll.ImportVmCommand.auditInvalidInterfaces(ImportVmCommand.java:933) [engine-bll.jar:]
        at org.ovirt.engine.core.bll.ImportVmCommand.AddVmNetwork(ImportVmCommand.java:801) [engine-bll.jar:]
        at org.ovirt.engine.core.bll.ImportVmCommand$3.runInTransaction(ImportVmCommand.java:488) [engine-bll.jar:]
        at org.ovirt.engine.core.bll.ImportVmCommand$3.runInTransaction(ImportVmCommand.java:482) [engine-bll.jar:]
        at org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInNewTransaction(TransactionSupport.java:204) [engine-utils.jar:]
        at org.ovirt.engine.core.bll.ImportVmCommand.addVmToDb(ImportVmCommand.java:482) [engine-bll.jar:]
        at org.ovirt.engine.core.bll.ImportVmCommand.executeCommand(ImportVmCommand.java:476) [engine-bll.jar:]
        at org.ovirt.engine.core.bll.CommandBase.ExecuteWithoutTransaction(CommandBase.java:804) [engine-bll.jar:]
        at org.ovirt.engine.core.bll.CommandBase.executeActionInTransactionScope(CommandBase.java:896) [engine-bll.jar:]
        at org.ovirt.engine.core.bll.CommandBase.runInTransaction(CommandBase.java:1203) [engine-bll.jar:]
        at org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInSuppressed(TransactionSupport.java:168) [engine-utils.jar:]
        at org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInScope(TransactionSupport.java:107) [engine-utils.jar:]
        at org.ovirt.engine.core.bll.CommandBase.Execute(CommandBase.java:911) [engine-bll.jar:]
        at org.ovirt.engine.core.bll.CommandBase.ExecuteAction(CommandBase.java:268) [engine-bll.jar:]
        at org.ovirt.engine.core.bll.MultipleActionsRunner.executeValidatedCommands(MultipleActionsRunner.java:182) [engine-bll.jar:]
        at org.ovirt.engine.core.bll.MultipleActionsRunner.RunCommands(MultipleActionsRunner.java:162) [engine-bll.jar:]
        at org.ovirt.engine.core.bll.MultipleActionsRunner$1.run(MultipleActionsRunner.java:84) [engine-bll.jar:]
        at org.ovirt.engine.core.utils.threadpool.ThreadPoolUtil$InternalWrapperRunnable.run(ThreadPoolUtil.java:64) [engine-utils.jar:]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.6.0_24]
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [rt.jar:1.6.0_24]
        at java.util.concurrent.FutureTask.run(FutureTask.java:166) [rt.jar:1.6.0_24]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.6.0_24]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.6.0_24]
        at java.lang.Thread.run(Thread.java:679) [rt.jar:1.6.0_24]

2012-09-10 17:04:29,641 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.GetVmsInfoVDSCommand] (ajp--0.0.0.0-8009-10) START, GetVmsInfoVDSCommand(storagePoolId = 04f7efb6-f9f8-11e1-af92-6805ca00c345, ignoreFailoverLimit = false, compatabilityVersion = null, storageDomainId = 913e496b-b0a3-4b2e-a481-7d1a101c89db, vmIdList = null), log id: 1ef604dc
2012-09-10 17:04:29,648 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.GetVmsInfoVDSCommand] (ajp--0.0.0.0-8009-10) FINISH, GetVmsInfoVDSCommand, log id: 1ef604dc

Comment 1 Itamar Heim 2013-03-24 07:12:18 UTC
Closing old bugs. If this issue is still relevant/important in current version, please re-open the bug.


Note You need to log in before you can comment on or make changes to this bug.