Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp811081rwb; Thu, 4 Aug 2022 11:16:40 -0700 (PDT) X-Google-Smtp-Source: AA6agR5dUu0+S5B9zkEHkBOE0Ixd9YQEoecXiKoX51upv60+y4ESk017w7Gp2e/kCMNbYIjxUOG8 X-Received: by 2002:a05:6402:2b8f:b0:43a:66d4:a025 with SMTP id fj15-20020a0564022b8f00b0043a66d4a025mr3263165edb.121.1659637000769; Thu, 04 Aug 2022 11:16:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659637000; cv=none; d=google.com; s=arc-20160816; b=awcRFPVjP6qR5XzRwHXKcSIPrA9XrcfW7x2Cbl3sUdhwszIUoLhBCPbQC+/ulwfHnW U+qzZfqzxbWHOBEy/Io+qKThsQiYorifc1XsZouaw/D4MElx3cmwPXXUN3wAROTnO3X2 qXpkKEVHZ7hwMIezfOonNZobesgqNBoPZFnQ/0dI2k+rWLLqe6IeHOQdBkiamMW6w22v 9bjm86Xkp7vH394Z9X7JSVVInAes/Aw6wc5osczcCw4M1nIN8m4DxRFZL/0Z6vLSVpTq cyOxkGzzfd+4nJgx9rX1u/P/bWn4moRPGxkkcrwKLk1IMHLzs+CpL/9OmddwyXIRPgzX cY5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:from:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date :dkim-signature:dkim-filter; bh=Khl4jQ2+/6hLuoFEpYHgEgSHDMVmjNkT0+a4U8/ClCE=; b=Rt/KtIGGIXUPqkGW3wjElt4xG+wJqz12qYHmCEGDjz6hFYHY/AieZWd9rUKwGiaTN6 FzrLer8VewSFgz7SPo4TrHl3P8NPdjJWcj1qDUoP7Ed6UGaR1sG70e/FBaQJOdeJ0qIS u/V6a7ktgzSc+zsJdDpxDJzj9URsBMdgA9YQbbMC/kG2noWnwgqjGcTQ9VFI/hanmV72 5KlA3wrtIeglBj3Ufgg7L3i+qwm2/EZEIeQx1d5Mcdsr5oX8dK5+jUDpN8qF+aAnBH4T IWjndIpeKmsDb7FdMgePGW2ubsGizgkzY+RcytgN90pBwBz/wZvVOAVWWMwWykp0T5Qf Emdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=YdT5unO2; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fieldses.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y59-20020a50bb41000000b0043d3f9c358bsi2063194ede.49.2022.08.04.11.16.01; Thu, 04 Aug 2022 11:16:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=YdT5unO2; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fieldses.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234319AbiHDSOH (ORCPT + 99 others); Thu, 4 Aug 2022 14:14:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232643AbiHDSOG (ORCPT ); Thu, 4 Aug 2022 14:14:06 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BEFFD6C100 for ; Thu, 4 Aug 2022 11:14:05 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id 2BEBD5FFF; Thu, 4 Aug 2022 14:14:05 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org 2BEBD5FFF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1659636845; bh=Khl4jQ2+/6hLuoFEpYHgEgSHDMVmjNkT0+a4U8/ClCE=; h=Date:To:Cc:Subject:References:In-Reply-To:From:From; b=YdT5unO2PIAAHiB2keM2JfmHuof6XLs4ZoDYsgiyqgyLV9eVvnqh65hNALjTgCqJq /OxP/lMVM5Od4BcEVhdrjcVsOD0TPhhm3Q2LT6lU2L4OgXF+fc2fJw3brYE3Q6XaiD 76vcTQre6SWT3LHd+bDZnVDT65DWeTUAHkt3NFlU= Date: Thu, 4 Aug 2022 14:14:05 -0400 To: Chuck Lever III Cc: Linux NFS Mailing List Subject: Re: pynfs clean_init issue Message-ID: <20220804181405.GC9019@fieldses.org> References: <20220804153816.GB9019@fieldses.org> <1C391A45-B2CC-4C90-86DD-1FB9C2000E7E@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1C391A45-B2CC-4C90-86DD-1FB9C2000E7E@oracle.com> User-Agent: Mutt/1.5.21 (2010-09-15) From: bfields@fieldses.org (J. Bruce Fields) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Thu, Aug 04, 2022 at 03:43:56PM +0000, Chuck Lever III wrote: > It passes, but leaves the test file so that clean_dir does not work > again until the old lease expires. Oh, right. > > But possibly cleanup should also be better. > > This bug might prevent running these tests in an automation harness. > I'd say cleanup does need to be better about this. > > > I'm not sure what the right fix is. > > Brute force: keep trying to delete that file if clean_dir receives > NFS4ERR_DELAY? Delegations block unlinks too so that probably doesn't help. > init_connection somewhere needs to set up a callback service and > leave it running. The callback isn't too important, I think, if we want to return the delegation at the end of the test we can do that without waiting for the server to remind us. Or maybe destroy the client at the end. We have no DESTROY_CLIENTID (this is 4.0), but we could do a client-rebooting SETCLIENTID/CONFIRM to wipe out its state. There may be limits to the kind of cleanup pynfs can do. A test harness should probably reboot the server between test runs. --b.