Ondřej Svoboda has uploaded a new change for review. Change subject: networkTests: give an instructory message when an address could not be added ......................................................................
networkTests: give an instructory message when an address could not be added On recent Fedoras and EL7 NetworkManager sets the sysctl property disable_ipv6 on some interfaces (including veths) silently, as a workaround to IPv6LL (link-local address) assignment clash between NM and the kernel, see e.g. https://bugzilla.redhat.com/show_bug.cgi?id=1102064 In the next commits this problem will be addressed by telling NM to unmanage our veth pairs and dummy devices. Change-Id: If6af114383d06072fcd32f62a63728b5967c9f5d Signed-off-by: Ondřej Svoboda <osvob...@redhat.com> --- M tests/functional/dummy.py 1 file changed, 6 insertions(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/99/37699/1 diff --git a/tests/functional/dummy.py b/tests/functional/dummy.py index 92ce563..f036784 100644 --- a/tests/functional/dummy.py +++ b/tests/functional/dummy.py @@ -54,7 +54,12 @@ try: addrAdd(dummyName, ipaddr, netmask, family) except IPRoute2Error as e: - raise SkipTest('Failed to set device ip: %s' % e) + message = ('Failed to add the IPv%s address %s/%s to device %s: %s' + % (family, ipaddr, netmask, dummyName, e)) + if family == 6: + message += ('; NetworkManager may have set the sysctl disable_ipv6' + ' flag on the device, please see e.g. RH BZ #1102064') + raise SkipTest(message) def setLinkUp(dummyName): -- To view, visit http://gerrit.ovirt.org/37699 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: If6af114383d06072fcd32f62a63728b5967c9f5d Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Ondřej Svoboda <osvob...@redhat.com> _______________________________________________ vdsm-patches mailing list vdsm-patches@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches