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:
0c0e05d
)
refresh openstack credentials when creating a slice's network and router
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Mon, 29 Apr 2013 21:53:07 +0000
(17:53 -0400)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Mon, 29 Apr 2013 21:53:07 +0000
(17:53 -0400)
plstackapi/core/models/slice.py
patch
|
blob
|
history
diff --git
a/plstackapi/core/models/slice.py
b/plstackapi/core/models/slice.py
index
dc2fc63
..
5a5f165
100644
(file)
--- a/
plstackapi/core/models/slice.py
+++ b/
plstackapi/core/models/slice.py
@@
-34,6
+34,11
@@
class Slice(PlCoreBase):
# give caller an admin role at the tenant they've created
self.driver.add_user_role(self.caller.user_id, tenant.id, 'admin')
+ # refresh credentials using this tenant
+ self.driver.shell.connect(username=self.driver.shell.keystone.username,
+ password=self.driver.shell.keystone.password,
+ tenant=tenant.name)
+
# create network
network = self.driver.create_network(self.name)
self.network_id = network['id']