I'm still not having a lot of joy on this.
I'm at the point where i think i'm needing to specify the bus
addresses of interfaces to get the config to stick, but i'd like to
make this as generic as possible. (part of why i want to use
'autoyast' is my expectation that a lot of the hard-work in
autoconfig will be done for me ;))
So, i'm currently using rules to specify hardware type match to pull
in the right "modules" and <device> matches for specific hardware
types. e.g.
-------------------------------------------------------------------
[cf/rules/rules.xml]
...
<!-- Network Card Configuration for R710s -->
<rule>
<product>
<match>PowerEdge R710</match>
exact
</product>
<result>
<profile>ZORK-Dell11G.xml</profile> <!-- Dell 11th Gen systems -->
<continue config:type="boolean">true</continue>
</result>
</rule>
..Rule for node type via 'custom' rule follows this
-------------------------------------------------------------------
[ZORK-Dell11G]
(i specify network, broadcast,netmask here because all systems
have this in common)
<interfaces config:type="list">
<interface>
<name>Broadcom NetXtreme II BCM5709 Gigabit Ethernet</name>
<prefixlen>24</prefixlen>
<bootproto>static</bootproto>
<device>eth0</device>
<name>Internal Data Network</name>
<network>192.168.50.0</network>
<broadcast>192.168.50.255</broadcast>
<netmask>255.255.255.0</netmask>
<startmode>auto</startmode>
<usercontrol>no</usercontrol>
</interface>
<interface>
<name>Broadcom NetXtreme II BCM5709 Gigabit Ethernet</name>
<prefixlen>24</prefixlen>
<bootproto>static</bootproto>
<device>eth1</device>
<name>Heartbeat and DRBD network</name>
<network>192.168.55.0</network>
<broadcast>192.168.55.255</broadcast>
<netmask>255.255.255.0</netmask>
<startmode>auto</startmode>
<usercontrol>no</usercontrol>
</interface>
</interfaces>
<managed config:type="boolean">false</managed>
<modules config:type="list">
<device>bus-pci-0000:01:00.0</device>
<module>bnx2</module>
<options></options>
<device>bus-pci-0000:01:00.1</device>
<module>bnx2</module>
<options></options>
</modules>
-------------------------------------------------------------------
[ZORKnode-in1]
<interfaces config:type="list">
<interface>
<bootproto>static</bootproto>
<device>eth0</device>
<name>Internal Data Network</name>
<ipaddr>192.168.50.31</ipaddr>
<network>192.168.50.0</network>
<broadcast>192.168.50.255</broadcast>
<netmask>255.255.255.0</netmask>
<prefixlen>24</prefixlen>
<startmode>auto</startmode>
<usercontrol>no</usercontrol>
</interface>
<interface>
<bootproto>static</bootproto>
<device>eth1</device>
<name>Heartbeat and DRBD network</name>
<ipaddr>192.168.55.1</ipaddr>
<network>192.168.55.0</network>
<broadcast>192.168.55.255</broadcast>
<netmask>255.255.255.0</netmask>
<prefixlen>24</prefixlen>
<startmode>auto</startmode>
<usercontrol>no</usercontrol>
</interface>
</interfaces>
<managed config:type="boolean">false</managed>
-------------------------------------------------------------------
The end result of this after the profile merging is
that i get /etc/sysconfig/network/ifcfg-eth-id-{MAC-ADDR} files,
but they contain no IP info (i.e. something like:
BOOTPROTO='static'
BROADCAST=''
ETHTOOL_OPTIONS=''
IPADDR=''
MTU=''
NAME='Internal Data Network'
NETWORK=''
REMOTE_IPADDR=''
STARTMODE='auto'
UNIQUE='rBUF.bBSepP2NetB'
USERCONTROL='no'
_nm_name='bus-pci-0000:01:00.0'
(i thought i saved one, so this is an approximation. several items
retained the values i had set for them, and other auto-generated
values such as UNIQUE and _nm_name were set as expected.)
So, any clues on what i'm doing wrong here?
(gack, i do just notice now that i have <name> specified
in the <interface> blocks in the 11G.xml file twice, but
the resultant ifcfg-eth file shows the NAME i specified last.
I'll remove the duplicate <name> entities and the network,
broadast, netmask, prefixlen (are both of those needed?)
from the 11G general profile and try again, but i do
want to make sure that this type of network interface+module
profile stacking (merge) is supported.
thanks,
--stephen
--
Stephen Dowdy - Systems Administrator - NCAR/RAL
303.497.2869 - sdowdy@ucar.edu - http://www.ral.ucar.edu/~sdowdy/
--
To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org