-
Type:
Bug
-
Status: Resolved
-
Priority:
Normal
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: SERVER 2.7.0
-
Component/s: None
-
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.noarchmaster 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
-
Template:customfield_10700 148141
-
Team:Systems Engineering
-
Story Points:3
-
Sprint:SE 2016-10-05, SE 2016-10-19
-
CS Priority:Reviewed
-
Release Notes:Bug Fix
-
Release Notes Summary:There was a bug in Puppet Server versions prior to 2.7.0 wherein calling the `generate()` function did not merge the output from {{STDERR}} into the output from {{STDOUT}}. This bug is fixed on 2.7.0 and the output from {{STDERR}} is now included.
description
The function generate() does not merge stdout and stderr using a puppet4 master. It works as expected on a v3 master, or using puppetv4 apply.
#!/bin/sh
|
|
echo -n stdin
|
echo -n stderr 1>&2
|
class manifests::test_util_exec { |
$_msg = generate('/tmp/test2') |
notify { 'test_util_exec': |
message => $_msg |
}
|
}
|
puppetv4 master
Notice: stdin
|
Notice: /Stage[main]/Manifests::Test_util_exec/Notify[test_util_exec]/message: defined 'message' as 'stdin'
|
Notice: Finished catalog run in 32.46 seconds
|
puppetv3 master
Notice: stdinstderr
|
Notice: /Stage[main]/Manifests::Test_util_exec/Notify[test_util_exec]/message: defined 'message' as 'stdinstderr'
|
Notice: Finished catalog run in 32.50 seconds
|
- relates to
-
SERVER-1698 Function generate() logs output to puppetserver error log
-
- Resolved
-
-
SERVER-1570 puppet4 function generate() should throw exception when command fails
-
- Resolved
-
-
SERVER-1671 generate() stdout is written to puppetserver.log
-
- Closed
-