From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1366C214A7F for ; Fri, 18 Apr 2025 19:24:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745004257; cv=none; b=JlNi98Le6Sf+jCcV4S4gvSDAe0JqKdAohg6+X94Ofrcq73qEXJ4yL6RHU8kK+8nDcGahd2i/O1WFvhStlP012YiHEtxl5QBd92PBG3HiZiRF4t6XWtFIwJDbR7IBsO0qpuT7vrJtlN+TXmfsXxeH9rfgTZVupIbBi+WRjP9M3yc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745004257; c=relaxed/simple; bh=RU3b6nuohYtjqB86cburpo9S2asuqYWU2WcSU/fYABM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Ww6JjR2p+sdGVe8f+mnOjeg/FMWiQuRnVJuxp5auxzDny+WvyP9NMJ7gwh+wPgLX+RWnx7giQcg/qYkFpdX4KJs5zjrYjXu3dXou9LfQ1AfLn+oRmPtilisRhgds9WRIoitSDZ6w2a0AIV9ID1cw/8nVwz6venXud7TbMWSpheQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=kernel.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=wYmJ4M1E; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="wYmJ4M1E" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description; bh=UKqxab821U22NilKplhzqj9B6w01zQn0MYio+84ossQ=; b=wYmJ4M1EkA300HftiUVUOJtj96 oI98tgiRv3vy0K6OMCutTtvUBPCR70+6fz90db8lPo11mzjooKKFFZgiuMJV7u6JIOfuzzb7+1nhC Ir+PNOVdNUvJrgYhzDm0aHKImLiQSHCPbsevtvBPGXAGFH5zqXw1XOrSXlSLTIUeVBktCYPOMrooT MX82SX0wcQ2HS3iFUlU4yriGw4bXzDRbFQYj/EwAFxshrMe6pxIfAp1OabSCZcVVNT5vY4RuW7gwz vOywl5hi1C3rQ9YtKY865VyaWuK+rKRyi8NuZXmlS6XY7MwhVYhJYpoj6t3NMr9OWila6USrFrypL 9OoQJucg==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.98.2 #2 (Red Hat Linux)) id 1u5rJv-0000000Habd-2ATu; Fri, 18 Apr 2025 19:24:15 +0000 From: Luis Chamberlain To: Chuck Lever , Daniel Gomez , kdevops@lists.linux.dev Cc: Luis Chamberlain Subject: [PATCH v2 2/2] devconfig: enhance firstconfig on debian Date: Fri, 18 Apr 2025 12:24:14 -0700 Message-ID: <20250418192414.4192280-3-mcgrof@kernel.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250418192414.4192280-1-mcgrof@kernel.org> References: <20250418192414.4192280-1-mcgrof@kernel.org> Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Luis Chamberlain There's a slew of stupid packages we need to disable to make CI more robust and deterministic at bringup. The unattended-upgrades is one of them, the other one is the systemd-networkd-wait-online.service which is just broken on debian trixie in the way we setup networking. Although there are devconfig tasks already to disable these, its not enough as devconfig playbook may not be run until later, and so we need to do this as early as possible. Signed-off-by: Luis Chamberlain --- .../tasks/install-deps/debian/main.yml | 26 ++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/playbooks/roles/devconfig/tasks/install-deps/debian/main.yml b/playbooks/roles/devconfig/tasks/install-deps/debian/main.yml index 8efc59bc167f..6ffe00fef3a5 100644 --- a/playbooks/roles/devconfig/tasks/install-deps/debian/main.yml +++ b/playbooks/roles/devconfig/tasks/install-deps/debian/main.yml @@ -4,6 +4,7 @@ register: unattended_upgrade_status ignore_errors: true changed_when: false + tags: firstconfig - name: Set fact if unattended-upgrades is installed set_fact: @@ -23,6 +24,26 @@ when: - kdevops_enable_guestfs|bool - unattended_upgrades_installed|bool + tags: firstconfig + +- name: Stop and disable unattended-upgrades related services + become: yes + become_flags: 'su - -c' + become_method: sudo + systemd: + name: "{{ item }}" + state: stopped + enabled: no + daemon_reload: yes + loop: + - unattended-upgrades + - apt-daily.service + - apt-daily.timer + - apt-daily-upgrade.service + - apt-daily-upgrade.timer + - systemd-networkd-wait-online.service + ignore_errors: yes + tags: firstconfig - name: Upgrade Packages become: yes @@ -37,7 +58,7 @@ delay: 60 tags: firstconfig -- name: Remove unattended-upgrades package +- name: Remove unattended-upgrades package in case upgrade installed it become: yes become_flags: 'su - -c' become_method: sudo @@ -48,6 +69,7 @@ retries: 20 delay: 30 until: removal_result is not failed + tags: firstconfig - name: Remove optional unattended-upgrades configuration files if they exist become: yes @@ -62,6 +84,7 @@ - /etc/apt/apt.conf.d/50unattended-upgrades - /etc/apt/apt.conf.d/52unattended-upgrades-local ignore_errors: yes + tags: firstconfig - name: Stop and disable unattended-upgrades related services become: yes @@ -80,6 +103,7 @@ - apt-daily-upgrade.timer - systemd-networkd-wait-online.service ignore_errors: yes + tags: firstconfig - name: Allow for distro source change / upgrade become: yes -- 2.47.2