[Bug 985755] Re: /lib/init/upstart-job does not handle lucid->precise upgrade scenario
Launchpad Bug Tracker
985755 at bugs.launchpad.net
Mon Apr 30 08:46:03 UTC 2012
Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: upstart (Ubuntu Quantal)
Status: New => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to upstart in Ubuntu.
https://bugs.launchpad.net/bugs/985755
Title:
/lib/init/upstart-job does not handle lucid->precise upgrade scenario
Status in “upstart” package in Ubuntu:
Confirmed
Status in “upstart” source package in Precise:
Fix Committed
Status in “upstart” source package in Quantal:
Confirmed
Bug description:
[Impact]
If an upgrade from lucid to precise pulls in a new upstart job that should be started on package install, the job will silently fail to be started. If other packages expect the job to be running, this may cause cascading installation failures.
[Development Fix]
Package will be copied to quantal when the archive opens.
[Test Case]
1. Install Ubuntu 10.04 desktop
2. upgrade to 12.04 without rebooting.
3. run /etc/init.d/cron stop; /etc/init.d/cron start
4. verify that an error message is output and cron is not restarted.
5. install the upstart package from precise-proposed.
6. again run /etc/init.d/cron start
7. verify that no error is output and cron is restarted successfully.
[Regression Potential]
None foreseen.
/lib/init/upstart-job was recently changed (bug 974147) such that it now calls 'initctl show-config -e $JOB'. This works fine for precise systems and for oneiric->precise upgrades, but does not work for lucid->precise upgrades since 'show-config' is not a legitimate initctl command on the version of init running on lucid at the time of the precise upgrade (0.6.5-8) since the 'show-config' command was added in Upstart 1.3.
/lib/init/upstart-job needs to be changed to handle the lucid upgrade
path scenario by either checking the running version of init or more
intelligently parsing the output of 'initctl show-config -e $JOB'
since currently, an upgrade from lucid to precise will cause all
upgraded packages containing upstart jobs to *not* restart the
services.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/985755/+subscriptions
More information about the foundations-bugs
mailing list