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

inst.dhcpclass= is not applied without ip= on the kernel cmdline

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

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • rhel-9.4
    • anaconda
    • None
    • None
    • Moderate
    • rhel-anaconda
    • ssg_front_door
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • Yes
    • None
    • None
    • None
    • Known Issue
    • Hide
      Cause (the user action or circumstances that trigger the bug):
      inst.dhcpclass boot option is applied only to network connections activated at the early stage of installation (initramfs).
      Consequence (what the user experience is when the bug occurs):
      If there is no explicit request or implicit need to activate network at the early stage of installation, and the option inst.dhcpclass is used, it will not be applied.
      Workaround (if available):
      Request activation of network in the early stage, for example by `rd.neednet` or `ip=dhcp` boot options.
      Or use kickstart network command to apply the dhcpclass option.
      Result (mandatory if the workaround does not solve the problem completely):
      The dhcp option configured by the user with inst.dhcpclass or network --dhcpclass option is applied.
      Show
      Cause (the user action or circumstances that trigger the bug): inst.dhcpclass boot option is applied only to network connections activated at the early stage of installation (initramfs). Consequence (what the user experience is when the bug occurs): If there is no explicit request or implicit need to activate network at the early stage of installation, and the option inst.dhcpclass is used, it will not be applied. Workaround (if available): Request activation of network in the early stage, for example by `rd.neednet` or `ip=dhcp` boot options. Or use kickstart network command to apply the dhcpclass option. Result (mandatory if the workaround does not solve the problem completely): The dhcp option configured by the user with inst.dhcpclass or network --dhcpclass option is applied.
    • Proposed
    • None

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

      I tried to use the inst.dhcpclass= boot option, but it was not applied by the installer. When ip=dhcp was added on the kernel cmdline as well, then the DHCP class was properly used.

      Please provide the package NVR for which bug is seen:

      RHEL-9.4
      anaconda-34.25.4.9-1.el9_4

      How reproducible:

      Always

      Steps to reproduce

      1. Boot the installer (boot.iso) with inst.dhcpclass=RHEL on the kernel cmdline

      Expected results

      The provided DHCP class is applied by the installer when getting an IP address:

      [anaconda root@localhost ~]# nmcli c s enp1s0 | grep vendor-class
      ipv4.dhcp-vendor-class-identifier:      RHEL
      [anaconda root@localhost ~]#
      

      Actual results

      inst.dhcpclass= is not applied by the installer (syslog_fail_without_ip):

      [anaconda root@localhost ~]# cat /proc/cmdline 
      BOOT_IMAGE=vmlinuz initrd=initrd.img inst.stage2=hd:LABEL=RHEL-9-4-0-BaseOS-x86_64 quiet inst.dhcpclass=RHEL
      [anaconda root@localhost ~]# nmcli c s enp1s0 | grep vendor-class
      ipv4.dhcp-vendor-class-identifier:      --
      [anaconda root@localhost ~]#
      

      unless also ip= is present on the kernel cmdline (syslog_pass_with_ip):

      [anaconda root@localhost ~]# cat /proc/cmdline
      BOOT_IMAGE=vmlinuz initrd=initrd.img inst.stage2=hd:LABEL=RHEL-9-4-0-BaseOS-x86_64 quiet ip=dhcp inst.dhcpclass=RHEL
      [anaconda root@localhost ~]# nmcli c s enp1s0 | grep vendor-class
      ipv4.dhcp-vendor-class-identifier:      RHEL
      [anaconda root@localhost ~]#
      

        1. dhcpd.conf
          0.4 kB
        2. syslog_fail_without_ip
          484 kB
        3. syslog_pass_with_ip
          499 kB

              anaconda-maint-list anaconda-maint-list
              jstodola@redhat.com Jan Stodola
              anaconda-maint-list anaconda-maint-list
              Release Test Team Release Test Team
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: