From nobody Thu May 2 18:14:49 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1569413402; cv=none; d=zoho.com; s=zohoarc; b=ds1eIA47Jz0PRG98+9tnl6Y60rei1i54HwQIFNkd0yH1P9z8A4a1/4uStTok46CLMe/dll7HzceF3gCJnW2z5pAL61YWD/h1GiKlo/yuZE09wSFLlhGAx9Ino9bQh2ZxXUenfN8AruIupuJ/e0spf3xF9LE05kid+eO4P6q1Z9k= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1569413402; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To:ARC-Authentication-Results; bh=JmspcI5mQfI7dsZvlS2xQGc1XZbFL6mOPjRrf7Sodto=; b=fBaODBPYrd4ZlTxtIyljNp995O4+H5JiubuYXeS1JaPSFu//VwqgK+u5prmABGm18aqYLybiJ6hMro9CTsUgIiEMSHo4QFznxXfb+xWBN3O6udD42TXySc4J1mdDOrEPY7Z54JTWTPdMyb1jtbCUarGq9Y0kOZs/3hDiJUC5DDU= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 156941340207832.76803113254073; Wed, 25 Sep 2019 05:10:02 -0700 (PDT) Received: from localhost ([::1]:49166 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iD67M-00069b-Vk for importer@patchew.org; Wed, 25 Sep 2019 08:10:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52737) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iD66c-0005jI-H6 for qemu-devel@nongnu.org; Wed, 25 Sep 2019 08:09:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iD66Z-0006Cv-O1 for qemu-devel@nongnu.org; Wed, 25 Sep 2019 08:09:12 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42268) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iD66Z-0006Cl-IW for qemu-devel@nongnu.org; Wed, 25 Sep 2019 08:09:11 -0400 Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 029EB5859E for ; Wed, 25 Sep 2019 12:09:10 +0000 (UTC) Received: by mail-wr1-f70.google.com with SMTP id q10so2262126wro.22 for ; Wed, 25 Sep 2019 05:09:09 -0700 (PDT) Received: from auriga.brq.redhat.com (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id m18sm8852430wrg.97.2019.09.25.05.09.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2019 05:09:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=x7itg78xAgmV9McZqFhl+T/z5pDz39clwKjgo5EJCRU=; b=uYLSSz1aGE3Di0Lc50ij5hqlEjNuEjF775GMX0tSFD6wE2ZJhvyU6gAG0nBMwDyTay GIV0cdysFve9hAGFty7f4u4WEtnihpBv3qeRmPcLHD90vNwJJN7es0JfwBKmPO3X4658 4f/0p2knpvxYbJ26ySwSh7xFE5jdLoNtmGCG+mZ9psLbAaNO4axje0INVhAmhflcMJ5p 5HNSac+1gsxYOd4AVpf7jqCwsXZqUF4MJ1vdwnBKsjcmnV9EXrrh528f+mtCMKmGs+Rr 7neDTX59ouXXOs7hiDnAERmLHRUwqhtCurZ9kBvmSd+EQPQVNAO9GZbhpoko0Wb+33ms m2lw== X-Gm-Message-State: APjAAAXmYzhXwZEFeDZyEAgXHY2yD9h9HO0LWXo5Spe+eJejuOnGZCB6 CcKlC4T8RsSOS1liH0TlL2BNM89rLC4FYnCfSqWDhnLY3LdzTLJwdKNolQg7wOHqI4JKKReVSfy jUcpUO1Vy3Y01sBY= X-Received: by 2002:a5d:6302:: with SMTP id i2mr9679632wru.249.1569413348529; Wed, 25 Sep 2019 05:09:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqxEhorjPlJeRlTy0KTdEfi9cE+CCMN5P64pRLBfePsLOxThewSuzXEs7r0BdzC4c9Sq7FdZuw== X-Received: by 2002:a5d:6302:: with SMTP id i2mr9679599wru.249.1569413348251; Wed, 25 Sep 2019 05:09:08 -0700 (PDT) From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Golembiovsk=C3=BD?= To: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Fam Zheng , =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-devel@nongnu.org Subject: [PATCH] docker: fix uid maping with podman Date: Wed, 25 Sep 2019 14:09:06 +0200 Message-Id: <4b9204cc8ade1c965dc5412c53c6f7c5b4f019a2.1569413332.git.tgolembi@redhat.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 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: =?UTF-8?q?Tom=C3=A1=C5=A1=20Golembiovsk=C3=BD?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" Commit 71ebbe09 refactored how uid mapping is performed when invoking container. It however introduced a bug in the flow when podman is used caused by wrong variable name. Signed-off-by: Tom=C3=A1=C5=A1 Golembiovsk=C3=BD --- tests/docker/docker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/docker/docker.py b/tests/docker/docker.py index 29613afd48..bc7a470ca2 100755 --- a/tests/docker/docker.py +++ b/tests/docker/docker.py @@ -334,7 +334,7 @@ class Docker(object): cmd =3D [ "-u", str(uid) ] + cmd # podman requires a bit more fiddling if self._command[0] =3D=3D "podman": - argv.insert(0, '--userns=3Dkeep-id') + cmd.insert(0, '--userns=3Dkeep-id') =20 ret =3D self._do_check(["run", "--label", "com.qemu.instance.uuid=3D" + label] + cmd, --=20 2.23.0