From: Chuck Lever <chuck.lever@oracle.com>
To: Luis Chamberlain <mcgrof@kernel.org>,
Daniel Gomez <da.gomez@kruces.com>,
kdevops@lists.linux.dev
Subject: Re: [PATCH] devconfig: enhance firstconfig on debian
Date: Fri, 18 Apr 2025 14:51:13 -0400 [thread overview]
Message-ID: <842c8254-1054-4b54-94bd-e7d8a45b6886@oracle.com> (raw)
In-Reply-To: <20250418183345.4163050-1-mcgrof@kernel.org>
On 4/18/25 2:33 PM, Luis Chamberlain wrote:
> 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 <mcgrof@kernel.org>
> ---
> .../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 954f0aede3b2..dea648e21465 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:
The patch context leaves out this step:
12 - name: Verify unattended-upgrades is not installed
13 fail:
14 msg: |
15 The unattended-upgrades package is installed on the base
image, this
16 can cause tons of issues with CIs. Fix this by running the
following
17 commands:
18
19 make cleancache
20 make bringup
21 when:
22 - unattended_upgrades_installed|bool
This step will still fail if the cloud OS image has unattended-upgrades
installed. Should the proposed patch remove this step (and maybe the
one right before it) too?
> @@ -20,6 +21,26 @@
> make bringup
> when:
> - 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
> @@ -34,7 +55,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
> @@ -45,6 +66,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
> @@ -59,6 +81,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
> @@ -77,6 +100,7 @@
> - apt-daily-upgrade.timer
> - systemd-networkd-wait-online.service
> ignore_errors: yes
> + tags: firstconfig
>
> - name: Allow for distro source change / upgrade
> become: yes
--
Chuck Lever
next prev parent reply other threads:[~2025-04-18 18:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-18 18:33 [PATCH] devconfig: enhance firstconfig on debian Luis Chamberlain
2025-04-18 18:51 ` Chuck Lever [this message]
2025-04-18 19:23 ` Luis Chamberlain
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=842c8254-1054-4b54-94bd-e7d8a45b6886@oracle.com \
--to=chuck.lever@oracle.com \
--cc=da.gomez@kruces.com \
--cc=kdevops@lists.linux.dev \
--cc=mcgrof@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox