Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1363769pxb; Fri, 21 Jan 2022 16:35:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJz9NNi3OqyWTU9WLrD9VsODYrRyjRqUXU+H2AnjGxHu5RrG8/RYTHjeLKHirr0EUh5ChBh1 X-Received: by 2002:a17:90a:7786:: with SMTP id v6mr3090644pjk.11.1642811705717; Fri, 21 Jan 2022 16:35:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1642811705; cv=pass; d=google.com; s=arc-20160816; b=TFtlD1rWMZkw2axUbvgXg9VH2OXHfU6DQ3cUlkS9+jRwwqTtf9nGqAT+wsgYsTNLVy 89hu/4OLtbRJ95nO/YF7j2+cgINZcrX4UA6bLfcwWqVOZdaPB0ifCHUghKgiM1Mkae4c ZET5N28xzuIXmHBiTVaJMZhdDcC6N+6azqW0j7FY2dU8skcIbtwyvi0VgnkjFgq0Y5go B4BV4LmYhEO9Hxg5sWjdjODdXCzYAuMrr70mr932KKtYpDuA/KXolKkvDz0AuE29qAi2 ZG/0rFTltIs7kqUPg18aCoTQajhrmHNqW7QohQEBQjdtzH1d7L877k1fiUHHsJWHFcLi Tpng== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=VKbmQD3+0O4GpwvDdYd0XZWxyCgsG2AjF0i4qx0FBVU=; b=PmHSO1o17rmEp3rHcfLlmAz//u61FGkxoh56cEf7qL786eik9QwgC5o6BQKa/40HN8 wuRZtD9RK3UMNckDX58lXW0lMl2T7g643mTX/VfbdmwWemuvH+AYdpug8X7sgROecx5y AtM5kUHJp33X1hxjut/kdxCbiuPkYQ1xaS3MUCP6OKGrnefc6NsCtW8RPRjJMRA1/ssc FOZRQWGQ+n+lQ+vAGToXdhk2PaIP4sXicIHuIYJYgpu0F8/eP6LMHcQ3DouAAE50fljd dvCZfg1EMzA6LRD15kEc80KCP8slM3y27SzJVYXxoHZlb8ieN7AKbitmv1VJHIpotBYl lkjw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector2 header.b=XoMvknU9; arc=pass (i=1); spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 18si12740411pjb.116.2022.01.21.16.34.52; Fri, 21 Jan 2022 16:35:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector2 header.b=XoMvknU9; arc=pass (i=1); spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348704AbiAUFlv (ORCPT + 99 others); Fri, 21 Jan 2022 00:41:51 -0500 Received: from mail-eopbgr60114.outbound.protection.outlook.com ([40.107.6.114]:65408 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1348698AbiAUFlv (ORCPT ); Fri, 21 Jan 2022 00:41:51 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y2NFnJmYTRLV96e56Ml3YrSN/RcETDbKK/DfeOjOlHC2yNWbzr/hIxI5ER+bAI6UceIK6l8UuJkMl2K5MBCN8PHnniY5HMxWuPg5A70/xxc6zM2cC9D5CoJnKYEx1W6//4XCpFZF2b7lak8n6u7EgNn8oJOIZM9ht+IW6szTJVyHWdcRXEERZRCZTR9I6BXMXdOGv7hCAOOt3xYHSbh732+bZBLQ8I3g70Yf+T/vluvpWdngRDAxN7Q8y+cPt/dio6JuKfgZPB2NF3l/o0iGOrmPmhPIQz9xc1RPtRH3/V2pWPYBT5Lrx9CkrMeJiDWOV/JL7qMfSZt2Yu/aAXzoKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=VKbmQD3+0O4GpwvDdYd0XZWxyCgsG2AjF0i4qx0FBVU=; b=fo6tfR5NVaU2Ovmn5QW6E9tU0pYTjPRnJNUD4XxyFsAGMtiYi2iHr2ifPJEe32XVQORTbQNpjryNrDdV6Tv8BL92NW+VEU3sZST+87IlPC9PrSeVJCbrd6kcjYHmn5W5DzhY5nsj8EOPUVx3OhhNkrbnTpQnln8NfHFUA1bgMoKyLM8FY/qWKA3HC0nvzfcUC50Ryt+YhMOc/gFJAlXCV/hBEj86TgQfZxAUMxDeqBNsfB3nJZsQzf2Ff7V9P1Cipud+KKWuF1IWXuk1F2h8TfogwpYKV3PcOuVHI9QukIpqNNfw9yyAH4B89OGIWDJy3UsuBXbZBHE4yjVJhIuO6Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VKbmQD3+0O4GpwvDdYd0XZWxyCgsG2AjF0i4qx0FBVU=; b=XoMvknU9LNmQF/M2Qq8R3vGnyfH2J1KYdrsR4b+cK26DCpFKzOBHc6cq9o8FcHK85IpcpzUkchuUsTWWMy93tcd7SIVC/SWJEWRhG7rre6y6mq/Ep9cYIZSRDypdhIgRvwfr60h30R5xtPQSwzuTQro9aCYq/p1GqMli7l16Fy4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=virtuozzo.com; Received: from VE1PR08MB5630.eurprd08.prod.outlook.com (2603:10a6:800:1ae::7) by AM6PR08MB3095.eurprd08.prod.outlook.com (2603:10a6:209:45::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4909.8; Fri, 21 Jan 2022 05:41:49 +0000 Received: from VE1PR08MB5630.eurprd08.prod.outlook.com ([fe80::4456:3e05:28ee:51e4]) by VE1PR08MB5630.eurprd08.prod.outlook.com ([fe80::4456:3e05:28ee:51e4%5]) with mapi id 15.20.4909.012; Fri, 21 Jan 2022 05:41:49 +0000 Message-ID: <31a29913-11f4-8dfd-6c5c-735673dcd1a2@virtuozzo.com> Date: Fri, 21 Jan 2022 08:41:47 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH] rpc_lib.sh: fix portmapper detection in case of socket activation Content-Language: en-US To: Petr Vorel Cc: ltp@lists.linux.it, kernel@openvz.org, linux-nfs@vger.kernel.org, Steve Dickson , NeilBrown References: <20220120143727.27057-1-nikita.yushchenko@virtuozzo.com> From: Nikita Yushchenko In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: AM6P195CA0046.EURP195.PROD.OUTLOOK.COM (2603:10a6:209:87::23) To VE1PR08MB5630.eurprd08.prod.outlook.com (2603:10a6:800:1ae::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0c8539c6-3adf-4a8e-5454-08d9dca0b81d X-MS-TrafficTypeDiagnostic: AM6PR08MB3095:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8273; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: PnBGwe32p4ChDq/PHVG9HKUah/C9ITX8ig+CHu4uN0eJ2IhkoKyMn/PmwB33jZK3jDiDpCSNYkbNT6V23P4H6iGV0McNtCxBjF+s5WjEUCy4K6Mv8uHbFmKGMI2GacnjqT8baxOl/Eq/DMa+kvkwpwhAqxDVMcrOUxkYy4Urp9lgKdPThjsFYsf+r/TzAYsw8Tlhmi2yyNzDlBNkxlK+jS9Y3ZymZepgcEtVW8w5QYTg3B0q2HO6NWi7oWhA8nKq9MJ8T4vpS/4WvS+6K4N7uKP74O2lW5qoYm47lNcUJ1BzxJT1TPX01lAnH0HEj3xQOqyQEk/N3lnJZgsMRQAZQEbQlSgFX4gLvuDvwoYLmkzgIXXB/9Saq1LhRo//wmP+6GZ9BbOjkFQFIbmST3B7NbkF8pRQn6KQV09iOrfHZpItjcDG4queT5ULWxZNPgtvIml14l5lFtuISF4P3cWYFULl6YRLBCLotht4RmLG+W3Un4FEqc3KKma8VECSG9FPoyQz3A8tAIxEc+mqaP0ILO3UpQ6A0bQKefBLeT6b0MBwqJ0nG+hh9ReF2eQaZM1Gv6ITqUiVrJFEVut7YsoMRso2qewcx9dDq/RHHqibQMElmMgMi24lb1pOEiM/bHSM5R/D5QieyoPGCY4I0rtM6mBnUY3x6iF2blqWplKlSKb3NjQQ2rCnVTTi/aAZipd4+yx1sFVfv53FD2NFWePEAOr6LNDMWUXJeekuOA27mzA= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VE1PR08MB5630.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(5660300002)(8936002)(31696002)(86362001)(66476007)(26005)(508600001)(31686004)(4744005)(38100700002)(54906003)(2616005)(2906002)(44832011)(66946007)(186003)(6916009)(316002)(6512007)(8676002)(36756003)(6506007)(6486002)(66556008)(4326008)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?c1Eydzd4VktlM2hiTGJMV2xUQmUvZjg1VVJFYVhQUmJld2FwdGF5dDcxaGtq?= =?utf-8?B?OTlOSmFaS2tiTVpYOFVYSFo2TC81c1pYYjJ5U0dGZnllTlBkUmQyVFhYcVF5?= =?utf-8?B?SGpaZ0czSXVkakZQUUZ5U29NMTd0ZmhZV2lab0oxVFRqTmEvZ3prRkxmQ2NG?= =?utf-8?B?U0l4RHNwQmlDSHJKVlBDYnVIaUdHVlJyQXU5UUgzOFd4Wk04anpFTXlJTDhp?= =?utf-8?B?ZUtNUDV2RlZjVjBnc1dOUkJneDFoWVVTa2JjbGpRc3NEUFZ6Zkp6QlNQejNi?= =?utf-8?B?Z1c1ZmtncnZvbDFGVmt3MWRlS3RyZnFtak9NYm1wWHNUaFlZbHkvNzJMeXgy?= =?utf-8?B?L2hBV1g4T2dsemJmbTdUN0pZUG5HZm9nQXFxbWVma25EeFAyQjdYTlhiemRq?= =?utf-8?B?Tm13S2JZbTlNblFnSFBaM2V3dEROVlNKeFE4S21oSk82ZVY1cjZ6eC9xekJi?= =?utf-8?B?Ymxlc2diMnFZV1F5WkVpb2lzR2Frd1pMWXJDZHZvMWNhK0swZWFPYzZodFFD?= =?utf-8?B?c0ZiNUR3SmJ1NEJyVTd1OUloc1pUVW5JaDhmVFRkamYzRnVjWWdZWmcycWpD?= =?utf-8?B?TWdORzRsa2dzN0R3ODVReEJCQzJMcDd6cVMyRGU0bUhVdW8wcjBsajNVSzhw?= =?utf-8?B?bm05RTNkbW1qU3FjeWtyTnVBYW9PZlc5Y2dxNm9VSTVONW1yY2JNYzhqYmVw?= =?utf-8?B?ZUlFWnZvT0lZcUxORzRvcHdvdVFYL0RHdU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VrNXkxZlNSMnlUZ3g5TysxRTZPY0ZEU2JaajlIV2VrOUhu?= =?utf-8?B?M01ycXo2WDV1bnRRY2xPTmZGUHVlYkdEWVNsTWR2Q2hKVWU2eGY5NUlXOGFQ?= =?utf-8?B?TzZsYjFKSlJRQjdwakNWUCs3cDlnRlpHTnVNR0dwdWJWS2NFeGRLd2p2VVJp?= =?utf-8?B?SEQwaUVzSWJNYXcwdlk2ZS9vM3NaU3laWnMyMEZvblJ6YVhBQzc2L0hoeExh?= =?utf-8?B?RHFnamZrMDRtT1BqVGxsQy9tS3RQUlBwM1REY3F4TlhTRHExWE9HNUs1cnY0?= =?utf-8?B?WmlFeVpSOVVJRjZyblB6YjliUkp1N1VwUGhqRnJzS0JSbWlZNWtMdHFicWpq?= =?utf-8?B?MmNFMElTS0dWOGMxZlozR3h1dEx5N1IrZFhzcGNYeWF6S0UyK1ZuYVg2UzBU?= =?utf-8?B?RitaclgyUmZJYVY1N3JqeStGcDdSUHRoV3Zxblh6WnM1YTIwdWE5RVM0YlB1?= =?utf-8?B?NFB5azJZcG5tQ01OUFh6dUQ3OXRHeWgyTmt3b09mS2Q1bit5aWx6R0hQQktu?= =?utf-8?B?bTN5YVZMWGt6dS9iS0x6bDdLZy9kMEVISktmQVZDOXZFQVRGYlB6UU9VbTBC?= =?utf-8?B?elFTN1A0YnhiU3ZhZFR5MmpweTBRPT0=?= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0c8539c6-3adf-4a8e-5454-08d9dca0b81d X-MS-Exchange-CrossTenant-AuthSource: VE1PR08MB5630.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jan 2022 05:41:49.3318 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ZggHrV0pEkOCxwLlrb3iIQPsbUnumgxU7iYNmaejyWkmy6EMVVM3Mpo0CkocuG3JILmfXsrZPlFhjUmFQ3bFz+OdjWUuzs8JQsEwYghDOB4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB3095 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org > >> I had to add this patch to make 'runltp -f net.rpc' pass just after >> container is started - that happens in container autotests here. > Yep, I suspected this. Because on normal linux distro it's working right after > boot (tested on rpc01.sh). Can't this be a setup issue? This depends on what is installed and how it is configured. But definitely the state with rpcbind process not running and systemd is listening on rpcbind sockets - is valid. In the setup where the issue was caught, the test harness creates a container with minimal centos8 setup inside, boots it, and starts ltp inside. Just reproduced manually: [root@vz8 ~]# vzctl start 1000 Starting Container ... ... [root@vz8 ~]# vzctl enter 1000 entered into CT 1000 CT-1000 /# pidof rpcbind CT-1000 /# rpcinfo > /dev/null 2>&1 CT-1000 /# pidof rpcbind 678 CT-1000 /#