mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-28 06:23:26 +00:00
modify the way to check the sync file
This commit is contained in:
parent
993ee53278
commit
4100a8085c
@ -92,8 +92,11 @@ cmd:xdsh $$CN mount
|
||||
check:rc==0
|
||||
check:output=~/nodedata/$$CN on /.statelite/persistent
|
||||
check:output=~compute/rootimg on / type nfs
|
||||
cmd:MNIP=`cat /etc/hosts|grep $$MN|awk '{print $1}'`; result=`xdsh $$CN "cat /etc/resolv.conf|grep $MNIP"`; if [ "$result" = "$$CN: nameserver $MNIP" ]; then echo "sync file works well"; fi;
|
||||
check:output=~sync file works well
|
||||
cmd:scp $$CN:/etc/resolv.conf /tmp/resolv.conf
|
||||
check:rc==0
|
||||
cmd:diff /etc/resolv.conf /tmp/resolv.conf
|
||||
check:rc==0
|
||||
cmd:rm -f /tmp/resolv.conf
|
||||
|
||||
cmd:rootimgdir=`lsdef -t osimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute|grep rootimgdir|awk -F'=' '{print $2}'`; if [ -d $rootimgdir ]; then rm -rf $rootimgdir;fi
|
||||
check:rc==0
|
||||
|
@ -94,8 +94,11 @@ cmd:xdsh $$CN mount
|
||||
check:rc==0
|
||||
check:output=~/nodedata/$$CN on /.statelite/persistent
|
||||
check:output=~rootfs on / type
|
||||
cmd:MNIP=`cat /etc/hosts|grep $$MN|awk '{print $1}'`; result=`xdsh $$CN "cat /etc/resolv.conf|grep $MNIP"`; if [ "$result" = "$$CN: nameserver $MNIP" ]; then echo "sync file works well"; fi;
|
||||
check:output=~sync file works well
|
||||
cmd:scp $$CN:/etc/resolv.conf /tmp/resolv.conf
|
||||
check:rc==0
|
||||
cmd:diff /etc/resolv.conf /tmp/resolv.conf
|
||||
check:rc==0
|
||||
cmd:rm -f /tmp/resolv.conf
|
||||
|
||||
cmd:rootimgdir=`lsdef -t osimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute|grep rootimgdir|awk -F'=' '{print $2}'`; if [ -d $rootimgdir.regbak ]; then rm -rf $rootimgdir; mv $rootimgdir.regbak $rootimgdir; fi
|
||||
check:rc==0
|
||||
|
Loading…
x
Reference in New Issue
Block a user