From nobody Thu Apr 25 10:17:59 2024 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=1578672242; cv=none; d=zohomail.com; s=zohoarc; b=aScOPPq807bJ8+C/DjqCzrR1OvTX6zHROYJXUPIXqU8l6j9tNNuk7u68czMNP0fhqdPLCxMd1XEEr/M16lapQg9IiYzHX/FMEi4ldhjdGpJshMNevYYnTPfVoyZqcx8h1Fw+U4OPaDA+GNbSXfpSwuXJZ2xLsBNTBxFCn8se2m4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1578672242; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=DFRXUvMXYabbHJ94RftLTc7n5nHssQuiaFydQysexS8=; b=TJNCw8+01Xg/oG0RMdz7DAGo0KW2mhThmN2mt9YpfdUPa2ZvNbZjA6y0fVKO6i+RUfXGXhNB2bwXGmp7eo6msd7Reok4NMs1X51sJi+85v+uMz0zflphl7Au9LwOAAe/37Cm9NMtD7G4eQ6vajw2e2YPFzTW8TTm+sEYqEt61cE= 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 1578672242333831.8507353819543; Fri, 10 Jan 2020 08:04:02 -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-293-Nw8I7J7dPDCVBfT9J2MKaQ-1; Fri, 10 Jan 2020 11:03:54 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 3E8ED800D48; Fri, 10 Jan 2020 16:03:48 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AB1239A84; Fri, 10 Jan 2020 16:03:45 +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 2A05818034EA; Fri, 10 Jan 2020 16:03:42 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 00AG3ehh023906 for ; Fri, 10 Jan 2020 11:03:40 -0500 Received: by smtp.corp.redhat.com (Postfix) id 78941272A6; Fri, 10 Jan 2020 16:03:40 +0000 (UTC) Received: from kinshicho.usersys.redhat.com (unknown [10.43.2.246]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 01AB019C4F for ; Fri, 10 Jan 2020 16:03:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1578672241; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=DFRXUvMXYabbHJ94RftLTc7n5nHssQuiaFydQysexS8=; b=guDLbuvUkFfjh+MyWmqq1zneKuMvRsG7wPgFWQAN3Wt/j7BeBXt+BeQxaygo1Lj9MBh0EC r8GYpBEheruXhfzKVFwLK7zNGnvh7wnQr8HseC/sBNaKfgBwzQDxQllOOW8FXnIDXtVYEM 87qYvoEaLSy42pqz/Ohq8yCnjDJFiRE= From: Andrea Bolognani To: libvir-list@redhat.com Date: Fri, 10 Jan 2020 17:03:35 +0100 Message-Id: <20200110160335.27592-1-abologna@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com Subject: [libvirt] [jenkins-ci PATCH] lcitool: Mark Fedora kernel packages as user-installed 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.15 X-MC-Unique: Nw8I7J7dPDCVBfT9J2MKaQ-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" >From time to time we hit https://bugzilla.redhat.com/show_bug.cgi?id=3D1741381 which result in 'dnf autoremove' failing. The suggested workaround is to manually mark kernel packages as user-installed, so let's do that every single time just in case. Signed-off-by: Andrea Bolognani Reviewed-by: Daniel P. Berrang=C3=A9 --- guests/playbooks/update/tasks/base.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/guests/playbooks/update/tasks/base.yml b/guests/playbooks/upda= te/tasks/base.yml index f085f19..97f365e 100644 --- a/guests/playbooks/update/tasks/base.yml +++ b/guests/playbooks/update/tasks/base.yml @@ -100,6 +100,13 @@ when: - package_format =3D=3D 'pkg' =20 +- name: Clean up packages after update + command: '{{ package_manager }} mark install "kernel*"' + args: + warn: no + when: + - os_name =3D=3D 'Fedora' + - name: Clean up packages after update shell: '{{ package_manager }} clean packages -y && {{ package_manager }}= autoremove -y' args: --=20 2.24.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list