From nobody Thu Nov 14 18:05:00 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1 dmarc=pass fromdomain=virtuozzo.com); dmarc=pass(p=quarantine dis=none) header.from=virtuozzo.com ARC-Seal: i=2; a=rsa-sha256; t=1629795262; cv=pass; d=zohomail.com; s=zohoarc; b=c+oT6PJ95g3od+VFDvHoPAuxX33XFEbdK1wfthxGP1/C9n7V5AwCA0CVDVXqMXr+0Guemq+RlVdeLGPgt3vxBYIbWpbt25SHZbyOZDAwlPFU9fXVIhL4YpnxXJxVdwr8lzKWxLxoQLE9qm7wwyd47fl6GaWDs876vWhddnHaRhk= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1629795262; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=HfTynrtFoOtQlEZdXbg/sqJjKgrWrpnDM9PaHle0IOc=; b=h3yWk+k32ryKG+KCBXvcP6Fmx1jcnGO2UmfgGIX+Tso4Lx+bHCtzbHL8zejwxadp7n3knZecgYToAd9EwjgH+B2u5lp5FYmEqdew600mwNxrtkRVNKsuAkKiQnV2tI+ZBOUNFmUtm9mMc58U31RPYWb9yoICoHJmbeumhcj9iiI= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1 dmarc=pass fromdomain=virtuozzo.com); dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1629795262208802.3107896389877; Tue, 24 Aug 2021 01:54:22 -0700 (PDT) Received: from localhost ([::1]:44508 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mISCL-0003zb-5E for importer@patchew.org; Tue, 24 Aug 2021 04:54:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59138) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mIRz2-00056c-SR; Tue, 24 Aug 2021 04:40:36 -0400 Received: from mail-eopbgr130131.outbound.protection.outlook.com ([40.107.13.131]:22309 helo=EUR01-HE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mIRz1-00086z-1V; Tue, 24 Aug 2021 04:40:36 -0400 Received: from AM7PR08MB5494.eurprd08.prod.outlook.com (2603:10a6:20b:dc::15) by AM6PR08MB5077.eurprd08.prod.outlook.com (2603:10a6:20b:e6::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4436.19; Tue, 24 Aug 2021 08:40:30 +0000 Received: from AM7PR08MB5494.eurprd08.prod.outlook.com ([fe80::3c5e:7829:362d:1423]) by AM7PR08MB5494.eurprd08.prod.outlook.com ([fe80::3c5e:7829:362d:1423%2]) with mapi id 15.20.4436.025; Tue, 24 Aug 2021 08:40:30 +0000 Received: from localhost.localdomain (185.215.60.249) by HE1PR05CA0178.eurprd05.prod.outlook.com (2603:10a6:3:f8::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4436.19 via Frontend Transport; Tue, 24 Aug 2021 08:40:00 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dUNdRZS3tMBqM4ygZVRXeQxWJ54eBCGk2StViZR/GXXPvEh4elMAbaWSyS05tzMRFk3taSuhM16MeJ42l8hqp02ZX0rMFNCGzGCEthgoFpU1y4olIk4HwZcUvdNllJY0bIPvvxcS3duY9gzDR8hNyneDbsjwdBGKeNP6EJJRrxT7K+99jDQPRuisHyuQ7A96pykLREsoc+JuoxgjoqpH70+KBA+rir4BPUZA2Pqftl+kmlu14eH8yGldfPoI1dt/We0NyDsy9+oSKlPA2zDf5dvRwsxmdjt5qh31ZIAWoCPVlMpGDmponRqg98Z3Fhfst0uRaGxvb57zp7qrwQ2FzA== 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-SenderADCheck; bh=HfTynrtFoOtQlEZdXbg/sqJjKgrWrpnDM9PaHle0IOc=; b=hXaXXLcib1xbuYlXIaWFe9ZhA9cpriAZA13vdHvRgIZrg9fs4ZSSOqq0Dc45AA72MbJDhk24ONGLpfatDvvCTZCIkIdwtlXy/e8TheLvIhpTu2yxnbZacknulHW63Jg7CpDLnqEGwZpW2dNTKnR8xMeHU9dTJVvi9VDWRhEMX2tjO04JlNXYkC4mwXfk+cvWMI5G7MDxy2FrlHOGmelN/Pn0vLFoQcWqPbfYxXoniXP3r1bNgEFiYvKg2KfVmodqzRJvwIZTbyF6CgciKOEXa8B/RI26ULG4DXKJIutR38ZLZA+Lrsi1kHBPG2yuB1cs8f1UYd++5sq5Fyuo72+C7Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=virtuozzo.com; dmarc=pass action=none header.from=virtuozzo.com; dkim=pass header.d=virtuozzo.com; 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=HfTynrtFoOtQlEZdXbg/sqJjKgrWrpnDM9PaHle0IOc=; b=sE+qaDLrRya1S+g3Wm9q6LNlxAnu2Fq9wDFozB/Hvpv5DueoYIQUdaEJLZyIBldQlDEnPyhNADFk/nOBKen924+HjRNFgZYWFSKtkVf6ciyNvDOVDg32gz4NKW2uhubtvX2QtJvbg4R0r3QATd0xT3hmruevxiQ+tGzfT70tEGw= Authentication-Results: nongnu.org; dkim=none (message not signed) header.d=none;nongnu.org; dmarc=none action=none header.from=virtuozzo.com; From: Vladimir Sementsov-Ogievskiy To: qemu-block@nongnu.org Cc: qemu-devel@nongnu.org, eblake@redhat.com, armbru@redhat.com, crosa@redhat.com, ehabkost@redhat.com, berrange@redhat.com, pbonzini@redhat.com, vsementsov@virtuozzo.com, jsnow@redhat.com, hreitz@redhat.com, kwolf@redhat.com, Max Reitz Subject: [PATCH v8 31/34] iotests/image-fleecing: rename tgt_node Date: Tue, 24 Aug 2021 11:38:53 +0300 Message-Id: <20210824083856.17408-32-vsementsov@virtuozzo.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210824083856.17408-1-vsementsov@virtuozzo.com> References: <20210824083856.17408-1-vsementsov@virtuozzo.com> Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: HE1PR05CA0178.eurprd05.prod.outlook.com (2603:10a6:3:f8::26) To AM7PR08MB5494.eurprd08.prod.outlook.com (2603:10a6:20b:dc::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9f0f87cb-12c4-4528-b50f-08d966dac31b X-MS-TrafficTypeDiagnostic: AM6PR08MB5077: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:431; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fOzj8zU7yPss3YLYtCzxaD4FpdCA082pD4JZl3e6HxhuFF1k7T0wCXU4ewj89lKRMv2dRkbkwaMVaNFLvooaqhlXpMke+tUxbtmS3xse2VEt8O7zUEI3d5Wm69A7G1TPuVIIpopsNpNI4xcHsPcPuWl1LXwQtwxD0kbAqhQPcFO+6Vk3ahil5w5YzZnLTkUyH/8LDnN+lg8G5CjCbj3JG0mncG08Ynpk+WtShzouY6VPZ9Hkgvo6LPMeE29UzbkSQceDAsiKxL5Sh9oOCKAm65YtUl5O2/5RekLNDm0ylTCl7x5mhE//enUxQefACV+XkO4NF/7NS9n5W1lgMzIfyqKrgP+faS7tLo32a/jo16vxeHk5pdUX643XC9R420DLU8CrJOR6MGXa/9axHsCarJ67Pk1FVHANyDgh4ar8A2emZlrL1iKfaYFxPtPjFUO63/e3GB6QQ4kLSYW32IEK1hCAeDbdCKDAIXbEBhNy2I5AUKaAo3U1mCcl1BRy29TUHfPlcATj+xn51A8bbv+SarTttgILC9l8qXvdoPXT1L0/zjPl7rh0DgOhKyha0Q6hixuiW0QjDZ9BZpyVXdlAu++NAb8QLuuYxhPk4gg0tdLUY6agNIdKRuy4W6j5NgCB00rzj/zlluaAZay6o0YsKOvrtcbAi19pZ7A/NoXkED4j3fBWnyA+tqjmE9rql8fKQ2O88ft5GASzVwx+FPXWGA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM7PR08MB5494.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(376002)(366004)(136003)(39840400004)(346002)(956004)(66476007)(66946007)(316002)(6506007)(36756003)(2906002)(66556008)(6512007)(186003)(2616005)(1076003)(6486002)(52116002)(6666004)(86362001)(38100700002)(38350700002)(8676002)(4326008)(478600001)(26005)(5660300002)(7416002)(83380400001)(6916009)(8936002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?3dabt4TXgZoOlYn1+UL6p43dLfVJMLmespd34aOSlN+8wvkkJ+z4IKW5F7Q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pAOICE/UJgTdGiTrQ3md3WDWBHWF0VTDWX?= =?us-ascii?Q?erq8+cuVm4LaO+HVkVNoa/fChKahqdw5m2VX/CnSNtnUM5BEt4sCPZD8KulI?= =?us-ascii?Q?DSAZzHndKia31oCwH6pkFseCkvukrRbU0+SJnIFfbtXaLGGa3NGSc3fmwOt7?= =?us-ascii?Q?6B+V2XfxKeSZHAPwwhsLSp6K5mMYGpzo39m1HoCEBbJyW+YyNQ0FOa27CTsX?= =?us-ascii?Q?WpTlHuKwX6JX3cloppFRMdtE2U3kUi4KVrjEKjyvmZZnPXeUrToHAdLmQWBE?= =?us-ascii?Q?2fqDh58FeBJMD72JzLTb3GyLoZqFe3MZH69ubBRpcLwqlnZ4HbfYtu+fNtyU?= =?us-ascii?Q?BqOloYp9LLmRlbMcwWSNhkXdkSrL5JQBX9YasXWS1fgr4aJP6BRkX5Sv3/5b?= =?us-ascii?Q?4YppRZz8e0KmAGLRu+93v5xt?= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9f0f87cb-12c4-4528-b50f-08d966dac31b X-MS-Exchange-CrossTenant-AuthSource: AM7PR08MB5494.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Aug 2021 08:40:01.3694 (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: 07s5XGk7nAtlEFhShq3Niwghtx2LDqnCRn6kBTvNykC4ahFjDk9JuOx9+7L7aFaMeLr7TavOHsJJYIpdDrzcXz7hHOZV4eVK5vJr+LJPcyc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB5077 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=40.107.13.131; envelope-from=vsementsov@virtuozzo.com; helo=EUR01-HE1-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @virtuozzo.com) X-ZM-MESSAGEID: 1629795263953100002 Content-Type: text/plain; charset="utf-8" Actually target of backup(sync=3DNone) is not a final backup target: image fleecing is intended to be used with external tool, which will copy data from fleecing node to some real backup target. Also, we are going to add a test case for "push backup with fleecing", where instead of exporting fleecing node by NBD, we'll start a backup job from fleecing node to real backup target. To avoid confusion, let's rename temporary fleecing node now. Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Max Reitz --- tests/qemu-iotests/tests/image-fleecing | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/qemu-iotests/tests/image-fleecing b/tests/qemu-iotests/t= ests/image-fleecing index 961941bb27..ec4ef5f3f6 100755 --- a/tests/qemu-iotests/tests/image-fleecing +++ b/tests/qemu-iotests/tests/image-fleecing @@ -71,6 +71,7 @@ with iotests.FilePath('base.img') as base_img_path, \ log('') =20 src_node =3D 'source' + tmp_node =3D 'temp' vm.add_blockdev(f'driver=3D{iotests.imgfmt},file.driver=3Dfile,' f'file.filename=3D{base_img_path},node-name=3D{src_nod= e}') vm.add_device('virtio-scsi') @@ -82,12 +83,11 @@ with iotests.FilePath('base.img') as base_img_path, \ log('--- Setting up Fleecing Graph ---') log('') =20 - tgt_node =3D 'fleeceNode' =20 - # create tgt_node backed by src_node + # create tmp_node backed by src_node log(vm.qmp('blockdev-add', { 'driver': 'qcow2', - 'node-name': tgt_node, + 'node-name': tmp_node, 'file': { 'driver': 'file', 'filename': fleece_img_path, @@ -99,19 +99,19 @@ with iotests.FilePath('base.img') as base_img_path, \ log(vm.qmp('blockdev-backup', job_id=3D'fleecing', device=3Dsrc_node, - target=3Dtgt_node, + target=3Dtmp_node, sync=3D'none')) =20 log('') log('--- Setting up NBD Export ---') log('') =20 - nbd_uri =3D 'nbd+unix:///%s?socket=3D%s' % (tgt_node, nbd_sock_path) + nbd_uri =3D 'nbd+unix:///%s?socket=3D%s' % (tmp_node, nbd_sock_path) log(vm.qmp('nbd-server-start', {'addr': { 'type': 'unix', 'data': { 'path': nbd_sock_path } } })) =20 - log(vm.qmp('nbd-server-add', device=3Dtgt_node)) + log(vm.qmp('nbd-server-add', device=3Dtmp_node)) =20 log('') log('--- Sanity Check ---') @@ -149,7 +149,7 @@ with iotests.FilePath('base.img') as base_img_path, \ assert e is not None log(e, filters=3D[iotests.filter_qmp_event]) log(vm.qmp('nbd-server-stop')) - log(vm.qmp('blockdev-del', node_name=3Dtgt_node)) + log(vm.qmp('blockdev-del', node_name=3Dtmp_node)) vm.shutdown() =20 log('') --=20 2.29.2