Bruno Leon
2011-Oct-04 21:36 UTC
[Puppet Users] Concat::Fragment collection broken in 2.7.5
I don''t if anybody is using the concat modules from ripienaar, but since an upgrade to 2.7.5 I keep getting an error on fragment collection. The code is like below: @@concat::fragment{ "${name}" : target => "/etc/bind/named.conf.keys", content => template("dns/named.conf.keys.erb"), order => 10, tag => ''dnskey'' } Concat::Fragment <<| tag == ''dnskey'' |>> err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find type Concat::Fragment on node Is anybody facing the same kind of issue ? -- Bruno -- 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.
Dan Bode
2011-Oct-04 21:46 UTC
Re: [Puppet Users] Concat::Fragment collection broken in 2.7.5
what version did you upgrade from? could you also recreate with --trace. thanks, Dan On Tue, Oct 4, 2011 at 2:36 PM, Bruno Leon <nonolemono@gmail.com> wrote:> I don''t if anybody is using the concat modules from ripienaar, > but since an upgrade to 2.7.5 I keep getting an error on fragment > collection. > > The code is like below: > > @@concat::fragment{ "${name}" : > target => "/etc/bind/named.conf.keys", > content => template("dns/named.conf.keys.**erb"), > order => 10, > tag => ''dnskey'' > } > > Concat::Fragment <<| tag == ''dnskey'' |>> > > err: Could not retrieve catalog from remote server: Error 400 on SERVER: > Could not find type Concat::Fragment on node > > Is anybody facing the same kind of issue ? > > -- > Bruno > > > -- > 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 <puppet-users%2Bunsubscribe@googlegroups.com>. > For more options, visit this group at http://groups.google.com/** > group/puppet-users?hl=en<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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Bruno Leon
2011-Oct-04 22:30 UTC
Re: [Puppet Users] Concat::Fragment collection broken in 2.7.5
I was on 2.7.3 previously. thanks -- Bruno On 11-10-04 05:46 PM, Dan Bode wrote:> what version did you upgrade from? could you also recreate with --trace. > > thanks, > > Dan > > On Tue, Oct 4, 2011 at 2:36 PM, Bruno Leon <nonolemono@gmail.com > <mailto:nonolemono@gmail.com>> wrote: > > I don''t if anybody is using the concat modules from ripienaar, > but since an upgrade to 2.7.5 I keep getting an error on fragment > collection. > > The code is like below: > > @@concat::fragment{ "${name}" : > target => "/etc/bind/named.conf.keys", > content => template("dns/named.conf.keys.erb"), > order => 10, > tag => ''dnskey'' > } > > Concat::Fragment <<| tag == ''dnskey'' |>> > > err: Could not retrieve catalog from remote server: Error 400 on > SERVER: Could not find type Concat::Fragment on node > > Is anybody facing the same kind of issue ? > > -- > Bruno > > > -- > 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 > <mailto:puppet-users@googlegroups.com>. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com > <mailto:puppet-users%2Bunsubscribe@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+unsubscribe@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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Nigel Kersten
2011-Oct-04 22:32 UTC
Re: [Puppet Users] Concat::Fragment collection broken in 2.7.5
Are you exporting resources with a postgresql backend Bruno? On Tue, Oct 4, 2011 at 2:36 PM, Bruno Leon <nonolemono@gmail.com> wrote:> I don''t if anybody is using the concat modules from ripienaar, > but since an upgrade to 2.7.5 I keep getting an error on fragment > collection. > > The code is like below: > > @@concat::fragment{ "${name}" : > target => "/etc/bind/named.conf.keys", > content => template("dns/named.conf.keys.**erb"), > order => 10, > tag => ''dnskey'' > } > > Concat::Fragment <<| tag == ''dnskey'' |>> > > err: Could not retrieve catalog from remote server: Error 400 on SERVER: > Could not find type Concat::Fragment on node > > Is anybody facing the same kind of issue ? > > -- > Bruno > > > -- > 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 <puppet-users%2Bunsubscribe@googlegroups.com>. > For more options, visit this group at http://groups.google.com/** > group/puppet-users?hl=en<http://groups.google.com/group/puppet-users?hl=en> > . > >-- Nigel Kersten Product Manager, Puppet Labs -- 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.
Daniel Pittman
2011-Oct-04 22:33 UTC
Re: [Puppet Users] Concat::Fragment collection broken in 2.7.5
That looks like a custom type that isn''t being loaded on the client, rather than a StoreConfig error to me. The effect of the PostgreSQL bug should only have been to miss resources when collecting, not to generate a catalog that didn''t do the right thing. Daniel On Tue, Oct 4, 2011 at 15:32, Nigel Kersten <nigel@puppetlabs.com> wrote:> Are you exporting resources with a postgresql backend Bruno? > > On Tue, Oct 4, 2011 at 2:36 PM, Bruno Leon <nonolemono@gmail.com> wrote: >> >> I don''t if anybody is using the concat modules from ripienaar, >> but since an upgrade to 2.7.5 I keep getting an error on fragment >> collection. >> >> The code is like below: >> >> @@concat::fragment{ "${name}" : >> target => "/etc/bind/named.conf.keys", >> content => template("dns/named.conf.keys.erb"), >> order => 10, >> tag => ''dnskey'' >> } >> >> Concat::Fragment <<| tag == ''dnskey'' |>> >> >> err: Could not retrieve catalog from remote server: Error 400 on SERVER: >> Could not find type Concat::Fragment on node >> >> Is anybody facing the same kind of issue ? >> >> -- >> Bruno >> >> >> -- >> 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. >> > > > > -- > Nigel Kersten > Product Manager, Puppet Labs > > > -- > 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. >-- ⎋ Puppet Labs Developer – http://puppetlabs.com ♲ Made with 100 percent post-consumer electrons -- 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.
Bruno Leon
2011-Oct-04 23:55 UTC
Re: [Puppet Users] Concat::Fragment collection broken in 2.7.5
This is not a custom type, but a define. I guess you know it already but it is here https://github.com/ripienaar/puppet-concat/manifest/fragment.pp The declaration of concat::fragment works fine, only the collection breaks, which means the define is available to puppet. To be more generic it seems to me that the collection of an exported define does not work properly in 2.7.5 ( did not test other case though). -- Bruno On 11-10-04 06:33 PM, Daniel Pittman wrote:> That looks like a custom type that isn''t being loaded on the client, > rather than a StoreConfig error to me. The effect of the PostgreSQL > bug should only have been to miss resources when collecting, not to > generate a catalog that didn''t do the right thing. > > Daniel > > On Tue, Oct 4, 2011 at 15:32, Nigel Kersten<nigel@puppetlabs.com> wrote: >> Are you exporting resources with a postgresql backend Bruno? >> >> On Tue, Oct 4, 2011 at 2:36 PM, Bruno Leon<nonolemono@gmail.com> wrote: >>> I don''t if anybody is using the concat modules from ripienaar, >>> but since an upgrade to 2.7.5 I keep getting an error on fragment >>> collection. >>> >>> The code is like below: >>> >>> @@concat::fragment{ "${name}" : >>> target => "/etc/bind/named.conf.keys", >>> content => template("dns/named.conf.keys.erb"), >>> order => 10, >>> tag => ''dnskey'' >>> } >>> >>> Concat::Fragment<<| tag == ''dnskey'' |>> >>> >>> err: Could not retrieve catalog from remote server: Error 400 on SERVER: >>> Could not find type Concat::Fragment on node >>> >>> Is anybody facing the same kind of issue ? >>> >>> -- >>> Bruno >>> >>> >>> -- >>> 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. >>> >> >> >> -- >> Nigel Kersten >> Product Manager, Puppet Labs >> >> >> -- >> 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. >> > >-- 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.
Daniel Pittman
2011-Oct-05 02:41 UTC
Re: [Puppet Users] Concat::Fragment collection broken in 2.7.5
On Tue, Oct 4, 2011 at 16:55, Bruno Leon <nonolemono@gmail.com> wrote:> This is not a custom type, but a define. > I guess you know it already but it is here > https://github.com/ripienaar/puppet-concat/manifest/fragment.pp > > The declaration of concat::fragment works fine, > only the collection breaks, which means the define is available to puppet. > > To be more generic it seems to me that the collection of an exported > define does not work properly in 2.7.5 ( did not test other case though).Hrm. I have a suspicion about this; is Nigel right? Do you have PostgreSQL for StoreConfigs? If so, can you turn on query logging (in the database, most easily), and check if we are searching for a resource with type `Concat::fragment`, but storing with type `Concat::Fragment`? Daniel -- ⎋ Puppet Labs Developer – http://puppetlabs.com ♲ Made with 100 percent post-consumer electrons -- 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.
Bruno Leon
2011-Oct-05 02:53 UTC
Re: [Puppet Users] Concat::Fragment collection broken in 2.7.5
I''m using MySQL not PostgreSQL. I''ll have a look at the queries tomorrow though and post results here. Bruno On 11-10-04 10:41 PM, Daniel Pittman wrote:> On Tue, Oct 4, 2011 at 16:55, Bruno Leon<nonolemono@gmail.com> wrote: >> This is not a custom type, but a define. >> I guess you know it already but it is here >> https://github.com/ripienaar/puppet-concat/manifest/fragment.pp >> >> The declaration of concat::fragment works fine, >> only the collection breaks, which means the define is available to puppet. >> >> To be more generic it seems to me that the collection of an exported >> define does not work properly in 2.7.5 ( did not test other case though). > Hrm. I have a suspicion about this; is Nigel right? Do you have > PostgreSQL for StoreConfigs? > > If so, can you turn on query logging (in the database, most easily), > and check if we are searching for a resource with type > `Concat::fragment`, but storing with type `Concat::Fragment`? > > Daniel-- 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.
Greg Sutcliffe
2011-Oct-05 15:21 UTC
Re: [Puppet Users] Concat::Fragment collection broken in 2.7.5
Almost a "me-too" post, I should try to avoid that... This sounds like the mail I sent on Monday - I can certainly confirm Bruno''s findings for collecting exported custom defines. I get the same error message, and I''m also using a remote MySQL database (no queueing agent, just direct access). I''d love to help with the debugging but I''m on a training course this week, and the connection is waaay too slow for database debugging. If you''ve not solved it by Monday, I''ll dive in and provide some debug logs and db traces. Watching this thread with interest :) Greg -- 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/-/1mwaNRX2OX0J. 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.
Bruno Leon
2011-Oct-07 14:12 UTC
Re: [Puppet Users] Concat::Fragment collection broken in 2.7.5
Hello, sorry for the delay, I did a few tests and found out that the puppet master does not even go as far a querying the database. Starting from a clean query log (mysql), there is no sign of Concat::Fragment (tried small case as well). I guess this info also applies to the post "Problems with exported resources after upgrade to 2.7.5". -- Bruno -- 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.
Greg Sutcliffe
2011-Oct-12 10:04 UTC
Re: [Puppet Users] Concat::Fragment collection broken in 2.7.5
On Friday, 7 October 2011 15:12:08 UTC+1, Bruno Leon wrote:> > sorry for the delay, I did a few tests and found out that the puppet > master does not even go as far a querying the database. > Starting from a clean query log (mysql), there is no sign of > Concat::Fragment (tried small case as well). >I concur - I''m using Foreman, which complicates the mysql trace, but as best I can see, it''s not querying the databse for the exported resources at all. Since Dan asked for traces, here they are, master and node: http://pastie.org/2682017 Here''s hoping the regression fixes in 2.7.6 fix this too :) Cheers, Greg -- 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/-/OAiJdI2v2eoJ. 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.
Michael Stahnke
2011-Oct-12 16:41 UTC
Re: [Puppet Users] Concat::Fragment collection broken in 2.7.5
2.7.6 rc2 has this fix. Please let us know if that''s not working for you. On Wed, Oct 12, 2011 at 3:04 AM, Greg Sutcliffe <greg.sutcliffe@gmail.com> wrote:> On Friday, 7 October 2011 15:12:08 UTC+1, Bruno Leon wrote: >> >> sorry for the delay, I did a few tests and found out that the puppet >> master does not even go as far a querying the database. >> Starting from a clean query log (mysql), there is no sign of >> Concat::Fragment (tried small case as well). > > I concur - I''m using Foreman, which complicates the mysql trace, but as best > I can see, > it''s not querying the databse for the exported resources at all. > Since Dan asked for traces, here they are, master and node: > http://pastie.org/2682017 > Here''s hoping the regression fixes in 2.7.6 fix this too :) > Cheers, > Greg > > -- > 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/-/OAiJdI2v2eoJ. > 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. >-- 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.