Github user anshul1886 commented on the pull request:

    https://github.com/apache/cloudstack/pull/829#issuecomment-142899514
  
    From code it seems to be getting updated and DB also suggests that. It will 
not be updated if there is no power change for 
MAX_CONSECUTIVE_SAME_STATE_UPDATE_COUNT. But that is to reduce DB transactions 
and will not create issues as it is updated if there is change in power state.
    
    Grace period can be increased by increasing ping interval. By default it is 
60 seconds. You can increase it to 90 or 120 seconds to increase the grace 
period.
    
    Code which is doing update 
    
    for (Map.Entry<Long, VirtualMachine.PowerState> entry : 
translatedInfo.entrySet()) {
    
                if (s_logger.isDebugEnabled())
                    s_logger.debug("VM state report. host: " + hostId + ", vm 
id: " + entry.getKey() + ", power state: " + entry.getValue());
    
                if (_instanceDao.updatePowerState(entry.getKey(), hostId, 
entry.getValue())) {
                    if (s_logger.isDebugEnabled())
                        s_logger.debug("VM state report is updated. host: " + 
hostId + ", vm id: " + entry.getKey() + ", power state: " + entry.getValue());



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