joseflauzino opened a new pull request #5633:
URL: https://github.com/apache/cloudstack/pull/5633


   ### Description
   
   This PR fixes the behavior of the stats collector with respect to VMs that 
are not running. The need for this is that if a running VM has a state change 
for some reason, ACS keeps showing the latest metrics stats collected.
   
   ### Types of changes
   
   - [ ] Breaking change (fix or feature that would cause existing 
functionality to change)
   - [ ] New feature (non-breaking change which adds functionality)
   - [x] Bug fix (non-breaking change which fixes an issue)
   - [ ] Enhancement (improves an existing feature and functionality)
   - [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
   
   ### Feature/Enhancement Scale or Bug Severity
   
   #### Feature/Enhancement Scale
   
   - [ ] Major
   - [x] Minor
   
   #### Bug Severity
   
   - [ ] BLOCKER
   - [ ] Critical
   - [ ] Major
   - [x] Minor
   - [ ] Trivial
   
   ### How Has This Been Tested?
   
   Using ACS UI, I performed the following steps:
   - I deployed a VM and waited for the complete boot;
   - I enabled the presentation of metric statistics in the UI;
   - I waited for ACS to collect and show metrics stats;
   - And then, I tested two different cases:
        - Case 1 - I stopped VM using ACS UI;
        - Case 2 - I simulated a VM crash by manually stopping it (directly 
from the hypervisor);
   - In both cases, the metrics stats for the VM were successfully cleared. As 
expected, when I tested Case 1, cleanup was done immediately. In Case 2, I had 
to wait for ACS to identify that the VM was stopped and the stats collector try 
to collect new metric stats.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to