Periodic cron for package/security list updates causing hanging issues on docker

Bug #1810451 reported by Helgi Þorbjörnsson
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fix Released
Thomas Bechtold

Bug Description

The upstream Ubuntu docker image has periodic update enabled (i.e. AutoAptEnable APT::Periodic::Enable=1) which can cause issues when extending the image with other tools that also use cron for one purpose or another. By itself systemd/cron is not installed.

In my scenario I had a team add Nginx that ran cron on startup and periodically to do maintenance work. This brought in cron (for better or worse).

With cron now in place to do Nginx related things it also started processing the APT related cron which done in conjunction with Nginx would cause CPU spikes (due to intentional resource limitations) and made apt-config hang in the container, which also makes the container often hang.

See for original issue where I proposed to disable APT::Periodic:Enable) in Docker images as docker images should be immutable; any updates to packages or apt list should happen in a build system.

Tags: docker

Related branches

Changed in cloud-images:
assignee: nobody → Thomas Bechtold (toabctl)
status: New → In Progress
Revision history for this message
John Chittum (jchittum) wrote :

Thank you for opening this bug. It appears it's been open for a while. Sorry about not replying earlier. As you can see toabctl picked this up and has proposed a fix to the way we build our Docker containers. Because this goes into livecd-rootfs, we will need to follow the SRU process to propagate this change through all the versions of Ubuntu.

Revision history for this message
Helgi Þorbjörnsson (helgith) wrote :

Thanks :) Glad to see it being reviewed and address. Appreciate it!

Revision history for this message
Utkarsh Gupta (utkarsh) wrote :

Thank you on working on this, Thomas. I've sponsored the upload, which should fix this bug for Ubuntu Jammy. \o/

Changed in cloud-images:
status: In Progress → Fix Committed
Utkarsh Gupta (utkarsh)
Changed in cloud-images:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers