defect 3138573: output the following error message when no profile or provmethod was set when running the updatenode -S. Error: No osimage specified for the following nodes: hv32s38p02. You can try to run the nimnodeset command or set the profile|provmethod attributes manually.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8474 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
821ba4eae2
commit
2a96709a23
@ -1369,6 +1369,7 @@ sub doAIXcopy
|
||||
my $images =
|
||||
$nodetab->getNodesAttribs(\@nodelist, ['node', 'provmethod', 'profile']);
|
||||
my @imagenames;
|
||||
my @noimage;
|
||||
foreach my $node (@nodelist)
|
||||
{
|
||||
my $imgname;
|
||||
@ -1380,7 +1381,10 @@ sub doAIXcopy
|
||||
{
|
||||
$imgname = $images->{$node}->[0]->{profile};
|
||||
}
|
||||
if (!grep(/^$imgname$/, @imagenames))
|
||||
|
||||
if(!$imgname) {
|
||||
push @noimage, $node;
|
||||
} elsif (!grep(/^$imgname$/, @imagenames))
|
||||
{
|
||||
push @imagenames, $imgname;
|
||||
}
|
||||
@ -1388,6 +1392,14 @@ sub doAIXcopy
|
||||
}
|
||||
$nodetab->close;
|
||||
|
||||
if (@noimage) {
|
||||
my $rsp;
|
||||
my $allnodes = join(',', @noimage);
|
||||
push @{$rsp->{data}}, "No osimage specified for the following nodes: $allnodes. You can try to run the nimnodeset command or set the profile|provmethod attributes manually.";
|
||||
xCAT::MsgUtils->message("E", $rsp, $callback);
|
||||
return 1;
|
||||
}
|
||||
|
||||
my $osimageonly = 0;
|
||||
if ((!$attrvals{installp_bundle} && !$attrvals{otherpkgs}) && !$::CMDLINE)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user