[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-API] Xen Management API draft
On Mon, Jun 26, 2006 at 06:36:22PM +0100, Daniel P. Berrange wrote: > > > VM needs a migrate method: > > > > > > Bool migrate(session id s, vm ref vm, host ref current, host ref > > > destination, Bool test) > > > > D'oh! We probably want a migrate command in there ;-) > > How would authentication operate - the destination host must have some > kind of authentication process before accepting migration of a VM from > another host. So would this API assume that authentication credentials > have been previoously set up behind the scenes ? If not then the migrate > API would need some way to request / receive authenitcation credentials. How about this? /** * @returns authToken */ String vm_migrate_authorise(String session, String uuid) void vm_migrate(String session, String uuid, String destination, String authToken) So you log in to the destination and source as normal, and then issue a "migrate_authorise" to the destination, receive a token which the destination has generated randomly, give that to the source, and then the source passes that authToken to the destination as part of the handshake on the migration channel (the connection that the actual memory contents go down). Does that sound OK? This restricts the authentication exchange to the login messages (however we want to do that) and then relies upon session tokens from then on. Ewan. _______________________________________________ xen-api mailing list xen-api@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |