Skip to content

CLOUDSTACK-8628: kvm: Disable Fencing when no NFS storage pools are p… - #580

Closed
wido wants to merge 2 commits into
apache:masterfrom
wido:CLOUDSTACK-8628
Closed

wido wants to merge 2 commits into
apache:masterfrom
wido:CLOUDSTACK-8628

Conversation

@wido

@wido wido commented Jul 14, 2015

Copy link
Copy Markdown
Contributor

…resent

On NFS we write a heartbeat, but without those we can not safely
fence off a host.

If we fence without knowing about a heartbeat we can cause a split-brain situation.

Signed-off-by: Wido den Hollander wido@widodh.nl

…resent

On NFS we write a heartbeat, but without those we can not safely
fence off a host.

If we fence without knowing about a heartbeat we can cause a split-brain situation.

Signed-off-by: Wido den Hollander <wido@widodh.nl>
@asfbot

asfbot commented Jul 14, 2015

Copy link
Copy Markdown

cloudstack-pull-rats #38 ABORTED

@asfbot

asfbot commented Jul 14, 2015

Copy link
Copy Markdown

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

@wilderrodrigues

Copy link
Copy Markdown
Contributor

Hi @wido

Could you please add an extra test to cover the "if (pools.size() == 0) { ..."?

Cheers,
Wilder

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add an alert for admin here, _alertMgr.sendAlert?

@wilderrodrigues

Copy link
Copy Markdown
Contributor

@wido any news on this PR?

@wido

wido commented Jul 16, 2015

Copy link
Copy Markdown
Contributor Author

Working on a additional commit which brings in more logging and a unit test.

@asfbot

asfbot commented Jul 16, 2015

Copy link
Copy Markdown

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

@asfbot

asfbot commented Jul 16, 2015

Copy link
Copy Markdown

cloudstack-pull-requests #766 UNSTABLE
Looks like there's a problem with this pull request

@asfbot

asfbot commented Jul 16, 2015

Copy link
Copy Markdown

cloudstack-pull-analysis #2 ABORTED

@wilderrodrigues

Copy link
Copy Markdown
Contributor

Travis failed due to NPE:

Tests in error:
KVMFencerTest.testWithFailingFence:135 » NullPointer
KVMFencerTest.testWithSingleHost:75 » NullPointer
KVMFencerTest.testWithSingleHostDown:88 » NullPointer
KVMFencerTest.testWithTimeoutingFence:158 » NullPointer

@wido

wido commented Jul 16, 2015

Copy link
Copy Markdown
Contributor Author

Indeed, I noticed that to late. Fixing the tests.

Also change the logging a bit so that you get useful logs when
not running on DEBUG level
@wido
wido force-pushed the CLOUDSTACK-8628 branch from db806f9 to c118fb4 Compare July 17, 2015 09:58
@asfbot

asfbot commented Jul 17, 2015

Copy link
Copy Markdown

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

@wido

wido commented Jul 17, 2015

Copy link
Copy Markdown
Contributor Author

The tests have been fixed, Mocking issue in the test.

@DaanHoogland

Copy link
Copy Markdown
Contributor

LGTM, how about the alert @bhaisaab asked for?

@wido

wido commented Jul 17, 2015

Copy link
Copy Markdown
Contributor Author

@DaanHoogland It is in the KVMFencer in the MGMT server. The Agent can't send an alert, so I had to do this in the mgmt server.

@asfbot

asfbot commented Jul 17, 2015

Copy link
Copy Markdown

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

@DaanHoogland

Copy link
Copy Markdown
Contributor

@wido thanks for the clarification. as said LGTM

@asfgit asfgit closed this in fbe3b04 Jul 17, 2015
@wido
wido deleted the CLOUDSTACK-8628 branch July 17, 2015 10:33
@asfbot

asfbot commented Jul 17, 2015

Copy link
Copy Markdown

cloudstack-pull-analysis #10 ABORTED

maneesha-p pushed a commit to maneesha-p/cloudstack that referenced this pull request Jul 31, 2015
Also change the logging a bit so that you get useful logs when
not running on DEBUG level

Signed-off-by: Wido den Hollander <wido@widodh.nl>

This closes apache#580
yadvr pushed a commit that referenced this pull request Jan 20, 2021
Co-authored-by: Pearl Dsilva <pearl.dsilva@shapeblue.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
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.

5 participants