Issue #4057 has been updated by Johan Huysmans.

On the server following log is recorded:

<pre>
[nms-r...@co_nms-1 ~]# puppetmasterd --debug --no-daemonize
debug: Puppet::Type::User::ProviderPw: file pw does not exist
debug: Puppet::Type::User::ProviderUser_role_add: file roledel does not exist
debug: Puppet::Type::User::ProviderLdap: true value when expecting false
debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dscl does 
not exist
debug: Failed to load library 'ldap' for feature 'ldap'
debug: /File[/var/lib/puppet/ssl/public_keys]: Autorequiring 
File[/var/lib/puppet/ssl]
debug: /File[/var/lib/puppet/ssl/csr_co_nms-1.pem]: Autorequiring 
File[/var/lib/puppet/ssl]
debug: /File[/var/lib/puppet/ssl/crl.pem]: Autorequiring 
File[/var/lib/puppet/ssl]
debug: /File[/var/lib/puppet/rrd]: Autorequiring File[/var/lib/puppet]
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/ssl/certs/ca.pem]: Autorequiring 
File[/var/lib/puppet/ssl/certs]
debug: /File[/var/lib/puppet/facts]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/lib/puppet/ssl]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/lib/puppet/bucket]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/lib/puppet/state]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/lib/puppet/lib]: Autorequiring File[/var/lib/puppet]
debug: /File[/etc/puppet/puppet.conf]: Autorequiring File[/etc/puppet]
debug: /File[/var/log/puppet/masterhttp.log]: Autorequiring 
File[/var/log/puppet]
debug: /File[/var/lib/puppet/ssl/public_keys/co_nms-1.pem]: Autorequiring 
File[/var/lib/puppet/ssl/public_keys]
debug: /File[/etc/puppet/auth.conf]: Autorequiring File[/etc/puppet]
debug: /File[/etc/puppet/fileserver.conf]: Autorequiring File[/etc/puppet]
debug: /File[/var/lib/puppet/ssl/certificate_requests]: Autorequiring 
File[/var/lib/puppet/ssl]
debug: /File[/var/lib/puppet/yaml]: Autorequiring File[/var/lib/puppet]
debug: /File[/etc/puppet/manifests]: Autorequiring File[/etc/puppet]
debug: /File[/var/lib/puppet/ssl/private_keys/co_nms-1.pem]: Autorequiring 
File[/var/lib/puppet/ssl/private_keys]
debug: /File[/etc/puppet/manifests/site.pp]: Autorequiring 
File[/etc/puppet/manifests]
debug: /File[/var/lib/puppet/ssl/certs/co_nms-1.pem]: Autorequiring 
File[/var/lib/puppet/ssl/certs]
debug: /File[/var/lib/puppet/ssl/certs]: Autorequiring File[/var/lib/puppet/ssl]
debug: /File[/var/lib/puppet/reports]: Autorequiring File[/var/lib/puppet]
debug: Finishing transaction -606687158 with 0 changes
debug: /File[/var/lib/puppet/ssl/ca/ca_key.pem]: Autorequiring 
File[/var/lib/puppet/ssl/ca]
debug: /File[/var/lib/puppet/ssl/ca/requests]: Autorequiring 
File[/var/lib/puppet/ssl/ca]
debug: /File[/var/lib/puppet/ssl/ca/serial]: Autorequiring 
File[/var/lib/puppet/ssl/ca]
debug: /File[/var/lib/puppet/ssl/ca/ca_crl.pem]: Autorequiring 
File[/var/lib/puppet/ssl/ca]
debug: /File[/var/lib/puppet/ssl/ca/ca_pub.pem]: Autorequiring 
File[/var/lib/puppet/ssl/ca]
debug: /File[/var/lib/puppet/ssl/ca/ca_crt.pem]: Autorequiring 
File[/var/lib/puppet/ssl/ca]
debug: /File[/var/lib/puppet/ssl/ca/private/ca.pass]: Autorequiring 
File[/var/lib/puppet/ssl/ca/private]
debug: /File[/var/lib/puppet/ssl/ca/signed]: Autorequiring 
File[/var/lib/puppet/ssl/ca]
debug: /File[/var/lib/puppet/ssl/ca/private]: Autorequiring 
File[/var/lib/puppet/ssl/ca]
debug: Finishing transaction -606972658 with 0 changes
debug: Using cached certificate for ca
debug: Using cached certificate for ca
debug: Using cached certificate for co_nms-1
notice: Starting Puppet server version 0.25.5
debug: Finishing transaction -607799818 with 0 changes
debug: No modules mount given; autocreating with default permissions
debug: No plugins mount given; autocreating with default permissions
debug: Creating interpreter
debug: Finishing transaction -607806418 with 0 changes







info: Expiring the node cache of co_nms-2
info: Not using expired node for co_nms-2 from cache; expired at Wed Jun 30 
12:15:52 +0000 2010
info: Caching node for co_nms-2
debug: No true answers and no default
warning: Host is missing hostname and/or domain: co_nms-2
debug: Scope(Class[ntp]): Retrieving template ALL/etc/ntp.conf
debug: 
template[/var/lib/systemimager/overrides/puppet_templates/ALL/etc/ntp.conf]: 
Bound template variables for 
/var/lib/systemimager/overrides/puppet_templates/ALL/etc/ntp.conf in 0.00 
seconds
debug: 
template[/var/lib/systemimager/overrides/puppet_templates/ALL/etc/ntp.conf]: 
Interpolated template 
/var/lib/systemimager/overrides/puppet_templates/ALL/etc/ntp.conf in 0.00 
seconds
debug: Scope(Class[ntp]): Retrieving template ALL/etc/ntp/step-tickers
debug: 
template[/var/lib/systemimager/overrides/puppet_templates/ALL/etc/ntp/step-tickers]:
 Bound template variables for 
/var/lib/systemimager/overrides/puppet_templates/ALL/etc/ntp/step-tickers in 
0.00 seconds
debug: 
template[/var/lib/systemimager/overrides/puppet_templates/ALL/etc/ntp/step-tickers]:
 Interpolated template 
/var/lib/systemimager/overrides/puppet_templates/ALL/etc/ntp/step-tickers in 
0.00 seconds
debug: Scope(Class[commondevice]): Retrieving template 
ALL/etc/ntc/platform.config
debug: 
template[/var/lib/systemimager/overrides/puppet_templates/ALL/etc/ntc/platform.config]:
 Bound template variables for 
/var/lib/systemimager/overrides/puppet_templates/ALL/etc/ntc/platform.config in 
0.00 seconds
debug: 
template[/var/lib/systemimager/overrides/puppet_templates/ALL/etc/ntc/platform.config]:
 Interpolated template 
/var/lib/systemimager/overrides/puppet_templates/ALL/etc/ntc/platform.config in 
0.00 seconds
debug: Scope(Class[commondevice]): Retrieving template ALL/etc/motd
debug: template[/var/lib/systemimager/overrides/puppet_templates/ALL/etc/motd]: 
Bound template variables for 
/var/lib/systemimager/overrides/puppet_templates/ALL/etc/motd in 0.00 seconds
debug: template[/var/lib/systemimager/overrides/puppet_templates/ALL/etc/motd]: 
Interpolated template 
/var/lib/systemimager/overrides/puppet_templates/ALL/etc/motd in 0.00 seconds
debug: Scope(Class[rsyncd]): Retrieving template CO_NMS/etc/rsyncd.conf
debug: 
template[/var/lib/systemimager/overrides/puppet_templates/CO_NMS/etc/rsyncd.conf]:
 Bound template variables for 
/var/lib/systemimager/overrides/puppet_templates/CO_NMS/etc/rsyncd.conf in 0.00 
seconds
debug: 
template[/var/lib/systemimager/overrides/puppet_templates/CO_NMS/etc/rsyncd.conf]:
 Interpolated template 
/var/lib/systemimager/overrides/puppet_templates/CO_NMS/etc/rsyncd.conf in 0.01 
seconds
debug: Scope(Class[autofs]): Retrieving template CO_NMS/etc/auto.backup
debug: 
template[/var/lib/systemimager/overrides/puppet_templates/CO_NMS/etc/auto.backup]:
 Bound template variables for 
/var/lib/systemimager/overrides/puppet_templates/CO_NMS/etc/auto.backup in 0.00 
seconds
debug: 
template[/var/lib/systemimager/overrides/puppet_templates/CO_NMS/etc/auto.backup]:
 Interpolated template 
/var/lib/systemimager/overrides/puppet_templates/CO_NMS/etc/auto.backup in 0.00 
seconds
debug: Scope(Class[conmsdevice]): Retrieving template 
CO_NMS/etc/sysconfig/network-scripts/ifcfg-bond0.3
debug: 
template[/var/lib/systemimager/overrides/puppet_templates/CO_NMS/etc/sysconfig/network-scripts/ifcfg-bond0.3]:
 Bound template variables for 
/var/lib/systemimager/overrides/puppet_templates/CO_NMS/etc/sysconfig/network-scripts/ifcfg-bond0.3
 in 0.00 seconds
debug: 
template[/var/lib/systemimager/overrides/puppet_templates/CO_NMS/etc/sysconfig/network-scripts/ifcfg-bond0.3]:
 Interpolated template 
/var/lib/systemimager/overrides/puppet_templates/CO_NMS/etc/sysconfig/network-scripts/ifcfg-bond0.3
 in 0.00 seconds
debug: Scope(Class[conmsdevice]): Retrieving template CO_NMS/etc/ntc/crm.cfg
debug: 
template[/var/lib/systemimager/overrides/puppet_templates/CO_NMS/etc/ntc/crm.cfg]:
 Bound template variables for 
/var/lib/systemimager/overrides/puppet_templates/CO_NMS/etc/ntc/crm.cfg in 0.00 
seconds
debug: 
template[/var/lib/systemimager/overrides/puppet_templates/CO_NMS/etc/ntc/crm.cfg]:
 Interpolated template 
/var/lib/systemimager/overrides/puppet_templates/CO_NMS/etc/ntc/crm.cfg in 0.00 
seconds
debug: Scope(Class[conmsdevice]): Retrieving template 
CO_NMS/usr/local/tftpboot/co_asw-1.cfg
debug: 
template[/var/lib/systemimager/overrides/puppet_templates/CO_NMS/usr/local/tftpboot/co_asw-1.cfg]:
 Bound template variables for 
/var/lib/systemimager/overrides/puppet_templates/CO_NMS/usr/local/tftpboot/co_asw-1.cfg
 in 0.00 seconds
debug: 
template[/var/lib/systemimager/overrides/puppet_templates/CO_NMS/usr/local/tftpboot/co_asw-1.cfg]:
 Interpolated template 
/var/lib/systemimager/overrides/puppet_templates/CO_NMS/usr/local/tftpboot/co_asw-1.cfg
 in 0.01 seconds
debug: Scope(Class[conmsdevice]): Retrieving template 
CO_NMS/usr/local/tftpboot/co_asw-2.cfg
debug: 
template[/var/lib/systemimager/overrides/puppet_templates/CO_NMS/usr/local/tftpboot/co_asw-2.cfg]:
 Bound template variables for 
/var/lib/systemimager/overrides/puppet_templates/CO_NMS/usr/local/tftpboot/co_asw-2.cfg
 in 0.00 seconds
debug: 
template[/var/lib/systemimager/overrides/puppet_templates/CO_NMS/usr/local/tftpboot/co_asw-2.cfg]:
 Interpolated template 
/var/lib/systemimager/overrides/puppet_templates/CO_NMS/usr/local/tftpboot/co_asw-2.cfg
 in 0.06 seconds
debug: Class 'commondevice' already evaluated; not evaluating again
notice: Compiled catalog for co_nms-2 in 0.20 seconds




info: Expiring the node cache of co_nms-2
info: Not using expired node for co_nms-2 from cache; expired at Wed Jun 30 
12:15:57 +0000 2010
info: Caching node for co_nms-2
debug: importing '/etc/puppet/manifests/customerconfig/customerconfig.pp'
debug: importing '/etc/puppet/manifests/bladeid/bladeid.pp'
debug: Adding code to main on line 87 in file 
/etc/puppet/manifests/customerconfig/customerconfig.pp
debug: importing '/etc/puppet/manifests/classes/autofs.pp'
debug: importing '/etc/puppet/manifests/classes/amp.pp'
debug: importing '/etc/puppet/manifests/classes/tc-net-server.pp'
debug: importing '/etc/puppet/manifests/classes/firewall.pp'
debug: importing '/etc/puppet/manifests/classes/httpd.pp'
debug: importing '/etc/puppet/manifests/classes/named.pp'
debug: importing '/etc/puppet/manifests/classes/network.pp'
debug: Adding code to main on line 18 in file 
/etc/puppet/manifests/classes/network.pp
debug: importing '/etc/puppet/manifests/classes/ntp.pp'
debug: importing '/etc/puppet/manifests/classes/rsyncd.pp'
debug: importing '/etc/puppet/manifests/classes/sems.pp'
debug: importing '/etc/puppet/manifests/classes/tc-shape-server.pp'
debug: importing '/etc/puppet/manifests/classes/tomcat.pp'
debug: importing '/etc/puppet/manifests/classes/users.pp'
debug: Adding code to main on line 102 in file /etc/puppet/manifests/site.pp
debug: No true answers and no default
warning: Host is missing hostname and/or domain: co_nms-2
debug: Scope(Class[ntp]): Retrieving template ALL/etc/ntp.conf
debug: 
template[/var/lib/systemimager/overrides/puppet_templates/ALL/etc/ntp.conf]: 
Bound template variables for 
/var/lib/systemimager/overrides/puppet_templates/ALL/etc/ntp.conf in 0.00 
seconds
debug: 
template[/var/lib/systemimager/overrides/puppet_templates/ALL/etc/ntp.conf]: 
Interpolated template 
/var/lib/systemimager/overrides/puppet_templates/ALL/etc/ntp.conf in 0.00 
seconds
debug: Scope(Class[ntp]): Retrieving template ALL/etc/ntp/step-tickers
debug: 
template[/var/lib/systemimager/overrides/puppet_templates/ALL/etc/ntp/step-tickers]:
 Bound template variables for 
/var/lib/systemimager/overrides/puppet_templates/ALL/etc/ntp/step-tickers in 
0.00 seconds
debug: 
template[/var/lib/systemimager/overrides/puppet_templates/ALL/etc/ntp/step-tickers]:
 Interpolated template 
/var/lib/systemimager/overrides/puppet_templates/ALL/etc/ntp/step-tickers in 
0.00 seconds
debug: Scope(Class[commondevice]): Retrieving template 
ALL/etc/ntc/platform.config
debug: 
template[/var/lib/systemimager/overrides/puppet_templates/ALL/etc/ntc/platform.config]:
 Bound template variables for 
/var/lib/systemimager/overrides/puppet_templates/ALL/etc/ntc/platform.config in 
0.00 seconds
debug: 
template[/var/lib/systemimager/overrides/puppet_templates/ALL/etc/ntc/platform.config]:
 Interpolated template 
/var/lib/systemimager/overrides/puppet_templates/ALL/etc/ntc/platform.config in 
0.00 seconds
debug: Scope(Class[commondevice]): Retrieving template ALL/etc/motd
debug: template[/var/lib/systemimager/overrides/puppet_templates/ALL/etc/motd]: 
Bound template variables for 
/var/lib/systemimager/overrides/puppet_templates/ALL/etc/motd in 0.00 seconds
debug: template[/var/lib/systemimager/overrides/puppet_templates/ALL/etc/motd]: 
Interpolated template 
/var/lib/systemimager/overrides/puppet_templates/ALL/etc/motd in 0.00 seconds
debug: Scope(Class[rsyncd]): Retrieving template CO_NMS/etc/rsyncd.conf
debug: 
template[/var/lib/systemimager/overrides/puppet_templates/CO_NMS/etc/rsyncd.conf]:
 Bound template variables for 
/var/lib/systemimager/overrides/puppet_templates/CO_NMS/etc/rsyncd.conf in 0.00 
seconds
debug: 
template[/var/lib/systemimager/overrides/puppet_templates/CO_NMS/etc/rsyncd.conf]:
 Interpolated template 
/var/lib/systemimager/overrides/puppet_templates/CO_NMS/etc/rsyncd.conf in 0.00 
seconds
debug: Scope(Class[autofs]): Retrieving template CO_NMS/etc/auto.backup
debug: 
template[/var/lib/systemimager/overrides/puppet_templates/CO_NMS/etc/auto.backup]:
 Bound template variables for 
/var/lib/systemimager/overrides/puppet_templates/CO_NMS/etc/auto.backup in 0.00 
seconds
debug: 
template[/var/lib/systemimager/overrides/puppet_templates/CO_NMS/etc/auto.backup]:
 Interpolated template 
/var/lib/systemimager/overrides/puppet_templates/CO_NMS/etc/auto.backup in 0.00 
seconds
debug: Scope(Class[conmsdevice]): Retrieving template 
CO_NMS/etc/sysconfig/network-scripts/ifcfg-bond0.3
debug: 
template[/var/lib/systemimager/overrides/puppet_templates/CO_NMS/etc/sysconfig/network-scripts/ifcfg-bond0.3]:
 Bound template variables for 
/var/lib/systemimager/overrides/puppet_templates/CO_NMS/etc/sysconfig/network-scripts/ifcfg-bond0.3
 in 0.00 seconds
debug: 
template[/var/lib/systemimager/overrides/puppet_templates/CO_NMS/etc/sysconfig/network-scripts/ifcfg-bond0.3]:
 Interpolated template 
/var/lib/systemimager/overrides/puppet_templates/CO_NMS/etc/sysconfig/network-scripts/ifcfg-bond0.3
 in 0.00 seconds
debug: Scope(Class[conmsdevice]): Retrieving template CO_NMS/etc/ntc/crm.cfg
debug: 
template[/var/lib/systemimager/overrides/puppet_templates/CO_NMS/etc/ntc/crm.cfg]:
 Bound template variables for 
/var/lib/systemimager/overrides/puppet_templates/CO_NMS/etc/ntc/crm.cfg in 0.00 
seconds
debug: 
template[/var/lib/systemimager/overrides/puppet_templates/CO_NMS/etc/ntc/crm.cfg]:
 Interpolated template 
/var/lib/systemimager/overrides/puppet_templates/CO_NMS/etc/ntc/crm.cfg in 0.00 
seconds
debug: Scope(Class[conmsdevice]): Retrieving template 
CO_NMS/usr/local/tftpboot/co_asw-1.cfg
debug: 
template[/var/lib/systemimager/overrides/puppet_templates/CO_NMS/usr/local/tftpboot/co_asw-1.cfg]:
 Bound template variables for 
/var/lib/systemimager/overrides/puppet_templates/CO_NMS/usr/local/tftpboot/co_asw-1.cfg
 in 0.00 seconds
debug: 
template[/var/lib/systemimager/overrides/puppet_templates/CO_NMS/usr/local/tftpboot/co_asw-1.cfg]:
 Interpolated template 
/var/lib/systemimager/overrides/puppet_templates/CO_NMS/usr/local/tftpboot/co_asw-1.cfg
 in 0.01 seconds
debug: Scope(Class[conmsdevice]): Retrieving template 
CO_NMS/usr/local/tftpboot/co_asw-2.cfg
debug: 
template[/var/lib/systemimager/overrides/puppet_templates/CO_NMS/usr/local/tftpboot/co_asw-2.cfg]:
 Bound template variables for 
/var/lib/systemimager/overrides/puppet_templates/CO_NMS/usr/local/tftpboot/co_asw-2.cfg
 in 0.00 seconds
debug: 
template[/var/lib/systemimager/overrides/puppet_templates/CO_NMS/usr/local/tftpboot/co_asw-2.cfg]:
 Interpolated template 
/var/lib/systemimager/overrides/puppet_templates/CO_NMS/usr/local/tftpboot/co_asw-2.cfg
 in 0.01 seconds
debug: Class 'commondevice' already evaluated; not evaluating again
notice: Compiled catalog for co_nms-2 in 0.38 seconds


</pre>


This does not occur on every change, it is possible that some changes are apply 
immediately from the 1st run. Some changes are only applied on the 2nd or 3rd 
run.
----------------------------------------
Bug #4057: update variable not always reflected immediatly in template
http://projects.puppetlabs.com/issues/4057

Author: Johan Huysmans
Status: Needs more information
Priority: Normal
Assigned to: 
Category: 
Target version: 
Affected version: 0.25.5
Keywords: 
Branch: 


In our setup we have a .pp file containing several variables. These variables 
are used in the templates.

We've seen that when the variable is updated this is not immediately visible 
when running puppet on the clients. This means that puppet is run on the client 
after updating the variable and the old value still appears in the 
configuration file.


This is how our pp files are structured

site.pp
<pre>
import "variables.pp"

node 'node_name' {
  include class2
}

class class2 inherits class1 {
 ...
}

class class1 {
  file { "platform.config":
         name    => "/etc/platform.config",
         content => template("ALL/etc/platform.config"),
         owner   => "root",
         group   => "root",
         mode    => "0644",
  }
}
</pre>

variables.pp
<pre>
$platformname = "some name"
</pre>


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