> You will also need to modify your context.py file to use a different
> framework, and will need to make sure to make a call to create the slice
> (from your main script) before adding nodes to it. We're testing this
> out to make sure that geni-lib supports this properly for CloudLab.
>
Hi, sorry for asking too much.
What framework should I use? Could you give me a little example plus creating the slice part?
I’ve modified my context.py to use the new credentials (keys & urn), but when I tried this:
r = context.cf.createslice(context,'THMNODES')
17:52:06 ERROR : Error from server creating slice. Code 2: [AUTHORIZATION] AUTHORIZATION_ERROR (Client urn:publicid:IDN+
emulab.net+user+sutrisna is not authorized to make API calls.)
17:52:06 ERROR : Create Slice Failed for slice name THMNODES.
I’ve also tried to change ‘portal’ to ‘pg':
framework = FrameworkRegistry.get("portal")() to framework = FrameworkRegistry.get("pg")()
This resulted to an exception:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/geni_lib-1.0-py2.7.egg/geni/aggregate/frameworks.py", line 62, in createslice
args = ["--warn", "--AggNickCacheName", context.nickCache, "-c", context.cfg_path, "-f",
self.name, "--usercredfile", context.usercred_path, "createslice"]
File "/usr/local/lib/python2.7/dist-packages/geni_lib-1.0-py2.7.egg/geni/aggregate/context.py", line 158, in cfg_path
l.extend(self.cf.getConfig())
AttributeError: 'ProtoGENI' object has no attribute ‘getConfig'
I’ve also updated my geni-lib installation.
Thank you,
Asep