-Allow mkvm to proceed without guests having to be allocated to hypervisors for KVM
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4104 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -905,6 +905,10 @@ sub process_request { | ||||
|       } elsif ($command eq "rmigrate") { | ||||
|           $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; | ||||
|           } | ||||
|       } else { | ||||
|           $callback->({error=>"Can't find ".join(",",keys %orphans),errorcode=>[1]}); | ||||
|           return; | ||||
| @@ -1116,7 +1120,11 @@ sub dohyp { | ||||
|  | ||||
|  | ||||
|   eval { #Contain Sys::Virt bugs that make $@ useless | ||||
|     $hypconn= Sys::Virt->new(uri=>"qemu+ssh://root@".$hyp."/system?no_tty=1&netcat=nc"); | ||||
|     if ($hyp eq '!@!XCATDUMMYHYPERVISOR!@!') {  #Fake connection for commands that have a fake hypervisor key | ||||
|         $hypconn = 1; | ||||
|     } else {  | ||||
|         $hypconn= Sys::Virt->new(uri=>"qemu+ssh://root@".$hyp."/system?no_tty=1&netcat=nc"); | ||||
|     } | ||||
|   }; | ||||
|   unless ($hypconn) { | ||||
|     eval { #Contain Sys::Virt bugs that make $@ useless | ||||
|   | ||||
		Reference in New Issue
	
	Block a user