Issue #13194 has been updated by Andrew Parker. Target version deleted (2.7.x)
---------------------------------------- Bug #13194: when init scripts have been ported to upstart puppet does not detect service that are not working https://projects.puppetlabs.com/issues/13194#change-80451 Author: Dan Bode Status: Needs More Information Priority: High Assignee: Category: Target version: Affected Puppet version: Keywords: Branch: I do not believe that this is a regresson and it was observed on 2.7.12 when a init script has been disabled, the following message is printed to stdout: <pre> root@db:~# /etc/init.d/mysql status Rather than invoking init scripts through /etc/init.d, use the service(8) utility, e.g. service mysql status Since the script you are attempting to invoke has been converted to an Upstart job, you may also use the status(8) utility, e.g. status mysql mysql start/running, process 2765 root@db:~# echo $? 0 </pre> unfortunately, it also has an exit code of 0 (related to #12773) This means that puppet service does not detect that the script is not running: <pre> # service mysql stop # puppet resource service mysql warning: Service udev-fallback-graphics found in both debian and init; skipping the init version warning: Service dns-clean found in both debian and init; skipping the init version warning: Service vboxadd-x11 found in both debian and init; skipping the init version warning: Service screen-cleanup found in both debian and init; skipping the init version warning: Service sudo found in both debian and init; skipping the init version warning: Service vboxadd-service found in both debian and init; skipping the init version warning: Service apport found in both debian and init; skipping the init version warning: Service cron found in both debian and init; skipping the init version warning: Service plymouth-upstart-bridge found in both debian and init; skipping the init version warning: Service single found in both debian and init; skipping the init version warning: Service module-init-tools found in both debian and init; skipping the init version warning: Service plymouth-splash found in both debian and init; skipping the init version warning: Service sendsigs found in both debian and init; skipping the init version warning: Service vboxadd found in both debian and init; skipping the init version warning: Service urandom found in both debian and init; skipping the init version warning: Service umountfs found in both debian and init; skipping the init version warning: Service network-interface-security found in both debian and init; skipping the init version warning: Service setvtrgb found in both debian and init; skipping the init version warning: Service grub-common found in both debian and init; skipping the init version warning: Service umountnfs.sh found in both debian and init; skipping the init version warning: Service udevtrigger found in both debian and init; skipping the init version warning: Service reboot found in both debian and init; skipping the init version warning: Service unattended-upgrades found in both debian and init; skipping the init version warning: Service bootlogd found in both debian and init; skipping the init version warning: Service rcS found in both debian and init; skipping the init version warning: Service umountroot found in both debian and init; skipping the init version warning: Service dmesg found in both debian and init; skipping the init version warning: Service killprocs found in both debian and init; skipping the init version warning: Service network-interface found in both debian and init; skipping the init version warning: Service plymouth found in both debian and init; skipping the init version warning: Service udevmonitor found in both debian and init; skipping the init version warning: Service networking found in both debian and init; skipping the init version warning: Service hwclock-save found in both debian and init; skipping the init version warning: Service rc found in both debian and init; skipping the init version warning: Service console-setup found in both debian and init; skipping the init version warning: Service hostname found in both debian and init; skipping the init version warning: Service hwclock found in both debian and init; skipping the init version warning: Service plymouth-stop found in both debian and init; skipping the init version warning: Service plymouth-log found in both debian and init; skipping the init version warning: Service rsyslog found in both debian and init; skipping the init version warning: Service mysql found in both debian and init; skipping the init version warning: Service procps found in both debian and init; skipping the init version warning: Service ssh found in both debian and init; skipping the init version warning: Service rsync found in both debian and init; skipping the init version warning: Service ufw found in both debian and init; skipping the init version warning: Service ondemand found in both debian and init; skipping the init version warning: Service stop-bootlogd-single found in both debian and init; skipping the init version warning: Service udev-finish found in both debian and init; skipping the init version warning: Service atd found in both debian and init; skipping the init version warning: Service irqbalance found in both debian and init; skipping the init version warning: Service apparmor found in both debian and init; skipping the init version warning: Service stop-bootlogd found in both debian and init; skipping the init version warning: Service pppd-dns found in both debian and init; skipping the init version warning: Service udev found in both debian and init; skipping the init version warning: Service rc.local found in both debian and init; skipping the init version warning: Service puppet found in both debian and init; skipping the init version warning: Service halt found in both debian and init; skipping the init version warning: Service rc found in both debian and upstart; skipping the upstart version warning: Service rsyslog found in both debian and upstart; skipping the upstart version warning: Service screen-cleanup found in both debian and upstart; skipping the upstart version warning: Service udev found in both debian and upstart; skipping the upstart version warning: Service apport found in both debian and upstart; skipping the upstart version warning: Service console-setup found in both debian and upstart; skipping the upstart version warning: Service hwclock-save found in both debian and upstart; skipping the upstart version warning: Service irqbalance found in both debian and upstart; skipping the upstart version warning: Service plymouth-log found in both debian and upstart; skipping the upstart version warning: Service atd found in both debian and upstart; skipping the upstart version warning: Service plymouth found in both debian and upstart; skipping the upstart version warning: Service ssh found in both debian and upstart; skipping the upstart version warning: Service udev-fallback-graphics found in both debian and upstart; skipping the upstart version warning: Service hwclock found in both debian and upstart; skipping the upstart version warning: Service module-init-tools found in both debian and upstart; skipping the upstart version warning: Service setvtrgb found in both debian and upstart; skipping the upstart version warning: Service cron found in both debian and upstart; skipping the upstart version warning: Service plymouth-stop found in both debian and upstart; skipping the upstart version warning: Service rcS found in both debian and upstart; skipping the upstart version warning: Service ufw found in both debian and upstart; skipping the upstart version warning: Service udevtrigger found in both debian and upstart; skipping the upstart version warning: Service udev-finish found in both debian and upstart; skipping the upstart version warning: Service hostname found in both debian and upstart; skipping the upstart version warning: Service mysql found in both debian and upstart; skipping the upstart version warning: Service plymouth-splash found in both debian and upstart; skipping the upstart version warning: Service plymouth-upstart-bridge found in both debian and upstart; skipping the upstart version warning: Service udevmonitor found in both debian and upstart; skipping the upstart version warning: Service dmesg found in both debian and upstart; skipping the upstart version warning: Service network-interface-security found in both debian and upstart; skipping the upstart version warning: Service network-interface-security found in both debian and upstart; skipping the upstart version warning: Service network-interface-security found in both debian and upstart; skipping the upstart version warning: Service network-interface-security found in both debian and upstart; skipping the upstart version warning: Service networking found in both debian and upstart; skipping the upstart version warning: Service procps found in both debian and upstart; skipping the upstart version service { 'mysql': ensure => 'running', enable => 'true', } </pre> (it is also worth noting that the warnings above do not occur when I run puppet agent) the service can be detected as not running using the upstart provider <pre> puppet resource service mysql provider=upstart service { 'mysql': ensure => 'stopped', } </pre> It is important that we at least resolve this so that the init provider fails when this message is printed to stdout. Right now, even though the command is failing, Puppet falsely thinks it is running. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
