fix 2 bug in lsslp: 1. lsslp will run into error when there is no node in nodelist table. 2. lsslp cannot write FSP/BPA into xCAT DB
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2467 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
0f4c23e96b
commit
1daf36607e
@ -1427,7 +1427,7 @@ sub xCATdB {
|
||||
my $server = "";
|
||||
|
||||
my $values = join( ",",
|
||||
$type,$name,$cageid,$model,$serial,$server,$prof,$frame,$ips );
|
||||
lc($type),$name,$cageid,$model,$serial,$server,$prof,$frame,$ips );
|
||||
xCAT::PPCdb::add_ppc( "fsp", [$values] );
|
||||
}
|
||||
elsif ( $type =~ /^(RSA|MM)$/ ) {
|
||||
@ -1903,11 +1903,14 @@ sub preprocess_request {
|
||||
# find all the service nodes for xCAT cluster
|
||||
# build an individual request for each service node
|
||||
###########################################
|
||||
my $nrtab=xCAT::Table->new("noderes", -create =>0);
|
||||
my @all=$nrtab->getAllNodeAttribs(['servicenode']);
|
||||
my $nrtab=xCAT::Table->new("noderes", -create =>0);
|
||||
my %sv_hash=();
|
||||
foreach (@all) {
|
||||
if ($_->{servicenode}) {$sv_hash{$_->{servicenode}}=1;}
|
||||
if ( $nrtab)
|
||||
{
|
||||
my @all=$nrtab->getAllNodeAttribs(['servicenode']);
|
||||
foreach (@all) {
|
||||
if ($_->{servicenode}) {$sv_hash{$_->{servicenode}}=1;}
|
||||
}
|
||||
}
|
||||
###########################################
|
||||
# build each request for each service node
|
||||
|
Loading…
Reference in New Issue
Block a user