public inbox for kdevops@lists.linux.dev
 help / color / mirror / Atom feed
From: Chuck Lever <chuck.lever@oracle.com>
To: Daniel Gomez <da.gomez@kernel.org>
Cc: kdevops@lists.linux.dev, Swarna Prabhu <s.prabhu@samsung.com>
Subject: Re: Debian unattended-upgrades
Date: Thu, 10 Apr 2025 09:49:07 -0400	[thread overview]
Message-ID: <07acde19-1fe2-4e16-881f-361ae3beb727@oracle.com> (raw)
In-Reply-To: <3oj5sq4g4mwogoltgblniii36dpmjhjcwhbvilchel4ezb2pbk@rpzbx6rfcwjf>

On 4/10/25 4:29 AM, Daniel Gomez wrote:
> On Wed, Apr 09, 2025 at 04:16:44PM +0100, Chuck Lever wrote:
>> On 4/9/25 3:54 PM, Chuck Lever wrote:
>>>
>>> - 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?
> 
> I was reviewing these tasks the other day with Swarna. My suggestion is to
> reorganize the task order to the following:
> 
> - name: Check if unattended-upgrades is installed
> - name: Set fact if unattended-upgrades is installed
> - name: Stop and disable unattended-upgrades related services
> - name: Remove unattended-upgrades package
> - name: Remove optional unattended-upgrades configuration files if they exist
> - name: Verify unattended-upgrades is not installed
> - name: Upgrade Packages
> 
> I think the dpkg --purge should cleanup the unnatended-upgrades package files
> as we do we do in "Remove optional...", right? In that case, we can replace this
> task with the more appropiate dpkg command you have suggested above.

I'm wondering about the repetition of "remove unattended-upgrades"
/after/ the full update in the current Ansible script. Is there a
possibility that the full update will reinstall unattended-upgrades? If
not, then your proposed order looks OK to me.


>> This is a possible solution I found on StackOverflow:
>>
>> https://stackoverflow.com/questions/45269225/ansible-playbook-fails-to-lock-apt/51919678#51919678
>>
>> I see that bringup_guestfs.sh already attempts to uninstall
>> unattended-upgrades on new images. We'll want something that works
>> for cloud instances too.
> 
> Agree. And I think that was the intention of that part of the playbook.
> 
>>
>>
>> -- 
>> Chuck Lever


-- 
Chuck Lever

  reply	other threads:[~2025-04-10 13:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2025-04-14  7:55       ` Daniel Gomez
2025-04-18 19:15 ` 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=07acde19-1fe2-4e16-881f-361ae3beb727@oracle.com \
    --to=chuck.lever@oracle.com \
    --cc=da.gomez@kernel.org \
    --cc=kdevops@lists.linux.dev \
    --cc=s.prabhu@samsung.com \
    /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