mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-21 02:30:21 +00:00
incorrect petitboot configuration for nodeset shell in flat #3548
This commit is contained in:
@@ -32,11 +32,11 @@ cmd:cat /tmp/genesistestlog/*
|
||||
end
|
||||
start:nodeset_shell_incorrectmasterip
|
||||
description:very if computenode need to do nodeset shell in different net with master will success
|
||||
cmd:/opt/xcat/share/xcat/tools/autotest/testcase/genesis/test.sh -cd xnba
|
||||
cmd:/opt/xcat/share/xcat/tools/autotest/testcase/genesis/test.sh -check xnba
|
||||
check:rc==0
|
||||
cmd:/opt/xcat/share/xcat/tools/autotest/testcase/genesis/test.sh -cd grub2
|
||||
cmd:/opt/xcat/share/xcat/tools/autotest/testcase/genesis/test.sh -check grub2
|
||||
check:rc==0
|
||||
cmd:/opt/xcat/share/xcat/tools/autotest/testcase/genesis/test.sh -cd petitboot
|
||||
cmd:/opt/xcat/share/xcat/tools/autotest/testcase/genesis/test.sh -check petitboot
|
||||
check:rc==0
|
||||
cmd:/opt/xcat/share/xcat/tools/autotest/testcase/genesis/test.sh -c
|
||||
check:rc==0
|
||||
|
@@ -6,7 +6,7 @@ masternet=`ifconfig | awk "BEGIN{RS=\"\"}/\<$masterip\>/{print \$1}"|head -n 1
|
||||
net2=`netstat -i -a|grep -v Kernel|grep -v Iface |grep -v lo|grep -v $masternet|head -n 1|awk '{print $1}'`;echo net2 is $net2;
|
||||
net2ip="";
|
||||
if [[ -z $net2 ]];then
|
||||
echo null
|
||||
echo "could not verify the test"
|
||||
return 1;
|
||||
else
|
||||
net2ipstring=`ifconfig $net2 |grep inet|grep -v inet6`;
|
||||
@@ -19,7 +19,6 @@ net2ip="";
|
||||
net2ip=0.0.0.0;
|
||||
fi
|
||||
ifconfig $net2 60.3.3.3 ;
|
||||
makenetworks;
|
||||
makehosts testnode;
|
||||
nodeset testnode shell;
|
||||
ifconfig $net2 "$net2ip";
|
||||
@@ -35,7 +34,6 @@ net2ip="";
|
||||
function clear_env(){
|
||||
makehosts -d testnode
|
||||
rmdef testnode
|
||||
rmdef -t network 60_0_0_0-255_0_0_0
|
||||
if [[ $? -eq 0 ]];then
|
||||
return 0;
|
||||
else
|
||||
@@ -47,7 +45,7 @@ SHELLFOLDER=""
|
||||
while [ "$#" -gt "0" ]
|
||||
do
|
||||
case $1 in
|
||||
"-cd"|"--check" )
|
||||
"-check"|"--check" )
|
||||
NETBOOT=$2;
|
||||
if [[ $NETBOOT =~ petitboot ]];then
|
||||
SHELLFOLDER="/tftpboot/petitboot/";
|
||||
|
Reference in New Issue
Block a user