git://git.onelab.eu
/
plstackapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0dc2f56
)
update credentials to use name of slice/tenant of sliver
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Mon, 29 Apr 2013 23:42:20 +0000
(19:42 -0400)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Mon, 29 Apr 2013 23:42:20 +0000
(19:42 -0400)
plstackapi/openstack/sliveragent.py
patch
|
blob
|
history
diff --git
a/plstackapi/openstack/sliveragent.py
b/plstackapi/openstack/sliveragent.py
index
322cdfd
..
732a5f1
100644
(file)
--- a/
plstackapi/openstack/sliveragent.py
+++ b/
plstackapi/openstack/sliveragent.py
@@
-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