Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-37550

Setup imuxsock using rhel-system-roles.logging causing an error EL8

    • rhel-system-roles-1.23.0-3.el8_10
    • None
    • Low
    • 2
    • rhel-sst-system-roles
    • 0
    • Dev ack
    • False
    • Hide

      None

      Show
      None
    • Yes
    • System Roles Sprint 5, System Roles Sprint 6
    • Bug Fix
    • Hide
      Cause: The role set a name parameter for the imuxsock input type.
      Consequence: This input type does not support the "name" parameter. rsyslog was printing the error: "parameter 'name' not known -- typo in config file?"
      Fix: Do not set a name parameter for the imuxsock input type.
      Show
      Cause: The role set a name parameter for the imuxsock input type. Consequence: This input type does not support the "name" parameter. rsyslog was printing the error: "parameter 'name' not known -- typo in config file?" Fix: Do not set a name parameter for the imuxsock input type.
    • Proposed
    • x86_64
    • None

      What were you trying to do that didn't work?

      Configure input basics to use imuxsock in rsyslog using the rhel-system-roles causing an issue in the resulting configuration on the managed system.

      Please provide the package NVR for which bug is seen:

      redhat.rhel_system_roles 1.22.0 
      
      rsyslog-8.2102.0-13.el8.x86_64   

      How reproducible:

      always

      Steps to reproduce

      1. Run the following playbook

       

      ---                                
      - name: Reproducer for issue with removing symlink from log device
        hosts: reproducer
        become: true
                                             
        collections:                                                               
          - redhat.rhel_system_roles                                                
                   
        tasks:
          - name: Apply configuration role to target
            ansible.builtin.import_role:
              name: redhat.rhel_system_roles.logging
            vars:
              logging_inputs:
                - name: custom_basics
                  type: basics
                  use_imuxsock: true  

       

       

      Expected results

      No error thrown

      Actual results

       

      2024-05-06T05:58:47.322317-04:00 rhel8-rsyslog-logger-permission rsyslogd: error during parsing file /etc/rsyslog.d/90-input-basics-custom_basics.conf, on or before line 10: parameter 'name' not known -- typo in config file? [v8.2102.0-13.el8 try https://www.rsyslog.com/e/2207 ]
      2024-05-06T05:58:47.322323-04:00 rhel8-rsyslog-logger-permission rsyslogd: [origin software="rsyslogd" swVersion="8.2102.0-13.el8" x-pid="7691" x-info="https://www.rsyslog.com"] start
       

       

       

              spetros@redhat.com Sergei Petrosian
              rhn-support-sfroemer Steffen Frömer
              Richard Megginson Richard Megginson
              David Jez David Jez
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: