Bug 1717889 - No output from failed Puppet in Ansible tasks
Summary: No output from failed Puppet in Ansible tasks
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 15.0 (Stein)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: beta
: 15.0 (Stein)
Assignee: Emilien Macchi
QA Contact: Sasha Smolyak
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-06-06 11:59 UTC by Jiri Stransky
Modified: 2019-09-26 10:51 UTC (History)
3 users (show)

Fixed In Version: openstack-tripleo-heat-templates-10.5.1-0.20190619000409.eff8376.el8ost
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-09-21 11:22:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1831887 0 None None None 2019-06-06 11:59:26 UTC
OpenStack gerrit 663624 0 None MERGED Fix disappearing Puppet logs 2021-01-28 12:10:51 UTC
Red Hat Product Errata RHEA-2019:2811 0 None None None 2019-09-21 11:23:10 UTC

Description Jiri Stransky 2019-06-06 11:59:26 UTC
Description of problem:

I can't see any puppet output in Ansible tasks which are supposed to print that output:

TASK [Debug output for task: Run puppet host configuration for step 1] *********
Thursday 06 June 2019  10:23:52 +0000 (0:00:03.379)       0:03:05.847 ********* 
fatal: [controller-0]: FAILED! => {
    "failed_when_result": true,
    "outputs.stdout_lines | default([]) | union(outputs.stderr_lines | default([]))": []
}

I think what's described in this commit message no longer works:

https://github.com/openstack/tripleo-heat-templates/commit/8a8369d8688dab6eb719a640863397bfcb7d9316

I can't find docs on passing `--logdest` to Puppet multiple times. Probably we were lucky that this worked in previous Puppet versions, but it doesn't seem to work anymore.

Version-Release number of selected component (if applicable):

puppet-5.5.10-5.el8ost.noarch
openstack-tripleo-heat-templates-10.5.1-0.20190524170407.254b72f.el8ost.noarch

Comment 1 Jiri Stransky 2019-06-06 12:20:43 UTC
WIP fix: https://review.opendev.org/663624

Comment 6 Sasha Smolyak 2019-07-29 08:07:33 UTC
TASK [Debug output for task: Run puppet host configuration for step 1] *********
Wednesday 24 July 2019  06:14:43 -0400 (0:01:12.868)       0:28:13.775 ********
ok: [controller-0] => {
    "failed_when_result": false,
    "outputs.stdout_lines | default([]) | union(outputs.stderr_lines | default([]))": [
        "<13>Jul 24 10:13:31 puppet-user: Warning: The function 'hiera' is deprecated in favor of using 'lookup'. See https://puppet.com/docs/puppet/5.5/deprecated_language.html\\n   (file & line not available)",
        "<13>Jul 24 10:13:34 puppet-user: Warning: /etc/puppet/hiera.yaml: Use of 'hiera.yaml' version 3 is deprecated. It should be converted to version 5",
        "<13>Jul 24 10:13:34 puppet-user:    (file: /etc/puppet/hiera.yaml)",
        "<13>Jul 24 10:13:34 puppet-user: Warning: Undefined variable '::deploy_config_name'; \\n   (file & line not available)",
        "<13>Jul 24 10:13:34 puppet-user: Warning: ModuleLoader: module 'tripleo' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\\n   (file & line not available)",
        "<13>Jul 24 10:13:34 puppet-user: Warning: Unknown variable: '::deployment_type'. (file: /etc/puppet/modules/tripleo/manifests/profile/base/database/mysql/client.pp, line: 89, column: 31)",
        "<13>Jul 24 10:13:34 puppet-user: error: Could not connect to cluster (is it running?)",
        "<13>Jul 24 10:13:34 puppet-user: Warning: ModuleLoader: module 'concat' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\\n   (file & line not available)",
        "<13>Jul 24 10:13:34 puppet-user: Warning: tag is a metaparam; this value will inherit to all contained resources in the tripleo::firewall::rule definition",
        "<13>Jul 24 10:13:34 puppet-user: Notice: Scope(Class[Tripleo::Firewall::Post]): At this stage, all network traffic is blocked.",
        "<13>Jul 24 10:13:35 puppet-user: Warning: This method is deprecated, please use the stdlib validate_legacy function,",
        "<13>Jul 24 10:13:35 puppet-user:                     with Stdlib::Compat::Hash. There is further documentation for validate_legacy function in the README. at [\"/etc/puppet/modules/tripleo/manifests/firewall/rule.pp\", 148]:",
        "<13>Jul 24 10:13:35 puppet-user:    (location: /etc/puppet/modules/stdlib/lib/puppet/functions/deprecation.rb:28:in `deprecation')",
        "<13>Jul 24 10:13:35 puppet-user: Notice: Compiled catalog for controller-0.localdomain in environment production in 1.30 seconds",
        "<13>Jul 24 10:13:35 puppet-user: Notice: /Stage[main]/Main/Package_manifest[/var/lib/tripleo/installed-packages/overcloud_Controller1]/ensure: created",
        "<13>Jul 24 10:13:36 puppet-user: Notice: /Stage[main]/Certmonger/Service[certmonger]/ensure: ensure changed 'stopped' to 'running'",
        "<13>Jul 24 10:13:36 puppet-user: Notice: /Stage[main]/Tripleo::Certmonger::Ca::Local/Exec[extract-and-trust-ca]/returns: executed successfully",
        "<13>Jul 24 10:13:36 puppet-user: Notice: /Stage[main]/Tripleo::Certmonger::Ca::Local/Exec[extract-and-trust-ca]: Triggered 'refresh' from 1 event",
        "<13>Jul 24 10:13:36 puppet-user: Notice: /Stage[main]/Tripleo::Certmonger::Ca::Local/File[/etc/pki/ca-trust/source/anchors/cm-local-ca.pem]/mode: mode changed '0600' to '0644'",
        "<13>Jul 24 10:13:36 puppet-user: Notice: /Stage[main]/Tripleo::Certmonger::Ca::Local/File[/etc/pki/ca-trust/source/anchors/cm-local-ca.pem]/seluser: seluser changed 'unconfined_u' to 'system_u'",
        "<13>Jul 24 10:13:36 puppet-user: Notice: /Stage[main]/Tripleo::Profile::Base::Database::Mysql::Client/File[/etc/my.cnf.d/tripleo.cnf]/ensure: created",
...

The output is there.

Verified

Comment 9 errata-xmlrpc 2019-09-21 11:22:59 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2019:2811


Note You need to log in before you can comment on or make changes to this bug.