xcattest will replace vars in testcases.
But vars with same prefix will lead to a replacement failure.
Issue:
XCATTEST_PORT=500 XCATTEST_CN=xcat-com001 XCATTEST_PDU=xmount XCATTEST_PDUIP=192.168.200.100 xcattest -t mkdef_pdu_object
cmd:mkdef $$PDU groups=pdu ip=$$PDUIP mgt=pdu nodetype=pdu
will be:
RUN:mkdef xmount groups=pdu ip=xmountIP mgt=pdu nodetype=pdu
$$PDUIP had no chance to be substituted.
Reported-by: Yang Jian <fun_yang@foxmail.com>
Signed-off-by: Chen Hanxiao <chen_han_xiao@126.com>
we don't support show version of imgexport.
-v means verbose for imgexprot.
So delete this testcase.
Issue:
# imgexport -v
Exporting to /root...
Error: [fnst-c0]: Cannot find image '' from the osimage table.
Signed-off-by: Chen Hanxiao <chen_han_xiao@126.com>
Slaves should have no MTU set. This should be set globally on the bond interface.
Furthermore, RHEL 8.0 does not correctly set the given MTU as shown below.
This breaks any IB bonds with non-default (2044) MTU.
$ # IB slave with 4092 MTU
$ nmcli con add type Infiniband con-name slave-ib1-mtu mtu 4092 ifname ib1 master ibbond0 slave-type bond
$ # IB slave without MTU
$ nmcli con add type Infiniband con-name slave-ib1-wo-mtu ifname ib1 master ibbond0 slave-type bond
$ # should be 4092, but is 2044 instead
$ nmcli -f infiniband.mtu con show slave-ib1-mtu
infiniband.mtu: 2044
$ grep MTU /etc/sysconfig/network-scripts/ifcfg-slave-ib1-*
/etc/sysconfig/network-scripts/ifcfg-slave-ib1-mtu:MTU=2044
$ # is auto :)
$ nmcli -f infiniband.mtu con show slave-ib1-wo-mtu
infiniband.mtu: auto
Check for $_ipaddr instead of $next_nic.
The followint configuration is totally valid but fails with the old logic because it does not configure any bond0 IP because $next_nic is set to bond0.10.
nictypes.eno1=Ethernet
nictypes.eno2=Ethernet
nicdevices.bond0=eno1|eno2
nictypes.bond0=bond
nicnetworks.bond0=management
nicips.bond0=192.168.0.1
nicdevices.bond0.10=bond0
nictypes.bond0.10=vlan
nicnetworks.bond0.10=production
nicips.bond0.10=192.168.1.1
May needs some additional testing with bridges etc.
The global variables were not reset for bonds.
Therefore, the nic extra params from the first bond interface were used if the second one had no nic extra params.