Issue #5191 has been updated by Markus Roberts.

Status changed from Unreviewed to Accepted


----------------------------------------
Bug #5191: Notifying a class should also notify resources in its baseclass
https://projects.puppetlabs.com/issues/5191

Author: R.I. Pienaar
Status: Accepted
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 2.6.2
Keywords: 
Branch: 


Given the code below:

<pre>
class one {
    exec{"/usr/bin/cowsay moo": refreshonly => true, logoutput => true}
}

class two inherits one {
    notify{"class two": }
}

include two

file{"/tmp/foo": notify => Class["two"], content => "hello"}
</pre>

I'd expect the exec in class one to be refreshed, it doesnt:

<pre>
notice: /Stage[main]//File[/tmp/foo]/ensure: defined content as 
'{md5}5d41402abc4b2a76b9719d911017c592'
notice: class two
notice: /Stage[main]/Two/Notify[class two]/message: defined 'message' as 'class 
two'
</pre>

If I specifically add Class["one"] to the notify list:

<pre>
file{"/tmp/foo": notify => [Class["one"], Class["two"]], content => "hello"}
</pre>

It works:

<pre>
notice: /Stage[main]//File[/tmp/foo]/ensure: defined content as 
'{md5}5d41402abc4b2a76b9719d911017c592'
notice: /Stage[main]/One/Exec[/usr/bin/cowsay moo]/returns:  _____ 
notice: /Stage[main]/One/Exec[/usr/bin/cowsay moo]/returns: < moo >
notice: /Stage[main]/One/Exec[/usr/bin/cowsay moo]/returns:  ----- 
notice: /Stage[main]/One/Exec[/usr/bin/cowsay moo]/returns:         \   ^__^
notice: /Stage[main]/One/Exec[/usr/bin/cowsay moo]/returns:          \  
(oo)\_______
notice: /Stage[main]/One/Exec[/usr/bin/cowsay moo]/returns:             (__)\   
    )\/\
notice: /Stage[main]/One/Exec[/usr/bin/cowsay moo]/returns:                 
||----w |
notice: /Stage[main]/One/Exec[/usr/bin/cowsay moo]/returns:                 ||  
   ||
notice: /Stage[main]/One/Exec[/usr/bin/cowsay moo]: Triggered 'refresh' from 1 
events
notice: class two
notice: /Stage[main]/Two/Notify[class two]/message: defined 'message' as 'class 
two'
</pre>


Jeff suggested this might be due to exec but I also tested with service and the 
same issue exist.



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