Jira (PUP-7291) no hiera class parameter lookup debug information

5 views
Skip to first unread message

Reinhard Vicinus (JIRA)

unread,
Mar 2, 2017, 5:18:15 AM3/2/17
to puppe...@googlegroups.com
Reinhard Vicinus updated an issue
 
Puppet / Bug PUP-7291
no hiera class parameter lookup debug information
Change By: Reinhard Vicinus
Summary: no hiera class  paramater  parameter  lookup debug information
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Geoff Nichols (JIRA)

unread,
Mar 2, 2017, 9:39:08 AM3/2/17
to puppe...@googlegroups.com
Geoff Nichols updated an issue
Change By: Geoff Nichols
Team: Puppet Developer Experience

Henrik Lindberg (JIRA)

unread,
Mar 3, 2017, 2:43:09 PM3/3/17
to puppe...@googlegroups.com

Henrik Lindberg (JIRA)

unread,
Mar 3, 2017, 2:43:17 PM3/3/17
to puppe...@googlegroups.com
Henrik Lindberg updated an issue
Change By: Henrik Lindberg
Fix Version/s: PUP 4.9.4

Henrik Lindberg (JIRA)

unread,
Mar 3, 2017, 2:44:37 PM3/3/17
to puppe...@googlegroups.com
Henrik Lindberg commented on Bug PUP-7291
 
Re: no hiera class parameter lookup debug information

Added this ticket to 4.9.4 if there is time to fix this.

Thomas Hallgren (JIRA)

unread,
Mar 3, 2017, 4:46:17 PM3/3/17
to puppe...@googlegroups.com
Thomas Hallgren updated an issue
 
Change By: Thomas Hallgren
Story Points: 1
Sprint: PDE 2017-03-08

Thomas Hallgren (JIRA)

unread,
Mar 3, 2017, 5:04:04 PM3/3/17
to puppe...@googlegroups.com
Thomas Hallgren commented on Bug PUP-7291
 
Re: no hiera class parameter lookup debug information

There was no output from the explainer for lookups of class parameters 4.8.x, so this is not a regression. There was some limited debug output though, such as:

Debug: hiera(): Hiera YAML backend starting
Debug: hiera(): Looking up lookup_options in YAML backend
Debug: hiera(): Looking for data source common
Debug: hiera(): Looking for data source other
Debug: Performing a hiera indirector lookup of foo::a with options {...}
Debug: hiera(): Looking up foo::a in YAML backend

This output is now gone without being replaced by the explainer output.

Reinhard Vicinus (JIRA)

unread,
Mar 3, 2017, 5:21:07 PM3/3/17
to puppe...@googlegroups.com

What i'm missing with puppet 4.9.x is the following output for every class parameter, which is available with puppet 4.8.3. The example shows a lookup of the class parameter postgresql::globals::postgis_version which is not found:

Debug: Performing a hiera indirector lookup of postgresql::globals::postgis_version with options {:variables=>Scope(Class[Postgresql::Globals]), :merge=>#<Puppet::Pops::FirstFoundStrategy:0x000000047db6e0 @options_t=#<Puppet::Pops::Types::PStructType:0x000000047d8af8 @elements=[#<Puppet::Pops::Types::PStructElement:0x000000047d8b20 @key_type=#<Puppet::Pops::Types::POptionalType:0x000000047d8b48 @type=#<Puppet::Pops::Types::PStringType:0x000000047d8b98 @size_type=nil, @values=["strategy"]>>, @value_type=#<Puppet::Pops::Types::POptionalType:0x000000047d8c88 @type=#<Puppet::Pops::Types::PPatternType:0x000000047d8cd8 @patterns=[#<Puppet::Pops::Types::PRegexpType:0x000000047d8df0 @pattern="first", @regexp=/first/>]>>>]>, @options={}>}
Debug: hiera(): Using Hiera 1.x backend API to access instance of class Hiera::Backend::Eyaml_backend. Lookup recursion will not be detected
Debug: hiera(): [eyaml_backend]: Set option: datadir = /data/user-environments/rv4/modules/hieradata
Debug: hiera(): [eyaml_backend]: Set option: extension = yaml
Debug: hiera(): [eyaml_backend]: Set option: pkcs7_private_key = /etc/puppetlabs/eyaml/private_key.pkcs7.pem
Debug: hiera(): [eyaml_backend]: Set option: pkcs7_public_key = /etc/puppetlabs/eyaml/public_key.pkcs7.pem
Debug: hiera(): [eyaml_backend]: Looking up postgresql::globals::postgis_version in eYAML backend
Debug: hiera(): [eyaml_backend]: Looking for data source nodes/dash
Debug: hiera(): [eyaml_backend]: Looking for data source customers/bp/web/dash/stg
Debug: hiera(): [eyaml_backend]: Looking for data source customers/bp/web/dash
Debug: hiera(): [eyaml_backend]: Looking for data source customers/bp
Debug: hiera(): [eyaml_backend]: Looking for data source dc_lv3
Debug: hiera(): [eyaml_backend]: Looking for data source hieramodules/dummy
Debug: hiera(): Cannot find datafile /data/user-environments/rv4/modules/hieradata/hieramodules/dummy.yaml, skipping
Debug: hiera(): [eyaml_backend]: Looking for data source modules/postgresql
Debug: hiera(): [eyaml_backend]: Looking for data source global
Debug: hiera(): Looking up postgresql::globals::postgis_version in YAML backend
Debug: hiera(): Looking for data source nodes/dash
Debug: hiera(): Looking for data source customers/bp/web/dash/stg
Debug: hiera(): Looking for data source customers/bp/web/dash
Debug: hiera(): Looking for data source customers/bp
Debug: hiera(): Looking for data source dc_lv3
Debug: hiera(): Looking for data source hieramodules/dummy
Debug: hiera(): Cannot find datafile /data/user-environments/rv4/modules/hieradata/hieramodules/dummy.yaml, skipping
Debug: hiera(): Looking for data source modules/postgresql
Debug: hiera(): Looking for data source global

Thomas Hallgren (JIRA)

unread,
Mar 3, 2017, 5:37:04 PM3/3/17
to puppe...@googlegroups.com

Right, what I meant was that there was on output from the "lookup explainer" (there should have been). The current debug output doesn't explain much. It doesn't even tell you that the parameter wasn't found. The correct output (which I'm add now) should look exactly like it does when you call the lookup function.

Thomas Hallgren (JIRA)

unread,
Mar 3, 2017, 5:45:04 PM3/3/17
to puppe...@googlegroups.com
Thomas Hallgren assigned an issue to Unassigned
 
Change By: Thomas Hallgren
Assignee: Thomas Hallgren

Henrik Lindberg (JIRA)

unread,
Mar 4, 2017, 5:30:02 AM3/4/17
to puppe...@googlegroups.com
Henrik Lindberg updated an issue
Change By: Henrik Lindberg
Release Notes Summary: The (very limited) debug output from Automatic Parameter Lookup (APL) was removed in Puppet 4.9.0 with the intention of replacing it with the full lookup --explain output, but the explain output ended up not being enabled for APL. This is now fixed making debugging of APL much easier.
Release Notes: Bug Fix

John Duarte (JIRA)

unread,
Mar 5, 2017, 11:24:03 PM3/5/17
to puppe...@googlegroups.com
John Duarte assigned an issue to qa
Change By: John Duarte
Status: Ready for  CI  Test
Assignee: qa

John Duarte (JIRA)

unread,
Mar 5, 2017, 11:24:03 PM3/5/17
to puppe...@googlegroups.com
John Duarte commented on Bug PUP-7291
 
Re: no hiera class parameter lookup debug information

Passed CI using puppet-agent at SHA fb8bb30 containing puppet at SHA 783328d

Eric Thompson (JIRA)

unread,
Mar 6, 2017, 5:24:02 PM3/6/17
to puppe...@googlegroups.com
Eric Thompson updated an issue
 
Change By: Eric Thompson
QA Risk Assessment Reason: covered by unit tests

Eric Thompson (JIRA)

unread,
Mar 6, 2017, 5:24:02 PM3/6/17
to puppe...@googlegroups.com
Eric Thompson updated an issue
Change By: Eric Thompson
QA Risk Assessment: Needs Assessment No Action
Reply all
Reply to author
Forward
0 new messages