Bug: Exec resource executes although dependencies have failed

30 views
Skip to first unread message

Dirk Heinrichs

unread,
Dec 16, 2014, 4:12:10 AM12/16/14
to puppet...@googlegroups.com
Hi,

on Puppet 3.7.3 (Windows) I currently see the following strange behaviour:

Notice: /Stage[main]/Myclass/Exec[myexec]: Dependency Exec[myotherexec] has failures: true
Warning: /Stage[main]/Myclass/Exec[myexec]: Skipping because of failed dependencies
Debug: Exec[myexec](provider=windows): Executing 'cmd /C somecommand.exe'
Debug: Executing 'cmd /C somecommand.exe'

So it says "Skipping because of failed dependencies", but then executes it anyway.

Bye...

    Dirk
--

Dirk Heinrichs, Senior Systems Engineer, Engineering Solutions
Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
Tel: +49 2226 1596666 (Ansage) 1149
Email: d...@recommind.com
Skype: dirk.heinrichs.recommind
www.recommind.com

Felix Frank

unread,
Dec 16, 2014, 5:02:32 AM12/16/14
to puppet...@googlegroups.com
On 12/16/2014 10:11 AM, Dirk Heinrichs wrote:
> Hi,
>
> on Puppet 3.7.3 (Windows) I currently see the following strange behaviour:
>
> Notice: /Stage[main]/Myclass/Exec[myexec]: Dependency Exec[myotherexec]
> has failures: true
> Warning: /Stage[main]/Myclass/Exec[myexec]: Skipping because of failed
> dependencies
> Debug: Exec[myexec](provider=windows): Executing 'cmd /C somecommand.exe'
> Debug: Executing 'cmd /C somecommand.exe'
>
> So it says "Skipping because of failed dependencies", but then executes
> it anyway.
>
> Bye...
>
> Dirk

Hi,

you are most likely looking at this timeless classic:

https://tickets.puppetlabs.com/browse/PUP-1106

Rejoyce, a fix is finally available. (It won't be released before Puppet
4, though.)

Best,
Felix
Reply all
Reply to author
Forward
0 new messages