qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ganesh Murthy (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DISPATCH-216) system_tests_protocol_family fails on systems with no IPv6
Date Wed, 27 Apr 2016 13:12:12 GMT

    [ https://issues.apache.org/jira/browse/DISPATCH-216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15260106#comment-15260106
] 

Ganesh Murthy commented on DISPATCH-216:
----------------------------------------

I found that socket.has_ipv6 cannot always be trusted. In my local machine socket.has_ipv6
always returned  True

I disabled IPv6 like this (as suggested by Chuck) - 
{noformat}
sudo sh -c 'echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6'
{noformat}
socket.has_ipv6 still returns True after turning off IPv6, but tests/system_test.py's get_port(cls,
protocol_family='IPv6') returned an error - No available ports in range 20000 - 30000

I enabled IPv6 like this
{noformat}
sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6'
{noformat}



> system_tests_protocol_family fails on systems with no IPv6
> ----------------------------------------------------------
>
>                 Key: DISPATCH-216
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-216
>             Project: Qpid Dispatch
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: 0.5
>            Reporter: Chuck Rolke
>            Assignee: Ganesh Murthy
>
> The test assumes IPv6 and fails without it.
> To disable IPv6 temporarily on Fedora:
> {noformat}
> sudo sh -c 'echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6' 
> {noformat}
> To test for IPv6 in Python
> {noformat}
>   import socket
>   if socket.has_ipv6:
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Mime
View raw message