← Back to team overview

cloud-init-dev team mailing list archive

[Merge] ~smoser/cloud-init:bug/1693361-apt-get-locks into cloud-init:master

 

The proposal to merge ~smoser/cloud-init:bug/1693361-apt-get-locks into cloud-init:master has been updated.

Commit Message changed to:

systemd: make cloud-final.service run before apt daily services.

This changes all cloud-init systemd units to run 'Before' the apt processes
that run daily and may cause a lock on the apt database.

apt-daily-upgrade.service contains 'After=apt-daily.service'.
Per systemd man page:
  Timer units automatically gain a Before= dependency on the service
  they are supposed to activate.

Thus following order is enforced, so we can just be 'Before' the first.
   apt-daily.timer
   apt-daily.service
   apt-daily-upgrade.timer
   apt-daily-upgrade.service

Note that this means only that apt-daily* will not run until
cloud-init has entirely finished.  Any other processes running apt-get
operations are still affected by the global lock.

LP: #1693361

For more details, see:
https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/325513
-- 
Your team cloud-init commiters is requested to review the proposed merge of ~smoser/cloud-init:bug/1693361-apt-get-locks into cloud-init:master.