Issue #16243 has been updated by eric sorenson.
Status changed from Unreviewed to Needs More Information
Assignee set to Kjetil Torgrim Homme
I can't reproduce this. When I manage a service and change its enable state, I
see it propagate a refresh to dependent resources.
Can you tell me if this example ought to trigger the bug?
<pre>
[root@master ~]# chkconfig --list rsyslog
rsyslog 0:off 1:off 2:off 3:off 4:off 5:off 6:off
[root@master ~]# puppet apply -e 'service {"rsyslog": enable=>true,
notify=>Exec["hi"]} exec {"hi": command=>"/bin/echo hi", refreshonly=>true}'
/Stage[main]//Service[rsyslog]/enable: enable changed 'false' to 'true'
/Stage[main]//Exec[hi]: Triggered 'refresh' from 1 events
Finished catalog run in 0.21 seconds
[root@master ~]# chkconfig --list rsyslog
rsyslog 0:off 1:off 2:on 3:on 4:on 5:on 6:off
</pre>
Note I am on 3.0.0 but this is pretty fundamental, and I don't think it's
changed much since 2.7.x
----------------------------------------
Bug #16243: Service does not report changes in "enable" status
https://projects.puppetlabs.com/issues/16243#change-72722
Author: Kjetil Torgrim Homme
Status: Needs More Information
Priority: Normal
Assignee: Kjetil Torgrim Homme
Category:
Target version:
Affected Puppet version:
Keywords:
Branch:
Subject says it all, really. In this case, Puppet both fixed `ensure =>
running` and `enable => true`.
<pre>
myhost# chkconfig --list ntpd
ntpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
myhost# puppetd -t --tags ntp,ntpd
[...]
info: Applying configuration version '1346835895'
notice: /Stage[main]/Ntp/Service[ntp]/ensure: ensure changed 'stopped' to
'running'
notice: Finished catalog run in 7.44 seconds
myhost# chkconfig --list ntpd
ntpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
</pre>
My main problem with this is that `--noop` will not report the change either.
The consequence is that an empty output from `--noop` can't be trusted to mean
that Puppet won't be changing the system in normal mode.
Tested on 2.7.19, but I think this bug has been here forever.
--
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.