changed setting from nonodestatus to nodestatus :-)
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2972 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
0cfb917de2
commit
7850b36aa2
@ -532,7 +532,7 @@ site => {
|
||||
" master:\tThe hostname of the xCAT management node.\n\n".
|
||||
" maxssh:\tThe max # of SSH connections for hw ctrl purposes to PPC hw.\n\n".
|
||||
" nameservers:\tA comma delimited list of DNS servers for the cluster - often the xCAT management node.\n\n".
|
||||
" nonodestatus:\tIf set to 1, the nodelist.status column will not be updated during the node deployment, node discovery and power operation.\n\n".
|
||||
" nodestatus:\tIf set to 0, the nodelist.status column will not be updated during the node deployment, node discovery and power operation.\n\n".
|
||||
" ntpservers:\tA comma delimited list of NTP servers for the cluster - often the xCAT management node.\n\n".
|
||||
" ppcmaxp:\tThe max # of processes for PPC hw ctrl.\n\n".
|
||||
" ppcretry:\tThw max # of PPC hw connection attempts before failing.\n\n".
|
||||
|
@ -129,9 +129,9 @@ sub process_command {
|
||||
my $newstat;
|
||||
my $global_check=1;
|
||||
if ($sitetab) {
|
||||
(my $ref) = $sitetab->getAttribs({key => 'nonodestatus'}, 'value');
|
||||
(my $ref) = $sitetab->getAttribs({key => 'nodestatus'}, 'value');
|
||||
if ($ref and $ref->{value}) {
|
||||
if ($ref->{value} =~ /1|y|Y/) { $global_check=0; }
|
||||
if ($ref->{value} =~ /0|n|N/) { $global_check=0; }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2829,9 +2829,9 @@ sub dompa {
|
||||
my $global_check=1;
|
||||
my $sitetab = xCAT::Table->new('site');
|
||||
if ($sitetab) {
|
||||
(my $ref) = $sitetab->getAttribs({key => 'nonodestatus'}, 'value');
|
||||
(my $ref) = $sitetab->getAttribs({key => 'nodestatus'}, 'value');
|
||||
if ($ref and $ref->{value}) {
|
||||
if ($ref->{value} =~ /1|y|Y/) { $global_check=0; }
|
||||
if ($ref->{value} =~ /0|N|n/) { $global_check=0; }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -28,9 +28,9 @@ my $tftpdir="/tftpboot";
|
||||
my $nonodestatus=0;
|
||||
my $sitetab = xCAT::Table->new('site');
|
||||
if ($sitetab) {
|
||||
(my $ref1) = $sitetab->getAttribs({key => 'nonodestatus'}, 'value');
|
||||
(my $ref1) = $sitetab->getAttribs({key => 'nodestatus'}, 'value');
|
||||
if ($ref1 and $ref1->{value}) {
|
||||
if ($ref1->{value} =~ /1|y|Y/) { $nonodestatus=1; }
|
||||
if ($ref1->{value} =~ /0|n|N/) { $nonodestatus=1; }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5882,9 +5882,9 @@ sub process_request {
|
||||
my $newstat;
|
||||
my $global_check=1;
|
||||
if ($sitetab) {
|
||||
(my $ref) = $sitetab->getAttribs({key => 'nonodestatus'}, 'value');
|
||||
(my $ref) = $sitetab->getAttribs({key => 'nodestatus'}, 'value');
|
||||
if ($ref and $ref->{value}) {
|
||||
if ($ref->{value} =~ /1|y|Y/) { $global_check=0; }
|
||||
if ($ref->{value} =~ /0|n|N/) { $global_check=0; }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -896,9 +896,9 @@ sub process_request {
|
||||
my $newstat;
|
||||
my $global_check=1;
|
||||
if ($sitetab) {
|
||||
(my $ref) = $sitetab->getAttribs({key => 'nonodestatus'}, 'value');
|
||||
(my $ref) = $sitetab->getAttribs({key => 'nodestatus'}, 'value');
|
||||
if ($ref and $ref->{value}) {
|
||||
if ($ref->{value} =~ /1|y|Y/) { $global_check=0; }
|
||||
if ($ref->{value} =~ /0|n|N/) { $global_check=0; }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -757,9 +757,9 @@ sub process_request {
|
||||
my $global_check=1;
|
||||
my $sitetab = xCAT::Table->new('site');
|
||||
if ($sitetab) {
|
||||
(my $ref) = $sitetab->getAttribs({key => 'nonodestatus'}, 'value');
|
||||
(my $ref) = $sitetab->getAttribs({key => 'nodestatus'}, 'value');
|
||||
if ($ref and $ref->{value}) {
|
||||
if ($ref->{value} =~ /1|y|Y/) { $global_check=0; }
|
||||
if ($ref->{value} =~ /0|n|N/) { $global_check=0; }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -142,8 +142,8 @@ if (-f $scriptname)
|
||||
if (@ARGV<1) {
|
||||
my $update=1;
|
||||
if (-f $scriptname) {
|
||||
my $CNS=`grep NONODESTATUS= $scriptname`;
|
||||
if ((!$?) && ($CNS =~ /\'1\'|\'Y\'|\'y\'/)) { $update=0;} #only update is nonodestatus is not set in the site table
|
||||
my $CNS=`grep NODESTATUS= $scriptname`;
|
||||
if ((!$?) && ($CNS =~ /\'0\'|\'N\'|\'n\'/)) { $update=0;} #only update is nonodestatus is not set in the site table
|
||||
}
|
||||
if ($update) {
|
||||
if (&updateflag($nodesetstat) != 0) {
|
||||
|
@ -94,8 +94,8 @@ fi
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
#notify the server that we are done with netbooting
|
||||
CNS=`grep NONODESTATUS= /tmp/mypostscript |awk -F = '{print $2}'`
|
||||
if [ -z "$CNS" ] || [ $CNS != "'1'" -a $CNS != "'Y'" -a $CNS != "'y'" ]; then
|
||||
CNS=`grep NODESTATUS= /tmp/mypostscript |awk -F = '{print $2}'`
|
||||
if [ -z "$CNS" ] || [ $CNS != "'0'" -a $CNS != "'N'" -a $CNS != "'n'" ]; then
|
||||
echo "updateflag.awk \$MASTER 3002 \"installstatus booted\"" >> /tmp/mypostscript
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user