ureadahead should not run in containers

Bug #880968 reported by Serge Hallyn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxc (Ubuntu)
Invalid
Low
Unassigned
ureadahead (Ubuntu)
Won't Fix
Low
Stéphane Graber

Bug Description

Killling ureadhead (from the host) allows the container to finish shutting down.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

when I type 'poweroff' in a natty container, I sometimes (not always) see:

umount2: Device or resource busy
umount: /var/lib/ureadahead/debugfs busy - remounted read-only
   ...done.
mount: / is busy
 * Will now halt

Don't see this with oneiric or lucid containers.

Changed in lxc (Ubuntu):
importance: Undecided → Low
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

ureadahead should not run at all in a container.

Changed in lxc (Ubuntu):
status: New → Triaged
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Disabling it in a container should be done in the same way as will be done for skipping select mounts in mountall. The intent is that it will be done as part of the servercloud-p-lxc blueprint.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Now that upstart will now about containers, ureadahead should not run if in a container.

summary: - natty containers do not shut down - ureadahead task keeps running
+ ureadahead should not run in containers
Changed in ureadahead (Ubuntu):
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
Stéphane Graber (stgraber) wrote :

Fix commited to the packaging branch, however this requires the new upstart which hasn't finished building on armel, armhf and powerpc, so I won't be uploading it just yet.

Changed in lxc (Ubuntu):
status: Triaged → Invalid
Changed in ureadahead (Ubuntu):
status: Confirmed → Fix Committed
assignee: nobody → Stéphane Graber (stgraber)
Revision history for this message
Stéphane Graber (stgraber) wrote :

Actually just reverted as it'd break ureadahead entirely as ureadahead starts so early that it's run before container-detect.

Changed in ureadahead (Ubuntu):
status: Fix Committed → Won't Fix
Revision history for this message
Stéphane Graber (stgraber) wrote :

As discussed with Serge on IRC, actually going with won't fix.
As far as I can tell, ureadahead is actually doing what it should and this bug was a problem when lxc was waiting for all processes to go away on shutdown. With the new kernel, this is no longer the case, so this change shouldn't be needed anymore.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.