[Puppet Users] Could not load downloaded file /var/lib/puppet/lib/puppet/parser/functions/upcase.rb: Function upcase already defined

nan
Thu, 04 Oct 2012 06:58:10 -0000

Hi Guys,
I''ts my first time join this group and post a topic here. I recently
encounter a quite strange issue in our production puppet env.
I have a VM installed a puppet agent(v 2.7.6) which works well before the
master installed. After i installed a puppet master(v 2.7.11) with gem it
reports below message in the /var/log/syslog:
Oct  3 23:40:24 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/is_array.rb: Function is_array
already defined
Oct  3 23:40:24 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/reports/appstack.rb: Class Appstack is already
defined in Puppet::Reports
Oct  3 23:40:24 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/parseyaml.rb: Function
parseyaml already defined
Oct  3 23:40:24 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/member.rb: Function member
already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/mysql_password.rb: Function
mysql_password already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/downcase.rb: Function downcase
already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/grep.rb: Function grep already
defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/lstrip.rb: Function lstrip
already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/is_mac_address.rb: Function
is_mac_address already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/type.rb: Function type already
defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/abs.rb: Function abs already
defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/chomp.rb: Function chomp
already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/validate_string.rb: Function
validate_string already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/loadyaml.rb: Function loadyaml
already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/validate_bool.rb: Function
validate_bool already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/size.rb: Function size already
defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/capitalize.rb: Function
capitalize already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/unique.rb: Function unique
already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/shuffle.rb: Function shuffle
already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/reverse.rb: Function reverse
already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/flatten.rb: Function flatten
already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/validate_array.rb: Function
validate_array already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/parsejson.rb: Function
parsejson already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/is_numeric.rb: Function
is_numeric already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/is_integer.rb: Function
is_integer already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/values.rb: Function values
already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/sort.rb: Function sort already
defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/strip.rb: Function strip
already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/num2bool.rb: Function num2bool
already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/is_float.rb: Function is_float
already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/join.rb: Function join already
defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/time.rb: Function time already
defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/squeeze.rb: Function squeeze
already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/rstrip.rb: Function rstrip
already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/delete_at.rb: Function
delete_at already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/str2bool.rb: Function str2bool
already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/strftime.rb: Function strftime
already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/validate_hash.rb: Function
validate_hash already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/str2saltedsha512.rb: Function
str2saltedsha512 already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/fqdn_rotate.rb: Function
fqdn_rotate already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/has_key.rb: Function has_key
already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/is_string.rb: Function
is_string already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/getvar.rb: Function getvar
already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/values_at.rb: Function
values_at already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/merge.rb: Function merge
already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/range.rb: Function range
already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/is_hash.rb: Function is_hash
already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/validate_slength.rb: Function
validate_slength already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/is_ip_address.rb: Function
is_ip_address already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/get_module_path.rb: Function
get_module_path already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/is_domain_name.rb: Function
is_domain_name already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/validate_absolute_path.rb:
Function validate_absolute_path already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/bool2num.rb: Function bool2num
already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/zip.rb: Function zip already
defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/validate_re.rb: Function
validate_re already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/prefix.rb: Function prefix
already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/swapcase.rb: Function swapcase
already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/hash.rb: Function hash already
defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/delete.rb: Function delete
already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/upcase.rb: Function upcase
already defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/keys.rb: Function keys already
defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/chop.rb: Function chop already
defined
Oct  3 23:40:25 ubuntu puppet-agent[27445]: Could not load downloaded file
/var/lib/puppet/lib/puppet/parser/functions/empty.rb: Function empty
already defined

I have check the puppet source code, seems not help for me to diagnostic.
Does anyone know about this issue?

Best Regards,
Nan

--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/puppet-users/-/WqJX0o3mhYQJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at