Issue #18617 has been reported by Vaidas Jablonskis.
----------------------------------------
Bug #18617: Resources chaining with tilde syntax to achieve "notify" does not
work
https://projects.puppetlabs.com/issues/18617
Author: Vaidas Jablonskis
Status: Unreviewed
Priority: High
Assignee:
Category:
Target version: 3.0.3
Affected Puppet version: 3.0.1
Keywords: puppet, compiler, error, dependency
Branch:
I think it is a bug in the way error is reported or the way syntax is
interpreted.
My manifest code:
exec { 'update-search-endpoints':
path => "/usr/bin:/bin:${bl_path}",
command => 'search-endpoints.py -q --force sync',
refreshonly => true,
}
File <<| tag == 'endpoint_uri' |>> ~> Exec[update-search-endpoints]
As you can see there is a simple Exec resource which runs a simple script when
it gets a notification from another resource.
In this case, the another resource is bunch of exported file resources which
are collected, so if that changes a notification is sent
to Exec[update-search-endpoints] resource, but instead I get the below error:
err: Could not retrieve catalog from remote server: Error 400 on SERVER:
Invalid relationship:
File[/etc/dpx.d/endpoints/wseed_node2.foo.local_16215] { notify =>
Exec[update-search-endpoints]Exec[update-search-endpoints] },
because Exec[update-search-endpoints]Exec[update-search-endpoints] doesn't
seem to be in the catalog
I am not too sure if that's the error reporting issue or something wrong with
my syntax?
If I use the following syntax instead of the above one - everything works just
fine as expected:
File <<| tag == 'endpoint_uri' |>> {
notify +> Exec['update-search-endpoints'],
}
I cannot seem to be able to reproduce in 3.0.2 puppetmaster version. I will
update this bug report if I will not be able to reproduce it in 3.0.2.
Let me know if this bug has been fixed in 3.0.2 version.
Any suggestions?
--
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.