[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#972872: apt.systemd.daily should vary exit code based on unattended-upgrades failures



On Sun, Oct 25, 2020 at 04:09:23PM +0000, Filippo Giunchedi wrote:
> Package: apt
> Version: 1.8.2.1
> Severity: normal
> 
> Hi,
> I've ran into a situation where an unattended-upgrades run would fail to
> upgrade packages on an host. I'm using the u-u APT integration, thus u-u is
> called via /usr/lib/apt/apt.systemd.daily and its corresponding service+timer.
> 
> Even on a failed u-u run the apt-daily-upgrade.service unit is still reported a
> successful, AFAICT because apt.systemd.daily exits 0 even when u-u fails. I
> think it makes sense to surface u-u errors back and thus fail the systemd
> service, does that seem reasonble? What do you think re: surfacing other errors
> as well?

We need a substantial rework of exit logic and introduce retry to the
whole service.

-- 
debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer                              i speak de, en


Reply to: