[opensuse-autoinstall] SLES 11 SP3 network / udev not working anymore ?
Hi Given: OS: SLES 11 SP3 (64b) HW: Server with eth0,eth1,eth2,eth3 Task: Install via network and reconfigure configure eth1 -> eth0 , eth2 -> eth1 and create a bond0 interface build of eth0,eth1 Note - The mac address are known. - 2 adapters are not used. Autoyast file: </networking> <interfaces config:type="list"> <interface> <bonding_master>yes</bonding_master> <bonding_module_opts>mode=active-backup miimon=1000 arp_ip_target=10.11.0.1</bonding_module_opts> <bonding_slave0>eth0</bonding_slave0> <bonding_slave1>eth1</bonding_slave1> <bootproto>static</bootproto> <device>bond0</device> <ipaddr>10.11.14.2</ipaddr> <netmask>255.255.0.0</netmask> <prefixlen>16</prefixlen> <startmode>auto</startmode> <usercontrol>no</usercontrol> </interface> <interface> <bootproto>none</bootproto> <device>eth0</device> <startmode>auto</startmode> <usercontrol>no</usercontrol> </interface> <interface> <bootproto>none</bootproto> <device>eth1</device> <startmode>auto</startmode> <usercontrol>no</usercontrol> </interface> </interfaces> <managed config:type="boolean">false</managed> <net-udev config:type="list"> <rule> <name>eth0</name> <rule>ATTR{address}</rule> <value>34:40:B5:C8:E2:42</value> </rule> <rule> <name>eth1</name> <rule>ATTR{address}</rule> <value>34:40:B5:C8:E2:46</value> </rule> </net-udev> </networking> Problem: After installation i have $ ifconfig -a | grep -E "eth|bond" - eth2 - eth3 - eth4 - eth5 But no bond device. Analyse: I checked the /etc/udev/rules.d/70-persistent-net.rules and see ... # Generated by autoyast # program run by the persistent-net-generator.rules rules file. # # You can modify it, as long as you keep each rule on a single line. SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="34:40:B5:C8:E2:42", NAME="eth0" SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="34:40:B5:C8:E2:46", NAME="eth1" # PCI device 0x19a2:0x0710 (be2net) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="34:40:b5:c8:e2:44", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2" # PCI device 0x19a2:0x0710 (be2net) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="34:40:b5:c8:e2:42", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3" # PCI device 0x19a2:0x0710 (be2net) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="34:40:b5:c8:e2:46", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth4" # PCI device 0x19a2:0x0710 (be2net) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="34:40:b5:c8:e2:40", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth5" ... So the adapters will be added for whatever reason again and we end up in eth2,3,3,5 and eth0,eth1 are not available. The not so fun thing is that the even after fixing the /etc/udev/rules.d/70-persistent-net.rules it will be regenerated. ( FROM WHERE?) Note: A via yast generate network section looks like: <interfaces config:type="list"> <interface> <bonding_master>yes</bonding_master> <bonding_module_opts>mode=active-backup miimon=1000 arp_ip_target=10.11.0.1</bonding_module_opts> <bonding_slave0>eth0</bonding_slave0> <bonding_slave1>eth1</bonding_slave1> <bootproto>static</bootproto> <device>bond0</device> <ipaddr>10.11.14.2</ipaddr> <netmask>255.255.0.0</netmask> <prefixlen>16</prefixlen> <startmode>auto</startmode> <usercontrol>no</usercontrol> </interface> <interface> <bootproto>none</bootproto> <device>eth0</device> <name>Emulex OneConnect 10Gb NIC (be3)</name> <startmode>auto</startmode> <usercontrol>no</usercontrol> </interface> <interface> <bootproto>none</bootproto> <device>eth1</device> <name>Emulex OneConnect 10Gb NIC (be3)</name> <startmode>auto</startmode> <usercontrol>no</usercontrol> </interface> <net-udev config:type="list"> <rule> <name>eth0</name> <rule>ATTR{address}</rule> <value>34:40:b5:c8:e2:42</value> </rule> <rule> <name>eth1</name> <rule>ATTR{address}</rule> <value>34:40:b5:c8:e2:46</value> </rule> </interfaces config:type="list"> So no real difference except that i did not provide the <name>..</name> in my profile. Any hints ? Hajo Note The docu form https://www.suse.com/documentation/sles11/singlehtml/book_autoyast/book_auto... is not very helpful. -- Hans-Joachim Ehlers UNIX Systems Engineer MetaModul GmbH on behalf of EUMETSAT Tel : +49 6151 807-7307 http://www.eumetsat.int N�����r��y隊Z)z{.�殶���֥�맲��r��z�^�ˬz��N�(�֜��^� ޭ隊Z)z{.�殶���֥��0�����Ǩ�
To answer my own question: The problem was: The MAC address MUST BE in lower case where i configured it with UPPER CASE. <net-udev config:type="list"> <rule> <name>eth0</name> <rule>ATTR{address}</rule> --> FALSE <value>34:40:B5:C8:E2:42</value> --> CORRECT <value>34:40:b5:c8:e2:42</value> </rule> </net-udev>
participants (1)
-
Hans-Joachim Ehlers