Re: [Puppet Users] "Could not render to pson"
Is it possible to install the .so from a package and install it on the node via a custom repository? Managing shared libraries via puppet is screaming "Dependency Hell" in my brain. On 7 December 2012 01:24, Tom Owens wrote: > I found this error in syslog: > > Dec 3 16:43:15 0x0x0tuna puppet-agent[16790]: > (/Stage[main]/Tuna/File[/u/net/profile/common/zoom.so.32/hpsw.so]/content) > change from {md5}9913d05900c2fd8cd14ef2efec728457 to > {md5}fe7db3112ffcea0f80fbda99b7da408c failed: Could not back up > /u/net/profile/common/zoom.so.32/hpsw.so: Could not render to pson: > "\340\215\203" > > As far as I can tell, the agent on this client box is trying to push > /u/net/profile/common/zoom.so.32/hpsw.so into the filebucket on the puppet > master and failing. Since that backup fails, it won't receive the new > file, which is a problem. > > Does anybody have any ideas on how to fix this? Or at least a better idea > how to diagnose why it's failing? I do not have this issue with text > files. hpsw.so is a shared library in Linux. > > Thanks, > > Tom > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/puppet-users/-/re0nCcocQLQJ. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] "Could not render to pson"
I found this error in syslog: Dec 3 16:43:15 0x0x0tuna puppet-agent[16790]: (/Stage[main]/Tuna/File[/u/net/profile/common/zoom.so.32/hpsw.so]/content) change from {md5}9913d05900c2fd8cd14ef2efec728457 to {md5}fe7db3112ffcea0f80fbda99b7da408c failed: Could not back up /u/net/profile/common/zoom.so.32/hpsw.so: Could not render to pson: "\340\215\203" As far as I can tell, the agent on this client box is trying to push /u/net/profile/common/zoom.so.32/hpsw.so into the filebucket on the puppet master and failing. Since that backup fails, it won't receive the new file, which is a problem. Does anybody have any ideas on how to fix this? Or at least a better idea how to diagnose why it's failing? I do not have this issue with text files. hpsw.so is a shared library in Linux. Thanks, Tom -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/re0nCcocQLQJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Could not render to pson: undefined method 'merge' for []:Array
This ones got me absolutely scratching my head. I'm trying to created a custom type for managing couchbase. It may not be the right approach but I'm a total noob and I'm trying to figure this thing out. Here's what I have: */Puppet/manifests/site.pp* node 'qamachine' { include webserver } */Puppet/modules/webserver/init.pp* class webserver { couchbase { 'test': } } */Puppet/modules/couchbase/lib/puppet/type/couchbase.rb* Puppet::Type.newtype(:couchbase) do newparam(:name) do isnamevar end end */Puppet/modules/couchbase/lib/puppet/provider/couchbase/couchbase.rb* Puppet::Type.type(:couchbase).provide(:couchbase) do end When I try to update the machine this is what I get: info: Loading downloaded plugin C:/ProgramData/PuppetLabs/puppet/var/lib/puppet/type/couchbase.rb info: Loading downloaded plugin C:/ProgramData/PuppetLabs/puppet/var/lib/puppet/provider/couchbase/couchbase.rb debug: Reloading couchbase couchbase provider debug: catalog supports formats: b64_zlib_yaml dot pson raw yaml; using pson C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/indirector/rest.rb:56:in `deserialize' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/indirector/rest.rb:120:in `find' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/indirector/indirection.rb:196:in `find' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/configurer.rb:240:in `retrieve_new_catalog' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:490:in `thinmark' C:/Program Files (x86)/Puppet Labs/Puppet/sys/ruby/lib/ruby/1.8/benchmark.rb:308:in `realtime' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:489:in `thinmark' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/configurer.rb:239:in `retrieve_new_catalog' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/configurer.rb:86:in `retrieve_catalog' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/configurer.rb:112:in `retrieve_and_apply_catalog' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/configurer.rb:152:in `run' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/agent.rb:43:in `run' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/agent/locker.rb:21:in `lock' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/agent.rb:43:in `run' C:/Program Files (x86)/Puppet Labs/Puppet/sys/ruby/lib/ruby/1.8/sync.rb:230:in `synchronize' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/agent.rb:43:in `run' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/agent.rb:95:in `with_client' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/agent.rb:41:in `run' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:172:in `call' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:172:in `controlled_run' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/agent.rb:39:in `run' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/application/agent.rb:337:in `onetime' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/application/agent.rb:311:in `run_command' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:309:in `run' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:416:in `hook' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:309:in `run' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:407:in `exit_on_fail' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:309:in `run' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util/command_line.rb:69:in `execute' C:/Program Files (x86)/Puppet Labs/Puppet/puppet/bin/puppet:4 err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not render to pson: undefined method `mer ge' for []:Array when I remove the call to couchbase in the init.pp file it works fine. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/AJ9ndSOuvx0J. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] Could not render to pson: you must specify title patterns
On Sun, Oct 2, 2011 at 6:51 AM, Steve Traylen wrote: > On Sun, Sep 25, 2011 at 11:23 PM, Stefan Schulte > wrote: > > Long story short: > > You see this message because your type does not implement the title > > pattern method but you have a type with more than one keyattribute: > > 1. »id« which you explicitly marked with the isnamevar method > > 2. »name« which is implicitly always treated as a keyattribute > > > > If the second one is not what you want you have to rename your > > parameter. > > Thanks Stefan, that all makes sense, after renaming my name parameter > all is good. > > I've actually filed this as an issue, as the error message isn't helpful enough. http://projects.puppetlabs.com/issues/9851 -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] Could not render to pson: you must specify title patterns
On Sun, Sep 25, 2011 at 11:23 PM, Stefan Schulte wrote: > Long story short: > You see this message because your type does not implement the title > pattern method but you have a type with more than one keyattribute: > 1. »id« which you explicitly marked with the isnamevar method > 2. »name« which is implicitly always treated as a keyattribute > > If the second one is not what you want you have to rename your > parameter. Thanks Stefan, that all makes sense, after renaming my name parameter all is good. -- Steve Traylen -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] Could not render to pson: you must specify title patterns
On Sat, Sep 24, 2011 at 01:43:05AM +0200, Steve Traylen wrote: > Hi, > I'm trying to add my first custom type to puppet largely copying > examples whilst working with puppet-2.6.6. > > My error: > > err: Could not retrieve catalog from remote server: Error 400 on > SERVER: Could not render to pson: you must specify title patterns when > there are two or more key attributes > > What is a title pattern? > > My extremely trivial files: > > The type "metric" > http://pastebin.com/9F7sVYjp > > The provider "lemon". > http://pastebin.com/eJEvsV6v > Puppet 2.6 has basic support for types with composite namevars. That means that not only one parameter identifies a resource but the combination of parameters. One example is a port in /etc/services. What really identifies an entry in /etc/services is not only the port's name it is the name AND the protocol. But when you write your manifest and describe a resource it is common to not set any namevar explicitly but implicitly via the title. Example: file { '/tmp/foo': ensure => file, } The namevar of the fileresource is called `path` and because I haven't specified the path parameter explicitly it is implicitly set to /tmp/foo (the resource's title). If we have more then one namevar (I prefer the term keyattribute by the way) the type developer has to specify a title pattern. The title pattern is basically as special array that determines how to convert the title of a resource into values for the different key attributes. So to pick up the previous example of a port entry in /etc/services a resource title could look like this: inet_port { 'telnet/tcp': ensure => present number => '22', } With the correct title pattern puppet can now set the name parameter to 'telnet' and the protocol parameter to 'tcp'. Long story short: You see this message because your type does not implement the title pattern method but you have a type with more than one keyattribute: 1. »id« which you explicitly marked with the isnamevar method 2. »name« which is implicitly always treated as a keyattribute If the second one is not what you want you have to rename your parameter. -Stefan pgpfo1fqXIvj3.pgp Description: PGP signature
[Puppet Users] Could not render to pson: you must specify title patterns
Hi, I'm trying to add my first custom type to puppet largely copying examples whilst working with puppet-2.6.6. My error: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not render to pson: you must specify title patterns when there are two or more key attributes What is a title pattern? My extremely trivial files: The type "metric" http://pastebin.com/9F7sVYjp The provider "lemon". http://pastebin.com/eJEvsV6v My addition of a class is then: metric{ '20002': ensure => present, provider => lemon, name => 'system.loadAvg' } -- Steve Traylen -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.