cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (CLOUDSTACK-2071) calling startVirtualMachine can report success even when VMs fail to start
Date Wed, 17 Apr 2013 19:13:16 GMT


ASF subversion and git services commented on CLOUDSTACK-2071:

Commit 8d0bea994dcd74cd6707b58ac2e4060a93f52d96 in branch refs/heads/master from Marcus Sorensen
[;h=8d0bea9 ]

CLOUDSTACK-2071 - start() method for instance
can fail to start a VM without notifying caller, if no exception is triggered.
The result is that VM start looks successful but was not. This fixes it by
throwing an exception at the very end if the object to be passed back is still

Signed-off-by: Marcus Sorensen <> 1366225829 -0600

> calling startVirtualMachine can report success even when VMs fail to start
> --------------------------------------------------------------------------
>                 Key: CLOUDSTACK-2071
>                 URL:
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Management Server
>    Affects Versions: 4.1.0, 4.2.0
>            Reporter: Marcus Sorensen
>            Assignee: Marcus Sorensen
>            Priority: Blocker
>             Fix For: 4.1.0, 4.2.0
> startVirtualMachine eventually ends up in, which calls:
>  VMInstanceVO vmDeployed = _itMgr.start(vm, params, _userDao.findById(new Long(caller)),
_accountDao.findById(vm.getAccountId()), plan);
> It does nothing with vmDeployed. Now, looking at that start() method in,
if startAnswer.getResult is true, we populate the "startedVm" variable and pass it back. If
false ( vm failed to start), we print the error in the management server's log, then we catch
a bunch of exceptions that could occur, but then happily pass back null in the variable "startedVm".
No exception was thrown, so the management server acts as though the start of the VM succeeded.
> This was previously masked by an exception thrown by the host agent, which was recently

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message