Bug 2081155

Summary: [RHOSP 16.2] Overcloud deployment fails when trying to deploy with rsyslog
Product: Red Hat OpenStack Reporter: Leonid Natapov <lnatapov>
Component: puppet-rsyslogAssignee: Martin Magr <mmagr>
Status: CLOSED ERRATA QA Contact: Leonid Natapov <lnatapov>
Severity: urgent Docs Contact: Joanne O'Flynn <joflynn>
Priority: urgent    
Version: 16.2 (Train)CC: lmadsen, mrunge, spower
Target Milestone: z3Keywords: Regression, Triaged, ZStream
Target Release: 16.2 (Train on RHEL 8.4)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: puppet-rsyslog-3.3.1-2.20220127125249.0rc0.el8ost Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 2083855 2083858 (view as bug list) Environment:
Last Closed: 2022-06-22 16:07:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2034925, 2083855    

Description Leonid Natapov 2022-05-02 21:36:13 UTC
Description of problem:

I was trying to enable rsyslog in overcloud deployment.
I included in overcloud deploy command  /usr/share/openstack-tripleo-heat-templates/environments/logging-environment-rsyslog.yaml along with custom yaml file with the following content:

parameter_defaults:
    RsyslogElasticsearchSetting:
        uid: "elastic"
        pwd: "dcS71OJc5j42748xTr61mdcW"
        skipverifyhost: "on"
        allowunsignedcerts: "on"
        server: "https://elastic-service-telemetry.apps.leonidcluster.lab.upshift.rdu2.redhat.com"
        serverport: 443

Overcloud deployment failed with the following error:

 Evaluation Error: Error while evaluating a Function Call, epp(): Invalid EPP: Syntax error at end of input (file: /etc/puppet/modules/rsyslog/templates/action.epp) (file: /etc/puppet/modules/rsyslog/manifests/component/action.pp, line: 13, column: 14) (file: /etc/puppet/modules/rsyslog/manifests/config/actions.pp, line: 3) on node ctrl-0-16-2.redhat.local", "+ rc=1", "+ '[' False = false ']'", "+ set -e", "+ '[' 1 -ne 2 -a 1 -ne 0 ']'", "+ exit 1", " attempt(s): 3", "2022-05-02 19:35:25,047 WARNING: 237810 -- Retrying running container: rsyslog", "2022-05-02 19:35:25,047 ERROR: 237810 -- Failed running container for rsyslog", "2022-05-02 19:35:25,047 INFO: 237810 -- Finished processing puppet configs for rsyslog", "2022-05-02 19:35:25,048 ERROR: 237787 -- ERROR configuring rsyslog"]}


same error was received for all overcloud nodes.

Comment 13 Leonid Natapov 2022-06-07 10:45:21 UTC
Fixed. Overcloud successfully deployed with rsyslog templates

Comment 17 errata-xmlrpc 2022-06-22 16:07:20 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 (Release of components for Red Hat OpenStack Platform 16.2.3 (Train)), 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/RHBA-2022:4793