cgroup-bin upstart job does not handle the package being removed but not purged properly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libcgroup (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
rc cgroup-bin 0.37.1-1ubuntu3 Tools to control and monitor control groups
The upstart job still tries to mount cgroups, but then fails because /usr/sbin/
The pre-start should check for the existence of cgconfigparser before doing anything, and if its not there, exit gracefully.
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: cgroup-bin (not installed)
ProcVersionSign
Uname: Linux 3.0.0-12-generic x86_64
NonfreeKernelMo
ApportVersion: 1.23-0ubuntu3
Architecture: amd64
Date: Sat Oct 15 23:55:36 2011
InstallationMedia: Xubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101008.1)
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: libcgroup
UpgradeStatus: Upgraded to oneiric on 2011-07-14 (93 days ago)
mtime.conffile.
Related branches
- Alex Muntada (community): Approve
-
Diff: 87 lines (+25/-2)5 files modifieddebian/cgroup-bin.cgconfig.upstart (+6/-1)
debian/cgroup-bin.cgred.upstart (+5/-0)
debian/cgroup-bin.libvirt-cgconfig-wait.upstart (+2/-0)
debian/cgroup-lite.upstart (+5/-1)
debian/changelog (+7/-0)
Changed in libcgroup (Ubuntu): | |
status: | Confirmed → In Progress |
Hi Clint,
is it really valid to require an upstart job for package X to check that other scripts installed by package X are in fact installed?
If so this is trivial to add, but it seems over the top to worry about the upstart job failing (with no further ill effects on the host, IIUC) if the package is in a bad state. Put another way, you say the upstart job should 'exit gracefully', but really the upstart job should fail under this condition!
(Or have I misunderstood the scenario?)