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