The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com

Bug #13293

passing a hash to a define fails with pson serialization format

Added by James Martin about 2 years ago. Updated about 2 years ago.

Status:InvestigatingStart date:03/21/2012
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
Affected Puppet version:2.7.12 Branch:
Keywords:hash serialization

We've Moved!

Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com

This ticket may be automatically exported to the PUP project on JIRA using the button below:


Description

I have a defined resource that accepts a hash of a list of database names, users, pw, etc. Occassionaly (unscientifically) it will work once out of 20 times. The rest of the times it does not and fails with this error:

err: Could not retrieve catalog from remote server: Could not intern from pson: Could not convert from pson: Could not find relationship source "Cpfusion::Functions::Setupdbs[dbpwcpclusterpassworddbnamecpclusterdbdbusercpclusteruser]"

If I modify puppet.conf on the client to include:

preferred_serialization_format = marshal

It works every time.

Thanks to _rc in #puppet for helping me work through this issue.

History

#1 Updated by Daniel Pittman about 2 years ago

  • Status changed from Unreviewed to Needs More Information

It would be awesome if you could attach the failed catalog, and/or the manifests to reproduce this for us. That would help understand what is going on and to reproduce it.

This is pretty clearly some oddity in your setup, because this generally works – it is a fundamental enough operation that this bug must trigger in some corner case we don’t usually push, but you do.

#2 Updated by Daniel Pittman about 2 years ago

  • Status changed from Needs More Information to Investigating

I have the required data, which is confidential, when this gets to being investigated. Thanks, James.

Also available in: Atom PDF