_userDao.findById(userId);
>>>>> -
>>>>> +boolean status = false;
>>>>> try {
>>>>> VirtualMachineEntity vmEntity =
>>>>> _orchSrvc.getVirtualMachine(vm.getUuid());
>>>>> -
= vmEntity.stop(new Long(userId).toString());
>>>> +if (status) {
>>>> + return _vmDao.findById(vmId);
>>>> +} else {
>>>> + return null;
>>>> +}
>>>> } catch (Resour
+} else {
>>> + return null;
>>> + }
>>> } catch (ResourceUnavailableException e) {
>>> throw new CloudRuntimeException(
>>> "Unable to contact the agent to stop the
"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
> + vm, e);
> }
>
> -return _vmDao.findById(vmId);
> +
> }
>
> @Override
>
>
> > -Original Message-
> > From: Marcus Sorensen [mailto:shadow...@gmail.com]
> > Sent: Thursday, April 25, 201
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
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
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/
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