Skip to content

CLOUDSTACK-8666: Put host in Alert state only after alert.wait timeout - #621

Closed
koushik-das wants to merge 1 commit into
apache:masterfrom
koushik-das:CLOUDSTACK-8666
Closed

koushik-das wants to merge 1 commit into
apache:masterfrom
koushik-das:CLOUDSTACK-8666

Conversation

@koushik-das

Copy link
Copy Markdown
Contributor

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.

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

asfbot commented Jul 23, 2015

Copy link
Copy Markdown

cloudstack-pull-rats #117 SUCCESS
This pull request looks good

@asfbot

asfbot commented Jul 23, 2015

Copy link
Copy Markdown

cloudstack-pull-requests #815 SUCCESS
This pull request looks good

@asfbot

asfbot commented Jul 23, 2015

Copy link
Copy Markdown

cloudstack-pull-analysis #50 SUCCESS
This pull request looks good

@wido

wido commented Jul 23, 2015

Copy link
Copy Markdown
Contributor

LGTM

1 similar comment
@kishankavala

Copy link
Copy Markdown
Contributor

LGTM

@koushik-das

Copy link
Copy Markdown
Contributor Author

Merging it as 2 LGTMs

@asfgit asfgit closed this in 090db05 Jul 24, 2015
@koushik-das
koushik-das deleted the CLOUDSTACK-8666 branch July 24, 2015 06:48
@DaanHoogland

Copy link
Copy Markdown
Contributor

wasn't this needing (unit)-tests?

@koushik-das

Copy link
Copy Markdown
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.
Fot the HighAvailabilityManagerImpl.java changes I have written a unit test, will send out the PR for that.

@wilderrodrigues

Copy link
Copy Markdown
Contributor

Hi @koushik-das

Perhaps refactoring the code in a way that its design is improved could make easy to add tests for it.

@koushik-das

Copy link
Copy Markdown
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants