qemu-kvm-extras-static sysctl.d settings remain active when package is removed but not purged

Bug #515706 reported by Loïc Minier
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qemu-linaro (Ubuntu)
Triaged
Low
Unassigned
Lucid
Won't Fix
Low
Unassigned

Bug Description

Binary package hint: qemu-kvm

Hi

This is a reminder that the qemu-arm-static/qemu-kvm-extras-static ship /etc/sysctl.d settings which will remain active while the packages aren't purged.

Bye,

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Hi Loic-

Just doing some house cleaning here. Assigning you this bug, marking it triaged/low, and targeting it at Lucid Beta1. Feel free to adjust as necessary.

Thanks!

Changed in qemu-kvm (Ubuntu):
status: New → Triaged
importance: Undecided → Low
assignee: nobody → Loïc Minier (lool)
milestone: none → ubuntu-10.04-beta-1
Revision history for this message
Loïc Minier (lool) wrote :

Ideas on how to resolve the bug are welcome BTW

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

I'll have a look. In the meantime, I've dropped the milestone target, since we don't yet have an agreed up approach.

Subscribing Steve Langasek, as he might have some advice.

Steve, any best practices here, on removing sysctl.d settings on package removal?

Changed in qemu-kvm (Ubuntu Lucid):
milestone: ubuntu-10.04-beta-1 → none
Revision history for this message
Loïc Minier (lool) wrote :

To be clear, in postinst I have:
start procps

and in postrm, on purge, I have:
start procps

This means that the /etc/sysctl.d tree gets applied after install (that's probably ok) and reapplied after purge which is a problem in two ways:
- settings are still applied while the package isn't purged (but only removed); I think that's acceptable, even if not perfect
- settings which were overriden by qemu-kvm-extra-static's /etc/sysctl.d/ config will only be reset if another file in /etc/sysctl.d also sets them; this is true for mmap minaddr for instance, but perhaps not for other settings such as vm.vdso_enabled on i386.

Revision history for this message
Steve Langasek (vorlon) wrote :

Sorry, I can't really see any good solutions for this with the present design. The best I can conceive of is to have the sysctl file stored in /lib somewhere (for which a standard directory should be defined), and have the maintainer scripts manage a symlink to /etc/sysctl.d.

Loïc Minier (lool)
Changed in qemu-kvm (Ubuntu Lucid):
assignee: Loïc Minier (lool) → nobody
Thierry Carrez (ttx)
Changed in qemu-kvm (Ubuntu Lucid):
assignee: nobody → Dustin Kirkland (kirkland)
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Unassigning myself, won't-fix for Lucid. This isn't release critical, and no one yet has an approved, suggested approach. Triaged/Wishlist for Maverick.

Changed in qemu-kvm (Ubuntu Lucid):
assignee: Dustin Kirkland (kirkland) → nobody
status: Triaged → Won't Fix
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Moving this bug over to the qemu-linaro package, which now provides qemu-extras

affects: qemu-kvm (Ubuntu) → qemu-linaro (Ubuntu)
Revision history for this message
Steve Langasek (vorlon) wrote :

Working on solving this by getting rid of the sysctl.d entirely for this package. We've already dropped the mmap_min_addr setting, and just have one outstanding sysctl setting for disabling vdso on !amd64. Looking for confirmation that this setting can be dropped.

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.