Jira (PUP-2935) Error deserializing JSON in CentOS
Title: Message Title Andy Parker commented on an issue Re: Error deserializing JSON in CentOS Here is the stacktrace: be puppet apply --catalog client1-catalog.json --trace Error: Could not run: Could not deserialize catalog from pson: Could not intern from pson: Could not intern from data: Could not find relationship target Notify[{\type\=\A\}] /Users/andy/work/puppet/lib/puppet/resource/catalog.rb:356:in `from_data_hash' /Users/andy/work/puppet/lib/puppet/resource/catalog.rb:348:in `each' /Users/andy/work/puppet/lib/puppet/resource/catalog.rb:348:in `from_data_hash' /Users/andy/work/puppet/lib/puppet/util/pson.rb:11:in `pson_create' /Users/andy/work/puppet/lib/puppet/external/pson/pure/parser.rb:305:in `parse_object' /Users/andy/work/puppet/lib/puppet/external/pson/pure/parser.rb:98:in `parse' /Users/andy/work/puppet/lib/puppet/external/pson/common.rb:133:in `parse' /Users/andy/work/puppet/lib/puppet/network/formats.rb:143:in `intern' /Users/andy/work/puppet/lib/puppet/network/format_support.rb:12:in `convert_from' /Users/andy/work/puppet/lib/puppet/application/apply.rb:284:in `read_catalog' /Users/andy/work/puppet/lib/puppet/application/apply.rb:162:in `apply' /Users/andy/work/puppet/lib/puppet/application/apply.rb:150:in `run_command' /Users/andy/work/puppet/lib/puppet/application.rb:384:in `run' /Users/andy/work/puppet/lib/puppet/application.rb:510:in `plugin_hook' /Users/andy/work/puppet/lib/puppet/application.rb:384:in `run' /Users/andy/work/puppet/lib/puppet/util.rb:479:in `exit_on_fail' /Users/andy/work/puppet/lib/puppet/application.rb:384:in `run' /Users/andy/work/puppet/lib/puppet/util/command_line.rb:146:in `run' /Users/andy/work/puppet/lib/puppet/util/command_line.rb:92:in `execute' /Users/andy/work/puppet/bin/puppet:8 /Users/andy/work/puppet/.bundle/gems/ruby/1.8/bin/puppet:23:in `load' /Users/andy/work/puppet/.bundle/gems/ruby/1.8/bin/puppet:23 Add Comment Puppet / PUP-2935 Error deserializing JSON in CentOS
Jira (PUP-2935) Error deserializing JSON in CentOS
Title: Message Title Charlie Sharpsteen commented on an issue Re: Error deserializing JSON in CentOS So, what is happening here is that when a hash is used as a resource title, it is deserialized from the catalog as a string under Ruby 1.8.7: Notify[typeA] Under Ruby 1.9, the resource title is de-serialized as a hash: Notify[{type=A}] I think the core of the issue here is that the behavior of setting a resource title to a Hash instead of a String is not defined. The language docs say: The title is an identifying string. So, setting the title of a resource to a Hash could be resulting in undefined behavior. adrian: Could you provide the Puppet manifest that produced this example catalog? Add Comment Puppet / PUP-2935 Error deserializing JSON in CentOS With that environment, if I execute: {code} # puppet apply --catalog client1-catalog.json Error: Could not run: Could not deserialize catalog from pson: Could not intern from pson: Could not intern from data: Could not find relationship target Notify[{\type\=\A\}] {code} If I execute in Ubuntu 14.04 with Puppet 3.6.2 ruby-json 1.8.0-1build...
Jira (PUP-2935) Error deserializing JSON in CentOS
Title: Message Title Charlie Sharpsteen updated an issue Puppet / PUP-2935 Error deserializing JSON in CentOS Change By: Charlie Sharpsteen Assignee: AndyParker adrian Add Comment This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- You received this message because you are subscribed to the Google Groups Puppet Bugs group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-2935) Error deserializing JSON in CentOS
Title: Message Title Charlie Sharpsteen commented on an issue Re: Error deserializing JSON in CentOS This appears to be related to Ruby 1.8.7 in some way as the same problem manifests on Ubuntu 12.04. Add Comment Puppet / PUP-2935 Error deserializing JSON in CentOS With that environment, if I execute: {code} # puppet apply --catalog client1-catalog.json Error: Could not run: Could not deserialize catalog from pson: Could not intern from pson: Could not intern from data: Could not find relationship target Notify[{\type\=\A\}] {code} If I execute in Ubuntu 14.04 with Puppet 3.6.2 ruby-json 1.8.0-1build... This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- You received this message because you are subscribed to the Google Groups Puppet Bugs group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-2935) Error deserializing JSON in CentOS
Title: Message Title adrian created an issue Puppet / PUP-2935 Error deserializing JSON in CentOS Issue Type: Bug Affects Versions: 3.6.2 Assignee: Andy Parker Attachments: client1-catalog.json Components: DSL Created: 15/Jul/14 11:10 AM Environment: puppet 3.6.2 ruby 1.8.7 (2011-06-30 patchlevel 352) json 1.8.1 (gem) CentOS 6.4 Priority: Normal Reporter: adrian With that environment, if I execute: # puppet apply --catalog client1-catalog.json Error: Could not run: Could not deserialize catalog from pson: Could not intern from pson: Could not intern from data: Could not find relationship target Notify[{\type\=\A\}]