Jira (PDB-4488) PuppetDB module uses deprecated http_instance method

13 views
Skip to first unread message

Austin Blatt (JIRA)

unread,
Aug 22, 2019, 2:27:04 PM8/22/19
to puppe...@googlegroups.com
Austin Blatt assigned an issue to Austin Blatt
 
PuppetDB / Bug PDB-4488
PuppetDB module uses deprecated http_instance method
Change By: Austin Blatt
Summary: puppetdb termini PuppetDB module uses deprecated in puppet 6.8.0 function http_instance method
Assignee: Austin Blatt
Affects Version/s: PDB 6.5.0
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Austin Blatt (JIRA)

unread,
Aug 22, 2019, 2:33:03 PM8/22/19
to puppe...@googlegroups.com
Austin Blatt commented on Bug PDB-4488
 
Re: PuppetDB module uses deprecated http_instance method

This should stay in the PDB project, we manage that module.

In the meantime, Vadym Chepkov, if you would like to avoid this deprecation warning you can turn off the strict_validation parameter in the PuppetDB module. It should be noted, that this will allow you to apply changes that break Puppet/PuppetDB communication, but if your settings are applying and working, but emitting a deprecation warning it is fairly low-risk.

Vadym Chepkov (JIRA)

unread,
Aug 22, 2019, 3:02:04 PM8/22/19
to puppe...@googlegroups.com
Vadym Chepkov updated an issue
 
Change By: Vadym Chepkov
puppetdb termini PuppetDB module uses deprecated in puppet 6.8.0 function, causing a warning:

{noformat}
Warning: Puppet::SSL::Host is deprecated and will be removed in a future release of Puppet.

   (location: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/ssl/host.rb:235:in `initialize')
{noformat}

Vadym Chepkov (JIRA)

unread,
Aug 22, 2019, 3:04:03 PM8/22/19
to puppe...@googlegroups.com
Vadym Chepkov commented on Bug PDB-4488
 
Re: PuppetDB module uses deprecated http_instance method

Thanks, it's not a production, just thought to brings attention to the right people.

Peter Meier (JIRA)

unread,
Aug 26, 2019, 4:49:02 PM8/26/19
to puppe...@googlegroups.com
Peter Meier commented on Bug PDB-4488

This generates noise if you run puppet through cron - would be nice to have a fix soon! Thanks!

Josh Cooper (JIRA)

unread,
Aug 26, 2019, 5:40:04 PM8/26/19
to puppe...@googlegroups.com
Josh Cooper commented on Bug PDB-4488

Make sure the fix takes into account the newer "connection" method is only available in puppet 6.4 and up.

Robert August Vincent II (JIRA)

unread,
Nov 6, 2019, 10:18:03 AM11/6/19
to puppe...@googlegroups.com

Austin Blatt – I tried the workaround you described by setting `puppetdb::strict_validation: false` in hiera, but the message persists. Should I also add the following to `/etc/puppetlabs/puppetdb/conf.d/config.ini` ?
```
[puppetdb]
strict-validation = 0
```

Austin Blatt (JIRA)

unread,
Nov 13, 2019, 6:42:05 PM11/13/19
to puppe...@googlegroups.com
Austin Blatt commented on Bug PDB-4488

Robert August Vincent II Looks like you have a - (dash), but the parameter uses an _ (underscore)

Josh Cooper (Jira)

unread,
Mar 4, 2020, 5:52:04 PM3/4/20
to puppe...@googlegroups.com
Josh Cooper commented on Bug PDB-4488

Coming back to this. The intention was to deprecate Puppet::Network::HttpPool.http_instance in documentation only, while adding a hard deprecation warning to Puppet::SSL::Host. The trouble is that the former relies on the latter, which is why you see Puppet::SSL::Host is deprecated.

It should be possible to fix puppet's HttpPool.http_instance method to not trigger the deprecation warning. I'll move this back to the PUP project.

This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages