Maykel Moya
2013-Jan-02 13:33 UTC
[Puppet Users] err: Could not retrieve catalog from remote server: Could not intern from pson: Could not convert from pson: Could not find relationship target ...
Hello Using Puppet 3.0.2 in master and 2.7.18 in client I got this error. The complete error is err: Could not retrieve catalog from remote server: Could not intern from pson: Could not convert from pson: Could not find relationship target "Floating_ip[{\"address\"=>\"10.0.3.15\", \"netmask\"=>\"24\", \"iface\"=>\"eth0\"}]" I got nothing useful from G. This page[1] says it''s an error specific to version 0.25.1, which is not my case. This thread[2] in the list talks about referring to the resource with an undefined variable, which is not my case :) These are the relevant manifests: define floating_ip { $address = $name[address] $netmask = $name[netmask] $iface = $name[iface] cs_primitive { "floating_$address": primitive_class => ''ocf'', primitive_type => ''IPaddr2'', provided_by => ''heartbeat'', parameters => { ''ip'' => "$address", ''cidr_netmask'' => "$netmask" }, operations => { ''monitor'' => { ''interval'' => ''10s'' } }, } } class hacluster::config { ... $floatingaddrs = ha_get_floatingaddrs($hacluster::network) floating_ip { $floatingaddrs: } } The value of floatingaddrs is: [{"address"=>"10.0.3.15", "netmask"=>"24", "iface"=>"eth0"}, {"address"=>"172.16.33.3", "netmask"=>"17", "iface"=>"eth1"}]. cs_primitive stuff is from puppetlabs'' corosync[3] module. Might be the list of hashes is confusing Puppet? If so, any approach you do recommend to "loop" over an array for defining resources with parameters other than name/title? Regards, maykel [1] http://bitcube.co.uk/content/puppet-errors-explained [2] https://groups.google.com/forum/?fromgroups=#!topic/puppet-users/waTSHFRVzwI [3] https://github.com/puppetlabs/puppetlabs-corosync -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. 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 http://groups.google.com/group/puppet-users?hl=en.