Issue #7296 has been updated by Daniel Pittman.
I reviewed the code; it looks sound, except that it shells out to count files matching a particular pattern. It should be trivial to rewrite that to use pure Ruby code, and I have asked for that to be done. If that gets fixed then we should be solid on this. ---------------------------------------- Bug #7296: Debian service provider disables serivce when set to enable https://projects.puppetlabs.com/issues/7296 Author: Zach Leslie Status: In Topic Branch Pending Review Priority: High Assignee: Daniel Pittman Category: service Target version: 2.7.x Affected Puppet version: 2.6.7 Keywords: Branch: https://github.com/puppetlabs/puppet/pull/170 <pre> # echo 'service { "rsyslog": ensure => running, hasstatus => true, enable => true; }' | puppet -vd debug: Puppet::Type::Service::ProviderDaemontools: file /usr/bin/svc does not exist debug: Puppet::Type::Service::ProviderGentoo: file /sbin/rc-update does not exist debug: Puppet::Type::Service::ProviderLaunchd: file /bin/launchctl does not exist debug: Puppet::Type::Service::ProviderRunit: file /usr/bin/sv does not exist debug: Puppet::Type::Service::ProviderRedhat: file /sbin/chkconfig does not exist debug: Creating default schedules debug: Puppet::Type::User::ProviderUser_role_add: file roleadd does not exist debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dscl does not exist debug: Puppet::Type::User::ProviderLdap: true value when expecting false debug: Puppet::Type::User::ProviderPw: file pw does not exist debug: Failed to load library 'selinux' for feature 'selinux' debug: Puppet::Type::File::ProviderMicrosoft_windows: feature microsoft_windows is missing debug: Failed to load library 'ldap' for feature 'ldap' debug: /File[/var/lib/puppet/clientbucket]: Autorequiring File[/var/lib/puppet] debug: /File[/var/lib/puppet/ssl/certificate_requests]: Autorequiring File[/var/lib/puppet/ssl] debug: /File[/var/lib/puppet/ssl/private]: Autorequiring File[/var/lib/puppet/ssl] debug: /File[/var/lib/puppet/ssl/private_keys]: Autorequiring File[/var/lib/puppet/ssl] debug: /File[/var/lib/puppet/state/graphs]: Autorequiring File[/var/lib/puppet/state] debug: /File[/var/lib/puppet/ssl]: Autorequiring File[/var/lib/puppet] debug: /File[/var/lib/puppet/client_data]: Autorequiring File[/var/lib/puppet] debug: /File[/var/lib/puppet/lib]: Autorequiring File[/var/lib/puppet] debug: /File[/var/lib/puppet/facts]: Autorequiring File[/var/lib/puppet] debug: /File[/var/lib/puppet/state]: Autorequiring File[/var/lib/puppet] debug: /File[/var/lib/puppet/ssl/certs]: Autorequiring File[/var/lib/puppet/ssl] debug: /File[/var/lib/puppet/client_yaml]: Autorequiring File[/var/lib/puppet] debug: /File[/var/lib/puppet/ssl/public_keys]: Autorequiring File[/var/lib/puppet/ssl] debug: /File[/var/lib/puppet/state/state.yaml]: Autorequiring File[/var/lib/puppet/state] debug: Finishing transaction 69855713235100 debug: Loaded state in 0.06 seconds debug: Executing '/etc/puppet/etckeeper-commit-pre' debug: Loaded state in 0.00 seconds info: Applying configuration version '1304138816' debug: Service[rsyslog](provider=debian): Executing 'sh -c LANG=C invoke-rc.d rsyslog status | grep -q '^rsyslog.*running'' debug: Puppet::Type::Service::ProviderDebian: Executing '/usr/sbin/update-rc.d -f rsyslog remove' debug: Puppet::Type::Service::ProviderDebian: Executing '/usr/sbin/update-rc.d rsyslog enable' notice: /Stage[main]//Service[rsyslog]/enable: enable changed 'false' to 'true' debug: Finishing transaction 69855712878060 debug: Storing state debug: Stored state in 0.02 seconds notice: Finished catalog run in 3.55 seconds debug: Executing '/etc/puppet/etckeeper-commit-post' </pre> Notice the removal line just before the enable line, which I can only assume is the reason the following notice happens on each run. Ubuntu Lucid Puppet 2.6.7 Facter 1.5.8 -- 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.
