Issue #22616 has been reported by Jasper Lievisse Adriaanse.

----------------------------------------
Bug #22616: Cannot disable 'firstboot' service, but keeps 'stopping' it
https://projects.puppetlabs.com/issues/22616

* Author: Jasper Lievisse Adriaanse
* Status: Unreviewed
* Priority: Normal
* Assignee: 
* Category: service
* Target version: 
* Affected Puppet version: 3.3.0
* Keywords: service
* Branch: 
----------------------------------------
On a Scientific Linux 6.4 installation I'm running into some odd problems with 
services. Namely that 'firstboot' is never really disabled, it stays on for 
runlevel 1 and everytime Puppet runs, it thinks it's stopping the service while 
it's not actually running. The same goes for 'udev-post' and 'blk-availability':

<code>
<pre>
[root@VM /]# chkconfig --list | grep firstboot
firstboot       0:off   1:off   2:off   3:off   4:off   5:off   6:off
[root@VM /]#
[root@VM /]# puppet agent -t
Info: Retrieving plugin
Info: Loading facts in /var/lib/puppet/lib/facter/virtual_guests_count.rb
Info: Loading facts in /var/lib/puppet/lib/facter/pending_updates.rb
Info: Loading facts in /var/lib/puppet/lib/facter/iptables_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/ip6tables_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb
Info: Loading facts in /var/lib/puppet/lib/facter/puppi_projects.rb
Info: Loading facts in /var/lib/puppet/lib/facter/concat_basedir.rb
Info: Loading facts in /var/lib/puppet/lib/facter/iptables_persistent_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb
Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb
Info: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/virtual_guests.rb
Info: Loading facts in /var/lib/puppet/lib/facter/last_run.rb
Info: Caching catalog for VM.local
Info: Applying configuration version '1379489282'
Notice: /Stage[main]/Services::Disable/Service[firstboot]/ensure: ensure 
changed 'running' to 'stopped'
Notice: /Stage[main]/Services::Disable/Service[udev-post]/ensure: ensure 
changed 'running' to 'stopped'
Notice: /Stage[main]/Services::Disable/Service[blk-availability]/ensure: ensure 
changed 'running' to 'stopped'
Notice: Finished catalog run in 7.06 seconds
[root@VM /]#
[root@VM /]# chkconfig --list | grep firstboot
firstboot       0:off   1:off   2:off   3:off   4:off   5:off   6:off


[root@VM /]# service firstboot status
firstboot is not scheduled to run
[root@VM /]# service udev-post status
[root@VM /]# service blk-availability status
[root@VM /]#
[root@VM /]# puppet agent -t
Info: Retrieving plugin
Info: Loading facts in /var/lib/puppet/lib/facter/virtual_guests_count.rb
Info: Loading facts in /var/lib/puppet/lib/facter/pending_updates.rb
Info: Loading facts in /var/lib/puppet/lib/facter/iptables_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/ip6tables_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb
Info: Loading facts in /var/lib/puppet/lib/facter/puppi_projects.rb
Info: Loading facts in /var/lib/puppet/lib/facter/concat_basedir.rb
Info: Loading facts in /var/lib/puppet/lib/facter/iptables_persistent_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb
Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb
Info: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/virtual_guests.rb
Info: Loading facts in /var/lib/puppet/lib/facter/last_run.rb
Info: Caching catalog for VM.local
Info: Applying configuration version '1379489282'
Notice: /Stage[main]/Services::Disable/Service[firstboot]/ensure: ensure 
changed 'running' to 'stopped'
Notice: /Stage[main]/Services::Disable/Service[udev-post]/ensure: ensure 
changed 'running' to 'stopped'
Notice: /Stage[main]/Services::Disable/Service[blk-availability]/ensure: ensure 
changed 'running' to 'stopped'
Notice: Finished catalog run in 7.50 seconds
[root@VM /]#
[root@VM /]# service firstboot status
firstboot is not scheduled to run
[root@VM /]# service udev-post status
[root@VM /]# service blk-availability status
[root@VM /]#

</pre>
</code>

The Services::Disable module just uses create_resources() to create a Service 
resource so there is nothing there that could cause that behaviour.
Any idea what is going, are the actual init scripts to blame or is Puppet at 
fault?


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to