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

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

    • rhel-system-roles-1.79.0-0.2.el10
    • None
    • None
    • 2
    • sst_system_roles
    • 1
    • QE ack, Dev ack
    • False
    • Hide

      None

      Show
      None
    • Yes
    • System Roles Sprint 3, System Roles Sprint 4
    • 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
            Jakub Haruda Jakub Haruda
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: