[
https://issues.apache.org/jira/browse/PROTON-2313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17253028#comment-17253028
]
Jiri Daněk edited comment on PROTON-2313 at 12/21/20, 6:33 PM:
---------------------------------------------------------------
I had the same problem when I was exploring the bubblewrap sandbox. I had to
specifically configure DNS resolution to make sure I don't get Chucks error
message in the Dispatch log to get a passing test.
https://github.com/apache/qpid-dispatch/blob/31372e1be2f2057b4bb696d270de20ba990f3913/tests/CMakeLists.txt#L70-L73
{code}
# Inaccessible DNS servers produce "proton:io Temporary failure in name
resolution".
# For system_tests_bad_configuration we need to get "proton:io Name or
service not known",
# so blank /etc/nsswitch.conf to achieve that.
set(BWRAP_ARGS bwrap --bind / / --bind /dev/zero /etc/nsswitch.conf
--unshare-net --dev /dev --die-with-parent --)
{code}
was (Author: jdanek):
I had the same problem when I was exploring the bubblewrap sandbox. I had to
specifically configure DNS resolution to make sure I don't get Chucks error
message in the Dispatch log and the tests pass.
https://github.com/apache/qpid-dispatch/blob/31372e1be2f2057b4bb696d270de20ba990f3913/tests/CMakeLists.txt#L70-L73
{code}
# Inaccessible DNS servers produce "proton:io Temporary failure in name
resolution".
# For system_tests_bad_configuration we need to get "proton:io Name or
service not known",
# so blank /etc/nsswitch.conf to achieve that.
set(BWRAP_ARGS bwrap --bind / / --bind /dev/zero /etc/nsswitch.conf
--unshare-net --dev /dev --die-with-parent --)
{code}
> [proton-c] Connection to unresolvable address returns retry instead of failure
> ------------------------------------------------------------------------------
>
> Key: PROTON-2313
> URL: https://issues.apache.org/jira/browse/PROTON-2313
> Project: Qpid Proton
> Issue Type: Bug
> Components: proton-c
> Affects Versions: proton-c-0.33.0
> Reporter: Charles E. Rolke
> Priority: Major
>
> A qpid-dispatch self test tries to open a connector (outgoing connection) to
> an unresolvable address.
> [https://github.com/apache/qpid-dispatch/blob/0634a070aa6f902bf5b6f9537a5406e4cfc5a0d5/tests/system_tests_bad_configuration.py#L105]
> The expectation is that proton will return a proton:io error. This does not
> appear to be a regression as the issue exists in 0.33.0.
> {code:java}
> Fedora 31 64-bit bare metal
> Proton git branch master @ e4c179855. Dispatch git branch master @ 0634a070
> 2020-12-21 11:04:51.294685 -0500 SERVER (trace) [C1] Connecting to
> unresolvable.host.name:amqp (/home/chug/git/qpid-dispatch/src/server.c:1204)
> 2020-12-21 11:04:51.555518 -0500 SERVER (info) [C1] Connection to
> unresolvable.host.name:amqp failed: proton:io Name or service not known -
> connect to unresolvable.host.name:5672
> (/home/chug/git/qpid-dispatch/src/server.c:1065)
> {code}
> In some cases proton never returns an error but retries indefinitely.
> {code:java}
> Host: Fedora 32 x86_64
> VM: whatever one gets from qpid-dispatch/dockerfiles/Dockerfile-fedora
> in VM uname -a shows: Linux 879605af38a6 5.9.14-100.fc32.x86_64 #1 SMP
> Fri Dec 11 14:30:38 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
> 2020-12-21 15:53:46.738685 +0000 SERVER (trace) [C1] Connecting to
> unresolvable.host.name:amqp (/main/qpid-dispatch/src/server.c:1204)
> 2020-12-21 15:53:46.919237 +0000 SERVER (info) [C1] Connection to
> unresolvable.host.name:amqp failed: proton:io Temporary failure in name
> resolution - connect to unresolvable.host.name:5672
> (/main/qpid-dispatch/src/server.c:1065)
> 2020-12-21 15:53:51.919149 +0000 SERVER (trace) [C2] Connecting to
> unresolvable.host.name:amqp (/main/qpid-dispatch/src/server.c:1204)
> 2020-12-21 15:53:52.107100 +0000 SERVER (info) [C2] Connection to
> unresolvable.host.name:amqp failed: proton:io Temporary failure in name
> resolution - connect to unresolvable.host.name:5672
> (/main/qpid-dispatch/src/server.c:1065)
> 2020-12-21 15:53:57.108089 +0000 SERVER (trace) [C3] Connecting to
> unresolvable.host.name:amqp (/main/qpid-dispatch/src/server.c:1204)
> 2020-12-21 15:53:57.247889 +0000 SERVER (info) [C3] Connection to
> unresolvable.host.name:amqp failed: proton:io Temporary failure in name
> resolution - connect to unresolvable.host.name:5672
> (/main/qpid-dispatch/src/server.c:1065)
> {code}
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]