Issue #7728 has been updated by James Turnbull.

Status changed from Merged - Pending Release to Closed


----------------------------------------
Bug #7728: Resource failure leads to multiple, somewhat confusing warnings and 
notices
https://projects.puppetlabs.com/issues/7728

Author: Matt Robinson
Status: Closed
Priority: Normal
Assignee: Daniel Pittman
Category: error reporting
Target version: 2.7.0
Affected Puppet version: 2.7.0rc3
Keywords: 
Branch: 


If a simple file resource fails.

    file { '/tmp/nonexistentdir/food':
    content => 'zen'
    }
you used to get a simple output like:

    err: /Stage[main]//File[/tmp/nonexistentdir/food]/ensure: change from 
absent to file failed: Could not set 'file on ensure: No such file or directory 
- /tmp/nonexistentdir/food.puppettmp_9317 at 
/Users/matthewrobinson/work/puppet/test.pp:3
    notice: Finished catalog run in 0.01 seconds

However, since commit:2a6c6cb8fabf82d2f2127c90db670c1a856427c5 you now get a 
lot more warnings and notices

    err: /Stage[main]//File[/tmp/nonexistentdir/food]/ensure: change from 
absent to file failed: Could not set 'file on ensure: No such file or directory 
- /tmp/nonexistentdir/food.puppettmp_2197 at 
/Users/matthewrobinson/work/puppet/test.pp:3
    notice: /tmp/nonexistentdir/food: Dependency File[/tmp/nonexistentdir/food] 
has failures: true
    warning: /tmp/nonexistentdir/food: Skipping because of failed dependencies
    notice: Class[Main]: Dependency File[/tmp/nonexistentdir/food] has 
failures: true
    warning: Class[Main]: Skipping because of failed dependencies
    notice: Stage[main]: Dependency File[/tmp/nonexistentdir/food] has 
failures: true
    warning: Stage[main]: Skipping because of failed dependencies

When I first saw that I was worried that other resources in the main Class or 
Stage might not work, but some brief testing shows that not to be the case.  
Getting 7 lines in the log output about a resource failure seems confusing 
compared to just getting 1 in the past.


-- 
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