2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-16 00:00:23 +00:00

add cases for checking netboot paramter

This commit is contained in:
litingt
2015-06-17 23:17:03 -04:00
parent 59985611f4
commit 79708a7b86

View File

@@ -10,3 +10,158 @@ cmd:nodeset $$CN test
check:rc!=0
check:output=~Error
end
start:nodeset_check_yaboot_no
os:rhels
cmd:mkdef -t node -o testnode1 arch=ppc64 cons=hmc groups=lpar hcp=hmc1 hwtype=lpar id=1 ip=10.1.1.200 mac=e6:d4:d2:3a:ad:06 mgt=hmc monserver=10.1.1.1 nameservers=10.1.1.1 nodetype=ppc,osi parent=fsp1 pprofile=testnode1 profile=compute tftpserver=10.1.1.1 xcatmaster=10.1.1.1
check:rc==0
cmd:chdef testnode1 os=rhels7.5 netboot=yaboot
eck:rc==0
cmd: mkdef "rhels7.5-ppc64-install-compute" -u profile=compute provmethod=install osvers=rhels7.5
check:rc==0
cmd:nodeset testnode1 osimage="rhels7.5-ppc64-install-compute"
check:rc!=0
check:output=~testnode1:yaboot is not valid when provisioning
check:output=~valid options: "grub2,grub2-tftp,grub2-http"
cmd:rmdef -t osimage -o "rhels7.5-ppc64-install-compute"
cmd:noderm testnode1
end
start:nodeset_check_yaboot_yes
os:rhels
cmd:mkdef -t node -o testnode1 arch=ppc64 cons=hmc groups=lpar hcp=hmc1 hwtype=lpar id=1 ip=10.1.1.200 mac=e6:d4:d2:3a:ad:06 mgt=hmc monserver=10.1.1.1 nameservers=10.1.1.1 nodetype=ppc,osi parent=fsp1 pprofile=testnode1 profile=compute tftpserver=10.1.1.1 xcatmaster=10.1.1.1
check:rc==0
cmd:chdef testnode1 os=rhels5.5 netboot=yaboot
eck:rc==0
cmd: mkdef "rhels5.5-ppc64-install-compute" -u profile=compute provmethod=install osvers=rhels5.5
check:rc==0
cmd:nodeset testnode1 osimage="rhels5.5-ppc64-install-compute"
check:rc!=0
check:output=~Install image not found in /install/rhels5.5/ppc64
cmd:rmdef -t osimage -o "rhels5.5-ppc64-install-compute"
cmd:noderm testnode1
end
start:nodeset_check_grub2_yes
os:rhels
cmd:mkdef -t node -o testnode1 arch=ppc64 cons=hmc groups=lpar hcp=hmc1 hwtype=lpar id=1 ip=10.1.1.200 mac=e6:d4:d2:3a:ad:06 mgt=hmc monserver=10.1.1.1 nameservers=10.1.1.1 nodetype=ppc,osi parent=fsp1 pprofile=testnode1 profile=compute tftpserver=10.1.1.1 xcatmaster=10.1.1.1
check:rc==0
cmd:chdef testnode1 os=rhels7.5 netboot=grub2
eck:rc==0
cmd: mkdef "rhels7.5-ppc64-install-compute" -u profile=compute provmethod=install osvers=rhels7.5
check:rc==0
cmd:nodeset testnode1 osimage="rhels7.5-ppc64-install-compute"
check:output=~Install image not found in /install/rhels7.5/ppc64
cmd:rmdef -t osimage -o "rhels7.5-ppc64-install-compute"
cmd:noderm testnode1
check:rc==0
end
start:nodeset_check_grub2_no
os:rhels
cmd:mkdef -t node -o testnode1 arch=ppc64 cons=hmc groups=lpar hcp=hmc1 hwtype=lpar id=1 ip=10.1.1.200 mac=e6:d4:d2:3a:ad:06 mgt=hmc monserver=10.1.1.1 nameservers=10.1.1.1 nodetype=ppc,osi parent=fsp1 pprofile=testnode1 profile=compute tftpserver=10.1.1.1 xcatmaster=10.1.1.1
check:rc==0
cmd:chdef testnode1 os=rhels6.8 netboot=grub2
eck:rc==0
cmd: mkdef "rhels6.8-ppc64-install-compute" -u profile=compute provmethod=install osvers=rhels6.8
check:rc==0
cmd:nodeset testnode1 osimage="rhels6.8-ppc64-install-compute"
check:rc!=0
check:output=~testnode1:grub2 is not valid when provisioning rhels6.8-ppc64-install-compute
check:output=~valid options: "yaboot"
cmd:rmdef -t osimage -o "rhels6.8-ppc64-install-compute"
cmd:noderm testnode1
end
start:nodeset_check_grub2_ubuntu
os:ubuntu
cmd:mkdef -t node -o testnode1 arch=x86_64 cons=kvm groups=kvm ip=10.1.1.200 mac=e6:d4:d2:3a:ad:06 mgt=kvm monserver=10.1.1.1 nameservers=10.1.1.1 profile=compute tftpserver=10.1.1.1 xcatmaster=10.1.1.1
check:rc==0
cmd:chdef testnode1 os=ubuntu14.04.5 netboot=grub2
eck:rc==0
cmd: mkdef "ubuntu14.04.5-x86_64-install-compute" -u profile=compute provmethod=install osvers=ubuntu14.04.5
check:rc==0
cmd:nodeset testnode1 osimage="ubuntu14.04.5-x86_64-install-compute"
check:rc!=0
check:output=~grub2 is not valid when provisioning ubuntu14.04.5-x86_64-install-compute
check:output=~valid options: "xnba,pxe"
cmd:rmdef -t osimage -o "ubuntu14.04.5-x86_64-install-compute"
cmd:noderm testnode1
end
start:nodeset_check_grub2_sles11
os:sles
cmd:mkdef -t node -o testnode1 arch=ppc64 cons=hmc groups=lpar hcp=hmc1 hwtype=lpar id=1 ip=10.1.1.200 mac=e6:d4:d2:3a:ad:06 mgt=hmc monserver=10.1.1.1 nameservers=10.1.1.1 nodetype=ppc,osi parent=fsp1 pprofile=testnode1 profile=compute tftpserver=10.1.1.1 xcatmaster=10.1.1.1
check:rc==0
cmd:chdef testnode1 os=sles11.9 netboot=grub2
eck:rc==0
cmd: mkdef "sles11.9-ppc64-install-compute" -u profile=compute provmethod=install osvers=sles11.9
check:rc==0
cmd:nodeset testnode1 osimage="sles11.9-ppc64-install-compute"
check:rc!=0
check:output=~grub2 is not valid when provisioning sles11.9-ppc64-install-compute
check:output=~valid options: "yaboot"
cmd:rmdef -t osimage -o "sles11.9-ppc64-install-compute"
cmd:noderm testnode1
end
start:nodeset_check_yaboot_sles11
os:sles
cmd:mkdef -t node -o testnode1 arch=ppc64 cons=hmc groups=lpar hcp=hmc1 hwtype=lpar id=1 ip=10.1.1.200 mac=e6:d4:d2:3a:ad:06 mgt=hmc monserver=10.1.1.1 nameservers=10.1.1.1 nodetype=ppc,osi parent=fsp1 pprofile=testnode1 profile=compute tftpserver=10.1.1.1 xcatmaster=10.1.1.1
check:rc==0
cmd:chdef testnode1 os=sles11.9 netboot=yaboot
eck:rc==0
cmd: mkdef "sles11.9-ppc64-install-compute" -u profile=compute provmethod=install osvers=sles11.9
check:rc==0
cmd:nodeset testnode1 osimage="sles11.9-ppc64-install-compute"
check:output=~Failed to detect copycd configured install source at /install/sles11.9/ppc64
cmd:rmdef -t osimage -o "sles11.9-ppc64-install-compute"
cmd:noderm testnode1
end
start:nodeset_check_grub2_sles12
os:sles
cmd:mkdef -t node -o testnode1 arch=ppc64el cons=kvm groups=kvm ip=10.1.1.200 mac=e6:d4:d2:3a:ad:06 mgt=kvm monserver=10.1.1.1 nameservers=10.1.1.1 1 profile=compute tftpserver=10.1.1.1 xcatmaster=10.1.1.1
check:rc==0
cmd:chdef testnode1 os=sles12 netboot=grub2
eck:rc==0
cmd: mkdef "sles12-ppc64el-install-compute" -u profile=compute provmethod=install osvers=sles12
check:rc==0
cmd:nodeset testnode1 osimage="sles12-ppc64el-install-compute"
check:rc!=0
check:output=~Failed to detect copycd configured install source at /install/sles12
cmd:rmdef -t osimage -o "sles12-ppc64el-install-compute"
cmd:noderm testnode1
end
start:nodeset_check_yaboot_sles12
os:sles
cmd:mkdef -t node -o testnode1 arch=ppc64el cons=kvm groups=kvm ip=10.1.1.200 mac=e6:d4:d2:3a:ad:06 mgt=kvm monserver=10.1.1.1 nameservers=10.1.1.1 1 profile=compute tftpserver=10.1.1.1 xcatmaster=10.1.1.1
check:rc==0
cmd:chdef testnode1 os=sles12 netboot=yaboot
eck:rc==0
cmd: mkdef "sles12-ppc64el-install-compute" -u profile=compute provmethod=install osvers=sles12
check:rc==0
cmd:nodeset testnode1 osimage="sles12-ppc64el-install-compute"
check:rc!=0
check:output=~yaboot is not valid when provisioning sles12-ppc64el-install-compute
cmd:rmdef -t osimage -o "sles12-ppc64el-install-compute"
cmd:noderm testnode1
end
start:nodeset_check_petitboot
os:rhels
cmd:mkdef -t node -o testnode1 arch=ppc64 cons=hmc groups=lpar hcp=hmc1 hwtype=lpar id=1 ip=10.1.1.200 mac=e6:d4:d2:3a:ad:06 mgt=hmc monserver=10.1.1.1 nameservers=10.1.1.1 nodetype=ppc,osi parent=fsp1 pprofile=testnode1 profile=compute tftpserver=10.1.1.1 xcatmaster=10.1.1.1
check:rc==0
cmd:chdef testnode1 os=rhels7.5 netboot=petitboot
eck:rc==0
cmd: mkdef "rhels7.5-ppc64-install-compute" -u profile=compute provmethod=install osvers=rhels7.5
check:rc==0
cmd:nodeset testnode1 osimage="rhels7.5-ppc64-install-compute"
check:rc==0
cmd:rmdef -t osimage -o "rhels7.5-ppc64-install-compute"
cmd:noderm testnode1
end