Issue #2770 has been updated by Peter Meier.

Markus Roberts wrote:
> So I'm not seeing anything surprising/revealing in the catalogs you sent.

But it's also failing to parse for you? Or do you don't even encounter these 
issues while loading the sent catalogs?

> I think we're on the right track, that running without iconv is the right 
> thing to do in your environment, but I just can't pin down the exact 
> mechanism.

Well sending the iconv-message not to stderr can be a temporary solution, but 
if I use somehow ruby-iconv in the future for maybe some other ruby tool, I'm 
back to the same problem, as puppet seems to want to load iconv for some 
reason. I didn't yet figure out where and why this happens, but there might be 
a valuable reason for it.

As well we still have the issue that I can compile a catalog on the 
puppetmasterd and if I try to apply it on the very same host (CentOS 5.4) it 
fails as well. And I can't find any iconv library nor gem installed on this 
system. Currently I encounter this problem only on OpenBSD clients, but as I 
can reproduce the problem without having any OpenBSD involved I have to assume 
that it's somewhere deeper and might come up in the future also on other hosts.

> I'm inclined to note it as a bad interaction, remove/reduce the warning, and 
> move on, unless you have any further insights.

reduce the warning would be anyway a nice thing, as messages to stderr aren't 
imho that cool if you don't fail at all. Anyway as noted above I fear that the 
problem is rather somewhere inside and it will pop up in the future as well if 
we use some special named resources.

Unfortunately I don't have further insight. If you can reproduce the parse 
error with the sent catalogs I'll try to look further into what might cause the 
problem. If you can't even reproduce it I try to figure out if might be a 
serializing issue on Centos 5.4.
----------------------------------------
Bug #2770: pson not properly serializing some resources
http://projects.reductivelabs.com/issues/2770

Author: Peter Meier
Status: Accepted
Priority: Normal
Assigned to: Markus Roberts
Category: serialization
Target version: 0.25.2
Affected version: 0.25.1
Keywords: pson
Branch: 


Switching on openbsd 4.3 to 0.25.1 I get as first this warning printed to 
stderr:

<pre>
Failed to load feature test for pson: iconv couldn't be loaded, which is 
required for UTF-8/UTF-16 conversions
</pre>

I then installed ruby-iconv to have iconv support present for ruby (@ruby 1.8.6 
(2007-09-24 patchlevel 111) [i386-openbsd4.3]@ btw.) however every run fails 
with the following error:

<pre>
info: Loading facts in xen
debug: Format s not supported for Puppet::Resource::Catalog; has not 
implemented method 'from_s'
/usr/local/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:438:in 
`edge_from_pson'
/usr/local/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:417:in `from_pson'
/usr/local/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:416:in `each'
/usr/local/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:416:in `from_pson'
/usr/local/lib/ruby/site_ruby/1.8/puppet/util/pson.rb:11:in `pson_create'
/usr/local/lib/ruby/site_ruby/1.8/puppet/external/pson/pure/parser.rb:256:in 
`parse_object'
/usr/local/lib/ruby/site_ruby/1.8/puppet/external/pson/pure/parser.rb:97:in 
`parse'
/usr/local/lib/ruby/site_ruby/1.8/puppet/external/pson/common.rb:133:in `parse'
/usr/local/lib/ruby/site_ruby/1.8/puppet/network/formats.rb:146:in `intern'
/usr/local/lib/ruby/site_ruby/1.8/puppet/network/format_handler.rb:13:in `send'
/usr/local/lib/ruby/site_ruby/1.8/puppet/network/format_handler.rb:13:in 
`protect'
/usr/local/lib/ruby/site_ruby/1.8/puppet/network/format_handler.rb:28:in 
`intern'
/usr/local/lib/ruby/site_ruby/1.8/puppet/network/format_handler.rb:97:in 
`convert_from'
/usr/local/lib/ruby/site_ruby/1.8/puppet/indirector/rest.rb:50:in `deserialize'
/usr/local/lib/ruby/site_ruby/1.8/puppet/indirector/rest.rb:69:in `find'
/usr/local/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:198:in `find'
/usr/local/lib/ruby/site_ruby/1.8/puppet/indirector.rb:51:in `find'
/usr/local/lib/ruby/site_ruby/1.8/puppet/configurer.rb:94:in `retrieve_catalog'
/usr/local/lib/ruby/site_ruby/1.8/puppet/util.rb:417:in `thinmark'
/usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/local/lib/ruby/1.8/benchmark.rb:307:in `realtime'
/usr/local/lib/ruby/site_ruby/1.8/puppet/util.rb:416:in `thinmark'
/usr/local/lib/ruby/site_ruby/1.8/puppet/configurer.rb:93:in `retrieve_catalog'
/usr/local/lib/ruby/site_ruby/1.8/puppet/configurer.rb:145:in `run'
/usr/local/lib/ruby/site_ruby/1.8/puppet/agent.rb:53:in `run'
/usr/local/lib/ruby/site_ruby/1.8/puppet/agent/locker.rb:21:in `lock'
/usr/local/lib/ruby/site_ruby/1.8/puppet/agent.rb:53:in `run'
/usr/local/lib/ruby/1.8/sync.rb:229:in `synchronize'
/usr/local/lib/ruby/site_ruby/1.8/puppet/agent.rb:53:in `run'
/usr/local/lib/ruby/site_ruby/1.8/puppet/agent.rb:130:in `with_client'
/usr/local/lib/ruby/site_ruby/1.8/puppet/agent.rb:51:in `run'
/usr/local/lib/ruby/site_ruby/1.8/puppet/application/puppetd.rb:103:in `onetime'
/usr/local/lib/ruby/site_ruby/1.8/puppet/application.rb:226:in `send'
/usr/local/lib/ruby/site_ruby/1.8/puppet/application.rb:226:in `run_command'
/usr/local/lib/ruby/site_ruby/1.8/puppet/application.rb:217:in `run'
/usr/local/lib/ruby/site_ruby/1.8/puppet/application.rb:306:in `exit_on_fail'
/usr/local/lib/ruby/site_ruby/1.8/puppet/application.rb:217:in `run'
/usr/local/sbin/puppetd:159
err: Could not retrieve catalog from remote server: Could not intern from pson: 
Could not convert from pson: Could not find relationship target ''
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
</pre>

Runnning puppet without ruby-iconv installed works fine so far. Except that the 
warning is printed to stderr, as I think it should rather be a puppet warning, 
shouldn't it? -> I can file a second bug if it should rather be a puppet 
warning.


-- 
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://reductivelabs.com/redmine/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