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

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

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

      None

      Show
      None
    • Yes
    • System Roles Sprint 3, System Roles Sprint 4
    • Approved Blocker
    • Bug Fix
    • Hide
      .You cannot set the `name` parameter for the `imuxsock` input type

      Previously, the `logging` RHEL system role incorrectly set a name parameter for the `imuxsock` input type. As a consequence, this input type did not support the `name` parameter and the `rsyslog` utility on the managed node printed this error `...parameter 'name' not known -- typo in config file?...`. This update fixes the `logging` RHEL system role to ensure that the `name` parameter is not associated with the `imuxsock` input type.
      Show
      .You cannot set the `name` parameter for the `imuxsock` input type Previously, the `logging` RHEL system role incorrectly set a name parameter for the `imuxsock` input type. As a consequence, this input type did not support the `name` parameter and the `rsyslog` utility on the managed node printed this error `...parameter 'name' not known -- typo in config file?...`. This update fixes the `logging` RHEL system role to ensure that the `name` parameter is not associated with the `imuxsock` input type.
    • Done
    • 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
              Jaroslav Klech Jaroslav Klech
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: