Repository navigation
CLOUDSTACK-8666: Put host in Alert state only after alert.wait timeout - #621
Closed
koushik-das wants to merge 1 commit into
Closed
koushik-das wants to merge 1 commit into
koushik-das wants to merge 1 commit into
Conversation
Instead of putting the host to Alert state immediately, the investigators should be allowed to run for some time based on alert.wait global config. At the end of this interval if the host state still cannot be determined then put the host in Alert. Also updated some of the log messages.
|
cloudstack-pull-rats #117 SUCCESS |
|
cloudstack-pull-requests #815 SUCCESS |
|
cloudstack-pull-analysis #50 SUCCESS |
Contributor
|
LGTM |
1 similar comment
Contributor
|
LGTM |
Contributor
Author
|
Merging it as 2 LGTMs |
Contributor
|
wasn't this needing (unit)-tests? |
Contributor
Author
|
@DaanHoogland Writing an unit test for changes in AgentManagerImpl.java is hard due to the way the method gets invoked. Let me know if you have any suggestion. |
Contributor
|
Hi @koushik-das Perhaps refactoring the code in a way that its design is improved could make easy to add tests for it. |
Contributor
Author
|
@wilderrodrigues Agree that refactoring the code might help with the tests. But that will be a bigger effort. |
maneesha-p
pushed a commit
to maneesha-p/cloudstack
that referenced
this pull request
Jul 31, 2015
Instead of putting the host to Alert state immediately, the investigators should be allowed to run for some time based on alert.wait global config. At the end of this interval if the host state still cannot be determined then put the host in Alert. Also updated some of the log messages. This closes apache#621
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Instead of putting the host to Alert state immediately, the investigators should be allowed to run for some time based on alert.wait global config.
At the end of this interval if the host state still cannot be determined then put the host in Alert. Also updated some of the log messages.
Refer to the bug for the detailed description.
Since these scenarios are difficult to simulate, haven't written any tests. If anyone has suggestions on some tests please let me know.