[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [OSSTEST PATCH 5/7] Nested: Do not attempt to look up nested host ownership in DB



Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
---
 Osstest/JobDB/Executive.pm |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/Osstest/JobDB/Executive.pm b/Osstest/JobDB/Executive.pm
index 6ba3d37..2572f5f 100644
--- a/Osstest/JobDB/Executive.pm
+++ b/Osstest/JobDB/Executive.pm
@@ -125,6 +125,14 @@ END
 
 sub host_check_allocated ($$) { #method
     my ($jd, $ho) = @_;
+
+    if ($ho->{Host}) {
+       # This is a nested guest; check allocation of the parent host.
+       # We don't attempt to set Shared, SharedMaybeOthers, etc.
+       # (since nested hosts aren't shared between jobs).
+       return $jd->host_check_allocated($ho->{Host});
+    }
+
     $ho->{Shared}= resource_check_allocated('host', $ho->{Name});
     $ho->{SharedMaybeOthers}=
         $ho->{Shared} &&
-- 
1.7.10.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.