[ACS41] new critical bug

2013-04-25 Thread Marcus Sorensen
I didn't mark this one as a blocker, but it's still pretty bad for someone managing VMs in an automated fashion. Trying to stop a VM when the KVM agent is disconnected reports success. https://issues.apache.org/jira/browse/CLOUDSTACK-2195

Re: [ACS41] new critical bug

2013-04-25 Thread Chip Childers
On Thu, Apr 25, 2013 at 02:01:56PM -0600, Marcus Sorensen wrote: > I didn't mark this one as a blocker, but it's still pretty bad for someone > managing VMs in an automated fashion. Trying to stop a VM when the KVM > agent is disconnected reports success. > > https://issues.apache.org/jira/browse/

Re: [ACS41] new critical bug

2013-04-25 Thread Marcus Sorensen
I tried a few things, including throwing a CloudRuntimeException in several places where I thought it made sense, such as an empty AgentUnavailableException catch block, but it doesn't seem to do anything at all, I don't see it in the logs, even though I do see the debug code that I placed next to

RE: [ACS41] new critical bug

2013-04-25 Thread Edison Su
yId(vmId); + } @Override > -Original Message- > From: Marcus Sorensen [mailto:shadow...@gmail.com] > Sent: Thursday, April 25, 2013 4:46 PM > To: dev@cloudstack.apache.org > Subject: Re: [ACS41] new critical bug > > I tried a few things, including

Re: [ACS41] new critical bug

2013-04-25 Thread Marcus Sorensen
> + vm, e); > } > > -return _vmDao.findById(vmId); > + > } > > @Override > > > > -Original Message- > > From: Marcus Sorensen [mailto:shadow...@gmail.com] > > Sent: Thursday, April 25, 201

Re: [ACS41] new critical bug

2013-04-25 Thread Marcus Sorensen
"Unable to contact the agent to stop the virtual >> machine " >> @@ -3698,7 +3703,7 @@ public class UserVmManagerImpl extends ManagerBase >> implements UserVmManager, Use >> + vm, e); >> } >> >> -return _vm

Re: [ACS41] new critical bug

2013-04-25 Thread Marcus Sorensen
+} else { >>> + return null; >>> + } >>> } catch (ResourceUnavailableException e) { >>> throw new CloudRuntimeException( >>> "Unable to contact the agent to stop the

Re: [ACS41] new critical bug

2013-04-25 Thread Marcus Sorensen
= vmEntity.stop(new Long(userId).toString()); >>>> +if (status) { >>>> + return _vmDao.findById(vmId); >>>> +} else { >>>> + return null; >>>> +} >>>> } catch (Resour

Re: [ACS41] new critical bug

2013-04-25 Thread Marcus Sorensen
_userDao.findById(userId); >>>>> - >>>>> +boolean status = false; >>>>> try { >>>>> VirtualMachineEntity vmEntity = >>>>> _orchSrvc.getVirtualMachine(vm.getUuid()); >>>>> -