Issue #6922 has been updated by Ben Hughes.

Comparing the two save you having to go do it.

<pre>
[ben@paresthesia:~]% puppet fail.pp
notice: //Exec[/usr/bin/true]/returns: executed successfully
notice: //Exec[/usr/bin/false]: Triggering 'refresh' from 1 dependencies
err: //Exec[/usr/bin/false]: Failed to call refresh on Exec[/usr/bin/false]: 
/usr/bin/false returned 1 instead of one of [0] at /Users/ben/fail.pp:8
notice: //Exec[meh]: Triggering 'refresh' from 1 dependencies
notice: //Exec[meh]/returns:  _________ 
notice: //Exec[meh]/returns: < fail :( >
notice: //Exec[meh]/returns:  --------- 
notice: //Exec[meh]/returns:         \   ^__^
notice: //Exec[meh]/returns:          \  (oo)\_______
notice: //Exec[meh]/returns:             (__)\       )\/\
notice: //Exec[meh]/returns:                 ||----w |
notice: //Exec[meh]/returns:                 ||     ||
[ben@paresthesia:~]% puppet --version
0.25.5
</pre>

And the more recent.

<pre>
[ben@paresthesia:~]% puppet fail.pp  
notice: /Stage[main]//Exec[/usr/bin/true]/returns: executed successfully
err: /Stage[main]//Exec[/usr/bin/false]: Failed to call refresh: /usr/bin/false 
returned 1 instead of one of [0] at /Users/ben/fail.pp:8
notice: Finished catalog run in 0.17 seconds
[ben@paresthesia:~]% puppet --version
2.6.7
</pre>
----------------------------------------
Bug #6922: Failing resources in the middle of a chain should not notify
https://projects.puppetlabs.com/issues/6922

Author: Doug Warner
Status: Investigating
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 0.25.5
Keywords: 
Branch: 


Similar to bug#5670, I'm seeing failing resources still issue their refresh to 
other resources.

We seem to be hitting this when we have something like Res[a] notify Res[b] 
(which fails) which notifies Res[c] (and still runs).

An expanded test case from bug#5670:

    exec { "/bin/true":
            notify => Exec["/bin/false"],
    }

    exec { "/bin/false":
            refreshonly => true,
            notify => Exec["meh"],
    }

    exec { "meh":
            command => "/usr/bin/cowsay 'fail :('",
            refreshonly => true,
            logoutput => true
    }

The Exec["meh"] resource will still be executed even though Exec["/bin/false"] 
fails.  It appears to be triggered from the initial Exec["/bin/true"] that 
succeeds.


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