Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README to include note about arping version #49

Open
wtip opened this issue Oct 5, 2018 · 1 comment
Open

Update README to include note about arping version #49

wtip opened this issue Oct 5, 2018 · 1 comment

Comments

@wtip
Copy link

wtip commented Oct 5, 2018

I'm using Ubuntu 16.04 servers

The mha-helper was failing when running the arping command with requires_arping configured.
I had run apt install arping
I tried manually running the arping command without the -q quiet flag and was getting timeout messages.
I discovered this thread https://bugs.launchpad.net/neutron/+bug/1715734 and installed iputils-arping instead which fixed the error code.
I also had to do a ln -s /usr/bin/arping /usr/sbin/arping because this arping version installs at a different path.

@wtip
Copy link
Author

wtip commented Aug 1, 2020

In case anyone is wondering why arping always fails on Ubuntu 20.04 Focal it's because a bug was introduced that always returns a exit code 1.
This was fixed with this commit iputils/iputils@68f12fc but that version is not available in the Focal repo at this time

My quick hack to fix this is to modify this line

arping_cmd = "%s -q -c 3 -A -I %s %s" % (VIPMetalHelper.ARPING_CMD, self._cluster_interface, self._writer_vip)

to this
arping_cmd = "%s -q -c 3 -A -I %s %s || true" % (VIPMetalHelper.ARPING_CMD, self._cluster_interface, self._writer_vip)

So that the exit code is always 0.

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

No branches or pull requests

1 participant