[Bug 819044] [NEW] puppet in natty can't enable services
James Troup
james.troup at canonical.com
Sun Jul 31 22:59:40 UTC 2011
Public bug reported:
puppet in natty can't enable services because of the following change:
| --- puppet-2.6.4.orig/lib/puppet/provider/service/debian.rb
| +++ puppet-2.6.4/lib/puppet/provider/service/debian.rb
| @@ -23,7 +23,7 @@ Puppet::Type.type(:service).provide :deb
| # Remove the symlinks
| def disable
| update_rc "-f", @resource[:name], "remove"
| - update_rc @resource[:name], "stop", "00", "1", "2", "3", "4", "5", "6", "."
| + update_rc @resource[:name], "disable"
| end
|
| def enabled?
| @@ -43,6 +43,6 @@ Puppet::Type.type(:service).provide :deb
|
| def enable
| update_rc "-f", @resource[:name], "remove"
| - update_rc @resource[:name], "defaults"
| + update_rc @resource[:name], "enable"
| end
| end
This change comes from Debian where it also caused problems,
c.f. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=573551
Regardless, using 'enable' simply doesn't work on Ubuntu Natty but
'defaults' does:
| root at rigel:~# touch /etc/init.d/xxtestxx; update-rc.d xxtestxx enable; ls -l /etc/rc2.d/*xxtestxx*
| update-rc.d: warning: /etc/init.d/xxtestxx missing LSB information
| update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
| System start/stop links for /etc/init.d/xxtestxx do not exist.
| ls: cannot access /etc/rc2.d/*xxtestxx*: No such file or directory
| root at rigel:~# touch /etc/init.d/xxtestxx; update-rc.d xxtestxx defaults; ls -l /etc/rc2.d/*xxtestxx*
| update-rc.d: warning: /etc/init.d/xxtestxx missing LSB information
| update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
| Adding system startup for /etc/init.d/xxtestxx ...
| /etc/rc0.d/K20xxtestxx -> ../init.d/xxtestxx
| /etc/rc1.d/K20xxtestxx -> ../init.d/xxtestxx
| /etc/rc6.d/K20xxtestxx -> ../init.d/xxtestxx
| /etc/rc2.d/S20xxtestxx -> ../init.d/xxtestxx
| /etc/rc3.d/S20xxtestxx -> ../init.d/xxtestxx
| /etc/rc4.d/S20xxtestxx -> ../init.d/xxtestxx
| /etc/rc5.d/S20xxtestxx -> ../init.d/xxtestxx
| lrwxrwxrwx 1 root root 18 Jul 31 22:57 /etc/rc2.d/S20xxtestxx -> ../init.d/xxtestxx
| root at rigel:~# rm /etc/init.d/xxtestxx; update-rc.d xxtestxx remove
| Removing any system startup links for /etc/init.d/xxtestxx ...
| /etc/rc0.d/K20xxtestxx
| /etc/rc1.d/K20xxtestxx
| /etc/rc2.d/S20xxtestxx
| /etc/rc3.d/S20xxtestxx
| /etc/rc4.d/S20xxtestxx
| /etc/rc5.d/S20xxtestxx
| /etc/rc6.d/K20xxtestxx
| root at rigel:~#
Can we please drop the last hunk as an SRU for Natty? Not being able
to enable services is pretty fundamental to configuration management.
** Affects: puppet (Ubuntu)
Importance: Undecided
Status: New
** Tags: regression-proposed
** Tags added: regression-proposed
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to puppet in Ubuntu.
https://bugs.launchpad.net/bugs/819044
Title:
puppet in natty can't enable services
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/puppet/+bug/819044/+subscriptions
More information about the Ubuntu-server-bugs
mailing list