Jira (PUP-9510) Reduce feature-related debug messages from puppettypes to once per provider

7 views
Skip to first unread message

Charlie Sharpsteen (JIRA)

unread,
Feb 22, 2019, 7:11:08 PM2/22/19
to puppe...@googlegroups.com
Charlie Sharpsteen created an issue
 
Puppet / Improvement PUP-9510
Reduce feature-related debug messages from puppet types to once per provider
Issue Type: Improvement Improvement
Assignee: Unassigned
Created: 2019/02/22 4:10 PM
Priority: Normal Normal
Reporter: Charlie Sharpsteen

From PUP-8586:

If a type's property/parameter depends on a provider feature, and that provider feature isn't available, we repeat the same set of messages for every instance of that resource type. I think we should only emit the message once per resource type (and possibly once if the feature becomes true later in the run if the command, feature, etc becomes available):

Debug: /Firewall[a]: Provider iptables does not support features hop_limiting; not managing attribute hop_limit
Debug: /Firewall[a]: Provider iptables does not support features ishasmorefrags; not managing attribute ishasmorefrags
Debug: /Firewall[a]: Provider iptables does not support features islastfrag; not managing attribute islastfrag
Debug: /Firewall[a]: Provider iptables does not support features isfirstfrag; not managing attribute isfirstfrag
...
Debug: /Firewall[b]: Provider iptables does not support features hop_limiting; not managing attribute hop_limit
Debug: /Firewall[b]: Provider iptables does not support features ishasmorefrags; not managing attribute ishasmorefrags
Debug: /Firewall[b]: Provider iptables does not support features islastfrag; not managing attribute islastfrag
Debug: /Firewall[b]: Provider iptables does not support features isfirstfrag; not managing attribute isfirstfrag

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Charlie Sharpsteen (JIRA)

unread,
Feb 22, 2019, 7:16:02 PM2/22/19
to puppe...@googlegroups.com
Charlie Sharpsteen commented on Improvement PUP-9510
 
Re: Reduce feature-related debug messages from puppet types to once per provider

The problem with just adding the Puppet::Util::Warnings warnings module and using debug_once is that all of the debug messages are then routed via the top-level Puppet.debug method instead of using the local debug method that the Puppet::Type instance has. This means that we loose the additional information that Puppet::Util::Logging provides when it's methods are called from a Type instance.

I think this can be accommodated by the logging methods in {Puppet::Util::Warnings to take a second argument indicating which object should receive the notice, debug, and warn method calls and have that parameter default to the top-level Puppet module.

Jorie Tappa (JIRA)

unread,
Feb 25, 2019, 12:52:04 PM2/25/19
to puppe...@googlegroups.com

Jorie Tappa (JIRA)

unread,
Feb 25, 2019, 12:52:04 PM2/25/19
to puppe...@googlegroups.com

Josh Cooper (JIRA)

unread,
Mar 28, 2019, 11:36:04 PM3/28/19
to puppe...@googlegroups.com

Josh Cooper (JIRA)

unread,
Sep 17, 2019, 11:28:05 PM9/17/19
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Jun 5, 2020, 6:26:02 PM6/5/20
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Labels: beginner
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Josh Cooper (Jira)

unread,
Dec 2, 2021, 12:31:03 AM12/2/21
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Labels: beginner tbd
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Josh Cooper (Jira)

unread,
Oct 19, 2022, 11:08:01 PM10/19/22
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Labels: Easy beginner tbd
This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages