Issue #4233 has been updated by James Turnbull.

Okay I have a stack trace:

<pre>

/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:432:in `edge_from_pson'
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:411:in `from_pson'
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:410:in `each'
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:410:in `from_pson'
/usr/lib/ruby/site_ruby/1.8/puppet/util/pson.rb:11:in `pson_create'
/usr/lib/ruby/site_ruby/1.8/puppet/external/pson/pure/parser.rb:251:in 
`parse_object'
/usr/lib/ruby/site_ruby/1.8/puppet/external/pson/pure/parser.rb:97:in `parse'
/usr/lib/ruby/site_ruby/1.8/puppet/external/pson/common.rb:133:in `parse'
/usr/lib/ruby/site_ruby/1.8/puppet/network/formats.rb:134:in `intern'
/usr/lib/ruby/site_ruby/1.8/puppet/network/format_handler.rb:12:in `send'
/usr/lib/ruby/site_ruby/1.8/puppet/network/format_handler.rb:12:in `protect'
/usr/lib/ruby/site_ruby/1.8/puppet/network/format_handler.rb:26:in `intern'
/usr/lib/ruby/site_ruby/1.8/puppet/network/format_handler.rb:102:in 
`convert_from'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/rest.rb:52:in `deserialize'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/rest.rb:71:in `find'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:193:in `find'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector.rb:50:in `find'
/usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:225:in `retrieve_new_catalog'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:414:in `thinmark'
/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:413:in `thinmark'
/usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:224:in `retrieve_new_catalog'
/usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:102:in `retrieve_catalog'
/usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:143:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:39:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/agent/locker.rb:21:in `lock'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:39:in `run'
/usr/lib/ruby/1.8/sync.rb:230:in `synchronize'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:39:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:101:in `with_client'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:37:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:171:in `call'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:171:in `controlled_run'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:35:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:76:in `start'
/usr/lib/ruby/site_ruby/1.8/puppet/external/event-loop/signal-system.rb:95:in 
`call'
/usr/lib/ruby/site_ruby/1.8/puppet/external/event-loop/signal-system.rb:95:in 
`__signal__'
/usr/lib/ruby/site_ruby/1.8/puppet/external/event-loop/signal-system.rb:95:in 
`each'
/usr/lib/ruby/site_ruby/1.8/puppet/external/event-loop/signal-system.rb:95:in 
`__signal__'
(eval):2:in `signal'
/usr/lib/ruby/site_ruby/1.8/puppet/external/event-loop/event-loop.rb:313:in 
`sound_alarm'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:80:in `start'
/usr/lib/ruby/site_ruby/1.8/puppet/daemon.rb:124:in `start'
/usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:132:in `main'
/usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:89:in `run_command'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:301:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:398:in `exit_on_fail'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:301:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:55:in `execute'
/usr/bin/puppet:4
err: Could not retrieve catalog from remote server: Could not intern from pson: 
Could not convert from pson: Could not find relationship target "Exec[/bin/echo 
-e \"\nif [ -d /etc/profile.d ]; then for i in /etc/profile.d/*; do . $i; done; 
fi; unset i\" >> /etc/profile]"
info: Not using expired catalog for pelin.lovedthanlost.net from cache; expired 
at Sun Jul 18 17:32:13 -0700 2010
</pre>
----------------------------------------
Bug #4233: Catalogs fail to deserialize if resources contain a newline in the 
title
http://projects.puppetlabs.com/issues/4233

Author: Jasper Poppe
Status: Re-opened
Priority: Normal
Assigned to: Jesse Wolfe
Category: 
Target version: 2.6.0
Affected version: 2.6.0rc3
Keywords: 
Branch: http://github.com/jes5199/puppet/tree/bug/master/4233


The following exec works fine with Puppet 0.25.4 but fails in 2.6rc2 and 2.6rc3 
, I've tested in 2 Debian Lenny nodes, 1 with a clean puppet installation from 
source, the other one with a master and a client.

<pre>
node ritalin {

    exec { '/bin/echo -e "\nif [ -d /etc/profile.d ]; then for i in 
/etc/profile.d/*; do . \$i; done; fi; unset i" >> /etc/profile':
        unless => '/bin/grep -qF "if [ -d /etc/profile.d ]; then for i in 
/etc/profile.d/*; do . \$i; done; fi; unset i" /etc/profile';
    }
}
</pre>

Error on master client configuration:
cs-ops001b:/home/seedpimp/rc3# puppetd --test
info: Retrieving plugin
info: /File[/var/lib/puppet/lib]: Setting mode to 493
info: /File[/var/lib/puppet/lib]: Storing newly-audited value  for content
info: /File[/var/lib/puppet/lib/facter]: Setting mode to 493
info: /File[/var/lib/puppet/lib/facter/conterm.rb]: Setting mode to 420
info: /File[/var/lib/puppet/lib/facter/conterm.rb]: Setting content to 
{md5}2d189bceaac522ae1f78d171b8e45531
info: Loading facts in conterm
info: Loading facts in conterm
err: Could not retrieve catalog from remote server: Could not intern from pson: 
Could not convert from pson: Could not find relationship target "Exec[/bin/echo 
-e \"\nif [ -d /etc/profile.d ]; then for i in /etc/profile.d/*; do . $i; done; 
fi; unset i\" >> /etc/profile]"
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run

Error on clean installation without use of master:
lenny001:/etc/puppet/manifests/classes# puppet test.pp 
err: /Stage[main]//Node[lenny001]/Exec[/bin/echo -e "
if [ -d /etc/profile.d ]; then for i in /etc/profile.d/*; do . $i; done; fi; 
unset i" >> /etc/profile]/returns: change from notrun to 0 failed: /bin/echo -e 
" returned 2 instead of one of [0] at /etc/puppet/manifests/classes/test.pp:9
lenny001:/etc/puppet/manifests/classes# 

If you need more information, ping me..


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