From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 2JVCHQBrZmQugwAASxT56A (envelope-from ) for ; Thu, 18 May 2023 20:14:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id kP70HABrZmSDSwAAauVa8A (envelope-from ) for ; Thu, 18 May 2023 20:14:24 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3C12F173E3 for ; Thu, 18 May 2023 20:14:24 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pzi8a-0002vS-DQ; Thu, 18 May 2023 14:14:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pzi8Y-0002ue-3Z for bug-guix@gnu.org; Thu, 18 May 2023 14:14:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pzi8X-00006e-Rm for bug-guix@gnu.org; Thu, 18 May 2023 14:14:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pzi8X-0002N4-NO for bug-guix@gnu.org; Thu, 18 May 2023 14:14:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#62986: Guix System cannot shutdown when there are NFS mounts Resent-From: Bruno Victal Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 18 May 2023 18:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62986 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxim Cournoyer Cc: 62986@debbugs.gnu.org Received: via spool by 62986-submit@debbugs.gnu.org id=B62986.16844336229079 (code B ref 62986); Thu, 18 May 2023 18:14:01 +0000 Received: (at 62986) by debbugs.gnu.org; 18 May 2023 18:13:42 +0000 Received: from localhost ([127.0.0.1]:54488 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pzi8E-0002MN-0H for submit@debbugs.gnu.org; Thu, 18 May 2023 14:13:42 -0400 Received: from smtpmciv1.myservices.hosting ([185.26.107.237]:35286) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pzi8C-0002ME-Ck for 62986@debbugs.gnu.org; Thu, 18 May 2023 14:13:40 -0400 Received: from mail1.netim.hosting (unknown [185.26.106.173]) by smtpmciv1.myservices.hosting (Postfix) with ESMTP id 3F38020DFC; Thu, 18 May 2023 20:13:38 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id ABBAF8009A; Thu, 18 May 2023 20:13:37 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-2.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id jtcFMuIS8qZ4; Thu, 18 May 2023 20:13:37 +0200 (CEST) Received: from [192.168.1.239] (unknown [10.192.1.83]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id 23E1C80098; Thu, 18 May 2023 20:13:37 +0200 (CEST) Message-ID: Date: Thu, 18 May 2023 19:13:36 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Content-Language: en-US References: <87edodyjpi.fsf@gmail.com> From: Bruno Victal In-Reply-To: <87edodyjpi.fsf@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1684433664; a=rsa-sha256; cv=none; b=FgX3dSn/Q+UKQlYMMrdZmrfq6msArin+LSZAnMdwKTKy8ITeFaCh8fwcKiWhSAqEFNiGn9 Guok3k/7J87H3imV7Oy97KphWXtlH7uamveZwKIXi7+HWC7pQujhiIf7FTv1fkVx7rW3+R h34Y0pUBj1w8hQpTvae+VMfN70Mzo9P2z4fRuMZC5KHKEmYGSmWHlzG7CYahouQkG0C3k9 cg1n6Oc2iXekSuyjGxQ19WmA//tcjl6x49l/MRZiKsqakdPVIUYuKSLwA+NeXHBg7Q6oEB JW7W9IClWfjDuLsf9oDr4bHjhQHZDO1lZFdj7BPWwdaunDINynxOz626lJ20sg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1684433664; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=Fpd+3ksgbLdMBfafXyPzy6JJTTuSRNpXv1ko7d+j++c=; b=iGjIel+ey0ulpopQJiJu2lFSI+yetmJHijrVX6hDpmokP9R+EcJDr0nO5ubeamly3lBiwP BNRQlq0PcqV2S7rxkI9WObCT/RcT+ae7ak5qAFPlNKBs8dskGvZ2CcnicKiNPJY9owtnMn Y8bHgjoddiXg6qySqyYN09kIQsGAAM7bCJSsZo2zONYT6IwxQILuion886AtcutnzF/SRy IUC7XkfhZ1Ss/iHp7UiVmCtfXou4cfuwpL3rQqNKAcs1IIXoM7jkv2ZrYRjggVchIX+2K7 V1zAlgrNA5a9q7yOnkHYe337y6OK40EL1Wq7PhKMsXQghaDsEgRBmKEG/tzgQg== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.19 X-Spam-Score: -3.19 X-Migadu-Queue-Id: 3C12F173E3 X-TUID: ksRAqWAFsxMJ Hi Maxim, On 2023-04-21 04:53, Maxim Cournoyer wrote: > Hello, > > This has been reported by others in #guix as well, although we're > currently short on details. > > When an NFS mount is active at the time a shutdown is requested, the > system hangs, and doesn't shut down. The power button must be > long-pressed to power off the machine. I suspect this is because 'networking is disengaged before the NFS mount is unmounted. Supposing that a NFS volume is mounted at /x/y/z (either manually or via a shepherd service), probably what's happening is that the parent shepherd service of that path (be it /x/y, /x or /) never unmounts due to the NFS child path. It can't unmount the NFS path because: a. manual NFS mount, 'networking has no knowledge of this and is already gone; b. if provisioned through operating-system, since it doesn't support adding arbitrary shepherd dependencies and it does not add 'networking to its 'requires' field, 'networking is already gone by the time it reaches here. [1] If the NFS volume is manually unmounted (or there's some mechanism in place to unmount it before 'networking) then no hang should occur. [1]: Though it's tempting to simply add a 'networking dependency to any file-system-type = “nfs”, this is not the best idea since: a. not every service has a way to indicate that 'networking is ready (NFS mounts will fail to be automatically mounted but in theory they should be able to unmount without interaction) b. Interfaces that are configured outside of the 'networking service (be it manually, via custom shepherd service, etc.) or that do not “depend” on the general idea of 'networking, such as NFS mounts using interface scoped Link-Local addresses. Cheers, Bruno