public inbox for kdevops@lists.linux.dev
 help / color / mirror / Atom feed
* Debian unattended-upgrades
@ 2025-04-09 19:54 Chuck Lever
  2025-04-09 20:16 ` Chuck Lever
  2025-04-18 19:15 ` Luis Chamberlain
  0 siblings, 2 replies; 6+ messages in thread
From: Chuck Lever @ 2025-04-09 19:54 UTC (permalink / raw)
  To: kdevops

Hi -

While testing with Debian 12 on AWS, I ran into this:

---
- name: Check if unattended-upgrades is installed
  command: dpkg-query -W -f='${Status}' unattended-upgrades
  register: unattended_upgrade_status
  ignore_errors: true
  changed_when: false

- name: Set fact if unattended-upgrades is installed
  set_fact:
    unattended_upgrades_installed: "{{ 'install ok installed' in
unattended_upgrade_status.stdout }}"

- name: Verify unattended-upgrades is not installed
  fail:
    msg: |
      The unattended-upgrades package is installed on the base image, this
      can cause tons of issues with CIs. Fix this by running the following
      commands:

      make cleancache
      make bringup
  when:
    - unattended_upgrades_installed|bool

The Debian 12 image on AWS has the unattended-upgrades package
installed. I haven't checked Debian 11 or Debian on other cloud
providers.

- I did a "dpkg --purge unattended-upgrades" on each of the
  instances, and this failure went away

- "make cleancache" might be appropriate for a libvirt installation,
  but it definitely won't do anything for cloud; a fresh OS image
  will always have that package (unless we make a custom image)

- Even so, if the libvirt OS image provider installs that package,
  "make cleancache" won't eliminate the failure

Noting that later steps in
playbooks/roles/devconfig/tasks/install-deps/debian/main.yml disable and
uninstall unattended-upgrades anyway, what
is the purpose for the above logic? Can it be removed?

-- 
Chuck Lever


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-04-18 19:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-09 19:54 Debian unattended-upgrades Chuck Lever
2025-04-09 20:16 ` Chuck Lever
2025-04-10  8:29   ` Daniel Gomez
2025-04-10 13:49     ` Chuck Lever
2025-04-14  7:55       ` Daniel Gomez
2025-04-18 19:15 ` Luis Chamberlain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox