2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-18 12:20:40 +00:00

throw an error message if the specified --cpupin cpuset include invalid node exclude declaration

This commit is contained in:
immarvin
2015-10-27 02:38:33 -04:00
parent 850ab73b0c
commit 2ab63fc125

View File

@ -2038,7 +2038,13 @@ sub chvm {
my ($left,$right)=($1,$2);
@pcpumaparr[$left .. $right]=(1) x ($right-$left+1);
}elsif($rangeslice =~ /^\^(\d*)$/){
$pcpumaparr[$1]=0;
if($pcpumaparr[$1]==0){
xCAT::SvrUtils::sendmsg([1,"\'$rangeslice\' is ignored, please make sure the specified cpu set is correct"],$callback,$node);
return;
}else{
$pcpumaparr[$1]=0;
}
}elsif($rangeslice =~ /^(\d*)$/){
$pcpumaparr[$1]=1;
}