You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by TommyBW <cl...@altanovabw.com> on 2014/03/10 18:18:14 UTC

Re: SSVM Not coming up

Hi All, 

Did an installation of CS4.2.1 on Xenserver 6.2 SP1 

Haveing a bit of a problem getting the SSVMs to start. Please see logs below : 

10 19:12:05,871 WARN  [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null) Exception while trying to start console proxy
com.cloud.exception.AgentUnavailableException: Resource [Host:2] is unreachable: Host 2: Unable to start instance due to null
Caused by: java.lang.NullPointerException
2014-03-10 19:12:32,887 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-9:null) destoryVDIbyNameLabel failed due to there are 0 VDIs with name cloud-d8bffd1d-a9c6-4100-8851-0ef754c18796
2014-03-10 19:12:32,888 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-9:null) can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:12:32,888 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-9:null) Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:12:32,889 DEBUG [agent.transport.Request] (DirectAgent-9:null) Seq 2-1529413662: Processing:  { Ans: , MgmtId: 345049202885, via: 2, Ver: v1, Flags: 110, [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd","wait":0}}] }
2014-03-10 19:12:32,922 WARN  [utils.db.Merovingian2] (secstorage-1:null) Was unable to find lock for the key template_spool_ref9 and thread id 1333371531
2014-03-10 19:12:32,922 DEBUG [cloud.storage.VolumeManagerImpl] (secstorage-1:null) Unable to create Vol[71|vm=71|ROOT]:Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:12:32,922 INFO  [cloud.vm.VirtualMachineManagerImpl] (secstorage-1:null) Unable to contact resource.
com.cloud.exception.StorageUnavailableException: Resource [StoragePool:1] is unreachable: Unable to create Vol[71|vm=71|ROOT]:Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:12:33,092 DEBUG [cloud.capacity.CapacityManagerImpl] (secstorage-1:null) VM state transitted from :Starting to Stopped with event: OperationFailedvm's original host id: null new host id: null host id before state transition: 1
2014-03-10 19:12:33,102 WARN  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Exception while trying to start secondary storage vm
com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment for VM[SecondaryStorageVm|s-71-VM]Scope=interface com.cloud.dc.DataCenter; id=1
2014-03-10 19:12:33,104 INFO  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Unable to start secondary storage vm for standby capacity, secStorageVm vm Id : 71, will recycle it and start a new one
2014-03-10 19:12:35,797 INFO  [storage.volume.VolumeServiceImpl] (consoleproxy-1:null) Unable to acquire lock on VMTemplateStoragePool 9
2014-03-10 19:12:35,798 ERROR [cloud.vm.VirtualMachineManagerImpl] (consoleproxy-1:null) Failed to start instance VM[ConsoleProxy|v-2-VM]
java.lang.NullPointerException
2014-03-10 19:12:35,923 DEBUG [cloud.capacity.CapacityManagerImpl] (consoleproxy-1:null) VM state transitted from :Starting to Stopped with event: OperationFailedvm's original host id: null new host id: null host id before state transition: 1
2014-03-10 19:12:35,934 WARN  [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null) Exception while trying to start console proxy
com.cloud.exception.AgentUnavailableException: Resource [Host:1] is unreachable: Host 1: Unable to start instance due to null
Caused by: java.lang.NullPointerException
2014-03-10 19:13:02,809 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-84:null) destoryVDIbyNameLabel failed due to there are 0 VDIs with name cloud-844432b3-e616-415e-971e-90e85f5b0fd4
2014-03-10 19:13:02,810 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-84:null) can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:13:02,810 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-84:null) Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:13:02,811 DEBUG [agent.transport.Request] (DirectAgent-84:null) Seq 1-661585950: Processing:  { Ans: , MgmtId: 345049202885, via: 1, Ver: v1, Flags: 110, [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd","wait":0}}] }
2014-03-10 19:13:02,820 WARN  [utils.db.Merovingian2] (consoleproxy-1:null) Was unable to find lock for the key template_spool_ref10 and thread id 1811670971
2014-03-10 19:13:02,821 DEBUG [cloud.storage.VolumeManagerImpl] (consoleproxy-1:null) Unable to create Vol[2|vm=2|ROOT]:Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:13:02,821 INFO  [cloud.vm.VirtualMachineManagerImpl] (consoleproxy-1:null) Unable to contact resource.
com.cloud.exception.StorageUnavailableException: Resource [StoragePool:1] is unreachable: Unable to create Vol[2|vm=2|ROOT]:Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:13:02,971 DEBUG [cloud.capacity.CapacityManagerImpl] (consoleproxy-1:null) VM state transitted from :Starting to Stopped with event: OperationFailedvm's original host id: null new host id: null host id before state transition: 2
2014-03-10 19:13:02,982 WARN  [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null) Exception while trying to start console proxy
com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment for VM[ConsoleProxy|v-2-VM]Scope=interface com.cloud.dc.DataCenter; id=1
2014-03-10 19:13:05,679 INFO  [storage.volume.VolumeServiceImpl] (secstorage-1:null) Unable to acquire lock on VMTemplateStoragePool 10
2014-03-10 19:13:05,680 ERROR [cloud.vm.VirtualMachineManagerImpl] (secstorage-1:null) Failed to start instance VM[SecondaryStorageVm|s-71-VM]
java.lang.NullPointerException
2014-03-10 19:13:05,821 DEBUG [cloud.capacity.CapacityManagerImpl] (secstorage-1:null) VM state transitted from :Starting to Stopped with event: OperationFailedvm's original host id: null new host id: null host id before state transition: 1
2014-03-10 19:13:05,832 WARN  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Exception while trying to start secondary storage vm
com.cloud.exception.AgentUnavailableException: Resource [Host:1] is unreachable: Host 1: Unable to start instance due to null
Caused by: java.lang.NullPointerException
2014-03-10 19:13:05,833 INFO  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Unable to start secondary storage vm for standby capacity, secStorageVm vm Id : 71, will recycle it and start a new one
2014-03-10 19:13:32,952 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-37:null) destoryVDIbyNameLabel failed due to there are 0 VDIs with name cloud-36e78833-1d14-4db8-9e26-b0e975ca3bf3
2014-03-10 19:13:32,952 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-37:null) can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:13:32,952 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-37:null) Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:13:32,954 DEBUG [agent.transport.Request] (DirectAgent-37:null) Seq 1-661585952: Processing:  { Ans: , MgmtId: 345049202885, via: 1, Ver: v1, Flags: 110, [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd","wait":0}}] }
2014-03-10 19:13:32,964 WARN  [utils.db.Merovingian2] (consoleproxy-1:null) Was unable to find lock for the key template_spool_ref11 and thread id 1811670971
2014-03-10 19:13:32,964 DEBUG [cloud.storage.VolumeManagerImpl] (consoleproxy-1:null) Unable to create Vol[2|vm=2|ROOT]:Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:13:32,965 INFO  [cloud.vm.VirtualMachineManagerImpl] (consoleproxy-1:null) Unable to contact resource.
com.cloud.exception.StorageUnavailableException: Resource [StoragePool:1] is unreachable: Unable to create Vol[2|vm=2|ROOT]:Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:13:33,133 DEBUG [cloud.capacity.CapacityManagerImpl] (consoleproxy-1:null) VM state transitted from :Starting to Stopped with event: OperationFailedvm's original host id: null new host id: null host id before state transition: 1
2014-03-10 19:13:33,144 WARN  [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null) Exception while trying to start console proxy
com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment for VM[ConsoleProxy|v-2-VM]Scope=interface com.cloud.dc.DataCenter; id=1
2014-03-10 19:13:35,872 INFO  [storage.volume.VolumeServiceImpl] (secstorage-1:null) Unable to acquire lock on VMTemplateStoragePool 11
2014-03-10 19:13:35,873 ERROR [cloud.vm.VirtualMachineManagerImpl] (secstorage-1:null) Failed to start instance VM[SecondaryStorageVm|s-72-VM]
java.lang.NullPointerException
2014-03-10 19:13:35,981 DEBUG [cloud.capacity.CapacityManagerImpl] (secstorage-1:null) VM state transitted from :Starting to Stopped with event: OperationFailedvm's original host id: null new host id: null host id before state transition: 1
2014-03-10 19:13:35,987 WARN  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Exception while trying to start secondary storage vm
com.cloud.exception.AgentUnavailableException: Resource [Host:1] is unreachable: Host 1: Unable to start instance due to null
Caused by: java.lang.NullPointerException
2014-03-10 19:13:35,988 INFO  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Unable to start secondary storage vm for standby capacity, secStorageVm vm Id : 72, will recycle it and start a new one



I hope someone can give me some insight into what is wrong. 

Kind regards, 

Tommy

Re: SSVM Not coming up

Posted by TommyBW <cl...@altanovabw.com>.
Thank you very much.. that did the trick!! 

I copied everywhere except the /opt/cloud/bin/    directory. 

Thanks too all for your help :)

Kind regards, 

Tommy

----- Original Message -----
From: "Amin Samir" <am...@opencloud.net.au>
To: users@cloudstack.apache.org
Sent: Tuesday, March 11, 2014 5:37:39 AM
Subject: RE: SSVM Not coming up

Hello,
You need to put it in two locations & grant them scripting rights 
/opt/cloud/bin/
/opt/xensource/bin


Kind Regards
Amin Samir




-----Original Message-----
From: TommyBW [mailto:cloudstack@altanovabw.com] 
Sent: Tuesday, 11 March 2014 2:25 AM
To: users@cloudstack.apache.org
Subject: Re: SSVM Not coming up

Hi Suresh, 


That is what I thought so I copied it from the cloudstack manager. 

Perhaps I copied to wrong location. Can you give me the right path on xenserver 6.2 host ? 

Kind regards, 

TS 

----- Original Message -----
From: "Suresh Sadhu" <Su...@citrix.com>
To: users@cloudstack.apache.org
Sent: Monday, March 10, 2014 7:29:32 PM
Subject: RE: SSVM Not coming up

It seems vhd-util is missing in  xenserver host. 

Regards
Sadhu




-----Original Message-----
From: TommyBW [mailto:cloudstack@altanovabw.com] 
Sent: 10 March 2014 22:48
To: users@cloudstack.apache.org
Subject: Re: SSVM Not coming up

Hi All, 

Did an installation of CS4.2.1 on Xenserver 6.2 SP1 

Haveing a bit of a problem getting the SSVMs to start. Please see logs below : 

10 19:12:05,871 WARN  [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null) Exception while trying to start console proxy
com.cloud.exception.AgentUnavailableException: Resource [Host:2] is unreachable: Host 2: Unable to start instance due to null Caused by: java.lang.NullPointerException
2014-03-10 19:12:32,887 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-9:null) destoryVDIbyNameLabel failed due to there are 0 VDIs with name cloud-d8bffd1d-a9c6-4100-8851-0ef754c18796
2014-03-10 19:12:32,888 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-9:null) can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:12:32,888 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-9:null) Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:12:32,889 DEBUG [agent.transport.Request] (DirectAgent-9:null) Seq 2-1529413662: Processing:  { Ans: , MgmtId: 345049202885, via: 2, Ver: v1, Flags: 110, [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd","wait":0}}] }
2014-03-10 19:12:32,922 WARN  [utils.db.Merovingian2] (secstorage-1:null) Was unable to find lock for the key template_spool_ref9 and thread id 1333371531
2014-03-10 19:12:32,922 DEBUG [cloud.storage.VolumeManagerImpl] (secstorage-1:null) Unable to create Vol[71|vm=71|ROOT]:Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:12:32,922 INFO  [cloud.vm.VirtualMachineManagerImpl] (secstorage-1:null) Unable to contact resource.
com.cloud.exception.StorageUnavailableException: Resource [StoragePool:1] is unreachable: Unable to create Vol[71|vm=71|ROOT]:Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:12:33,092 DEBUG [cloud.capacity.CapacityManagerImpl] (secstorage-1:null) VM state transitted from :Starting to Stopped with event: OperationFailedvm's original host id: null new host id: null host id before state transition: 1
2014-03-10 19:12:33,102 WARN  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Exception while trying to start secondary storage vm
com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment for VM[SecondaryStorageVm|s-71-VM]Scope=interface com.cloud.dc.DataCenter; id=1
2014-03-10 19:12:33,104 INFO  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Unable to start secondary storage vm for standby capacity, secStorageVm vm Id : 71, will recycle it and start a new one
2014-03-10 19:12:35,797 INFO  [storage.volume.VolumeServiceImpl] (consoleproxy-1:null) Unable to acquire lock on VMTemplateStoragePool 9
2014-03-10 19:12:35,798 ERROR [cloud.vm.VirtualMachineManagerImpl] (consoleproxy-1:null) Failed to start instance VM[ConsoleProxy|v-2-VM] java.lang.NullPointerException
2014-03-10 19:12:35,923 DEBUG [cloud.capacity.CapacityManagerImpl] (consoleproxy-1:null) VM state transitted from :Starting to Stopped with event: OperationFailedvm's original host id: null new host id: null host id before state transition: 1
2014-03-10 19:12:35,934 WARN  [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null) Exception while trying to start console proxy
com.cloud.exception.AgentUnavailableException: Resource [Host:1] is unreachable: Host 1: Unable to start instance due to null Caused by: java.lang.NullPointerException
2014-03-10 19:13:02,809 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-84:null) destoryVDIbyNameLabel failed due to there are 0 VDIs with name cloud-844432b3-e616-415e-971e-90e85f5b0fd4
2014-03-10 19:13:02,810 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-84:null) can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:13:02,810 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-84:null) Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:13:02,811 DEBUG [agent.transport.Request] (DirectAgent-84:null) Seq 1-661585950: Processing:  { Ans: , MgmtId: 345049202885, via: 1, Ver: v1, Flags: 110, [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd","wait":0}}] }
2014-03-10 19:13:02,820 WARN  [utils.db.Merovingian2] (consoleproxy-1:null) Was unable to find lock for the key template_spool_ref10 and thread id 1811670971
2014-03-10 19:13:02,821 DEBUG [cloud.storage.VolumeManagerImpl] (consoleproxy-1:null) Unable to create Vol[2|vm=2|ROOT]:Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:13:02,821 INFO  [cloud.vm.VirtualMachineManagerImpl] (consoleproxy-1:null) Unable to contact resource.
com.cloud.exception.StorageUnavailableException: Resource [StoragePool:1] is unreachable: Unable to create Vol[2|vm=2|ROOT]:Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:13:02,971 DEBUG [cloud.capacity.CapacityManagerImpl] (consoleproxy-1:null) VM state transitted from :Starting to Stopped with event: OperationFailedvm's original host id: null new host id: null host id before state transition: 2
2014-03-10 19:13:02,982 WARN  [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null) Exception while trying to start console proxy
com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment for VM[ConsoleProxy|v-2-VM]Scope=interface com.cloud.dc.DataCenter; id=1
2014-03-10 19:13:05,679 INFO  [storage.volume.VolumeServiceImpl] (secstorage-1:null) Unable to acquire lock on VMTemplateStoragePool 10
2014-03-10 19:13:05,680 ERROR [cloud.vm.VirtualMachineManagerImpl] (secstorage-1:null) Failed to start instance VM[SecondaryStorageVm|s-71-VM] java.lang.NullPointerException
2014-03-10 19:13:05,821 DEBUG [cloud.capacity.CapacityManagerImpl] (secstorage-1:null) VM state transitted from :Starting to Stopped with event: OperationFailedvm's original host id: null new host id: null host id before state transition: 1
2014-03-10 19:13:05,832 WARN  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Exception while trying to start secondary storage vm
com.cloud.exception.AgentUnavailableException: Resource [Host:1] is unreachable: Host 1: Unable to start instance due to null Caused by: java.lang.NullPointerException
2014-03-10 19:13:05,833 INFO  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Unable to start secondary storage vm for standby capacity, secStorageVm vm Id : 71, will recycle it and start a new one
2014-03-10 19:13:32,952 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-37:null) destoryVDIbyNameLabel failed due to there are 0 VDIs with name cloud-36e78833-1d14-4db8-9e26-b0e975ca3bf3
2014-03-10 19:13:32,952 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-37:null) can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:13:32,952 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-37:null) Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:13:32,954 DEBUG [agent.transport.Request] (DirectAgent-37:null) Seq 1-661585952: Processing:  { Ans: , MgmtId: 345049202885, via: 1, Ver: v1, Flags: 110, [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd","wait":0}}] }
2014-03-10 19:13:32,964 WARN  [utils.db.Merovingian2] (consoleproxy-1:null) Was unable to find lock for the key template_spool_ref11 and thread id 1811670971
2014-03-10 19:13:32,964 DEBUG [cloud.storage.VolumeManagerImpl] (consoleproxy-1:null) Unable to create Vol[2|vm=2|ROOT]:Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:13:32,965 INFO  [cloud.vm.VirtualMachineManagerImpl] (consoleproxy-1:null) Unable to contact resource.
com.cloud.exception.StorageUnavailableException: Resource [StoragePool:1] is unreachable: Unable to create Vol[2|vm=2|ROOT]:Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:13:33,133 DEBUG [cloud.capacity.CapacityManagerImpl] (consoleproxy-1:null) VM state transitted from :Starting to Stopped with event: OperationFailedvm's original host id: null new host id: null host id before state transition: 1
2014-03-10 19:13:33,144 WARN  [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null) Exception while trying to start console proxy
com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment for VM[ConsoleProxy|v-2-VM]Scope=interface com.cloud.dc.DataCenter; id=1
2014-03-10 19:13:35,872 INFO  [storage.volume.VolumeServiceImpl] (secstorage-1:null) Unable to acquire lock on VMTemplateStoragePool 11
2014-03-10 19:13:35,873 ERROR [cloud.vm.VirtualMachineManagerImpl] (secstorage-1:null) Failed to start instance VM[SecondaryStorageVm|s-72-VM] java.lang.NullPointerException
2014-03-10 19:13:35,981 DEBUG [cloud.capacity.CapacityManagerImpl] (secstorage-1:null) VM state transitted from :Starting to Stopped with event: OperationFailedvm's original host id: null new host id: null host id before state transition: 1
2014-03-10 19:13:35,987 WARN  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Exception while trying to start secondary storage vm
com.cloud.exception.AgentUnavailableException: Resource [Host:1] is unreachable: Host 1: Unable to start instance due to null Caused by: java.lang.NullPointerException
2014-03-10 19:13:35,988 INFO  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Unable to start secondary storage vm for standby capacity, secStorageVm vm Id : 72, will recycle it and start a new one



I hope someone can give me some insight into what is wrong. 

Kind regards, 

Tommy



RE: SSVM Not coming up

Posted by Amin Samir <am...@opencloud.net.au>.
Hello,
You need to put it in two locations & grant them scripting rights 
/opt/cloud/bin/
/opt/xensource/bin


Kind Regards
Amin Samir




-----Original Message-----
From: TommyBW [mailto:cloudstack@altanovabw.com] 
Sent: Tuesday, 11 March 2014 2:25 AM
To: users@cloudstack.apache.org
Subject: Re: SSVM Not coming up

Hi Suresh, 


That is what I thought so I copied it from the cloudstack manager. 

Perhaps I copied to wrong location. Can you give me the right path on xenserver 6.2 host ? 

Kind regards, 

TS 

----- Original Message -----
From: "Suresh Sadhu" <Su...@citrix.com>
To: users@cloudstack.apache.org
Sent: Monday, March 10, 2014 7:29:32 PM
Subject: RE: SSVM Not coming up

It seems vhd-util is missing in  xenserver host. 

Regards
Sadhu




-----Original Message-----
From: TommyBW [mailto:cloudstack@altanovabw.com] 
Sent: 10 March 2014 22:48
To: users@cloudstack.apache.org
Subject: Re: SSVM Not coming up

Hi All, 

Did an installation of CS4.2.1 on Xenserver 6.2 SP1 

Haveing a bit of a problem getting the SSVMs to start. Please see logs below : 

10 19:12:05,871 WARN  [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null) Exception while trying to start console proxy
com.cloud.exception.AgentUnavailableException: Resource [Host:2] is unreachable: Host 2: Unable to start instance due to null Caused by: java.lang.NullPointerException
2014-03-10 19:12:32,887 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-9:null) destoryVDIbyNameLabel failed due to there are 0 VDIs with name cloud-d8bffd1d-a9c6-4100-8851-0ef754c18796
2014-03-10 19:12:32,888 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-9:null) can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:12:32,888 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-9:null) Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:12:32,889 DEBUG [agent.transport.Request] (DirectAgent-9:null) Seq 2-1529413662: Processing:  { Ans: , MgmtId: 345049202885, via: 2, Ver: v1, Flags: 110, [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd","wait":0}}] }
2014-03-10 19:12:32,922 WARN  [utils.db.Merovingian2] (secstorage-1:null) Was unable to find lock for the key template_spool_ref9 and thread id 1333371531
2014-03-10 19:12:32,922 DEBUG [cloud.storage.VolumeManagerImpl] (secstorage-1:null) Unable to create Vol[71|vm=71|ROOT]:Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:12:32,922 INFO  [cloud.vm.VirtualMachineManagerImpl] (secstorage-1:null) Unable to contact resource.
com.cloud.exception.StorageUnavailableException: Resource [StoragePool:1] is unreachable: Unable to create Vol[71|vm=71|ROOT]:Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:12:33,092 DEBUG [cloud.capacity.CapacityManagerImpl] (secstorage-1:null) VM state transitted from :Starting to Stopped with event: OperationFailedvm's original host id: null new host id: null host id before state transition: 1
2014-03-10 19:12:33,102 WARN  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Exception while trying to start secondary storage vm
com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment for VM[SecondaryStorageVm|s-71-VM]Scope=interface com.cloud.dc.DataCenter; id=1
2014-03-10 19:12:33,104 INFO  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Unable to start secondary storage vm for standby capacity, secStorageVm vm Id : 71, will recycle it and start a new one
2014-03-10 19:12:35,797 INFO  [storage.volume.VolumeServiceImpl] (consoleproxy-1:null) Unable to acquire lock on VMTemplateStoragePool 9
2014-03-10 19:12:35,798 ERROR [cloud.vm.VirtualMachineManagerImpl] (consoleproxy-1:null) Failed to start instance VM[ConsoleProxy|v-2-VM] java.lang.NullPointerException
2014-03-10 19:12:35,923 DEBUG [cloud.capacity.CapacityManagerImpl] (consoleproxy-1:null) VM state transitted from :Starting to Stopped with event: OperationFailedvm's original host id: null new host id: null host id before state transition: 1
2014-03-10 19:12:35,934 WARN  [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null) Exception while trying to start console proxy
com.cloud.exception.AgentUnavailableException: Resource [Host:1] is unreachable: Host 1: Unable to start instance due to null Caused by: java.lang.NullPointerException
2014-03-10 19:13:02,809 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-84:null) destoryVDIbyNameLabel failed due to there are 0 VDIs with name cloud-844432b3-e616-415e-971e-90e85f5b0fd4
2014-03-10 19:13:02,810 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-84:null) can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:13:02,810 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-84:null) Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:13:02,811 DEBUG [agent.transport.Request] (DirectAgent-84:null) Seq 1-661585950: Processing:  { Ans: , MgmtId: 345049202885, via: 1, Ver: v1, Flags: 110, [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd","wait":0}}] }
2014-03-10 19:13:02,820 WARN  [utils.db.Merovingian2] (consoleproxy-1:null) Was unable to find lock for the key template_spool_ref10 and thread id 1811670971
2014-03-10 19:13:02,821 DEBUG [cloud.storage.VolumeManagerImpl] (consoleproxy-1:null) Unable to create Vol[2|vm=2|ROOT]:Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:13:02,821 INFO  [cloud.vm.VirtualMachineManagerImpl] (consoleproxy-1:null) Unable to contact resource.
com.cloud.exception.StorageUnavailableException: Resource [StoragePool:1] is unreachable: Unable to create Vol[2|vm=2|ROOT]:Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:13:02,971 DEBUG [cloud.capacity.CapacityManagerImpl] (consoleproxy-1:null) VM state transitted from :Starting to Stopped with event: OperationFailedvm's original host id: null new host id: null host id before state transition: 2
2014-03-10 19:13:02,982 WARN  [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null) Exception while trying to start console proxy
com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment for VM[ConsoleProxy|v-2-VM]Scope=interface com.cloud.dc.DataCenter; id=1
2014-03-10 19:13:05,679 INFO  [storage.volume.VolumeServiceImpl] (secstorage-1:null) Unable to acquire lock on VMTemplateStoragePool 10
2014-03-10 19:13:05,680 ERROR [cloud.vm.VirtualMachineManagerImpl] (secstorage-1:null) Failed to start instance VM[SecondaryStorageVm|s-71-VM] java.lang.NullPointerException
2014-03-10 19:13:05,821 DEBUG [cloud.capacity.CapacityManagerImpl] (secstorage-1:null) VM state transitted from :Starting to Stopped with event: OperationFailedvm's original host id: null new host id: null host id before state transition: 1
2014-03-10 19:13:05,832 WARN  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Exception while trying to start secondary storage vm
com.cloud.exception.AgentUnavailableException: Resource [Host:1] is unreachable: Host 1: Unable to start instance due to null Caused by: java.lang.NullPointerException
2014-03-10 19:13:05,833 INFO  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Unable to start secondary storage vm for standby capacity, secStorageVm vm Id : 71, will recycle it and start a new one
2014-03-10 19:13:32,952 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-37:null) destoryVDIbyNameLabel failed due to there are 0 VDIs with name cloud-36e78833-1d14-4db8-9e26-b0e975ca3bf3
2014-03-10 19:13:32,952 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-37:null) can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:13:32,952 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-37:null) Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:13:32,954 DEBUG [agent.transport.Request] (DirectAgent-37:null) Seq 1-661585952: Processing:  { Ans: , MgmtId: 345049202885, via: 1, Ver: v1, Flags: 110, [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd","wait":0}}] }
2014-03-10 19:13:32,964 WARN  [utils.db.Merovingian2] (consoleproxy-1:null) Was unable to find lock for the key template_spool_ref11 and thread id 1811670971
2014-03-10 19:13:32,964 DEBUG [cloud.storage.VolumeManagerImpl] (consoleproxy-1:null) Unable to create Vol[2|vm=2|ROOT]:Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:13:32,965 INFO  [cloud.vm.VirtualMachineManagerImpl] (consoleproxy-1:null) Unable to contact resource.
com.cloud.exception.StorageUnavailableException: Resource [StoragePool:1] is unreachable: Unable to create Vol[2|vm=2|ROOT]:Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:13:33,133 DEBUG [cloud.capacity.CapacityManagerImpl] (consoleproxy-1:null) VM state transitted from :Starting to Stopped with event: OperationFailedvm's original host id: null new host id: null host id before state transition: 1
2014-03-10 19:13:33,144 WARN  [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null) Exception while trying to start console proxy
com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment for VM[ConsoleProxy|v-2-VM]Scope=interface com.cloud.dc.DataCenter; id=1
2014-03-10 19:13:35,872 INFO  [storage.volume.VolumeServiceImpl] (secstorage-1:null) Unable to acquire lock on VMTemplateStoragePool 11
2014-03-10 19:13:35,873 ERROR [cloud.vm.VirtualMachineManagerImpl] (secstorage-1:null) Failed to start instance VM[SecondaryStorageVm|s-72-VM] java.lang.NullPointerException
2014-03-10 19:13:35,981 DEBUG [cloud.capacity.CapacityManagerImpl] (secstorage-1:null) VM state transitted from :Starting to Stopped with event: OperationFailedvm's original host id: null new host id: null host id before state transition: 1
2014-03-10 19:13:35,987 WARN  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Exception while trying to start secondary storage vm
com.cloud.exception.AgentUnavailableException: Resource [Host:1] is unreachable: Host 1: Unable to start instance due to null Caused by: java.lang.NullPointerException
2014-03-10 19:13:35,988 INFO  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Unable to start secondary storage vm for standby capacity, secStorageVm vm Id : 72, will recycle it and start a new one



I hope someone can give me some insight into what is wrong. 

Kind regards, 

Tommy



Re: SSVM Not coming up

Posted by TommyBW <cl...@altanovabw.com>.
Hi Suresh, 


That is what I thought so I copied it from the cloudstack manager. 

Perhaps I copied to wrong location. Can you give me the right path on xenserver 6.2 host ? 

Kind regards, 

TS 

----- Original Message -----
From: "Suresh Sadhu" <Su...@citrix.com>
To: users@cloudstack.apache.org
Sent: Monday, March 10, 2014 7:29:32 PM
Subject: RE: SSVM Not coming up

It seems vhd-util is missing in  xenserver host. 

Regards
Sadhu




-----Original Message-----
From: TommyBW [mailto:cloudstack@altanovabw.com] 
Sent: 10 March 2014 22:48
To: users@cloudstack.apache.org
Subject: Re: SSVM Not coming up

Hi All, 

Did an installation of CS4.2.1 on Xenserver 6.2 SP1 

Haveing a bit of a problem getting the SSVMs to start. Please see logs below : 

10 19:12:05,871 WARN  [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null) Exception while trying to start console proxy
com.cloud.exception.AgentUnavailableException: Resource [Host:2] is unreachable: Host 2: Unable to start instance due to null Caused by: java.lang.NullPointerException
2014-03-10 19:12:32,887 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-9:null) destoryVDIbyNameLabel failed due to there are 0 VDIs with name cloud-d8bffd1d-a9c6-4100-8851-0ef754c18796
2014-03-10 19:12:32,888 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-9:null) can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:12:32,888 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-9:null) Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:12:32,889 DEBUG [agent.transport.Request] (DirectAgent-9:null) Seq 2-1529413662: Processing:  { Ans: , MgmtId: 345049202885, via: 2, Ver: v1, Flags: 110, [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd","wait":0}}] }
2014-03-10 19:12:32,922 WARN  [utils.db.Merovingian2] (secstorage-1:null) Was unable to find lock for the key template_spool_ref9 and thread id 1333371531
2014-03-10 19:12:32,922 DEBUG [cloud.storage.VolumeManagerImpl] (secstorage-1:null) Unable to create Vol[71|vm=71|ROOT]:Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:12:32,922 INFO  [cloud.vm.VirtualMachineManagerImpl] (secstorage-1:null) Unable to contact resource.
com.cloud.exception.StorageUnavailableException: Resource [StoragePool:1] is unreachable: Unable to create Vol[71|vm=71|ROOT]:Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:12:33,092 DEBUG [cloud.capacity.CapacityManagerImpl] (secstorage-1:null) VM state transitted from :Starting to Stopped with event: OperationFailedvm's original host id: null new host id: null host id before state transition: 1
2014-03-10 19:12:33,102 WARN  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Exception while trying to start secondary storage vm
com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment for VM[SecondaryStorageVm|s-71-VM]Scope=interface com.cloud.dc.DataCenter; id=1
2014-03-10 19:12:33,104 INFO  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Unable to start secondary storage vm for standby capacity, secStorageVm vm Id : 71, will recycle it and start a new one
2014-03-10 19:12:35,797 INFO  [storage.volume.VolumeServiceImpl] (consoleproxy-1:null) Unable to acquire lock on VMTemplateStoragePool 9
2014-03-10 19:12:35,798 ERROR [cloud.vm.VirtualMachineManagerImpl] (consoleproxy-1:null) Failed to start instance VM[ConsoleProxy|v-2-VM] java.lang.NullPointerException
2014-03-10 19:12:35,923 DEBUG [cloud.capacity.CapacityManagerImpl] (consoleproxy-1:null) VM state transitted from :Starting to Stopped with event: OperationFailedvm's original host id: null new host id: null host id before state transition: 1
2014-03-10 19:12:35,934 WARN  [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null) Exception while trying to start console proxy
com.cloud.exception.AgentUnavailableException: Resource [Host:1] is unreachable: Host 1: Unable to start instance due to null Caused by: java.lang.NullPointerException
2014-03-10 19:13:02,809 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-84:null) destoryVDIbyNameLabel failed due to there are 0 VDIs with name cloud-844432b3-e616-415e-971e-90e85f5b0fd4
2014-03-10 19:13:02,810 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-84:null) can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:13:02,810 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-84:null) Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:13:02,811 DEBUG [agent.transport.Request] (DirectAgent-84:null) Seq 1-661585950: Processing:  { Ans: , MgmtId: 345049202885, via: 1, Ver: v1, Flags: 110, [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd","wait":0}}] }
2014-03-10 19:13:02,820 WARN  [utils.db.Merovingian2] (consoleproxy-1:null) Was unable to find lock for the key template_spool_ref10 and thread id 1811670971
2014-03-10 19:13:02,821 DEBUG [cloud.storage.VolumeManagerImpl] (consoleproxy-1:null) Unable to create Vol[2|vm=2|ROOT]:Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:13:02,821 INFO  [cloud.vm.VirtualMachineManagerImpl] (consoleproxy-1:null) Unable to contact resource.
com.cloud.exception.StorageUnavailableException: Resource [StoragePool:1] is unreachable: Unable to create Vol[2|vm=2|ROOT]:Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:13:02,971 DEBUG [cloud.capacity.CapacityManagerImpl] (consoleproxy-1:null) VM state transitted from :Starting to Stopped with event: OperationFailedvm's original host id: null new host id: null host id before state transition: 2
2014-03-10 19:13:02,982 WARN  [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null) Exception while trying to start console proxy
com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment for VM[ConsoleProxy|v-2-VM]Scope=interface com.cloud.dc.DataCenter; id=1
2014-03-10 19:13:05,679 INFO  [storage.volume.VolumeServiceImpl] (secstorage-1:null) Unable to acquire lock on VMTemplateStoragePool 10
2014-03-10 19:13:05,680 ERROR [cloud.vm.VirtualMachineManagerImpl] (secstorage-1:null) Failed to start instance VM[SecondaryStorageVm|s-71-VM] java.lang.NullPointerException
2014-03-10 19:13:05,821 DEBUG [cloud.capacity.CapacityManagerImpl] (secstorage-1:null) VM state transitted from :Starting to Stopped with event: OperationFailedvm's original host id: null new host id: null host id before state transition: 1
2014-03-10 19:13:05,832 WARN  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Exception while trying to start secondary storage vm
com.cloud.exception.AgentUnavailableException: Resource [Host:1] is unreachable: Host 1: Unable to start instance due to null Caused by: java.lang.NullPointerException
2014-03-10 19:13:05,833 INFO  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Unable to start secondary storage vm for standby capacity, secStorageVm vm Id : 71, will recycle it and start a new one
2014-03-10 19:13:32,952 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-37:null) destoryVDIbyNameLabel failed due to there are 0 VDIs with name cloud-36e78833-1d14-4db8-9e26-b0e975ca3bf3
2014-03-10 19:13:32,952 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-37:null) can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:13:32,952 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-37:null) Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:13:32,954 DEBUG [agent.transport.Request] (DirectAgent-37:null) Seq 1-661585952: Processing:  { Ans: , MgmtId: 345049202885, via: 1, Ver: v1, Flags: 110, [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd","wait":0}}] }
2014-03-10 19:13:32,964 WARN  [utils.db.Merovingian2] (consoleproxy-1:null) Was unable to find lock for the key template_spool_ref11 and thread id 1811670971
2014-03-10 19:13:32,964 DEBUG [cloud.storage.VolumeManagerImpl] (consoleproxy-1:null) Unable to create Vol[2|vm=2|ROOT]:Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:13:32,965 INFO  [cloud.vm.VirtualMachineManagerImpl] (consoleproxy-1:null) Unable to contact resource.
com.cloud.exception.StorageUnavailableException: Resource [StoragePool:1] is unreachable: Unable to create Vol[2|vm=2|ROOT]:Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:13:33,133 DEBUG [cloud.capacity.CapacityManagerImpl] (consoleproxy-1:null) VM state transitted from :Starting to Stopped with event: OperationFailedvm's original host id: null new host id: null host id before state transition: 1
2014-03-10 19:13:33,144 WARN  [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null) Exception while trying to start console proxy
com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment for VM[ConsoleProxy|v-2-VM]Scope=interface com.cloud.dc.DataCenter; id=1
2014-03-10 19:13:35,872 INFO  [storage.volume.VolumeServiceImpl] (secstorage-1:null) Unable to acquire lock on VMTemplateStoragePool 11
2014-03-10 19:13:35,873 ERROR [cloud.vm.VirtualMachineManagerImpl] (secstorage-1:null) Failed to start instance VM[SecondaryStorageVm|s-72-VM] java.lang.NullPointerException
2014-03-10 19:13:35,981 DEBUG [cloud.capacity.CapacityManagerImpl] (secstorage-1:null) VM state transitted from :Starting to Stopped with event: OperationFailedvm's original host id: null new host id: null host id before state transition: 1
2014-03-10 19:13:35,987 WARN  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Exception while trying to start secondary storage vm
com.cloud.exception.AgentUnavailableException: Resource [Host:1] is unreachable: Host 1: Unable to start instance due to null Caused by: java.lang.NullPointerException
2014-03-10 19:13:35,988 INFO  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Unable to start secondary storage vm for standby capacity, secStorageVm vm Id : 72, will recycle it and start a new one



I hope someone can give me some insight into what is wrong. 

Kind regards, 

Tommy

RE: SSVM Not coming up

Posted by Suresh Sadhu <Su...@citrix.com>.
It seems vhd-util is missing in  xenserver host. 

Regards
Sadhu




-----Original Message-----
From: TommyBW [mailto:cloudstack@altanovabw.com] 
Sent: 10 March 2014 22:48
To: users@cloudstack.apache.org
Subject: Re: SSVM Not coming up

Hi All, 

Did an installation of CS4.2.1 on Xenserver 6.2 SP1 

Haveing a bit of a problem getting the SSVMs to start. Please see logs below : 

10 19:12:05,871 WARN  [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null) Exception while trying to start console proxy
com.cloud.exception.AgentUnavailableException: Resource [Host:2] is unreachable: Host 2: Unable to start instance due to null Caused by: java.lang.NullPointerException
2014-03-10 19:12:32,887 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-9:null) destoryVDIbyNameLabel failed due to there are 0 VDIs with name cloud-d8bffd1d-a9c6-4100-8851-0ef754c18796
2014-03-10 19:12:32,888 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-9:null) can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:12:32,888 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-9:null) Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:12:32,889 DEBUG [agent.transport.Request] (DirectAgent-9:null) Seq 2-1529413662: Processing:  { Ans: , MgmtId: 345049202885, via: 2, Ver: v1, Flags: 110, [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd","wait":0}}] }
2014-03-10 19:12:32,922 WARN  [utils.db.Merovingian2] (secstorage-1:null) Was unable to find lock for the key template_spool_ref9 and thread id 1333371531
2014-03-10 19:12:32,922 DEBUG [cloud.storage.VolumeManagerImpl] (secstorage-1:null) Unable to create Vol[71|vm=71|ROOT]:Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:12:32,922 INFO  [cloud.vm.VirtualMachineManagerImpl] (secstorage-1:null) Unable to contact resource.
com.cloud.exception.StorageUnavailableException: Resource [StoragePool:1] is unreachable: Unable to create Vol[71|vm=71|ROOT]:Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:12:33,092 DEBUG [cloud.capacity.CapacityManagerImpl] (secstorage-1:null) VM state transitted from :Starting to Stopped with event: OperationFailedvm's original host id: null new host id: null host id before state transition: 1
2014-03-10 19:12:33,102 WARN  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Exception while trying to start secondary storage vm
com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment for VM[SecondaryStorageVm|s-71-VM]Scope=interface com.cloud.dc.DataCenter; id=1
2014-03-10 19:12:33,104 INFO  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Unable to start secondary storage vm for standby capacity, secStorageVm vm Id : 71, will recycle it and start a new one
2014-03-10 19:12:35,797 INFO  [storage.volume.VolumeServiceImpl] (consoleproxy-1:null) Unable to acquire lock on VMTemplateStoragePool 9
2014-03-10 19:12:35,798 ERROR [cloud.vm.VirtualMachineManagerImpl] (consoleproxy-1:null) Failed to start instance VM[ConsoleProxy|v-2-VM] java.lang.NullPointerException
2014-03-10 19:12:35,923 DEBUG [cloud.capacity.CapacityManagerImpl] (consoleproxy-1:null) VM state transitted from :Starting to Stopped with event: OperationFailedvm's original host id: null new host id: null host id before state transition: 1
2014-03-10 19:12:35,934 WARN  [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null) Exception while trying to start console proxy
com.cloud.exception.AgentUnavailableException: Resource [Host:1] is unreachable: Host 1: Unable to start instance due to null Caused by: java.lang.NullPointerException
2014-03-10 19:13:02,809 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-84:null) destoryVDIbyNameLabel failed due to there are 0 VDIs with name cloud-844432b3-e616-415e-971e-90e85f5b0fd4
2014-03-10 19:13:02,810 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-84:null) can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:13:02,810 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-84:null) Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:13:02,811 DEBUG [agent.transport.Request] (DirectAgent-84:null) Seq 1-661585950: Processing:  { Ans: , MgmtId: 345049202885, via: 1, Ver: v1, Flags: 110, [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd","wait":0}}] }
2014-03-10 19:13:02,820 WARN  [utils.db.Merovingian2] (consoleproxy-1:null) Was unable to find lock for the key template_spool_ref10 and thread id 1811670971
2014-03-10 19:13:02,821 DEBUG [cloud.storage.VolumeManagerImpl] (consoleproxy-1:null) Unable to create Vol[2|vm=2|ROOT]:Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:13:02,821 INFO  [cloud.vm.VirtualMachineManagerImpl] (consoleproxy-1:null) Unable to contact resource.
com.cloud.exception.StorageUnavailableException: Resource [StoragePool:1] is unreachable: Unable to create Vol[2|vm=2|ROOT]:Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:13:02,971 DEBUG [cloud.capacity.CapacityManagerImpl] (consoleproxy-1:null) VM state transitted from :Starting to Stopped with event: OperationFailedvm's original host id: null new host id: null host id before state transition: 2
2014-03-10 19:13:02,982 WARN  [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null) Exception while trying to start console proxy
com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment for VM[ConsoleProxy|v-2-VM]Scope=interface com.cloud.dc.DataCenter; id=1
2014-03-10 19:13:05,679 INFO  [storage.volume.VolumeServiceImpl] (secstorage-1:null) Unable to acquire lock on VMTemplateStoragePool 10
2014-03-10 19:13:05,680 ERROR [cloud.vm.VirtualMachineManagerImpl] (secstorage-1:null) Failed to start instance VM[SecondaryStorageVm|s-71-VM] java.lang.NullPointerException
2014-03-10 19:13:05,821 DEBUG [cloud.capacity.CapacityManagerImpl] (secstorage-1:null) VM state transitted from :Starting to Stopped with event: OperationFailedvm's original host id: null new host id: null host id before state transition: 1
2014-03-10 19:13:05,832 WARN  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Exception while trying to start secondary storage vm
com.cloud.exception.AgentUnavailableException: Resource [Host:1] is unreachable: Host 1: Unable to start instance due to null Caused by: java.lang.NullPointerException
2014-03-10 19:13:05,833 INFO  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Unable to start secondary storage vm for standby capacity, secStorageVm vm Id : 71, will recycle it and start a new one
2014-03-10 19:13:32,952 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-37:null) destoryVDIbyNameLabel failed due to there are 0 VDIs with name cloud-36e78833-1d14-4db8-9e26-b0e975ca3bf3
2014-03-10 19:13:32,952 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-37:null) can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:13:32,952 WARN  [xen.resource.XenServerStorageProcessor] (DirectAgent-37:null) Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:13:32,954 DEBUG [agent.transport.Request] (DirectAgent-37:null) Seq 1-661585952: Processing:  { Ans: , MgmtId: 345049202885, via: 1, Ver: v1, Flags: 110, [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd","wait":0}}] }
2014-03-10 19:13:32,964 WARN  [utils.db.Merovingian2] (consoleproxy-1:null) Was unable to find lock for the key template_spool_ref11 and thread id 1811670971
2014-03-10 19:13:32,964 DEBUG [cloud.storage.VolumeManagerImpl] (consoleproxy-1:null) Unable to create Vol[2|vm=2|ROOT]:Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:13:32,965 INFO  [cloud.vm.VirtualMachineManagerImpl] (consoleproxy-1:null) Unable to contact resource.
com.cloud.exception.StorageUnavailableException: Resource [StoragePool:1] is unreachable: Unable to create Vol[2|vm=2|ROOT]:Catch Exception com.cloud.utils.exception.CloudRuntimeException for template +  due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:13:33,133 DEBUG [cloud.capacity.CapacityManagerImpl] (consoleproxy-1:null) VM state transitted from :Starting to Stopped with event: OperationFailedvm's original host id: null new host id: null host id before state transition: 1
2014-03-10 19:13:33,144 WARN  [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null) Exception while trying to start console proxy
com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment for VM[ConsoleProxy|v-2-VM]Scope=interface com.cloud.dc.DataCenter; id=1
2014-03-10 19:13:35,872 INFO  [storage.volume.VolumeServiceImpl] (secstorage-1:null) Unable to acquire lock on VMTemplateStoragePool 11
2014-03-10 19:13:35,873 ERROR [cloud.vm.VirtualMachineManagerImpl] (secstorage-1:null) Failed to start instance VM[SecondaryStorageVm|s-72-VM] java.lang.NullPointerException
2014-03-10 19:13:35,981 DEBUG [cloud.capacity.CapacityManagerImpl] (secstorage-1:null) VM state transitted from :Starting to Stopped with event: OperationFailedvm's original host id: null new host id: null host id before state transition: 1
2014-03-10 19:13:35,987 WARN  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Exception while trying to start secondary storage vm
com.cloud.exception.AgentUnavailableException: Resource [Host:1] is unreachable: Host 1: Unable to start instance due to null Caused by: java.lang.NullPointerException
2014-03-10 19:13:35,988 INFO  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Unable to start secondary storage vm for standby capacity, secStorageVm vm Id : 72, will recycle it and start a new one



I hope someone can give me some insight into what is wrong. 

Kind regards, 

Tommy