From: Tony Mack Date: Wed, 17 Jun 2009 17:40:23 +0000 (+0000) Subject: fix bug in create_slice_aggregate(), compare list of nodes in rspec against list... X-Git-Tag: sfa-0.9-0@14641~250 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=43cea8a7d96e2086cb209e5d61e5df45de24c90f;p=sfa.git fix bug in create_slice_aggregate(), compare list of nodes in rspec against list of node in plc db --- diff --git a/geni/util/slices.py b/geni/util/slices.py index 595bc281..55bac54a 100644 --- a/geni/util/slices.py +++ b/geni/util/slices.py @@ -162,7 +162,10 @@ class Slices(SimpleStorage): if key in slice and slice[key]: slice_fields[key] = slice[key] self.api.plshell.AddSlice(self.api.plauth, slice_fields) - + slice = slice_fields + slice['node_ids'] = 0 + else: + slice = slices[0] # get the list of valid slice users from the registry and make # they are added to the slice researchers = slice.get('researcher', []) @@ -200,6 +203,8 @@ class Slices(SimpleStorage): nodelist = self.api.plshell.GetNodes(self.api.plauth, slice['node_ids'], ['hostname']) hostnames = [node['hostname'] for node in nodelist] + print "XX node_ids", slice['node_ids'] + print "XX hostnames", hostnames # get netspec details nodespecs = spec.getDictsByTagName('NodeSpec') nodes = []