Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp359951imn; Thu, 4 Aug 2022 08:43:55 -0700 (PDT) X-Google-Smtp-Source: AA6agR5CA9NdzjF/QpcMeRwJAFG8c8Qz9baSGOpec0Z93e+ELb7Hj7+2nVsOUZKZLU1i6Tmt+XdO X-Received: by 2002:a65:6d97:0:b0:41c:1e06:3ba4 with SMTP id bc23-20020a656d97000000b0041c1e063ba4mr2087647pgb.282.1659627835395; Thu, 04 Aug 2022 08:43:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659627835; cv=none; d=google.com; s=arc-20160816; b=ZTYxkgHMLSNvM+o5z8UlF7WhadW9OXet8B+eY0adskIfc7pfOAOFdMXzUBu4RxuyHV vkSuUOk2x/uv5h7apRMvnUw0X9O7ovfz3d08RlWY/jKXd9wN9oq38IG/Yjy0MwurhozU +eKBOrY4KQT9D4rjHN9CIka6HiIEyd5+c+LmEBoHdyUbmQihAkR5QNAMeUCdXlvWlaBN xRhWksGTDMR9OLo6PmlWg05qygU1RMhiEr96bwXpOo8Lm0w3gBWdPBCPjdoaaHT7wNlQ V5eiHgJTF1Ah9MwED2XQdu60Xdc5RKH/g+vqSCWZ8jbkhFgW1OS9G/PFXIg2hzUYTLHw 8qTA== 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=IgomHCSPSlob4jZm+mGLOCUBH0zrH29GGO92LTRejMI=; b=WujqE58dxN1C/jW80XBwunlt7anJlomOIL+NdBmuC5rfHQZV+BwMjpQFR/ZkJdI8/H K2JTMIDrJyx0cl3cSB2FXI/6g+LFwiIiC2PFJQw1hbNtAsM3zH4dixzToMZaAKjWQzc8 Thzwi+kqZ3s4pTy/Z/yE72EIdGwKlyJQv9ZDH9F+lc0W8/tsbK7OpkL9irjRT9QK0n/b XQoB8L+leF3gdt+udM+wYcqViy2MH5gUr2B+MO9kXCL3q6JAeOIpIRYZ+ZBJgbz2S1Nf bWjeuBntKaWxqhirCBSLEZp+japEp3Nxw87pobtyD1kdTj33GErRTlI7O3gG+jVK37XF wKWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b="ou/KptL6"; 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 q1-20020a63bc01000000b0040d848967b1si149942pge.247.2022.08.04.08.43.38; Thu, 04 Aug 2022 08:43:55 -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="ou/KptL6"; 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 S229988AbiHDPiS (ORCPT + 99 others); Thu, 4 Aug 2022 11:38:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229854AbiHDPiR (ORCPT ); Thu, 4 Aug 2022 11:38:17 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB97F1D0E2 for ; Thu, 4 Aug 2022 08:38:16 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id 0F3B546EF; Thu, 4 Aug 2022 11:38:16 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org 0F3B546EF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1659627496; bh=IgomHCSPSlob4jZm+mGLOCUBH0zrH29GGO92LTRejMI=; h=Date:To:Cc:Subject:References:In-Reply-To:From:From; b=ou/KptL6xo40kH4ruRfyP6a8BsNwniVtJ1xvBRdnKMg2DA0egITdyG3iMAp7335h8 T+pDOIxGoC8txlfCljF2OxPE4OEmBWuuvn93Ciy3Dw1g9FvO8JN1zIWfnHlvCP5b7L kz+SvtU06t8sjWGvNftRkstV0lJ2DupyQP4LY3i0= Date: Thu, 4 Aug 2022 11:38:16 -0400 To: Chuck Lever III Cc: Linux NFS Mailing List Subject: Re: pynfs clean_init issue Message-ID: <20220804153816.GB9019@fieldses.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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:23:44PM +0000, Chuck Lever III wrote: > Hi Bruce- > > I'm running DELEG21 to unit-test delegations, and this message comes > out at the end: > > Making sure b'DELEG21-1' is writable: operation OP_SETATTR should return NFS4_OK, instead got NFS4ERR_DELAY > > I guess there's no callback service running during the test's clean-up phase. > > Then if I run the test again immediately: > > [cel@morisot pynfs]$ sudo nfs4.0/testserver.py manet:/export/tmp --maketree --rundeps -v cel > Initialization failed, no tests run. > Perhaps you need to use the --secure option or configure server to allow connections from high ports > Traceback (most recent call last): > File "/home/cel/src/pynfs/nfs4.0/testserver.py", line 394, in > main() > File "/home/cel/src/pynfs/nfs4.0/testserver.py", line 346, in main > env.init() > File "/home/cel/src/pynfs/nfs4.0/servertests/environment.py", line 150, in init > c.clean_dir(self.opts.path) > File "/home/cel/src/pynfs/nfs4.0/nfs4lib.py", line 579, in clean_dir > check_result(res, "Making sure %s is writable" % repr(e.name)) > File "/home/cel/src/pynfs/nfs4.0/nfs4lib.py", line 906, in check_result > raise BadCompoundRes(resop, res.status, msg) > nfs4lib.BadCompoundRes: Making sure b'DELEG21-1' is writable: operation OP_SETATTR should return NFS4_OK, instead got NFS4ERR_DELAY > > And I think this condition persists until the old lease expires and > the server permits the client to delete that file. DELEG21 should pass on any recent kernel. But possibly cleanup should also be better. I'm not sure what the right fix is. --b.