GitHub user kansal opened a pull request:

    https://github.com/apache/cloudstack/pull/1307

    CLOUDSTACK-9208: Assertion Error in VM_POWER_STATE handler- Fixed

    Root Cause: In the case of VM_POWER_STATE handler, if PowerOff or 
PowerReportMissing state is encountered, 
handlePowerOffReportWithNoPendingJobsOnVM() is called. If the VM is already in 
stopped state, so in DB the host ID is set to NULL. But in the above function, 
the sendStop() is still called on the empty hostID which results in the 
assertion error.
    
    Fix: Added a condition in the sendStop() itself to check for the host id. 

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/kansal/cloudstack CLOUDSTACK-9208

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cloudstack/pull/1307.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1307
    
----
commit ec7be7d18351ccd5a29c7db454bc4426bead9a79
Author: Kshitij Kansal <kansa...@gmail.com>
Date:   2016-01-05T06:17:09Z

    CLOUDSTACK-9208: Assertion Error in VM_POWER_STATE handler- Fixed

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to