From nobody Wed Nov 19 07:25:27 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; 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-Seal: i=1; a=rsa-sha256; t=1615399322; cv=none; d=zohomail.com; s=zohoarc; b=kNhxUWw3hlaea2lsAeWOFipyb3s1NoBPk9h8S4oL50eax4wunoMVRA8wRZIwX9bzXGN8GruaNv8FpAPBoDjp6Y402dOlcbONQHpufhmEAIPy7h/8q8RelLJe0kJXXma5Pc2h8MdlZaG1ar9HA4STkpm8IFk9XJlWFit/mgJTpqU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1615399322; h=Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:Sender:Subject:To; bh=kZj2BNMEw5HVYEicUAjCHI6N+IU0LD+vjVv+IEP7nB8=; b=nnfRWOmtQQmozPVFrXEv8QO4YrhcmpD/JrWMmV0uvSdHj5gN/wfEmhKtZo9ttG+U/ZI0cdFKw/E4i1Krs1O3gUBCYffSAM9fkTHga179trSdc5hLsXN1kLaMqTD/2IDI4JQqUov8neLaNd7LfFAGvCbdrfpApjnXGF/i6ja4ueA= ARC-Authentication-Results: i=1; mx.zohomail.com; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1615399321663429.84208206942867; Wed, 10 Mar 2021 10:02:01 -0800 (PST) Received: from localhost ([::1]:44400 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lK39j-00024J-Vm for importer@patchew.org; Wed, 10 Mar 2021 13:02:00 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40702) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lK2fK-0006Cp-L1 for qemu-devel@nongnu.org; Wed, 10 Mar 2021 12:30:34 -0500 Received: from prt-mail.chinatelecom.cn ([42.123.76.223]:51442 helo=chinatelecom.cn) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lK2fB-0006Uc-E7 for qemu-devel@nongnu.org; Wed, 10 Mar 2021 12:30:33 -0500 Received: from clientip-125.69.43.3?logid-0f9132e31a8249f5bd425f9e1b7fbe7b (unknown [172.18.0.48]) by chinatelecom.cn (HERMES) with SMTP id 323C628008E; Thu, 11 Mar 2021 01:30:12 +0800 (CST) Received: from ([172.18.0.48]) by App0024 with ESMTP id 0f9132e31a8249f5bd425f9e1b7fbe7b for qemu-devel@nongnu.org; Thu Mar 11 01:30:15 2021 HMM_SOURCE_IP: 172.18.0.48:64581.1501305303 HMM_ATTACHE_NUM: 0000 HMM_SOURCE_TYPE: SMTP X-189-SAVE-TO-SEND: +huangy81@chinatelecom.cn X-Transaction-ID: 0f9132e31a8249f5bd425f9e1b7fbe7b X-filter-score: filter<0> X-Real-From: huangy81@chinatelecom.cn X-Receive-IP: 172.18.0.48 X-MEDUSA-Status: 0 From: huangy81@chinatelecom.cn To: qemu-devel Subject: [PATCH] tests/migration: fix unix socket batch migration Date: Thu, 11 Mar 2021 01:29:55 +0800 Message-Id: X-Mailer: git-send-email 1.8.3.1 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=42.123.76.223; envelope-from=huangy81@chinatelecom.cn; helo=chinatelecom.cn X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, 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: , Cc: Hyman , Eduardo Habkost , Cleber Rosa Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Hyman when execute the following test command: "guestperf-batch.py --dst-host localhost --transport unix ..." test aborts and error message as the following be throwed: "launching VM Failed: [Errno 98] Address already in use". The reason is that batch script use the same monitor socket in all test cases and do not remove the socket file. The second migration test will launch vm use the same socket file as the first, so we get the error message. To fix it, just remove the socket file each time we have done the migration test. Signed-off-by: Hyman --- tests/migration/guestperf/engine.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/migration/guestperf/engine.py b/tests/migration/guestper= f/engine.py index 83bfc3b..5189cf9 100644 --- a/tests/migration/guestperf/engine.py +++ b/tests/migration/guestperf/engine.py @@ -407,6 +407,13 @@ def run(self, hardware, scenario, result_dir=3Dos.getc= wd()): vcpu_timings =3D ret[2] if uri[0:5] =3D=3D "unix:": os.remove(uri[5:]) + + if os.path.exists(srcmonaddr): + os.remove(srcmonaddr) + + if self._dst_host =3D=3D "localhost" and os.path.exists(dstmon= addr): + os.remove(dstmonaddr) + if self._verbose: print("Finished migration") =20 --=20 1.8.3.1