public inbox for [email protected]help / color / mirror / Atom feed
Ubuntu Unattended Upgrades 3+ messages / 2 participants [nested] [flat]
* Ubuntu Unattended Upgrades @ 2020-11-18 16:22 Don Seiler <[email protected]> 2020-11-18 21:12 ` Re: Ubuntu Unattended Upgrades Christoph Berg <[email protected]> 0 siblings, 1 reply; 3+ messages in thread From: Don Seiler @ 2020-11-18 16:22 UTC (permalink / raw) To: [email protected] Good morning, Background: Running PG10 on Ubuntu Bionic (18.04). Last night I noticed one of our prod databases was restarted. Digging deeper it was Ubuntu's unattended-upgrade utility (which we just started using this month) that upgraded it from the PGDG 10.14 package to the Ubuntu 10.15 package. We had assumed since unattended-upgrade doesn't include PGDG that it wouldnt upgrade the existing packages, but apparently that doesn't prevent it from "upgrading" them to the Ubuntu equivalent, which then also restarts the databases. It seems this is only a problem with postgresql-10 on Ubuntu Bionic since Bionic provides its own postgresql-10 packages. I'm guessing we should blacklist all postgresql packages in the unattended-upgrades config. I'm wondering if this has been already tackled by anyone else and if there is a more clever solution other than NOT running unattended-upgrades. Alternatively, is it possible to install the new packages but *NOT* restart the DB automatically? I understand that a DB restart would be required to run on the new version but curious if we could have the packages installed prior and then restart at the next available window (although installation doesn't really take that long, just curious). -- Don Seiler www.seiler.us ^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Ubuntu Unattended Upgrades 2020-11-18 16:22 Ubuntu Unattended Upgrades Don Seiler <[email protected]> @ 2020-11-18 21:12 ` Christoph Berg <[email protected]> 2020-11-18 21:21 ` Re: Ubuntu Unattended Upgrades Don Seiler <[email protected]> 0 siblings, 1 reply; 3+ messages in thread From: Christoph Berg @ 2020-11-18 21:12 UTC (permalink / raw) To: Don Seiler <[email protected]>; +Cc: [email protected] Re: Don Seiler > We had assumed since unattended-upgrade doesn't include PGDG that it > wouldnt upgrade the existing packages, but apparently that doesn't prevent > it from "upgrading" them to the Ubuntu equivalent, which then also restarts > the databases. It seems this is only a problem with postgresql-10 on Ubuntu > Bionic since Bionic provides its own postgresql-10 packages. Hmm, I wasn't aware that Ubuntu's (?) default unattended-upgrades config makes it upgrade Ubuntu packages only. > Alternatively, is it possible to install the new packages but *NOT* restart > the DB automatically? I understand that a DB restart would be required to You can install a /usr/sbin/policy-rc.d file [1]. That will allow filtering the start/stop actions issued by package activity. [1] https://people.debian.org/~hmh/invokerc.d-policyrc.d-specification.txt > run on the new version but curious if we could have the packages installed > prior and then restart at the next available window (although installation > doesn't really take that long, just curious). Restarting after install is actually the default since a while ago. (Previously packages were doing stop-upgrade-start.) Christoph ^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Ubuntu Unattended Upgrades 2020-11-18 16:22 Ubuntu Unattended Upgrades Don Seiler <[email protected]> 2020-11-18 21:12 ` Re: Ubuntu Unattended Upgrades Christoph Berg <[email protected]> @ 2020-11-18 21:21 ` Don Seiler <[email protected]> 0 siblings, 0 replies; 3+ messages in thread From: Don Seiler @ 2020-11-18 21:21 UTC (permalink / raw) To: Christoph Berg <[email protected]>; +Cc: [email protected] On Wed, Nov 18, 2020 at 3:12 PM Christoph Berg <[email protected]> wrote: > Re: Don Seiler > > We had assumed since unattended-upgrade doesn't include PGDG that it > > wouldnt upgrade the existing packages, but apparently that doesn't > prevent > > it from "upgrading" them to the Ubuntu equivalent, which then also > restarts > > the databases. It seems this is only a problem with postgresql-10 on > Ubuntu > > Bionic since Bionic provides its own postgresql-10 packages. > > Hmm, I wasn't aware that Ubuntu's (?) default unattended-upgrades > config makes it upgrade Ubuntu packages only. > By default it only upgrades from an approved list of sources. One could include PGDG repos in that list if you desired. > > Alternatively, is it possible to install the new packages but *NOT* > restart > > the DB automatically? I understand that a DB restart would be required to > > You can install a /usr/sbin/policy-rc.d file [1]. That will allow > filtering the start/stop actions issued by package activity. > > [1] https://people.debian.org/~hmh/invokerc.d-policyrc.d-specification.txt I'll look into this, thanks! > > > > run on the new version but curious if we could have the packages > installed > > prior and then restart at the next available window (although > installation > > doesn't really take that long, just curious). > > Restarting after install is actually the default since a while ago. > (Previously packages were doing stop-upgrade-start.) > Right but I mean restarting like later in the day or week. Not immediately after the upgrade when we aren't ready for it. Thanks for all the info! Don. -- Don Seiler www.seiler.us ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2020-11-18 21:21 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2020-11-18 16:22 Ubuntu Unattended Upgrades Don Seiler <[email protected]> 2020-11-18 21:12 ` Christoph Berg <[email protected]> 2020-11-18 21:21 ` Don Seiler <[email protected]>
This inbox is served by agora; see mirroring instructions for how to clone and mirror all data and code used for this inbox