[Planetlab-devel] Re: problem #1 (with myplc 0.5-5)
Lee Breslau
breslau at research.att.com
Tue Jan 22 15:17:42 EST 2008
Stephen,
Thanks. That looks pretty clear. One question -- is login_base just
the slice prefix? So for our site on the public PlanetLab it is 'att'?
Lee
Stephen Soltesz wrote:
> Hello, Lee,
>
> I've forwarded this to the devel list for posterity. I'm sure others
> may have a similar question at some point in the future.
>
> I see two questions:
>
> 1) how to add a site (to add a user).
> 2) how to log into the machine (either as site_admin or a new user)
>
> Please let me know if I've missed something.
>
> 1)
> Unfortunately, it's not a current feature to add sites through the web
> interface. Instead, this is done manually through the API. If you've
> never done this before it may be a little weird, but it should be
> straight forward.
>
> Start python:
>
> $ python
> >>> from xmlrpclib import Server
> >>> XMLRPC_SERVER="https://boot.planet-lab.org/PLCAPI/"
> >>> plc = Server(XMLRPC_SERVER, verbose=False, allow_none=True)
> >>> auth = {'Username': '', 'AuthMethod': 'password', 'AuthString':
> ''}
>
> Where you add the string for Username with the email address of the
> administrative account for the system, and 'AuthString' with the clear
> text password. The default is root at localhost.localdomain, with
> password of 'root'.
>
> Therefore, the default auth structure would be:
>
> >>> auth = {'Username': 'root at localhost.localdomain', 'AuthMethod':
> 'password', 'AuthString': 'root'}
>
> Then you will invoke a call on the api, using this authorization.
>
> >>> plc.AddSite(auth, {'name': '',
> 'url': '',
> 'enabled': True ,
> 'max_slices': 10,
> 'login_base': '',
> 'is_public': True,
> 'abbreviated_name': ''})
>
> The number that's returned from the call is the site id for your new
> site.
>
> The 'is_public' attribute determines whether or not the site is
> visible on the 'Add Users' form. The default site has this set to
> false, and it gets reset at restart.
>
> 2)
> Each user account has an associated ssh public key. For a given site,
> only those users that are also Technical contacts have their ssh keys
> copied to the site_admin account. It sounds like you know the steps
> for loading an ssh key with an account, I would just try adding the
> Technical Contact role to the account you're trying to use with the
> site_admin login.
>
> Please let me know if these directions are helpful, and please let me
> know if you have any other questions.
>
> Thank you,
> Stephen.
>
>
More information about the Devel
mailing list