Check for puppet execution errors

If the puppet package is installed, but puppet fails to execute
due to some unforeseen reason (e.g. not having execution
permissions), Packstack will silently ignore the issue. Fixing
that.

Change-Id: I530e83413feca175f2579239362f6afaa8434bf3
Fixes: bz#1153296
This commit is contained in:
Javier Pena
2014-10-27 18:20:40 +01:00
parent f0b83d6cd7
commit c73211cfac

View File

@@ -17,7 +17,8 @@ re_error = re.compile(
'^Invalid parameter|^Duplicate declaration:|^Could not find resource|'
'^Could not parse for|^/usr/bin/puppet:\d+: .+|.+\(LoadError\)|'
'^Could not autoload|'
'^\/usr\/bin\/env\: jruby\: No such file or directory'
'^\/usr\/bin\/env\: jruby\: No such file or directory|'
'failed to execute puppet'
)
re_ignore = re.compile(
# Puppet preloads a provider using the mysql command before it is installed