Fix test_keepalived_ipv6_support for Keepalived v1.2.20
In commit [1] (some explanation in [2] ) VRRP initialisation is enhanced
to read source IP address(to use when sending VRRP packets) from the
HA interface or from keepalived config("unicast_src_ip" parameter).
If it is unable to find IP address, VRRP initialisation will fail with
error "Cannot find an IP address to use for interface".
In the test, we set vrrp->family to AF_INET by setting vip to
169.254.0.1/24 through config, but not providing source IPv4 address(i.e
no 'unicast_src_ip' option or no IP on HA interface), making the test
to fail with [1]. To fix that, we set the IP address on HA interface.
Note: Commit [1] is added in Keepalived version 1.2.20.
Tested the fix on both Keepalived v1.2.19 and Keepalived v1.2.20.
Reviewed: https:/ /review. openstack. org/497157 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=c16800f02aa 740142d0e765508 6dfafb23b96f51
Committed: https:/
Submitter: Jenkins
Branch: stable/pike
commit c16800f02aa7401 42d0e7655086dfa fb23b96f51
Author: venkata anil <email address hidden>
Date: Wed Aug 23 14:01:19 2017 +0300
Fix test_keepalived _ipv6_support for Keepalived v1.2.20
In commit [1] (some explanation in [2] ) VRRP initialisation is enhanced "unicast_ src_ip" parameter).
to read source IP address(to use when sending VRRP packets) from the
HA interface or from keepalived config(
If it is unable to find IP address, VRRP initialisation will fail with
error "Cannot find an IP address to use for interface".
In the test, we set vrrp->family to AF_INET by setting vip to
169.254.0.1/24 through config, but not providing source IPv4 address(i.e
no 'unicast_src_ip' option or no IP on HA interface), making the test
to fail with [1]. To fix that, we set the IP address on HA interface.
Note: Commit [1] is added in Keepalived version 1.2.20.
Tested the fix on both Keepalived v1.2.19 and Keepalived v1.2.20.
[1] https:/ /github. com/acassen/ keepalived/ commit/ 37488e57 /github. com/acassen/ keepalived/ issues/ 445
[2] https:/
Closes-bug: #1712388 c93f93621afa6ab 13855ef2428 1230db8588dd4cc 1673386ae3)
Change-Id: I260c0e6810ed54
(cherry picked from commit 334a1ed7d52afa2