Trying to setup puppetdbquery on puppet-3.0.0-rc5

67 views
Skip to first unread message

Chuck

unread,
Aug 30, 2012, 9:04:27 AM8/30/12
to puppet...@googlegroups.com
I have puppetdbquery working on my puppet-2.7.16 puppet master but I am getting an error when using it with puppet-3.0.0-rc5

https://github.com/dalen/puppet-puppetdbquery

This is the error I am getting:

  err: Could not retrieve catalog from remote server: Error 400 on SERVER: undefined method `start' for #<Puppet::Network::HTTP::Connection:0x7fa6e25db7c8>

How would I go about finding the actual cause of this issue?


Thanks,

Chris Price

unread,
Aug 31, 2012, 12:28:44 PM8/31/12
to puppet...@googlegroups.com
Chuck,

The cause of this issues is that we introduced our own HTTP connection wrapper in 3.0 (rather than using Net::HTTP directly).  This allows us to do a better job of centralizing the logic related to managing SSL setup and error handling.

Our Connection class provides a subset of the methods available on Ruby's HTTP class, and it looks like puppetdbquery is using one of the methods that don't currently exist in our new API.

The possible solutions would be to add the missing #start method to our new class, or to tweak puppetdbquery so that it doesn't rely on the #start method.  I'll ping the folks on our platform team and see what their thoughts are.

Thanks for the heads up!
Chris

Erik Dalén

unread,
Sep 1, 2012, 5:03:19 AM9/1/12
to puppet...@googlegroups.com
I'll try to take a look at this during the weekend and see if I can
create something that is compatible with both puppet 2.7 and 3.0. Can
probably try to make the requests more like the puppetdb-terminus does
them as it works on both.
> --
> 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/-/cnmWN3qKeJYJ.
>
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.



--
Erik Dalén

Erik Dalén

unread,
Sep 4, 2012, 4:44:05 AM9/4/12
to puppet...@googlegroups.com
I've released a new version now that contains a fix for this, thanks
for the report.
--
Erik Dalén

Chuck

unread,
Sep 4, 2012, 6:41:00 PM9/4/12
to puppet...@googlegroups.com
Thanks,  I have tested it on my puppet 3.0 rc-5 master is working great now.  
Reply all
Reply to author
Forward
0 new messages