ravening opened a new pull request #4363:
URL: https://github.com/apache/cloudstack/pull/4363


   ## Description
   <!--- Describe your changes in detail -->
   Adds a new global setting set.host.down.to.maintenance which when set
   to true will allow setting a host in downstate into maintenance mode
   so that when the host comes back up, it will be automatically set to
   maintenance mode and the resource state will not be set to Enabled.
   
   
   ## Types of changes
   <!--- What types of changes does your code introduce? Put an `x` in all the 
boxes that apply: -->
   - [ ] Breaking change (fix or feature that would cause existing 
functionality to change)
   - [ ] New feature (non-breaking change which adds functionality)
   - [ ] Bug fix (non-breaking change which fixes an issue)
   - [X] Enhancement (improves an existing feature and functionality)
   - [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
   
   ## Screenshots (if appropriate):
   
   ## How Has This Been Tested?
   <!-- Please describe in detail how you tested your changes. -->
   <!-- Include details of your testing environment, and the tests you ran to 
-->
   <!-- see how your change affects other areas of the code, etc. -->
   1, Power off one hypervisor so that it enters DOWN state
   2. set the global setting `set.host.down.to.maintenance` to true
   3. Enable maintenance mode on that host
   4. Start the hypervisor
   5. When it comes back up, it will be in maintenance mode
   


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

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


Reply via email to