update credentials to use name of slice/tenant of sliver
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Mon, 29 Apr 2013 23:42:20 +0000 (19:42 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Mon, 29 Apr 2013 23:42:20 +0000 (19:42 -0400)
plstackapi/openstack/sliveragent.py

index 322cdfd..732a5f1 100644 (file)
@@ -12,6 +12,10 @@ class SliverAgent:
             # fill in null ip addresses 
             slivers = Sliver.objects.filter(ip=None)
             for sliver in slivers:
+                # update connection
+                client.connect(username=client.keystone.username,
+                               password=client.keystone.password,
+                               tenant=sliver.slice.name)  
                 servers = client.nova.servers.findall(id=sliver.instance_id)
                 if not servers:
                     continue