From nobody Mon Jun 14 08:36:21 2021 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 953E75D293F for ; Mon, 14 Jun 2021 08:36:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4G3PtY2BDcz4Ybm for ; Mon, 14 Jun 2021 08:36:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 2C91611D02 for ; Mon, 14 Jun 2021 08:36:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 15E8aLQp021395 for ; Mon, 14 Jun 2021 08:36:21 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 15E8aLat021394 for bugs@FreeBSD.org; Mon, 14 Jun 2021 08:36:21 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 256592] autofs_trigger_one: request for /net/ completed with error 60 Date: Mon, 14 Jun 2021 08:36:21 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: timf@puroto.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D256592 Bug ID: 256592 Summary: autofs_trigger_one: request for /net/ completed with error 60 Product: Base System Version: 13.0-STABLE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: timf@puroto.org In a holdover from our days on Solaris, we use NFS automountd frequently. However, browsing /net mountpoints with the following /etc/auto_master entry generally causes a 5 second lag when visiting each directory before our bash prompt returns: /net -hosts -nosuid,intr In /var/adm/messages, we typically see: WARNING: autofs_task: request 94 for /net/ timed out after 30 seconds WARNING: autofs_trigger_one: request for /net/ completed with error 60, pid 3311 (git) WARNING: autofs_task: request 95 for /net/ timed out after 30 seconds WARNING: autofs_trigger_one: request for /net/ completed with error 60, pid 3311 (git) WARNING: autofs_task: request 96 for /net/ timed out after 30 seconds WARNING: autofs_trigger_one: request for /net/ completed with error 60, pid 3311 (git) WARNING: autofs_task: request 97 for /net/ timed out after 30 seconds WARNING: autofs_trigger_one: request for /net/ completed with error 60, pid 3311 (git) Seeing "git" there looks a bit odd. In our ~/.bashrc, we have this code to automatically show the git branch of any directory we visit in case it's a = git repository: =3D=3D=3D parse_git_branch() { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' } function bash_prompt { if [[ "$(id -u)" =3D=3D 0 ]]; then return fi echo "\[\033[00;34m\]$(id -un)@\$(uname -n)\$(parse_git_branch)\[\033[0= 0m\] " } PS1=3D$(bash_prompt) =3D=3D=3D so that seems like it might have some relevance. Sure enough, when running automountd with some debug flags, we see: root@puroto:~/.ssh # automountd -d -v automountd: waiting for request from the kernel automountd: not forking due to -d flag; will exit after servicing a single request automountd: got request 91: from map -hosts, path /net/, prefix "/net", key ".git", options "nosuid,intr" automountd: parsing map "-hosts" automountd: executing "/etc/autofs/special_hosts .git" as pid 3319 RPC: Unknown host showmount: can't do exports rpc automountd: "/etc/autofs/special_hosts .git", pid 3319, terminated with exit status 1 automountd: failed to handle special map "-hosts" automountd: completing request 91 with error 5 So why does automountd think ".git" is a hostname we should be passing to t= he special_hosts script, which otherwise ought to be just running 'showmount -= e' on the NFS server? Something must be passing ".git" as an argument to /etc/autofs/special_hosts? For now, we've hacked around the problem with this change to /etc/autofs/special_hosts on the NFS client to see if we can resolve the ho= st at all. This isn't an ideal fix, but seems to work well enough for now. =3D=3D=3D 13 getent hosts $1 > /dev/null 14 if [ $? -ne 0 ]; then 15 exit 0 16 fi 17 18 out=3D`showmount -E "$1"` 19 [ $? -eq 0 ] || exit 1 20 echo "$out" | awk -v host=3D"$1" \ 21 '{ printf "\"%s\"\t\"%s:%s\" ", $0, host, $0 } END { printf "\n= " }' 22 =3D=3D=3D There seems to be a similar instance of this sort of thing reported at https://mail-index.netbsd.org/current-users/2019/11/28/msg037105.html We're running: FreeBSD puroto 13.0-RELEASE-p1 FreeBSD 13.0-RELEASE-p1 #0: Wed May 26 22:15= :09 UTC 2021=20=20=20=20 root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC= =20 amd64 --=20 You are receiving this mail because: You are the assignee for the bug.=