Issue #16784 has been updated by eric sorenson.

Assignee changed from eric sorenson to Joshua Hoblitt

Joshua -- indeed it would be very interesting to hear what redhat have to say 
about this; please let us know what response you get.

I'm pretty wary of changing things in the RH service provider at this point, 
because even seemingly simple changes like #15797 have unintended side-effects.

In my experience running puppet _once_ from %post is pretty common, not sure 
about multiple runs. Personally I have the expectation (as a holdover from the 
cfengine days on early RH) that some things are bound to be wonky in the 
kickstart environment and it'll take a 'firstrun' type functionality after the 
first reboot to actually converge, but again I'm not sure how widely that view 
is shared.

Thanks for the report and investigation.
----------------------------------------
Bug #16784: service resources will never converge under the RHEL6.x kickstart 
enviroment
https://projects.puppetlabs.com/issues/16784#change-73568

Author: Joshua Hoblitt
Status: Needs More Information
Priority: Normal
Assignee: Joshua Hoblitt
Category: 
Target version: 
Affected Puppet version: 3.0.0
Keywords: rhel kickstart
Branch: 


Puppet will never fully converge for the service type when run from the 
kickstart environment.  The fundamental problem is that the "runlevel" is 
unknown and this breaks the behaviour of `chkconfig`.  This makes the 
configuration state for a service undiscoverable and puppet will endlessly try 
to enable it.

This issue is somewhat related to #2712 but is much more narrow.  It's really a 
problem with the kickstart environment but I suspect it's been like this for a 
very long time and is unlikely to change.

Eg.

    /Stage[main]/Ntp::Service/Service[ntpd]/enable: enable changed 'false' to 
'true'

This example is from ssh'ing into the kickstart env which is why it doesn't say 
[anaconda root... the results are the same from the real console.

    [root@pollux1 ~]# runlevel
    unknown
    [root@pollux1 ~]# /sbin/runlevel
    unknown
    [root@pollux1 ~]# chkconfig --list | grep ntp
    ntpd                0:off   1:off   2:on    3:on    4:on    5:on    6:off
    ntpdate             0:off   1:off   2:off   3:off   4:off   5:off   6:off
    [root@pollux1 ~]# chkconfig ntp
    [root@pollux1 ~]# echo $?
    1



-- 
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.

Reply via email to