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

Incorrect attribute checks for routing rule validation

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • rhel-system-roles
    • 0
    • QE ack, Dev ack
    • False
    • False
    • Hide

      None

      Show
      None
    • Yes
    • Red Hat Enterprise Linux
    • None
    • Bug Fix
    • Hide
      .The `network` RHEL system role no longer shows errors due to incorrect routing rule validation

      Before this update, the validation part in the `network` RHEL system role incorrectly checked for routing rule attributes at the top-level `NM` module instead of the `NM.IPRoutingRule` class. This caused validation failures and the role displayed errors. With this update, the role uses the API correctly and no longer shows incorrect validation errors.
      Show
      .The `network` RHEL system role no longer shows errors due to incorrect routing rule validation Before this update, the validation part in the `network` RHEL system role incorrectly checked for routing rule attributes at the top-level `NM` module instead of the `NM.IPRoutingRule` class. This caused validation failures and the role displayed errors. With this update, the role uses the API correctly and no longer shows incorrect validation errors.
    • Done
    • Done
    • Done
    • Not Required
    • None

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

      Given a managed host with the NetworkManager `NetworkManager-1.40.16-18.el8_10` installed, when creating the routing rule with `uid` specified, then the network role raises the error `error: connection[0]: the routing rule selector 'uid' is not supported in NetworkManger until NM 1.34`. 

      What is the impact of this issue to you?

      I cannot configure the routing rule with the uid range. 

      Please provide the package NVR for which the bug is seen:

      1.40.16-18.el8_10

      How reproducible is this bug?:

      always

      Steps to reproduce

      1. Running the network role with the following `network_connections` : 
      network_connections:
        - name: testeth1
          interface_name: eth1
          state: up
          type: ethernet
          autoconnect: true
          ip:
            dhcp4: false
            address:
              - 198.51.100.3/26
              - 2001:db8::2/32
            route:
              - network: 198.51.100.64
                prefix: 26
                gateway: 198.51.100.6
                metric: 4
                table: 30200
            routing_rule:
              - priority: 30205
                uid: 2000 - 3000
                family: ipv4
                table: 30200
       

      Expected results

      The routing rules should configured correctly without raising any error.

      Actual results

      The error `error: connection[0]: the routing rule selector 'uid' is not supported in NetworkManger until NM 1.34` was raised. 

              rmeggins@redhat.com Richard Megginson
              liangwen12year Wen Liang
              Richard Megginson Richard Megginson
              David Jez David Jez
              Marc Muehlfeld Marc Muehlfeld
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated: