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

NM resets netdev's ipv6 accept_ra to 0 even with ipv6.method=ignore

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

    • None
    • Moderate
    • 1
    • rhel-net-mgmt
    • ssg_networking
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • NMT SST - Refine next
    • Hide

      Definition of Done:

      Please mark each item below with ( / ) if completed or ( x ) if incomplete:

      ( ) The acceptance criteria defined below are met.

      Given a system administrator has set ipv6.method=ignore for a network interface managed by NetworkManager,

      When they reload the NIC driver, 

      Then, the `accept_ra` sysctl value for the network interface should remain unchanged meaning that NetworkManager does not reset accept_ra to 0.


      ( ) Code changes are included in a downstream build attached to an errata.


      ( ) All required testing (manual and/or automated) passes successfully.


      ( ) Related documentation updates (if applicable) have been completed.

      Show
      Definition of Done: Please mark each item below with ( / ) if completed or ( x ) if incomplete: ( ) The acceptance criteria defined below are met. Given a system administrator has set ipv6.method=ignore for a network interface managed by NetworkManager, When they reload the NIC driver,  Then, the `accept_ra` sysctl value for the network interface should remain unchanged meaning that NetworkManager does not reset accept_ra to 0. ( ) Code changes are included in a downstream build attached to an errata. ( ) All required testing (manual and/or automated) passes successfully. ( ) Related documentation updates (if applicable) have been completed.
    • None
    • None
    • x86_64
    • None

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

      sysctl setting was changed after reload irdma and ice mod.

      Please provide the package NVR for which bug is seen:

      RHEL-9.5.0-20240626.4

      5.14.0-469.el9.x86_64

      ethtool -i ens1f0
      driver: ice
      version: 5.14.0-469.el9.x86_64
      firmware-version: 4.30 0x8001af35 1.3429.0
      expansion-rom-version: 
      bus-info: 0000:3b:00.0
      supports-statistics: yes
      supports-test: yes
      supports-eeprom-access: yes
      supports-register-dump: yes
      supports-priv-flags: yes

      How reproducible: 100%

      Steps to reproduce

      1.run script as below
      sysctl -n net.ipv6.conf.${port1}.accept_ra
      ip link set $port1 down
      ip addr flush ${port1}
      ip link set ${port1} up
      sleep 10
      modprobe -r irdma ice
      modprobe irdma ice
      sysctl -n net.ipv6.conf.${port1}.accept_ra
       

      Expected results

      sysctl value won't be changed

      Actual results

      e.g my env the port1 is ens1f0

      After reload irdma and ice mod, check the sysctl setting as below

      [root@dell-per740-65 ~]# sysctl -a | grep -E 'accept_ra = .*'
      net.ipv6.conf.all.accept_ra = 1
      net.ipv6.conf.default.accept_ra = 1
      net.ipv6.conf.eno1.accept_ra = 0
      net.ipv6.conf.eno2.accept_ra = 1
      net.ipv6.conf.eno3.accept_ra = 1
      net.ipv6.conf.eno4.accept_ra = 1
      net.ipv6.conf.ens1f0.accept_ra = 0
      net.ipv6.conf.ens1f1.accept_ra = 0
      net.ipv6.conf.ens1f2.accept_ra = 0
      net.ipv6.conf.ens1f3.accept_ra = 0
      net.ipv6.conf.lo.accept_ra = 1

              rh-ee-sfaye Stanislas Faye
              mhou@redhat.com HOU MINXI
              Network Management Team Network Management Team
              Vladimir Benes Vladimir Benes
              Votes:
              0 Vote for this issue
              Watchers:
              14 Start watching this issue

                Created:
                Updated:
                Resolved: