mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-22 11:42:05 +00:00
modify nodeset_check_warning depending on the latest xcat code logic
This commit is contained in:
parent
d958b50d60
commit
62a46d75ed
@ -167,12 +167,13 @@ check:rc==0
|
||||
cmd:rmdef -t osimage -o "rhels7.5-ppc64el-install-compute"
|
||||
cmd:noderm testnode1
|
||||
end
|
||||
|
||||
start:nodeset_check_warninginfo
|
||||
cmd:mkdef -t node -o testnode1 arch=ppc64el cons=ipmi groups=pbmc mgt=ipmi ip=10.1.1.200 mac=e6:d4:d2:3a:ad:06 monserver=10.1.1.1 nameservers=10.1.1.1 nodetype=ppc,osi profile=compute tftpserver=10.1.1.1 xcatmaster=10.1.1.1 netboot=petitboot
|
||||
cmd:if [[ "__GETNODEATTR($$CN,arch)__" =~ "el" || "__GETNODEATTR($$CN,arch)__" =~ "le" ]]; then bootloader=xnba; else bootloader=petitboot; fi; mkdef -t node -o testnode1 arch=ppc64el cons=ipmi groups=pbmc mgt=ipmi ip=10.1.1.200 mac=e6:d4:d2:3a:ad:06 monserver=10.1.1.1 nameservers=10.1.1.1 nodetype=ppc,osi profile=compute tftpserver=10.1.1.1 xcatmaster=10.1.1.1 netboot=$bootloader
|
||||
check:rc==0
|
||||
cmd:lsdef testnode1
|
||||
cmd:nodeset testnode1 osimage=__GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-install-compute
|
||||
check:rc==0
|
||||
check:output=~Warning: testnode1: petitboot might be invalid|testnode1 could not be resolved
|
||||
check:output=~Warning: testnode1:.+might be invalid
|
||||
cmd:noderm testnode1
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user