cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nguyen Anh Tu <ng.t...@gmail.com>
Subject Re: [GSoC] Unable create systemvm
Date Mon, 29 Jul 2013 10:41:02 GMT
Got it. Because I have 2 vhd files in secondary/template/1/1 so vhd-util
catch both of them. So copy_vhd_from_secondarystorage script throws error


2013/7/29 Nguyen Anh Tu <ng.tuna@gmail.com>

> I debug and get error starting from here:
>
> protected void createBaseImageAsync(VolumeInfo volume, PrimaryDataStore
> dataStore, TemplateInfo template,
>             AsyncCallFuture<VolumeApiResult> future) {
> ...
> *motionSrv.copyAsync(template, templateOnPrimaryStoreObj, caller);*
> ...
> }
>
>
> Exeption here:
>
> WARN  [xen.resource.CitrixResourceBase] (DirectAgent-37:)
> kill_copy_process failed
> WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-37:) can not
> create vdi in sr a36311b4-ff2c-141a-4191-047c9c3a2c48
> WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-37:) Catch
> Exception com.cloud.utils.exception.CloudRuntimeException for template +
>  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi
> in sr a36311b4-ff2c-141a-4191-047c9c3a2c48
> com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr
> a36311b4-ff2c-141a-4191-047c9c3a2c48
> at
> com.cloud.hypervisor.xen.resource.XenServerStorageProcessor.copy_vhd_from_secondarystorage(XenServerStorageProcessor.java:792)
>  at
> com.cloud.hypervisor.xen.resource.XenServerStorageProcessor.copyTemplateToPrimaryStorage(XenServerStorageProcessor.java:863)
> at
> com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(StorageSubsystemCommandHandlerBase.java:70)
>  at
> com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStorageCommands(StorageSubsystemCommandHandlerBase.java:49)
> at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:625)
>  at
> com.cloud.hypervisor.xen.resource.XcpServerResource.executeRequest(XcpServerResource.java:53)
> at
> com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)
>  at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>  at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
>  at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>  at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:722)
>
> Any idea?
>
>
> 2013/7/29 Nguyen Anh Tu <ng.tuna@gmail.com>
>
>> Hi guys,
>>
>> I re-deploy ACS (sdnextensions branch, same same with 4.1 I think) with
>> XCP 1.6 and get an error on create systemvm. I also re-copy vhd-util to
>> Host (/opt/xensource/bin/) but still error. Log here:
>>
>> INFO  [cloud.secstorage.PremiumSecondaryStorageManagerImpl]
>> (secstorage-1:) No running secondary storage vms found in datacenter id=1,
>> starting one
>> INFO  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:) No
>> stopped secondary storage vm is available, need to allocate a new secondary
>> storage vm
>> INFO  [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:) No
>> stopped console proxy is available, need to allocate a new console proxy
>> WARN  [xen.resource.CitrixResourceBase] (DirectAgent-8:)
>> kill_copy_process failed
>> WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-8:) can not
>> create vdi in sr 1e7b078a-322e-8d95-f712-eed1dc824aa8
>> WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-8:) Catch
>> Exception com.cloud.utils.exception.CloudRuntimeException for template +
>>  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi
>> in sr 1e7b078a-322e-8d95-f712-eed1dc824aa8
>> com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr
>> 1e7b078a-322e-8d95-f712-eed1dc824aa8
>> at
>> com.cloud.hypervisor.xen.resource.XenServerStorageProcessor.copy_vhd_from_secondarystorage(XenServerStorageProcessor.java:792)
>>  at
>> com.cloud.hypervisor.xen.resource.XenServerStorageProcessor.copyTemplateToPrimaryStorage(XenServerStorageProcessor.java:863)
>> at
>> com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(StorageSubsystemCommandHandlerBase.java:70)
>>  at
>> com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStorageCommands(StorageSubsystemCommandHandlerBase.java:49)
>> at
>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:625)
>>  at
>> com.cloud.hypervisor.xen.resource.XcpServerResource.executeRequest(XcpServerResource.java:53)
>> at
>> com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)
>>  at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>>  at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>> at
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
>>  at
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>  at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>> at java.lang.Thread.run(Thread.java:722)
>> INFO  [cloud.vm.VirtualMachineManagerImpl] (secstorage-1:) Unable to
>> contact resource.
>> com.cloud.exception.StorageUnavailableException: Resource [StoragePool:1]
>> is unreachable: Unable to create Vol[3|vm=3|ROOT]:Catch Exception
>> com.cloud.utils.exception.CloudRuntimeException for template +  due to
>> com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr
>> 1e7b078a-322e-8d95-f712-eed1dc824aa8
>>  at
>> com.cloud.storage.VolumeManagerImpl.recreateVolume(VolumeManagerImpl.java:2490)
>> at
>> com.cloud.storage.VolumeManagerImpl.prepare(VolumeManagerImpl.java:2539)
>>  at
>> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:852)
>> at
>> com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:557)
>>  at
>> com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:550)
>> at
>> com.cloud.storage.secondary.SecondaryStorageManagerImpl.startSecStorageVm(SecondaryStorageManagerImpl.java:265)
>>  at
>> com.cloud.storage.secondary.SecondaryStorageManagerImpl.allocCapacity(SecondaryStorageManagerImpl.java:690)
>> at
>> com.cloud.storage.secondary.SecondaryStorageManagerImpl.expandPool(SecondaryStorageManagerImpl.java:1297)
>>  at
>> com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:123)
>> at
>> com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:50)
>>  at
>> com.cloud.vm.SystemVmLoadScanner.loadScan(SystemVmLoadScanner.java:104)
>> at
>> com.cloud.vm.SystemVmLoadScanner.access$100(SystemVmLoadScanner.java:33)
>>  at
>> com.cloud.vm.SystemVmLoadScanner$1.reallyRun(SystemVmLoadScanner.java:81)
>> at com.cloud.vm.SystemVmLoadScanner$1.run(SystemVmLoadScanner.java:72)
>>  at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>> at
>> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
>>  at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
>> at
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
>>  at
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>  at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>> at java.lang.Thread.run(Thread.java:722)
>> INFO  [xen.resource.CitrixResourceBase] (DirectAgent-6:) VM does not
>> exist on XenServerf14ead94-e025-4529-aa17-c3024af5647d
>> ERROR [network.element.SspElement] (secstorage-1:) ReservationContext was
>> null for NicProfile[9-3-null-null-null Ntwk[202|Control|3]
>> ERROR [network.element.SspElement] (secstorage-1:) ReservationContext was
>> null for NicProfile[10-3-null-null-null Ntwk[201|Management|2]
>> ERROR [network.element.SspElement] (secstorage-1:) ReservationContext was
>> null for NicProfile[11-3-null-null-null Ntwk[203|Storage|4]
>> WARN  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:)
>> Exception while trying to start secondary storage vm
>> com.cloud.exception.InsufficientServerCapacityException: Unable to create
>> a deployment for VM[SecondaryStorageVm|s-3-VM]Scope=interface
>> com.cloud.dc.DataCenter; id=1
>>  at
>> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:820)
>> at
>> com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:557)
>>  at
>> com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:550)
>> at
>> com.cloud.storage.secondary.SecondaryStorageManagerImpl.startSecStorageVm(SecondaryStorageManagerImpl.java:265)
>>  at
>> com.cloud.storage.secondary.SecondaryStorageManagerImpl.allocCapacity(SecondaryStorageManagerImpl.java:690)
>> at
>> com.cloud.storage.secondary.SecondaryStorageManagerImpl.expandPool(SecondaryStorageManagerImpl.java:1297)
>>  at
>> com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:123)
>> at
>> com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:50)
>>  at
>> com.cloud.vm.SystemVmLoadScanner.loadScan(SystemVmLoadScanner.java:104)
>> at
>> com.cloud.vm.SystemVmLoadScanner.access$100(SystemVmLoadScanner.java:33)
>>  at
>> com.cloud.vm.SystemVmLoadScanner$1.reallyRun(SystemVmLoadScanner.java:81)
>> at com.cloud.vm.SystemVmLoadScanner$1.run(SystemVmLoadScanner.java:72)
>>  at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>> at
>> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
>>  at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
>> at
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
>>  at
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>  at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>> at java.lang.Thread.run(Thread.java:722)
>> INFO  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:)
>> Unable to start secondary storage vm for standby capacity, secStorageVm vm
>> Id : 3, will recycle it and start a new one
>> INFO  [cloud.secstorage.PremiumSecondaryStorageManagerImpl]
>> (secstorage-1:) Primary secondary storage is not even started, wait until
>> next turn
>> WARN  [xen.resource.CitrixResourceBase] (DirectAgent-1:)
>> kill_copy_process failed
>> WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-1:) can not
>> create vdi in sr 1e7b078a-322e-8d95-f712-eed1dc824aa8
>> WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-1:) Catch
>> Exception com.cloud.utils.exception.CloudRuntimeException for template +
>>  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi
>> in sr 1e7b078a-322e-8d95-f712-eed1dc824aa8
>> com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr
>> 1e7b078a-322e-8d95-f712-eed1dc824aa8
>> at
>> com.cloud.hypervisor.xen.resource.XenServerStorageProcessor.copy_vhd_from_secondarystorage(XenServerStorageProcessor.java:792)
>>  at
>> com.cloud.hypervisor.xen.resource.XenServerStorageProcessor.copyTemplateToPrimaryStorage(XenServerStorageProcessor.java:863)
>> at
>> com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(StorageSubsystemCommandHandlerBase.java:70)
>>  at
>> com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStorageCommands(StorageSubsystemCommandHandlerBase.java:49)
>> at
>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:625)
>>  at
>> com.cloud.hypervisor.xen.resource.XcpServerResource.executeRequest(XcpServerResource.java:53)
>> at
>> com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)
>>  at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>>  at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>> at
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
>>  at
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>  at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>> at java.lang.Thread.run(Thread.java:722)
>> INFO  [cloud.vm.VirtualMachineManagerImpl] (consoleproxy-1:) Unable to
>> contact resource.
>> com.cloud.exception.StorageUnavailableException: Resource [StoragePool:1]
>> is unreachable: Unable to create Vol[4|vm=4|ROOT]:Catch Exception
>> com.cloud.utils.exception.CloudRuntimeException for template +  due to
>> com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr
>> 1e7b078a-322e-8d95-f712-eed1dc824aa8
>>  at
>> com.cloud.storage.VolumeManagerImpl.recreateVolume(VolumeManagerImpl.java:2490)
>> at
>> com.cloud.storage.VolumeManagerImpl.prepare(VolumeManagerImpl.java:2539)
>>  at
>> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:852)
>> at
>> com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:557)
>>  at
>> com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:550)
>> at
>> com.cloud.consoleproxy.ConsoleProxyManagerImpl.startProxy(ConsoleProxyManagerImpl.java:556)
>>  at
>> com.cloud.consoleproxy.ConsoleProxyManagerImpl.allocCapacity(ConsoleProxyManagerImpl.java:927)
>> at
>> com.cloud.consoleproxy.ConsoleProxyManagerImpl.expandPool(ConsoleProxyManagerImpl.java:1664)
>>  at
>> com.cloud.consoleproxy.ConsoleProxyManagerImpl.expandPool(ConsoleProxyManagerImpl.java:157)
>> at com.cloud.vm.SystemVmLoadScanner.loadScan(SystemVmLoadScanner.java:111)
>>  at
>> com.cloud.vm.SystemVmLoadScanner.access$100(SystemVmLoadScanner.java:33)
>> at
>> com.cloud.vm.SystemVmLoadScanner$1.reallyRun(SystemVmLoadScanner.java:81)
>>  at com.cloud.vm.SystemVmLoadScanner$1.run(SystemVmLoadScanner.java:72)
>> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>  at
>> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
>> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
>>  at
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
>> at
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
>>  at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>  at java.lang.Thread.run(Thread.java:722)
>>
>> Anyone can help?
>>
>> --
>>
>> N.g.U.y.e.N.A.n.H.t.U
>>
>
>
>
> --
>
> N.g.U.y.e.N.A.n.H.t.U
>



-- 

N.g.U.y.e.N.A.n.H.t.U

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message