-
Type:
Bug
-
Status: Resolved
-
Priority:
Normal
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: SERVER 2.7.0
-
Component/s: Puppet Server
-
Labels:
-
Environment:
master
Platform: CentOS 7.2.1511
Architecture: x86_64
Linux ccsvli80 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux- puppetserver --version
puppetserver version: 2.4.0 - puppetserver gem list
Warning: The following options to parse-opts are unrecognized: :flag
-
-
- LOCAL GEMS ***
-
collectd-dsl (0.3.6cc, 0.3.5)
hiera-eyaml (2.1.0)
hiera-eyaml-gpg (0.6)
highline (1.6.21)
jar-dependencies (0.1.13)
jruby-openssl (0.9.7 java)
json (1.8.0 java)
mini_portile2 (2.1.0)
rake (10.1.0)
rdoc (4.1.2)
ruby_gpg (0.3.2)
trollop (2.1.2)
uuidtools (2.1.5)agent
Platform: CentOS 7.2.1511
Architecture: x86_64
Linux ccosvms0033 3.10.0-327.22.2.el7.x86_64 #1 SMP Thu Jun 23 17:05:11 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux- rpm -q puppet
puppet-3.7.2-1.el7.noarch
master Platform: CentOS 7.2.1511 Architecture: x86_64 Linux ccsvli80 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux puppetserver --version puppetserver version: 2.4.0 puppetserver gem list Warning: The following options to parse-opts are unrecognized: :flag LOCAL GEMS *** collectd-dsl (0.3.6cc, 0.3.5) hiera-eyaml (2.1.0) hiera-eyaml-gpg (0.6) highline (1.6.21) jar-dependencies (0.1.13) jruby-openssl (0.9.7 java) json (1.8.0 java) mini_portile2 (2.1.0) rake (10.1.0) rdoc (4.1.2) ruby_gpg (0.3.2) trollop (2.1.2) uuidtools (2.1.5) agent Platform: CentOS 7.2.1511 Architecture: x86_64 Linux ccosvms0033 3.10.0-327.22.2.el7.x86_64 #1 SMP Thu Jun 23 17:05:11 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux rpm -q puppet puppet-3.7.2-1.el7.noarch - puppetserver --version
-
Template:customfield_10700 147425
-
Team:Systems Engineering
-
Sub-team:
-
Story Points:3
-
Sprint:SE 2016-10-05
-
CS Priority:Reviewed
-
Release Notes:Bug Fix
-
Release Notes Summary:
description
The function generate() does not throw a parse failure as stated in the documentation when the master is running puppet4. It works as expected on a v3 master, or using puppet apply:
class manifests::test_util_exec { |
$_msg = generate('/bin/false') |
notify { 'test_util_exec': |
message => $_msg |
}
|
}
|
puppet4 master
Info: Retrieving pluginfacts
|
Info: Retrieving plugin
|
Info: Loading facts
|
Info: Caching catalog for MYNODE.mygtld
|
Info: Applying configuration version '1471337073'
|
Notice:
|
Notice: /Stage[main]/Manifests::Test_util_exec/Notify[test_util_exec]/message: defined 'message' as ''
|
Notice: Finished catalog run in 34.14 seconds
|
puppet 3 master
Info: Retrieving pluginfacts
|
Info: Retrieving plugin
|
Info: Loading facts
|
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to execute generator /bin/false: Execution of '/bin/false' returned 1: at /etc/puppet/environments/MYENV/manifests/test_util_exec.pp:2 on node MYNODE.mygtld
|
Warning: Not using cache on failed catalog
|
Error: Could not retrieve catalog; skipping run
|
- relates to
-
SERVER-1571 The function generate() should merge stdout and stderr
-
- Resolved
-