Path: csiph.com!1.us.feeder.erje.net!feeder.erje.net!2.eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod From: Rafael David Tinoco Newsgroups: linux.debian.bugs.dist,linux.debian.kernel Subject: Bug#856328: Fix nfs-mountd dependency on rpcbind Date: Mon, 27 Feb 2017 22:30:02 +0100 Message-ID: X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Mon Feb 27 21:27:10 2017 Old-Return-Path: X-Spam-Flag: NO X-Spam-Score: -3.59 Reply-To: Rafael David Tinoco , 856328@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: Debian kernel team X-Debian-Pr-Message: report 856328 X-Debian-Pr-Package: nfs-utils X-Debian-Pr-Keywords: fixed-upstream patch sid X-Debian-Pr-Source: nfs-utils X-Spam-Bayes: score:0.0000 Tokens: new, 38; hammy, 150; neutral, 91; spammy, 0. spammytokens: hammytokens:0.000-+--systemd, 0.000-+--UD:socket, 0.000-+--H*F:D*canonical.com, 0.000-+--H*rp:D*canonical.com, 0.000-+--rpcbind Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=N3bKJGly2z6UXpVNcEA0x/hz0qmE96els+u0t8c/DfM=; b=m2GY2J36u8CtK7NJgfxqTPmUpvnafLYgrSdvm2+DoxfN+XRoNuKId4VkgXgLo34FP3 SFTsdioTVWIqPpTgV0dvPGcp+/JnP47qjOiIJmOh0TTuWno2Zx10YmhMGAi9OJNt0Is8 Xhpz0tmSvJsSERwCYdPD2uo6BP3ZZTXj5f8ElOihChcrsWFPxSQUAKsMgH06xFhRpGsH LqvX5t2W0CK9r7EIxjb66wd1LcxAAxP6a6SszDsWyAOqOmcOdWtPFiXAgw4iU9AhiAX5 L4/VAlN01FI0O5VCWeAEE7DpFUZzyYY7LXB1ygi/cqXMntjfigNFz3bQkBKs2s7bZdjs 7qpw== X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=N3bKJGly2z6UXpVNcEA0x/hz0qmE96els+u0t8c/DfM=; b=LerJPZFHogrhMor2saTz1ndSSbBXP5z/Xg+6+KrzToZgqOv3bg7t2f//Np1wNkJBZO sweWub27ud1EVL+ucDVVhzjl+nlLlukj3hyFBbizeSSOkh1Mh64Hfr/8z3G1KQu45srt mjkndW0rbi4X8ZIgULsx6LZOlYzL6R87JRjSLDoYrOUQ7Xx2fCg8f18BhgBQ8JBRhWty Ws9tawXhsi6Zt+zt1IWwpJDrAOrUalxdbyagbDH9gZJxdXMAbedmtXHjJYQwmzEuD+Xg SHybU/SvyTKCLbsOc78ZAdZhuw/UByg2XJyqtTlMEpyewREon5ffZIcMvMhTIRQaHe5X 8vxA== X-Gm-Message-State: AMke39k1BR9dazavc4GMvnHM1xxiBydBuTHBFlYLZyt9VyWel8kd0L3I41hwFqVZ3NVLYB70 X-Received: by 10.202.190.136 with SMTP id o130mr9580152oif.14.1488230627183; Mon, 27 Feb 2017 13:23:47 -0800 (PST) X-Received: by 10.202.215.85 with SMTP id o82mr9924754oig.78.1488230626724; Mon, 27 Feb 2017 13:23:46 -0800 (PST) MIME-Version: 1.0 X-Gmail-Original-Message-ID: Content-Type: text/plain; charset=UTF-8 X-Debian-Message: from BTS X-Mailing-List: archive/latest/1358208 List-ID: List-URL: Approved: robomod@news.nic.it Lines: 49 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Mon, 27 Feb 2017 18:23:06 -0300 X-Original-Message-ID: Xref: csiph.com linux.debian.bugs.dist:810190 linux.debian.kernel:57111 Package: nfs-utils Version: 1:1.3.4-2 Severity: important Tags: patch, fixed-upstream, sid, Hello maintainer, I'm fixing this behavior in Ubuntu and I think fixing it in Debian is needed: https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1590799 You can follow the upstream discussion for this fix: https://www.spinics.net/lists/linux-nfs/msg62022.html """ Following commit 91da135f - it replaced "rpcbind.target" by "rpcbind.socket" in some unit files - "rpcbind.socket" should also be added to "nfs-mountd.service" as a dependency to avoid race conditions. Usually "rpcbind.socket" is either started as a "sockets.target" dependency, or as a dependency for "nfs-server.service", when unit files include it in "BindsTo" or "After". Unfortunately there is a possilibility to have "nfs-mountd.service" started when the rpcbind socket is not yet created: systemd[1]: Starting NFS Mount Daemon... systemd[1]: nfs-mountd.service: Control process exited, code=exited status=1 systemd[1]: Failed to start NFS Mount Daemon. systemd[1]: nfs-mountd.service: Unit entered failed state. systemd[1]: nfs-mountd.service: Failed with result 'exit-code'. Nowadays "nfs-mountd.service" uses "BindTo" directive to "nfs-server.service". That, per se, doesn't guarantee ordering for NFS server to start rpcbind and for nfs-mountd to depend on it. https://bugs.launchpad.net/bugs/1590799 Signed-off-by: Rafael David Tinoco """ These comments show the problem when nfs-kernel-server starts before rpcbind.service is brought online (by rpcbind.socket): https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1590799/comments/24 Explanation: https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1590799/comments/25 https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1590799/comments/30