-Provide better error message when nodetype.os is not set for nodeset install
-Correct nodetype failure description when nodetype.arch is not set git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1478 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
6210e77baa
commit
012d3cedc8
@ -363,11 +363,21 @@ sub mkinstall
|
||||
{
|
||||
my $osinst;
|
||||
my $ent = $ostab->getNodeAttribs($node, ['profile', 'os', 'arch']);
|
||||
my @missingparms;
|
||||
unless ($ent->{os}) {
|
||||
push @missingparms,"nodetype.os";
|
||||
}
|
||||
unless ($ent->{arch}) {
|
||||
push @missingparms,"nodetype.arch";
|
||||
}
|
||||
unless ($ent->{profile}) {
|
||||
push @missingparms,"nodetype.profile";
|
||||
}
|
||||
unless ($ent->{os} and $ent->{arch} and $ent->{profile})
|
||||
{
|
||||
$callback->(
|
||||
{
|
||||
error => ["No profile defined in nodetype for $node"],
|
||||
error => ["Missing ".join(',',@missingparms)." for $node"],
|
||||
errorcode => [1]
|
||||
}
|
||||
);
|
||||
|
@ -667,7 +667,9 @@ sub plugin_command {
|
||||
if ($sock) {
|
||||
print $sock XMLout({node=>[{name=>[$_],data=>["Unable to identify plugin for this command, check relevant tables: $queuelist"],errorcode=>[1]}]},NoAttr=>1,RootName=>'xcatresponse');
|
||||
} else {
|
||||
$callback->({node=>[{name=>[$_],data=>['Unable to identify plugin for this command, check relevant tables'],errorcode=>[1]}]});
|
||||
my $tabdesc = $queuelist;
|
||||
$tabdesc =~ s/=.*$//;
|
||||
$callback->({node=>[{name=>[$_],data=>['Unable to identify plugin for this command, check relevant tables: '.$tabdesc],errorcode=>[1]}]});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user