You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Meghna Kale <me...@sungard.com> on 2014/03/20 11:56:08 UTC

Simulator : Error while creating a snapshot from a VM

Hi All,

I have been seeing an error while creating a snapshot from a VM in the
Simulator.
I faced this issue on both the versions 4.2 and 4.3.

Can anyone help me or provide pointers.

A similar NullPointer error is also thrown while creating a VM from a
personal template created from an existing VM.

Error from vmops.log :

ERROR [cloud.api.ApiServer] (31312594@qtp-24163675-2:) unhandled exception
executing api command: createVMSnapshot
java.lang.NullPointerException
        at
com.cloud.hypervisor.dao.HypervisorCapabilitiesDaoImpl.isVmSnapshotEnabled(HypervisorCapabilitiesDaoImpl.java:103)
        at
com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
        at
com.cloud.vm.snapshot.VMSnapshotManagerImpl.allocVMSnapshot(VMSnapshotManagerImpl.java:257)
        at
org.apache.cloudstack.api.command.user.vmsnapshot.CreateVMSnapshotCmd.create(CreateVMSnapshotCmd.java:78)
        at
com.cloud.api.ApiDispatcher.dispatchCreateCmd(ApiDispatcher.java:104)
        at com.cloud.api.ApiServer.queueCommand(ApiServer.java:461)
        at com.cloud.api.ApiServer.handleRequest(ApiServer.java:373)
        at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305)
        at com.cloud.api.ApiServlet.doGet(ApiServlet.java:66)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
        at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401)
        at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
        at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
        at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
        at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
        at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
        at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
        at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
        at org.mortbay.jetty.Server.handle(Server.java:326)
        at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
        at
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
        at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
        at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)

Thanks
Meghna.

Re: Simulator : Error while creating a snapshot from a VM

Posted by Meghna Kale <me...@sungard.com>.
Thanks Chip.

David,

Can you please check-in the changes in 4.3.

Thanks
Meghna.


On Thu, Mar 27, 2014 at 7:05 PM, Chip Childers <ch...@apache.org>wrote:

> On Thu, Mar 27, 2014 at 3:52 AM, Meghna Kale <me...@sungard.com>
> wrote:
> > I was able to create a snapshot in 4.2 simulator after applying the
> changes
> > from
> >
> https://github.com/apache/cloudstack/commit/dfb81ac1274d8ebe4a47223d10f3de44aa9091bf
> > patch
> > suggested by David.
> >
> > Just a suggestion, if the fix is present in 4.4 can we have this 4.3 and
> > 4.2 as well.
> >
> > Thanks
> > Meghna.
>
> We aren't going to release another 4.2.x release, so only 4.3.x applies
> here.
>
>

Re: Simulator : Error while creating a snapshot from a VM

Posted by Chip Childers <ch...@apache.org>.
On Thu, Mar 27, 2014 at 3:52 AM, Meghna Kale <me...@sungard.com> wrote:
> I was able to create a snapshot in 4.2 simulator after applying the changes
> from
> https://github.com/apache/cloudstack/commit/dfb81ac1274d8ebe4a47223d10f3de44aa9091bf
> patch
> suggested by David.
>
> Just a suggestion, if the fix is present in 4.4 can we have this 4.3 and
> 4.2 as well.
>
> Thanks
> Meghna.

We aren't going to release another 4.2.x release, so only 4.3.x applies here.

Re: Simulator : Error while creating a snapshot from a VM

Posted by Meghna Kale <me...@sungard.com>.
I was able to create a snapshot in 4.2 simulator after applying the changes
from
https://github.com/apache/cloudstack/commit/dfb81ac1274d8ebe4a47223d10f3de44aa9091bf
patch
suggested by David.

Just a suggestion, if the fix is present in 4.4 can we have this 4.3 and
4.2 as well.

Thanks
Meghna.


2014-03-27 11:40 GMT+05:30 Meghna Kale <me...@sungard.com>:

> Thanks Daan.
>
>
> On Wed, Mar 26, 2014 at 6:06 PM, Daan Hoogland <da...@gmail.com>wrote:
>
>> On Wed, Mar 26, 2014 at 1:26 PM, Meghna Kale <me...@sungard.com>
>> wrote:
>> > meghna.kale@sungard.com
>>
>> your in
>>
>> --
>> Daan
>>
>>
>

Re: Simulator : Error while creating a snapshot from a VM

Posted by Meghna Kale <me...@sungard.com>.
Thanks Daan.


On Wed, Mar 26, 2014 at 6:06 PM, Daan Hoogland <da...@gmail.com>wrote:

> On Wed, Mar 26, 2014 at 1:26 PM, Meghna Kale <me...@sungard.com>
> wrote:
> > meghna.kale@sungard.com
>
> your in
>
> --
> Daan
>
>

Re: Simulator : Error while creating a snapshot from a VM

Posted by Daan Hoogland <da...@gmail.com>.
On Wed, Mar 26, 2014 at 1:26 PM, Meghna Kale <me...@sungard.com> wrote:
> meghna.kale@sungard.com

your in

-- 
Daan

Re: Simulator : Error while creating a snapshot from a VM

Posted by Meghna Kale <me...@sungard.com>.
Hi,

I need permissions to assign the jira id
https://issues.apache.org/jira/browse/CLOUDSTACK-5219 to me. Can anyone
help me.

Thanks
Meghna.


On Wed, Mar 26, 2014 at 5:54 PM, Meghna Kale <me...@sungard.com>wrote:

> Thanks Santhosh.
>
> A bug is already present in cloudstack jira
> https://issues.apache.org/jira/browse/CLOUDSTACK-5219.
>
> Thanks
> Meghna.
>
>
>
>
>
> On Fri, Mar 21, 2014 at 1:55 PM, Santhosh Edukulla <
> santhosh.edukulla@citrix.com> wrote:
>
>> Meghna,
>>
>> Please check the code from master or 4.4, there were few fixes added to
>> simulator code, few cases failing in earlier versions were now working.
>>
>> Also, not all cases are possible with simulator i believe, few cases
>> still has dependencies inbuilt. first check simulator code from master\4.4
>> first and then see if it works, else log a bug, so we can look at it.
>>
>> Santhosh
>> ________________________________________
>> From: Meghna Kale [meghna.kale@sungard.com]
>> Sent: Friday, March 21, 2014 4:19 AM
>> To: dev@cloudstack.apache.org
>> Subject: Re: Simulator : Error while creating a snapshot from a VM
>>
>> David,
>>
>>
>> I tried applying the changes from the commit mentioned by you and re-build
>> the code. But still the problem is not solved.
>>
>> Need help.
>>
>> Thanks
>> Meghna.
>>
>>
>> On Thu, Mar 20, 2014 at 10:22 PM, David Grizzanti <
>> david.grizzanti@sungard.com> wrote:
>>
>> > Meghna,
>> >
>> > I realized one thing that is missing from 4.3 and 4.2 that I added
>> (it's on
>> > 4.4 and master though).  Here is the commit
>> >
>> >
>> https://github.com/apache/cloudstack/commit/dfb81ac1274d8ebe4a47223d10f3de44aa9091bf
>> > .
>> >
>> > If you apply that and re-build, it should fix the create VM snapshot
>> issue.
>> >
>> >
>> > On Thu, Mar 20, 2014 at 6:56 AM, Meghna Kale <meghna.kale@sungard.com
>> > >wrote:
>> >
>> > > Hi All,
>> > >
>> > > I have been seeing an error while creating a snapshot from a VM in the
>> > > Simulator.
>> > > I faced this issue on both the versions 4.2 and 4.3.
>> > >
>> > > Can anyone help me or provide pointers.
>> > >
>> > > A similar NullPointer error is also thrown while creating a VM from a
>> > > personal template created from an existing VM.
>> > >
>> > > Error from vmops.log :
>> > >
>> > > ERROR [cloud.api.ApiServer] (31312594@qtp-24163675-2:) unhandled
>> > exception
>> > > executing api command: createVMSnapshot
>> > > java.lang.NullPointerException
>> > >         at
>> > >
>> > >
>> >
>> com.cloud.hypervisor.dao.HypervisorCapabilitiesDaoImpl.isVmSnapshotEnabled(HypervisorCapabilitiesDaoImpl.java:103)
>> > >         at
>> > >
>> > >
>> >
>> com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>> > >         at
>> > >
>> > >
>> >
>> com.cloud.vm.snapshot.VMSnapshotManagerImpl.allocVMSnapshot(VMSnapshotManagerImpl.java:257)
>> > >         at
>> > >
>> > >
>> >
>> org.apache.cloudstack.api.command.user.vmsnapshot.CreateVMSnapshotCmd.create(CreateVMSnapshotCmd.java:78)
>> > >         at
>> > > com.cloud.api.ApiDispatcher.dispatchCreateCmd(ApiDispatcher.java:104)
>> > >         at com.cloud.api.ApiServer.queueCommand(ApiServer.java:461)
>> > >         at com.cloud.api.ApiServer.handleRequest(ApiServer.java:373)
>> > >         at
>> com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305)
>> > >         at com.cloud.api.ApiServlet.doGet(ApiServlet.java:66)
>> > >         at
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
>> > >         at
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
>> > >         at
>> > > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
>> > >         at
>> > >
>> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401)
>> > >         at
>> > >
>> >
>> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
>> > >         at
>> > >
>> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
>> > >         at
>> > >
>> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
>> > >         at
>> > > org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
>> > >         at
>> > >
>> > >
>> >
>> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
>> > >         at
>> > >
>> > >
>> >
>> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
>> > >         at
>> > >
>> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>> > >         at org.mortbay.jetty.Server.handle(Server.java:326)
>> > >         at
>> > >
>> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
>> > >         at
>> > >
>> > >
>> >
>> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)
>> > >         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
>> > >         at
>> > org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
>> > >         at
>> > org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
>> > >         at
>> > >
>> > >
>> >
>> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
>> > >         at
>> > >
>> > >
>> >
>> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
>> > >
>> > > Thanks
>> > > Meghna.
>> > >
>> >
>> >
>> >
>> > --
>> > David Grizzanti
>> > Software Engineer
>> > Sungard Availability Services
>> >
>> > e: david.grizzanti@sungard.com
>> > w: 215.446.1431
>> > c: 570.575.0315
>> >
>>
>>
>

Re: Simulator : Error while creating a snapshot from a VM

Posted by Meghna Kale <me...@sungard.com>.
Thanks Santhosh.

A bug is already present in cloudstack jira
https://issues.apache.org/jira/browse/CLOUDSTACK-5219.

Thanks
Meghna.





On Fri, Mar 21, 2014 at 1:55 PM, Santhosh Edukulla <
santhosh.edukulla@citrix.com> wrote:

> Meghna,
>
> Please check the code from master or 4.4, there were few fixes added to
> simulator code, few cases failing in earlier versions were now working.
>
> Also, not all cases are possible with simulator i believe, few cases still
> has dependencies inbuilt. first check simulator code from master\4.4 first
> and then see if it works, else log a bug, so we can look at it.
>
> Santhosh
> ________________________________________
> From: Meghna Kale [meghna.kale@sungard.com]
> Sent: Friday, March 21, 2014 4:19 AM
> To: dev@cloudstack.apache.org
> Subject: Re: Simulator : Error while creating a snapshot from a VM
>
> David,
>
>
> I tried applying the changes from the commit mentioned by you and re-build
> the code. But still the problem is not solved.
>
> Need help.
>
> Thanks
> Meghna.
>
>
> On Thu, Mar 20, 2014 at 10:22 PM, David Grizzanti <
> david.grizzanti@sungard.com> wrote:
>
> > Meghna,
> >
> > I realized one thing that is missing from 4.3 and 4.2 that I added (it's
> on
> > 4.4 and master though).  Here is the commit
> >
> >
> https://github.com/apache/cloudstack/commit/dfb81ac1274d8ebe4a47223d10f3de44aa9091bf
> > .
> >
> > If you apply that and re-build, it should fix the create VM snapshot
> issue.
> >
> >
> > On Thu, Mar 20, 2014 at 6:56 AM, Meghna Kale <meghna.kale@sungard.com
> > >wrote:
> >
> > > Hi All,
> > >
> > > I have been seeing an error while creating a snapshot from a VM in the
> > > Simulator.
> > > I faced this issue on both the versions 4.2 and 4.3.
> > >
> > > Can anyone help me or provide pointers.
> > >
> > > A similar NullPointer error is also thrown while creating a VM from a
> > > personal template created from an existing VM.
> > >
> > > Error from vmops.log :
> > >
> > > ERROR [cloud.api.ApiServer] (31312594@qtp-24163675-2:) unhandled
> > exception
> > > executing api command: createVMSnapshot
> > > java.lang.NullPointerException
> > >         at
> > >
> > >
> >
> com.cloud.hypervisor.dao.HypervisorCapabilitiesDaoImpl.isVmSnapshotEnabled(HypervisorCapabilitiesDaoImpl.java:103)
> > >         at
> > >
> > >
> >
> com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
> > >         at
> > >
> > >
> >
> com.cloud.vm.snapshot.VMSnapshotManagerImpl.allocVMSnapshot(VMSnapshotManagerImpl.java:257)
> > >         at
> > >
> > >
> >
> org.apache.cloudstack.api.command.user.vmsnapshot.CreateVMSnapshotCmd.create(CreateVMSnapshotCmd.java:78)
> > >         at
> > > com.cloud.api.ApiDispatcher.dispatchCreateCmd(ApiDispatcher.java:104)
> > >         at com.cloud.api.ApiServer.queueCommand(ApiServer.java:461)
> > >         at com.cloud.api.ApiServer.handleRequest(ApiServer.java:373)
> > >         at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305)
> > >         at com.cloud.api.ApiServlet.doGet(ApiServlet.java:66)
> > >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
> > >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> > >         at
> > > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
> > >         at
> > >
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401)
> > >         at
> > >
> >
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> > >         at
> > >
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
> > >         at
> > >
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
> > >         at
> > > org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
> > >         at
> > >
> > >
> >
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
> > >         at
> > >
> > >
> >
> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
> > >         at
> > >
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
> > >         at org.mortbay.jetty.Server.handle(Server.java:326)
> > >         at
> > > org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
> > >         at
> > >
> > >
> >
> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)
> > >         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
> > >         at
> > org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
> > >         at
> > org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
> > >         at
> > >
> > >
> >
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
> > >         at
> > >
> > >
> >
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
> > >
> > > Thanks
> > > Meghna.
> > >
> >
> >
> >
> > --
> > David Grizzanti
> > Software Engineer
> > Sungard Availability Services
> >
> > e: david.grizzanti@sungard.com
> > w: 215.446.1431
> > c: 570.575.0315
> >
>
>

RE: Simulator : Error while creating a snapshot from a VM

Posted by Santhosh Edukulla <sa...@citrix.com>.
Meghna,

Please check the code from master or 4.4, there were few fixes added to simulator code, few cases failing in earlier versions were now working.

Also, not all cases are possible with simulator i believe, few cases still has dependencies inbuilt. first check simulator code from master\4.4 first and then see if it works, else log a bug, so we can look at it.  

Santhosh
________________________________________
From: Meghna Kale [meghna.kale@sungard.com]
Sent: Friday, March 21, 2014 4:19 AM
To: dev@cloudstack.apache.org
Subject: Re: Simulator : Error while creating a snapshot from a VM

David,


I tried applying the changes from the commit mentioned by you and re-build
the code. But still the problem is not solved.

Need help.

Thanks
Meghna.


On Thu, Mar 20, 2014 at 10:22 PM, David Grizzanti <
david.grizzanti@sungard.com> wrote:

> Meghna,
>
> I realized one thing that is missing from 4.3 and 4.2 that I added (it's on
> 4.4 and master though).  Here is the commit
>
> https://github.com/apache/cloudstack/commit/dfb81ac1274d8ebe4a47223d10f3de44aa9091bf
> .
>
> If you apply that and re-build, it should fix the create VM snapshot issue.
>
>
> On Thu, Mar 20, 2014 at 6:56 AM, Meghna Kale <meghna.kale@sungard.com
> >wrote:
>
> > Hi All,
> >
> > I have been seeing an error while creating a snapshot from a VM in the
> > Simulator.
> > I faced this issue on both the versions 4.2 and 4.3.
> >
> > Can anyone help me or provide pointers.
> >
> > A similar NullPointer error is also thrown while creating a VM from a
> > personal template created from an existing VM.
> >
> > Error from vmops.log :
> >
> > ERROR [cloud.api.ApiServer] (31312594@qtp-24163675-2:) unhandled
> exception
> > executing api command: createVMSnapshot
> > java.lang.NullPointerException
> >         at
> >
> >
> com.cloud.hypervisor.dao.HypervisorCapabilitiesDaoImpl.isVmSnapshotEnabled(HypervisorCapabilitiesDaoImpl.java:103)
> >         at
> >
> >
> com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
> >         at
> >
> >
> com.cloud.vm.snapshot.VMSnapshotManagerImpl.allocVMSnapshot(VMSnapshotManagerImpl.java:257)
> >         at
> >
> >
> org.apache.cloudstack.api.command.user.vmsnapshot.CreateVMSnapshotCmd.create(CreateVMSnapshotCmd.java:78)
> >         at
> > com.cloud.api.ApiDispatcher.dispatchCreateCmd(ApiDispatcher.java:104)
> >         at com.cloud.api.ApiServer.queueCommand(ApiServer.java:461)
> >         at com.cloud.api.ApiServer.handleRequest(ApiServer.java:373)
> >         at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305)
> >         at com.cloud.api.ApiServlet.doGet(ApiServlet.java:66)
> >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
> >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> >         at
> > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
> >         at
> > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401)
> >         at
> >
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> >         at
> > org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
> >         at
> > org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
> >         at
> > org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
> >         at
> >
> >
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
> >         at
> >
> >
> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
> >         at
> > org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
> >         at org.mortbay.jetty.Server.handle(Server.java:326)
> >         at
> > org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
> >         at
> >
> >
> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)
> >         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
> >         at
> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
> >         at
> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
> >         at
> >
> >
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
> >         at
> >
> >
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
> >
> > Thanks
> > Meghna.
> >
>
>
>
> --
> David Grizzanti
> Software Engineer
> Sungard Availability Services
>
> e: david.grizzanti@sungard.com
> w: 215.446.1431
> c: 570.575.0315
>

Re: Simulator : Error while creating a snapshot from a VM

Posted by Meghna Kale <me...@sungard.com>.
David,


I tried applying the changes from the commit mentioned by you and re-build
the code. But still the problem is not solved.

Need help.

Thanks
Meghna.


On Thu, Mar 20, 2014 at 10:22 PM, David Grizzanti <
david.grizzanti@sungard.com> wrote:

> Meghna,
>
> I realized one thing that is missing from 4.3 and 4.2 that I added (it's on
> 4.4 and master though).  Here is the commit
>
> https://github.com/apache/cloudstack/commit/dfb81ac1274d8ebe4a47223d10f3de44aa9091bf
> .
>
> If you apply that and re-build, it should fix the create VM snapshot issue.
>
>
> On Thu, Mar 20, 2014 at 6:56 AM, Meghna Kale <meghna.kale@sungard.com
> >wrote:
>
> > Hi All,
> >
> > I have been seeing an error while creating a snapshot from a VM in the
> > Simulator.
> > I faced this issue on both the versions 4.2 and 4.3.
> >
> > Can anyone help me or provide pointers.
> >
> > A similar NullPointer error is also thrown while creating a VM from a
> > personal template created from an existing VM.
> >
> > Error from vmops.log :
> >
> > ERROR [cloud.api.ApiServer] (31312594@qtp-24163675-2:) unhandled
> exception
> > executing api command: createVMSnapshot
> > java.lang.NullPointerException
> >         at
> >
> >
> com.cloud.hypervisor.dao.HypervisorCapabilitiesDaoImpl.isVmSnapshotEnabled(HypervisorCapabilitiesDaoImpl.java:103)
> >         at
> >
> >
> com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
> >         at
> >
> >
> com.cloud.vm.snapshot.VMSnapshotManagerImpl.allocVMSnapshot(VMSnapshotManagerImpl.java:257)
> >         at
> >
> >
> org.apache.cloudstack.api.command.user.vmsnapshot.CreateVMSnapshotCmd.create(CreateVMSnapshotCmd.java:78)
> >         at
> > com.cloud.api.ApiDispatcher.dispatchCreateCmd(ApiDispatcher.java:104)
> >         at com.cloud.api.ApiServer.queueCommand(ApiServer.java:461)
> >         at com.cloud.api.ApiServer.handleRequest(ApiServer.java:373)
> >         at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305)
> >         at com.cloud.api.ApiServlet.doGet(ApiServlet.java:66)
> >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
> >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> >         at
> > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
> >         at
> > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401)
> >         at
> >
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> >         at
> > org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
> >         at
> > org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
> >         at
> > org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
> >         at
> >
> >
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
> >         at
> >
> >
> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
> >         at
> > org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
> >         at org.mortbay.jetty.Server.handle(Server.java:326)
> >         at
> > org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
> >         at
> >
> >
> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)
> >         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
> >         at
> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
> >         at
> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
> >         at
> >
> >
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
> >         at
> >
> >
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
> >
> > Thanks
> > Meghna.
> >
>
>
>
> --
> David Grizzanti
> Software Engineer
> Sungard Availability Services
>
> e: david.grizzanti@sungard.com
> w: 215.446.1431
> c: 570.575.0315
>

Re: Simulator : Error while creating a snapshot from a VM

Posted by David Grizzanti <da...@sungard.com>.
Meghna,

I realized one thing that is missing from 4.3 and 4.2 that I added (it's on
4.4 and master though).  Here is the commit
https://github.com/apache/cloudstack/commit/dfb81ac1274d8ebe4a47223d10f3de44aa9091bf
.

If you apply that and re-build, it should fix the create VM snapshot issue.


On Thu, Mar 20, 2014 at 6:56 AM, Meghna Kale <me...@sungard.com>wrote:

> Hi All,
>
> I have been seeing an error while creating a snapshot from a VM in the
> Simulator.
> I faced this issue on both the versions 4.2 and 4.3.
>
> Can anyone help me or provide pointers.
>
> A similar NullPointer error is also thrown while creating a VM from a
> personal template created from an existing VM.
>
> Error from vmops.log :
>
> ERROR [cloud.api.ApiServer] (31312594@qtp-24163675-2:) unhandled exception
> executing api command: createVMSnapshot
> java.lang.NullPointerException
>         at
>
> com.cloud.hypervisor.dao.HypervisorCapabilitiesDaoImpl.isVmSnapshotEnabled(HypervisorCapabilitiesDaoImpl.java:103)
>         at
>
> com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>         at
>
> com.cloud.vm.snapshot.VMSnapshotManagerImpl.allocVMSnapshot(VMSnapshotManagerImpl.java:257)
>         at
>
> org.apache.cloudstack.api.command.user.vmsnapshot.CreateVMSnapshotCmd.create(CreateVMSnapshotCmd.java:78)
>         at
> com.cloud.api.ApiDispatcher.dispatchCreateCmd(ApiDispatcher.java:104)
>         at com.cloud.api.ApiServer.queueCommand(ApiServer.java:461)
>         at com.cloud.api.ApiServer.handleRequest(ApiServer.java:373)
>         at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305)
>         at com.cloud.api.ApiServlet.doGet(ApiServlet.java:66)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
>         at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
>         at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401)
>         at
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
>         at
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
>         at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
>         at
> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
>         at
>
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
>         at
>
> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
>         at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>         at org.mortbay.jetty.Server.handle(Server.java:326)
>         at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
>         at
>
> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
>         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
>         at
>
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
>         at
>
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
>
> Thanks
> Meghna.
>



-- 
David Grizzanti
Software Engineer
Sungard Availability Services

e: david.grizzanti@sungard.com
w: 215.446.1431
c: 570.575.0315