-Have mkvm force adoption before trying to run due to new storage architecture allowed
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6796 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
d30317d4ed
commit
9f4125089d
@ -1318,10 +1318,16 @@ sub process_request {
|
||||
$callback->({error=>"Can't find ".join(",",keys %orphans),errorcode=>[1]});
|
||||
return;
|
||||
}
|
||||
} elsif ($command eq "mkvm") { #mkvm can happen devoid of any hypervisor, make a fake hypervisor entry to allow this to occur
|
||||
foreach (keys %orphans) {
|
||||
$hyphash{'!@!XCATDUMMYHYPERVISOR!@!'}->{nodes}->{$_}=1;
|
||||
}
|
||||
} elsif ($command eq "mkvm") { #must adopt to create
|
||||
unless (adopt(\%orphans,\%hyphash)) {
|
||||
$callback->({error=>"Can't find ".join(",",keys %orphans),errorcode=>[1]});
|
||||
return 1;
|
||||
}
|
||||
#mkvm used to be able to happen devoid of any hypervisor, make a fake hypervisor entry to allow this to occur
|
||||
#commenting that out for now
|
||||
# foreach (keys %orphans) {
|
||||
# $hyphash{'!@!XCATDUMMYHYPERVISOR!@!'}->{nodes}->{$_}=1;
|
||||
# }
|
||||
} else {
|
||||
$callback->({error=>"Can't find ".join(",",keys %orphans),errorcode=>[1]});
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user