Network interfaces question

Hello,
Yesterday I flushed my old Foreman / Katello 3.14 lab and installed 3.16 from scratch.
Now, the first system that I try to provision has several network interface cards.
The YAML for that looks as follows :

     kickstart_repository: 
  foreman_subnets:
  - name: md80_subnet
    network: 192.168.178.0
    mask: 255.255.255.0
    gateway: 192.168.178.1
    dns_primary: 192.168.178.41
    dns_secondary: 192.168.178.1
    from: ''
    to: ''
    boot_mode: DHCP
    ipam: None
    vlanid: 
    mtu: 1500
    nic_delay: 
    network_type: IPv4
    description: ''
  - name: MQHUBSubnet
    network: 10.0.1.0
    mask: 255.255.255.0
    gateway: 10.0.1.1
    dns_primary: 192.168.178.41
    dns_secondary: 192.168.178.1
    from: ''
    to: ''
    boot_mode: Static
    ipam: None
    vlanid: 
    mtu: 1500
    nic_delay: 
    network_type: IPv4
    description: Subnet for MQHUBS PROD
  foreman_interfaces:
  - ip: 192.168.178.88
    ip6: ''
    mac: 00:15:5d:01:29:01
    name: mqhub1.md80.ch
    attrs: {}
    virtual: false
    link: true
    identifier: eth0
    managed: true
    primary: true
    provision: true
    subnet:
      name: md80_subnet
      network: 192.168.178.0
      mask: 255.255.255.0
      gateway: 192.168.178.1
      dns_primary: 192.168.178.41
      dns_secondary: 192.168.178.1
      from: ''
      to: ''
      boot_mode: DHCP
      ipam: None
      vlanid: 
      mtu: 1500
      nic_delay: 
      network_type: IPv4
      description: ''
    subnet6: 
    tag: 
    attached_to: 
    type: Interface

But the kickstart endsup looking like this:

    # eth0 interface
    real=`grep -l 00:15:5d:01:29:01 /sys/class/net/*/{bonding_slave/perm_hwaddr,address} 2>/dev/null | awk -F '/' '// {print $5}' | head -1`
    sanitized_real=`echo $real | sed s/:/_/`


    cat << EOF > /etc/sysconfig/network-scripts/ifcfg-$sanitized_real  
    BOOTPROTO="dhcp"
    DOMAIN="md80.ch"
    DEVICE=$real
    HWADDR="00:15:5d:01:29:01"
    ONBOOT=yes
    PEERDNS=yes
    PEERROUTES=yes
    DEFROUTE=yes
    MTU=1500
    EOF

end ip addr on the provisioned and rebooted system as follows:
    2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
        link/ether 00:15:5d:01:29:01 brd ff:ff:ff:ff:ff:ff
        inet 192.168.178.88/24 brd 192.168.178.255 scope global noprefixroute dynamic eth0
           valid_lft 42515sec preferred_lft 42515sec
        inet6 fd00::215:5dff:fe01:2901/64 scope global mngtmpaddr dynamic
           valid_lft 7011sec preferred_lft 3411sec
        inet6 fe80::215:5dff:fe01:2901/64 scope link
           valid_lft forever preferred_lft forever
    3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
        link/ether 00:15:5d:01:29:02 brd ff:ff:ff:ff:ff:ff

The network configuration used to work on my 3.14 installation. But I’m not sure where to look for the error. Can any one point me in the right direction ?

Kind Regards.
Gerhard

As additional information IPAM is set to none in the subnet. The idea is to have static ip4 addresses hat I enter in the interfaces pages of the content host.

perhaps I should also mention that the provisioned system is CentOS 7.8.

The second part of my question is now self answered. I had to mark the nics managed. Now they are correctly configured. The fist part of my question is still open. Why the eth0 network card does not have a default gateway and dns servers configured. In the YAML it looks correct.

kickstart_repository: 
foreman_subnets:
  • name: md80_subnet
    network: 192.168.178.0
    mask: 255.255.255.0
    gateway: 192.168.178.1
    dns_primary: 192.168.178.41
    dns_secondary: 192.168.178.1
    from: 192.168.178.20
    to: 192.168.178.255
    boot_mode: DHCP
    ipam: None
    vlanid:
    mtu: 1500
    nic_delay:
    network_type: IPv4
    description: ‘’

I had to change my md80_subnet boot mode from “DHCP” to “static”. Now all my nics are configured the way they should be.

Case closed.