Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1808964rwb; Fri, 12 Aug 2022 07:12:46 -0700 (PDT) X-Google-Smtp-Source: AA6agR5/N11OxbXvW/ZzRQzJDC1+8l5X0U2CHHEKJT71yV7aI87qtq/yzaqAojbCb8+Oq806jVdf X-Received: by 2002:a17:906:8a42:b0:730:92dc:a831 with SMTP id gx2-20020a1709068a4200b0073092dca831mr2814218ejc.481.1660313565969; Fri, 12 Aug 2022 07:12:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660313565; cv=none; d=google.com; s=arc-20160816; b=r5AVgeyMlhnYIpf2B2mKRTm7dG0chBkkmE+dmukC11T6wk1pbyAz1xWQS3l7uzZkMc TlbzEs+xzQ14RCUwukyFB34yYb8IJO8wMqH+1Z11AH1TpKHEpwsgpwhN7Np8KgIZZT/4 QfdaHe9BMdOP0xb7bmv47ieQ/nnKb9kscWnYQZfddBOswVpBc53MD9Bzpm9U7Z0N5L3j LtdD1mVdt15QcNWT1NLFGOpFlhrGkxkMc/AO3GADSJBHDKBQAF2vNeNLXTgZh/QEwaVI GssMyI8m+k5yejRTJAFS+8y1MMdSlu9lGXIYQ9UOC+KxcYAE0kERWlJMif9hXkKR4aIn JPkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:message-id:date:cc:to:from:subject; bh=fY0M67qyrOKzboeCi8BKUwPqmB0jw/NEUQOj1Wr799s=; b=Da7OgQ9i2IDA0rqQwdOZL93eMhxCiWBHEdd/QSd6bswIsuy4THNJz1swHxXl5oTntF m7tSHM8o24yfIvCiCtIHZqOQguOJqNCbrXHCVWMHr3q0reOr5hXn3kl9cSeNZgpJNw4P MiggN4+hDYFhSCULz2UF779SC/avNyodbxYj/w/dSHyW1ehzV8cTv6N8z1mv5y7P7Ga6 RXujTty2Q9nd2mC+Mgyj/oDX6EJHRfE/R7cflJVDcM2NV2i8JnG+69kOiKh7lwmm7RXk ywMIXffMwkbH15h7p/xvjjDkBN1Z/EpdJEZYJenwVgrhSrZkB22rosqF7h9oxuCVRl0+ svOA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o24-20020a1709061d5800b00731868bc6e8si1838676ejh.58.2022.08.12.07.11.56; Fri, 12 Aug 2022 07:12:45 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239096AbiHLOIZ (ORCPT + 99 others); Fri, 12 Aug 2022 10:08:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237287AbiHLOIY (ORCPT ); Fri, 12 Aug 2022 10:08:24 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98F98AB06A for ; Fri, 12 Aug 2022 07:08:23 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2CAB46181B for ; Fri, 12 Aug 2022 14:08:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 683F8C433C1; Fri, 12 Aug 2022 14:08:22 +0000 (UTC) Subject: [PATCH] DELEG5: Create test file with mode o666 From: Chuck Lever To: bfields@fieldses.org Cc: linux-nfs@vger.kernel.org Date: Fri, 12 Aug 2022 10:08:21 -0400 Message-ID: <166031330113.3080139.1273532571655274363.stgit@morisot.1015granger.net> User-Agent: StGit/1.5 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 DELEG5 st_delegation.testManyReaddeleg : FAILURE Open which causes recall should return NFS4_OK or NFS4ERR_DELAY, instead got NFS4ERR_ACCESS ******* CB_Recall (id=14)******** ************************************************** Command line asked for 1 of 678 tests Of those: 0 Skipped, 1 Failed, 0 Warned, 0 Passed WARNING: could not clean testdir due to: Making sure b'DELEG5-1' is writable: operation OP_SETATTR should return NFS4_OK, instead got NFS4ERR_DELAY DELEG5 attempts an OPEN with ACCESS_WRITE to force the recall of a bunch of delegations. The OPEN that requests ACCESS_WRITE fails, however, because the test file was created as 0,0 with mode o644. A perhaps more preferable long-term fix would be to follow the advice of the nearby comment and convert DELEG5 to use _get_deleg(), but I'm not expert enough to tackle that yet. Signed-off-by: Chuck Lever --- nfs4.0/servertests/st_delegation.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nfs4.0/servertests/st_delegation.py b/nfs4.0/servertests/st_delegation.py index 9c98ec0e0fb3..ba49cf9f09db 100644 --- a/nfs4.0/servertests/st_delegation.py +++ b/nfs4.0/servertests/st_delegation.py @@ -244,7 +244,8 @@ def testManyReaddeleg(t, env, funct=_recall, response=NFS4_OK): c.init_connection(b'pynfs%i_%s' % (os.getpid(), t.word()), cb_ident=0) cbids = [] fh, stateid = c.create_confirm(t.word(), access=OPEN4_SHARE_ACCESS_READ, - deny=OPEN4_SHARE_DENY_NONE) + deny=OPEN4_SHARE_DENY_NONE, + attrs={FATTR4_MODE: 0o666}) for i in range(count): c.init_connection(b'pynfs%i_%s_%i' % (os.getpid(), t.word(), i), cb_ident=0) fh, stateid = c.open_confirm(t.word(), access=OPEN4_SHARE_ACCESS_READ,