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

pykickstart generates broken ifcfg files

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Undefined Undefined
    • None
    • rhel-8.10
    • pykickstart
    • No
    • Moderate
    • sst_installer
    • ssg_front_door
    • None
    • False
    • Hide

      None

      Show
      None
    • No
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • Unspecified Release Note Type - Unknown
    • None

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

      When installing a system from a DVD + kickstart (No network boot) and configuring network interfaces inside the kickstart, this results in various oddities making the network interfaces not work once booted on installed system.

      Kickstart excerpt

      network  --bootproto=dhcp --device=enp1s0 --onboot=on --noipv6 --name="enp1s0"
      network  --bootproto=static --device=enp2s0 --ip=192.168.56.10 --netmask=255.255.255.0 --nodefroute --onboot=on --noipv6 --name="enp2s0"
      network --bootproto=static --device=bond0 --bondslaves=enp9s0,enp10s0 --bondopts=balance-alb,miimon=100 --ip=192.168.40.10 --netmask=255.255.255.0 --nodefroute --noipv6 --name="bond0"
      

      Result on installed system

      1. enp1s0 is configured correctly with ONBOOT=yes but has a weird DNS1=enp1s0
      2. enp2s0 is not having ONBOOT=yes but ONBOOT=no and has a weird DNS1=enp2s0
      3. bond0 is not having ONBOOT=yes but ONBOOT=no and has a weird DNS1=bond0

      Due to the DNS1= properties, NetworkManager refuses to load the profiles.

      # grep -E "DNS1|ONBOOT" /etc/sysconfig/network-scripts/ifcfg-*
      /etc/sysconfig/network-scripts/ifcfg-bond0:ONBOOT="no"
      /etc/sysconfig/network-scripts/ifcfg-bond0:DNS1="bond0"
      /etc/sysconfig/network-scripts/ifcfg-bond0_slave_1:ONBOOT=yes
      /etc/sysconfig/network-scripts/ifcfg-bond0_slave_2:ONBOOT=yes
      /etc/sysconfig/network-scripts/ifcfg-enp1s0:ONBOOT="yes"
      /etc/sysconfig/network-scripts/ifcfg-enp1s0:DNS1="enp1s0"
      /etc/sysconfig/network-scripts/ifcfg-enp2s0:ONBOOT="no"
      /etc/sysconfig/network-scripts/ifcfg-enp2s0:DNS1="enp2s0"
      

      What is the impact of this issue to you?

      Cannot configure networking properly

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

      RHEL8.10 pykickstart+anaconda

      How reproducible is this bug?:

      Always see above.

            brlane@redhat.com Brian Lane
            rhn-support-rmetrich Renaud Métrich
            Renaud Métrich
            Brian Lane Brian Lane
            Release Test Team Release Test Team
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: