[Users] Import VMs from abandoned Storage Domain

Itamar Heim iheim at redhat.com
Tue Jan 15 22:00:52 UTC 2013


On 01/15/2013 10:24 PM, Alex Leonhardt wrote:
> Hi,
>
> Am trying to import VMs from an abandoned storage pool -
>
> all I'm getting is this :
>
> 2013-01-15 20:21:05,958 INFO
> [org.ovirt.engine.core.vdsbroker.irsbroker.GetVmsInfoVDSCommand]
> (ajp--0.0.0.0-8009-16) START, GetVmsInfoVDSCommand(storagePoolId =
> 38a9ac9d-fe31-4003-8111-3ac741470b6e, ignoreFailoverLimit = false,
> compatabilityVersion = null, storageDomainId =
> b9c2cf06-73ea-4dd4-900b-3af322ab223d, vmIdList = null), log id: 65b1c9a8
> 2013-01-15 20:21:06,013 INFO
> [org.ovirt.engine.core.vdsbroker.irsbroker.GetVmsInfoVDSCommand]
> (ajp--0.0.0.0-8009-16) FINISH, GetVmsInfoVDSCommand, log id: 65b1c9a8
> 2013-01-15 20:21:06,036 INFO
> [org.ovirt.engine.core.vdsbroker.irsbroker.GetVmsInfoVDSCommand]
> (ajp--0.0.0.0-8009-11) START, GetVmsInfoVDSCommand(storagePoolId =
> 38a9ac9d-fe31-4003-8111-3ac741470b6e, ignoreFailoverLimit = false,
> compatabilityVersion = null, storageDomainId =
> b9c2cf06-73ea-4dd4-900b-3af322ab223d, vmIdList = null), log id: 7b0bc172
> 2013-01-15 20:21:06,085 INFO
> [org.ovirt.engine.core.vdsbroker.irsbroker.GetVmsInfoVDSCommand]
> (ajp--0.0.0.0-8009-11) FINISH, GetVmsInfoVDSCommand, log id: 7b0bc172
> 2013-01-15 20:21:06,928 INFO
> [org.ovirt.engine.core.vdsbroker.irsbroker.GetImageDomainsListVDSCommand] (ajp--0.0.0.0-8009-11)
> START, GetImageDomainsListVDSCommand(storagePoolId =
> 38a9ac9d-fe31-4003-8111-3ac741470b6e, ignoreFailoverLimit = false,
> compatabilityVersion = null, imageGroupId =
> 8d41be6c-a586-4bb6-be4b-f1241a4bf088), log id: 79952c27
> 2013-01-15 20:21:06,951 INFO
> [org.ovirt.engine.core.vdsbroker.irsbroker.GetImageDomainsListVDSCommand] (ajp--0.0.0.0-8009-11)
> FINISH, GetImageDomainsListVDSCommand, return: [], log id: 79952c27
> 2013-01-15 20:21:06,954 INFO
> [org.ovirt.engine.core.vdsbroker.irsbroker.DoesImageExistVDSCommand]
> (ajp--0.0.0.0-8009-11) START, DoesImageExistVDSCommand(storagePoolId =
> 38a9ac9d-fe31-4003-8111-3ac741470b6e, ignoreFailoverLimit = false,
> compatabilityVersion = null, storageDomainId =
> b9c2cf06-73ea-4dd4-900b-3af322ab223d, imageGroupId =
> 8d41be6c-a586-4bb6-be4b-f1241a4bf088, imageId =
> a4782145-626c-4a6e-9e1e-fce5f1dd8f78), log id: 3085f2cd
> 2013-01-15 20:21:06,993 INFO
> [org.ovirt.engine.core.vdsbroker.irsbroker.DoesImageExistVDSCommand]
> (ajp--0.0.0.0-8009-11) FINISH, DoesImageExistVDSCommand, return: true,
> log id: 3085f2cd
> 2013-01-15 20:21:07,039 INFO
> [org.ovirt.engine.core.bll.ImportVmCommand] (pool-3-thread-48) [8991b34]
> Running command: ImportVmCommand internal: false. Entities affected :
> ID: b756284f-06f9-44cd-ba45-6cac3486fe37 Type: Storage
> 2013-01-15 20:21:07,040 ERROR
> [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
> (pool-3-thread-48) [8991b34] Try to add duplicate values with same name.
> Type: UNASSIGNED. Value: vmname
> 2013-01-15 20:21:07,045 ERROR
> [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
> (pool-3-thread-48) [8991b34] Try to add duplicate values with same name.
> Type: UNASSIGNED. Value: vmname
> 2013-01-15 20:21:07,049 INFO
> [org.ovirt.engine.core.utils.transaction.TransactionSupport]
> (pool-3-thread-48) [8991b34] transaction rolled back
> 2013-01-15 20:21:07,050 ERROR
> [org.ovirt.engine.core.bll.ImportVmCommand] (pool-3-thread-48) [8991b34]
> Command org.ovirt.engine.core.bll.ImportVmCommand throw exception:
> java.lang.StringIndexOutOfBoundsException: String index out of range: 6
>      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]
>
> 2013-01-15 20:21:07,232 INFO
> [org.ovirt.engine.core.vdsbroker.irsbroker.GetVmsInfoVDSCommand]
> (ajp--0.0.0.0-8009-14) START, GetVmsInfoVDSCommand(storagePoolId =
> 38a9ac9d-fe31-4003-8111-3ac741470b6e, ignoreFailoverLimit = false,
> compatabilityVersion = null, storageDomainId =
> b9c2cf06-73ea-4dd4-900b-3af322ab223d, vmIdList = null), log id: 44689362
> 2013-01-15 20:21:07,284 INFO
> [org.ovirt.engine.core.vdsbroker.irsbroker.GetVmsInfoVDSCommand]
> (ajp--0.0.0.0-8009-14) FINISH, GetVmsInfoVDSCommand, log id: 44689362
>
>
> above only as I was somehow able to convince it, that it was a export
> domain ...
>
>
> question really is - how can i re-attach the Storage domain ?? Ideally
> w/o having to re-import the VMs ... although i'd accept it as a work
> around - however - re-creating is out of question, it'll take me 3 days
> ( and my job ) ...
>
> Alex
>
>
>
> --
>
> | RHCE | Senior Systems Engineer | www.vcore.co <http://www.vcore.co> |
> www.vsearchcloud.com <http://www.vsearchcloud.com> |
>
>
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>

easiest to check this if you can add the OVF causing the issue




More information about the Users mailing list