Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
Even though I am on the local network with not completely slow
connection (see below) ssh mediated via avahi quite often timeouts.
I have to repeat multiple times before the connection happens. (see
below, the repeated runs of ssh just happened by the immediate repeating
[Up]+[Enter]).
matej@mitmanek: ~$ ping narcis.local
PING narcis.local (192.168.0.5) 56(84) bytes of data.
64 bytes from 192.168.0.5: icmp_seq=1 ttl=64 time=1.32 ms
64 bytes from 192.168.0.5: icmp_seq=2 ttl=64 time=3.70 ms
^C
--- narcis.local ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 1.329/2.515/3.701/1.186 ms
matej@mitmanek: ~$ ssh narcis
ssh: Could not resolve hostname narcis.local: Name or service not known
matej@mitmanek: ~$ ssh narcis
ssh: Could not resolve hostname narcis.local: Name or service not known
matej@mitmanek: ~$ ssh narcis
ssh: Could not resolve hostname narcis.local: Name or service not known
matej@mitmanek: ~$ ssh narcis
Last login: Mon May 18 18:08:55 2015 from 192.168.0.3
marketa@narcis:~$ logout
Connection to narcis.local closed.
marketa@narcis:~$
Version-Release number of selected component (if applicable):
(on client)
matej@mitmanek: ~$ rpm -qa avahi\*
avahi-debuginfo-0.6.31-14.el7.x86_64
avahi-gobject-0.6.31-14.el7.x86_64
avahi-devel-0.6.31-14.el7.x86_64
avahi-autoipd-0.6.31-14.el7.x86_64
avahi-tools-0.6.31-14.el7.x86_64
avahi-glib-devel-0.6.31-14.el7.x86_64
avahi-glib-0.6.31-14.el7.x86_64
avahi-0.6.31-14.el7.x86_64
avahi-libs-0.6.31-14.el7.x86_64
avahi-ui-gtk3-0.6.31-14.el7.x86_64
(on server)
marketa@narcis:~$ rpm -qa avahi\*
avahi-libs-0.6.25-15.el6.i686
avahi-ui-0.6.25-15.el6.i686
avahi-glib-0.6.25-15.el6.i686
avahi-tools-0.6.25-15.el6.i686
avahi-ui-tools-0.6.25-15.el6.i686
avahi-autoipd-0.6.25-15.el6.i686
avahi-0.6.25-15.el6.i686
marketa@narcis:~$
How reproducible:
Happens quite often (I guess there is some caching, so sometimes ssh
uses cached IP)
Steps to Reproduce:
1. run ssh to the avahi connected server (narcis is here defined as
marketa so it goes over avahi).
2.
3.
Actual results:
Times out.
Expected results:
It should work reliably on LAN with not much problems with connection.
(In reply to Michal Sekletar from comment #5)
> Note that before updating to fixed version I was able to get avahi into the
> bad state by running,
>
> service avahi-daemon restart; service network restart
>
> Here is a scratch build, please test.
>
> https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=11104865
I am not 100% certain that it has been fixed, because I really didn't have foolproof reproduction steps (also, I don't have updated packages on the other side of the connection, which is RHEL-6), but certainly the situation is not worse, and it perhaps looks better. I haven't got the stalled connection for some time.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://rhn.redhat.com/errata/RHBA-2016-2549.html