From ccbb52d53730262d9b159168b957a8fd83c8d4a5 Mon Sep 17 00:00:00 2001 From: Lars Kellogg-Stedman Date: Thu, 24 Apr 2014 10:59:44 -0400 Subject: [PATCH] teach packstack about "could not autoload" errors If a Puppet custom type/provder/etc fails to load because of missing dependencies, Puppet will log an error of the form: Could not autoload : Could not autoload : no such file to load -- rubygems at : on node This change teaches packstack to recognize any messages starting with 'Could not autoload' as errors. Change-Id: I3e0cb7f5e8871cfdc122dfea3adcb2bb7a8d31d1 Closes-bug: 1312224 --- packstack/modules/puppet.py | 1 + 1 file changed, 1 insertion(+) diff --git a/packstack/modules/puppet.py b/packstack/modules/puppet.py index c1522536a..01f29f8d7 100644 --- a/packstack/modules/puppet.py +++ b/packstack/modules/puppet.py @@ -16,6 +16,7 @@ re_error = re.compile( '^No matching value for selector param|^Parameter name failed:|Error:|' '^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' ) re_ignore = re.compile(