Github user kansal commented on the pull request:

    https://github.com/apache/cloudstack/pull/1307#issuecomment-168977391
  
    @DaanHoogland With the current code, even if the VM is in poweroff(or power 
report missing) state and stopped state in DB, and receives a stop command, it 
gets this error. (Atleast, This was the case I encountered in my local setup). 
    
    One argument could be why are we sending(or trying to send) the stop 
command even if the VM is in the the poweroff state (on host) and stopped state 
(in DB). 
    
    We can remove sending of command in the poweroff state but only once we 
have verified that host id is set to null only in stopped case in DB i.e. "host 
id is NULL" and "vm in stopped state" are analogous. 
    
    I can check the code and update you. Are there any scenarios that you are 
aware of?


---
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