Issue #15963 has been updated by Chris Price.

Keywords set to puppetdb


----------------------------------------
Feature #15963: Provide the reason why a resource was skipped during a puppet 
run
https://projects.puppetlabs.com/issues/15963#change-70512

Author: Chris Price
Status: Investigating
Priority: Normal
Assignee: Deepak Giridharagopal
Category: 
Target version: 3.x
Affected Puppet version: 
Keywords: puppetdb
Branch: 


This feature is a pre-requisite for some of PuppetDB's new reports 
functionality (although we have some possible workarounds for the short term 
and for backwards compatibility).

During a puppet run, if a resource fails to apply and there are other resources 
in the catalog that have a dependency on the failed resource, these resources 
are marked as "skipped".  There are no events generated for them in the report, 
and there does not appear to be any data in the report that would allow us to 
determine why they were skipped.  We are aware of at least two other reasons 
why a resource might be skipped: Scheduled resources and tags.

The feature request for PuppetDB is that for any resource that was skipped *due 
to a failed dependency*, we'd like to be able to show the upstream failure so 
that it's easy for the admin to identify the root cause of a particular 
problem.  At present, it seems like the best we can do is to capture *all* 
skipped resources and check each one to see if there were upstream failures; if 
so, we can reasonably guess that that is why the resource was skipped, but even 
then we still can't be absolutely certain.  Furthermore, this will probably be 
a fairly slow query.

To solve this in Puppet, we could either change the data type of the "skipped" 
field from boolean to an enumeration (which might include, e.g., :false, 
:failed_dependency, :not_scheduled, :tags), or we could keep it as a boolean 
and add a new field to store the "reason".

In the interim (and for as long as we maintain backwards compatibility with 
versions of puppet that do not have this fix), we'll probably need to display 
some message in the PE UI that indicates that we're just guessing :)


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to