From nobody Mon Feb 9 17:05:00 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) client-ip=207.211.31.81; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1578412243; cv=none; d=zohomail.com; s=zohoarc; b=BnmvWmoOBQcL9tN5M/3nlpAcCXTt3PPDsZ31b04uW/QMId1mhkFzLUMdjrW7r2eKRYfsf6zCRP2WKn8jPv84uM/fDueunkGfxC99idAXcmpmzoZZkBUsTdWUbmQeoh8XKT1u2WQAmbG6NRWCYvX3/uQcA8pV5r+9n12Tfr5+6iQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1578412243; h=Content-Type:Content-Transfer-Encoding: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=XCo3uGsQSpOs5Ow/HY1ADQmbCpsLxB1Pfzis09F2JG4=; b=AvE6PCWTnP4M02nDbuBTpbddfJYc0BzV2lst1j1U0EOeCbpp+juwhY8TdMmM5RqLK3WqoLhE2/bjlFoakSlGduFDjKAmc+j0Y6vC3yL3nd+GuRuAOl1Q6hdGvSH7/i/EWcOzm8raztkv/v3KpAFttCEEyAYBklw9/tIqfrg7BNY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) by mx.zohomail.com with SMTPS id 157841224342017.89038010993761; Tue, 7 Jan 2020 07:50:43 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-427-QUzPA14nP_-C7NcwCAzBLQ-1; Tue, 07 Jan 2020 10:50:40 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6575618CA27B; Tue, 7 Jan 2020 15:50:33 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 108B65D9CA; Tue, 7 Jan 2020 15:50:33 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id E112E81C60; Tue, 7 Jan 2020 15:50:31 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 007FoTQ6005775 for ; Tue, 7 Jan 2020 10:50:29 -0500 Received: by smtp.corp.redhat.com (Postfix) id 481095D9E1; Tue, 7 Jan 2020 15:50:29 +0000 (UTC) Received: from kinshicho.usersys.redhat.com (unknown [10.43.2.246]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C44005D9CA for ; Tue, 7 Jan 2020 15:50:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1578412242; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=XCo3uGsQSpOs5Ow/HY1ADQmbCpsLxB1Pfzis09F2JG4=; b=gyMoPjP/khw3TUy1HZ3XUGrfxBZlSQkwaUm+Ab6oVrq+kK6T0mhr46fV2ZYKBiYDGdr+fJ TiDyhQMl2eJHzSTZxs5lzNJckYlVEyieWHtWISAm9WILPdmnLbXxZVrN1vKDIF4zc/BYwr S3f8F6yyOsElM9PZURP2xtkvLJiNSc4= From: Andrea Bolognani To: libvir-list@redhat.com Date: Tue, 7 Jan 2020 16:50:20 +0100 Message-Id: <20200107155020.22439-4-abologna@redhat.com> In-Reply-To: <20200107155020.22439-1-abologna@redhat.com> References: <20200107155020.22439-1-abologna@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: libvir-list@redhat.com Subject: [libvirt] [jenkins-ci PATCH 3/3] lcitool: Fix pip use on CentOS 7 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-MC-Unique: QUzPA14nP_-C7NcwCAzBLQ-1 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" The 'pip' Ansible module doesn't work correctly when there is a mismatch between the Python version we're adding packages to and the one used to run Ansible itself: this is the case on CentOS 7, where we have Python 3 for the former but Python 2 for the latter. Call pip3 manually using the 'command' module instead to work around this issue. Signed-off-by: Andrea Bolognani Reviewed-by: Daniel P. Berrang=C3=A9 --- guests/playbooks/update/tasks/packages.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/guests/playbooks/update/tasks/packages.yml b/guests/playbooks/= update/tasks/packages.yml index fc8a3d1..4e7d5f6 100644 --- a/guests/playbooks/update/tasks/packages.yml +++ b/guests/playbooks/update/tasks/packages.yml @@ -143,7 +143,8 @@ - pip_resolved[item] not in pip_flattened =20 - name: '{{ project }}: Install packages from pip (state=3D{{ state }})' - pip: - name: '{{ pip_flattened|sort }}' - executable: pip3 - state: '{{ state }}' + command: 'pip3 install {{ item }}' + args: + warn: no + with_items: + '{{ pip_flattened|sort }}' --=20 2.24.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list