cloudstack-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jake G." <dj_dark_jungl...@yahoo.com>
Subject Re: CS 4.2 Instance stuck Expunging
Date Wed, 20 Nov 2013 05:59:37 GMT
OK since no one would lend their helping hand, I had to hack the shizz out of the database.
After backing up the cloud database, I setup phpmyadmin to search for the stuck instance
id and attached volume ids and change all the table values to match up with other successfully
expunged instances and volumes. Note: The instance config files nor the volumes existed in
any datastore. Seems like CS manager just didn't update the database correctly after deleting
everything.





On Wednesday, November 20, 2013 10:35 AM, Jake G. <dj_dark_junglist@yahoo.com> wrote:
 
Bump for love! 



On Tuesday, November 19, 2013 11:53 AM, Jake G. <dj_dark_junglist@yahoo.com> wrote:

Hi All,

Using CS 4.2 on Centos 6.4 with KVM hosts.

I created a Windows 2008 Instance to make a template with. After making the template I tried
destory the instaces but it has been stuck on expunging for over a day. My global settings
are set to expunge after 10 mins. 


I would appropriate any help very much.

Here is the log entries for this issue:
2013-11-19 20:38:44,737 INFO  [cloud.vm.UserVmManagerImpl] (UserVm-Scavenger-1:null) Found
1 vms to expunge.
2013-11-19 20:38:44,738 DEBUG [cloud.vm.VirtualMachineManagerImpl] (UserVm-Scavenger-1:null)
Stopped called on VM[User|win2008-web03] but the state is Expunging
2013-11-19 20:38:44,845 DEBUG [cloud.capacity.CapacityManagerImpl] (UserVm-Scavenger-1:null)
VM state transitted from :Expunging to Expunging with event: ExpungeOp
erationvm's original host id: 4 new host id: null host id before state transition: null
2013-11-19 20:38:44,845 DEBUG [cloud.vm.VirtualMachineManagerImpl] (UserVm-Scavenger-1:null)
Destroying vm VM[User|win2008-web03]
2013-11-19 20:38:44,845 DEBUG [cloud.vm.VirtualMachineManagerImpl] (UserVm-Scavenger-1:null)
Cleaning up NICS
2013-11-19 20:38:44,846 DEBUG [cloud.network.NetworkManagerImpl] (UserVm-Scavenger-1:null)
Cleaning network for vm: 40
2013-11-19 20:38:44,849 DEBUG [cloud.storage.VolumeManagerImpl] (UserVm-Scavenger-1:null)
Cleaning storage for vm: 40
2013-11-19 20:38:44,854 DEBUG [storage.volume.VolumeObject] (UserVm-Scavenger-1:null) Failed
to transit volume: 56, due to: com.cloud.utils.fsm.NoTransitionExcepti
on: Unable to transition to a new state from Migrating via DestroyRequested
2013-11-19 20:38:44,854 DEBUG [storage.volume.VolumeObject] (UserVm-Scavenger-1:null) Failed
to update state
com.cloud.utils.exception.CloudRuntimeException: Failed to transit volume: 56, due to: com.cloud.utils.fsm.NoTransitionException:
Unable to transition to a new sta
te from Migrating via DestroyRequested
        at org.apache.cloudstack.storage.volume.VolumeObject.stateTransit(VolumeObject.java:158)
        at org.apache.cloudstack.storage.volume.VolumeObject.processEvent(VolumeObject.java:288)
        at org.apache.cloudstack.storage.volume.VolumeServiceImpl.destroyVolume(VolumeServiceImpl.java:582)
        at com.cloud.storage.VolumeManagerImpl.cleanupVolumes(VolumeManagerImpl.java:2145)
        at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
        at com.cloud.vm.VirtualMachineManagerImpl.advanceExpunge(VirtualMachineManagerImpl.java:479)
        at com.cloud.vm.UserVmManagerImpl.expunge(UserVmManagerImpl.java:1600)
        at com.cloud.vm.UserVmManagerImpl$ExpungeTask.run(UserVmManagerImpl.java:1769)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
        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:744)
2013-11-19 20:38:44,855 DEBUG [db.Transaction.Transaction] (UserVm-Scavenger-1:null) Rolling
back the transaction: Time = 4 Name =  cleanupVolumes; called by -Tran
saction.rollback:898-Transaction.removeUpTo:841-Transaction.close:665-TransactionContextBuilder.interceptException:63-ComponentInstantiationPostProcessor$Intercept
orDispatcher.intercept:133-VirtualMachineManagerImpl.advanceExpunge:479-UserVmManagerImpl.expunge:1600-UserVmManagerImpl$ExpungeTask.run:1769-Executors$RunnableAda
pter.call:471-FutureTask.runAndReset:304-ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301:178-ScheduledThreadPoolExecutor$ScheduledFutureTask.run:293
2013-11-19 20:38:44,855 WARN  [cloud.vm.UserVmManagerImpl] (UserVm-Scavenger-1:null) Unable
to expunge VM[User|win2008-web03]
com.cloud.utils.exception.CloudRuntimeException: Failed to update state:com.cloud.utils.exception.CloudRuntimeException:
Failed to transit volume: 56, due to: com.
cloud.utils.fsm.NoTransitionException: Unable to transition to a new state from Migrating
via DestroyRequested
        at org.apache.cloudstack.storage.volume.VolumeObject.processEvent(VolumeObject.java:291)
        at org.apache.cloudstack.storage.volume.VolumeServiceImpl.destroyVolume(VolumeServiceImpl.java:582)
        at com.cloud.storage.VolumeManagerImpl.cleanupVolumes(VolumeManagerImpl.java:2145)
        at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
        at com.cloud.vm.VirtualMachineManagerImpl.advanceExpunge(VirtualMachineManagerImpl.java:479)
        at com.cloud.vm.UserVmManagerImpl.expunge(UserVmManagerImpl.java:1600)
        at com.cloud.vm.UserVmManagerImpl$ExpungeTask.run(UserVmManagerImpl.java:1769)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
        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:744)
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message