You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Gian Paolo Buono <gi...@gesca.it> on 2017/04/11 20:12:55 UTC

Template/iso

Hi all,

I have a trouble with a Template/iso, the template is in stuck and when a try to delete:

2017-04-11 21:59:01,084 ERROR [c.c.a.ApiAsyncJobDispatcher] (API-Job-Executor-66:ctx-e3b54e00 job-55008) (logid:b4253eaa) Unexpected exception while executing org.apache.cloudstack.api.command.user.iso.DeleteIsoCmd
com.cloud.utils.exception.CloudRuntimeException: Failed to update state
    at org.apache.cloudstack.storage.image.store.TemplateObject.processEvent(TemplateObject.java:174)
    at org.apache.cloudstack.storage.image.TemplateServiceImpl.deleteTemplateAsync(TemplateServiceImpl.java:698)
    at com.cloud.template.HypervisorTemplateAdapter.delete(HypervisorTemplateAdapter.java:401)
    at com.cloud.template.TemplateManagerImpl.deleteIso(TemplateManagerImpl.java:1219)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
    at org.apache.cloudstack.network.contrail.management.EventUtils$EventInterceptor.invoke(EventUtils.java:106)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
    at com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:51)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
    at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    at com.sun.proxy.$Proxy185.deleteIso(Unknown Source)
    at org.apache.cloudstack.api.command.user.iso.DeleteIsoCmd.execute(DeleteIsoCmd.java:114)
    at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:150)
    at com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:108)
    at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:554)
    at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
    at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
    at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
    at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
    at org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
    at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.run(AsyncJobManagerImpl.java:502)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
Caused by: com.cloud.utils.fsm.NoTransitionException: Unable to transition to a new state from Creating via DestroyRequested
    at com.cloud.utils.fsm.StateMachine2.getTransition(StateMachine2.java:108)
    at com.cloud.utils.fsm.StateMachine2.getNextState(StateMachine2.java:94)
    at com.cloud.utils.fsm.StateMachine2.transitTo(StateMachine2.java:124)

thanks, bye
Gian Paolo

Re: OS Type: Windows Server 2016 - CS 4.9.2

Posted by Andrija Panic <an...@gmail.com>.
We used to provide 2016 template for our users, with VirtIO preinstalled
inside OS (during building template), and then we simply choose OS type of
"Windows PV" - not related to Xen (we use KVM), but just FYI as parallel.

On 12 April 2017 at 15:57, Pierre-Luc Dion <pd...@cloudops.com> wrote:

> Hi David,
>
> When using pre xenserver 7, CloudStack deploy Windows 2016 vm as "Other (64
> bit)".
> I've made some test with XenServer 7.1  and Windows 2016 are default HVM
> when using the new xenserver template  for Windows 2016.
> My understanding is that if you run a VM in XenServer as HVM and you have
> xentools installed and up-to-date, your VM run in PVHVM mode which seems to
> be the best of both world.
>
> The coming release of ACS (4.10) should have updated ostype so windows 2016
> wouid use Windows 2016 template in xenserver 7+ instead of "Other (64
> bit)".
>
>
>
>
>
> On Wed, Apr 12, 2017 at 4:14 AM, David Amorín <
> david.amorin@adderglobal.com>
> wrote:
>
> > Hi all,
> > In our test environment based on CS 4.9.2 and XS 7.0, we are deploying
> VMs
> > with Windows Server 2016 as guest installation, using OS Type: "Other
> > (64-bit)" and so far everything is working fine. We understand that using
> > this option we are deploying full virtualized (HVM)
> >
> >
> > Do you know if there is any issue (error, performance, etc.) for using
> > "Other (64-bit))=HVM for Windows Server 2016 VMs?
> >
> >
> > Do you know when will be available Windows Server 2016 as OS Type?
> >
> >
> > Thanks
> >
> >
> > David
> >
> >
>



-- 

Andrija Panić

Re: OS Type: Windows Server 2016 - CS 4.9.2

Posted by Pierre-Luc Dion <pd...@cloudops.com>.
Hi David,

When using pre xenserver 7, CloudStack deploy Windows 2016 vm as "Other (64
bit)".
I've made some test with XenServer 7.1  and Windows 2016 are default HVM
when using the new xenserver template  for Windows 2016.
My understanding is that if you run a VM in XenServer as HVM and you have
xentools installed and up-to-date, your VM run in PVHVM mode which seems to
be the best of both world.

The coming release of ACS (4.10) should have updated ostype so windows 2016
wouid use Windows 2016 template in xenserver 7+ instead of "Other (64 bit)".





On Wed, Apr 12, 2017 at 4:14 AM, David Amorín <da...@adderglobal.com>
wrote:

> Hi all,
> In our test environment based on CS 4.9.2 and XS 7.0, we are deploying VMs
> with Windows Server 2016 as guest installation, using OS Type: "Other
> (64-bit)" and so far everything is working fine. We understand that using
> this option we are deploying full virtualized (HVM)
>
>
> Do you know if there is any issue (error, performance, etc.) for using
> "Other (64-bit))=HVM for Windows Server 2016 VMs?
>
>
> Do you know when will be available Windows Server 2016 as OS Type?
>
>
> Thanks
>
>
> David
>
>

OS Type: Windows Server 2016 - CS 4.9.2

Posted by David Amorín <da...@adderglobal.com>.
Hi all,
In our test environment based on CS 4.9.2 and XS 7.0, we are deploying VMs with Windows Server 2016 as guest installation, using OS Type: "Other (64-bit)" and so far everything is working fine. We understand that using this option we are deploying full virtualized (HVM) 


Do you know if there is any issue (error, performance, etc.) for using "Other (64-bit))=HVM for Windows Server 2016 VMs?


Do you know when will be available Windows Server 2016 as OS Type?


Thanks 


David


Re: Template/iso

Posted by Gian Paolo Buono <gi...@gesca.it>.
Hi,

I have resolved restart service cloud on SSVM

Bye

On 04/11/2017 10:39 PM, Gian Paolo Buono wrote:


I have find many template from this query:

select * from template_store_ref\G

in status Creating and Allocated. mmmm I dont think it is a good thing.
 Bye
On 04/11/2017 10:12 PM, Gian Paolo Buono wrote:

Hi all,

I have a trouble with a Template/iso, the template is in stuck and when a try to delete:

2017-04-11 21:59:01,084 ERROR [c.c.a.ApiAsyncJobDispatcher] (API-Job-Executor-66:ctx-e3b54e00 job-55008) (logid:b4253eaa) Unexpected exception while executing org.apache.cloudstack.api.command.user.iso.DeleteIsoCmd
com.cloud.utils.exception.CloudRuntimeException: Failed to update state
    at org.apache.cloudstack.storage.image.store.TemplateObject.processEvent(TemplateObject.java:174)
    at org.apache.cloudstack.storage.image.TemplateServiceImpl.deleteTemplateAsync(TemplateServiceImpl.java:698)
    at com.cloud.template.HypervisorTemplateAdapter.delete(HypervisorTemplateAdapter.java:401)
    at com.cloud.template.TemplateManagerImpl.deleteIso(TemplateManagerImpl.java:1219)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
    at org.apache.cloudstack.network.contrail.management.EventUtils$EventInterceptor.invoke(EventUtils.java:106)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
    at com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:51)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
    at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    at com.sun.proxy.$Proxy185.deleteIso(Unknown Source)
    at org.apache.cloudstack.api.command.user.iso.DeleteIsoCmd.execute(DeleteIsoCmd.java:114)
    at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:150)
    at com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:108)
    at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:554)
    at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
    at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
    at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
    at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
    at http://mail01.gesca.it:32224/?dmVyPTEuMDAxJiY4NzYxMTlkN2I0NTgzNjBkNj01OEVEMzhCRF8yMzAxXzE0MV8xJiY2YTdmZGQ4N2U1NGJiNGE9MTIyMyYmdXJsPW9yZyUyRWFwYWNoZSUyRWNsb3Vkc3RhY2slMkVtYW5hZ2VkJTJFY29udGV4dCUyRU1hbmFnZWRDb250ZXh0UnVubmFibGUlMkVydW4=(ManagedContextRunnable.java:46)
    at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.run(AsyncJobManagerImpl.java:502)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at http://mail01.gesca.it:32224/?dmVyPTEuMDAxJiY4YjYzMTVkN2EyNTkyNzAyNz01OEVEMzhCRF8yMzAxXzE0MV8xJiYxZTI5NWMwNmI0ZmE4NDg9MTIyMyYmdXJsPWphdmElMkV1dGlsJTJFY29uY3VycmVudCUyRUZ1dHVyZVRhc2slMkVydW4=(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at http://mail01.gesca.it:32224/?dmVyPTEuMDAxJiY4ZTZjMDBjM2ZlNDcyMzAyNj01OEVEMzhCRF8yMzAxXzE0MV8xJiYyZTI4N2RkNmQ1ZmJiNDk9MTIyMyYmdXJsPWphdmElMkVsYW5nJTJFVGhyZWFkJTJFcnVu(Thread.java:745)
Caused by: com.cloud.utils.fsm.NoTransitionException: Unable to transition to a new state from Creating via DestroyRequested
    at com.cloud.utils.fsm.StateMachine2.getTransition(StateMachine2.java:108)
    at com.cloud.utils.fsm.StateMachine2.getNextState(StateMachine2.java:94)
    at com.cloud.utils.fsm.StateMachine2.transitTo(StateMachine2.java:124)

thanks, bye
Gian Paolo





Re: Template/iso

Posted by Gian Paolo Buono <gi...@gesca.it>.
I have find many template from this query:

select * from template_store_ref\G

in status Creating and Allocated. mmmm I dont think it is a good thing.
 Bye
On 04/11/2017 10:12 PM, Gian Paolo Buono wrote:

Hi all,

I have a trouble with a Template/iso, the template is in stuck and when a try to delete:

2017-04-11 21:59:01,084 ERROR [c.c.a.ApiAsyncJobDispatcher] (API-Job-Executor-66:ctx-e3b54e00 job-55008) (logid:b4253eaa) Unexpected exception while executing org.apache.cloudstack.api.command.user.iso.DeleteIsoCmd
com.cloud.utils.exception.CloudRuntimeException: Failed to update state
    at org.apache.cloudstack.storage.image.store.TemplateObject.processEvent(TemplateObject.java:174)
    at org.apache.cloudstack.storage.image.TemplateServiceImpl.deleteTemplateAsync(TemplateServiceImpl.java:698)
    at com.cloud.template.HypervisorTemplateAdapter.delete(HypervisorTemplateAdapter.java:401)
    at com.cloud.template.TemplateManagerImpl.deleteIso(TemplateManagerImpl.java:1219)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
    at org.apache.cloudstack.network.contrail.management.EventUtils$EventInterceptor.invoke(EventUtils.java:106)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
    at com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:51)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
    at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    at com.sun.proxy.$Proxy185.deleteIso(Unknown Source)
    at org.apache.cloudstack.api.command.user.iso.DeleteIsoCmd.execute(DeleteIsoCmd.java:114)
    at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:150)
    at com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:108)
    at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:554)
    at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
    at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
    at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
    at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
    at http://mail01.gesca.it:32224/?dmVyPTEuMDAxJiY4NzYxMTlkN2I0NTgzNjBkNj01OEVEMzhCRF8yMzAxXzE0MV8xJiY2YTdmZGQ4N2U1NGJiNGE9MTIyMyYmdXJsPW9yZyUyRWFwYWNoZSUyRWNsb3Vkc3RhY2slMkVtYW5hZ2VkJTJFY29udGV4dCUyRU1hbmFnZWRDb250ZXh0UnVubmFibGUlMkVydW4=(ManagedContextRunnable.java:46)
    at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.run(AsyncJobManagerImpl.java:502)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at http://mail01.gesca.it:32224/?dmVyPTEuMDAxJiY4YjYzMTVkN2EyNTkyNzAyNz01OEVEMzhCRF8yMzAxXzE0MV8xJiYxZTI5NWMwNmI0ZmE4NDg9MTIyMyYmdXJsPWphdmElMkV1dGlsJTJFY29uY3VycmVudCUyRUZ1dHVyZVRhc2slMkVydW4=(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at http://mail01.gesca.it:32224/?dmVyPTEuMDAxJiY4ZTZjMDBjM2ZlNDcyMzAyNj01OEVEMzhCRF8yMzAxXzE0MV8xJiYyZTI4N2RkNmQ1ZmJiNDk9MTIyMyYmdXJsPWphdmElMkVsYW5nJTJFVGhyZWFkJTJFcnVu(Thread.java:745)
Caused by: com.cloud.utils.fsm.NoTransitionException: Unable to transition to a new state from Creating via DestroyRequested
    at com.cloud.utils.fsm.StateMachine2.getTransition(StateMachine2.java:108)
    at com.cloud.utils.fsm.StateMachine2.getNextState(StateMachine2.java:94)
    at com.cloud.utils.fsm.StateMachine2.transitTo(StateMachine2.java:124)

thanks, bye
Gian Paolo