[Openstack] Cross-zone instance identifiers in EC2 API - Is it worth the effort?
Brian Schott
brian.schott at nimbisservices.com
Mon Jul 11 18:30:21 UTC 2011
Ahhh.. OK. The namespace is embedded in the instance ID depending on the type, so it should be sufficient to:
GET /servers/<instance uuid>
Regardless, uuid is sufficient and globally unique.
This doesn't consider authentication. I'd assumed that username and realm and the like had been handled by REST-based authentication and would be available to the API service.
-------------------------------------------------
Brian Schott, CTO
Nimbis Services, Inc.
brian.schott at nimbisservices.com
ph: 443-274-6064 fx: 443-274-6060
On Jul 11, 2011, at 2:04 PM, Eric Day wrote:
> On Mon, Jul 11, 2011 at 05:17:05PM +0000, Sandy Walsh wrote:
>> How is
>>
>> nova-<account>-<instance uuid>
>>
>> any different than:
>>
>> AAAABBBB-CCCC-DDDD-EEEE-FFFFGGGGHHHH
>>
>> Where AAAA/BBBB/CCCC (or some subset of them) are reserved/regulated?
>
> Nothing, if DDDD-EEEE-FFFFGGGGHHHH is a full UUID. If we compare to
> swift, the account prefix is a UUID too. The account prefix could be
> fixed for a session or passed in to every request depending on how
> things are decided. For example:
>
> GET /servers/<account id>/<instance uuid>
>
> where account ID could be a domain, uuid, etc. Another way to pass
> the namespace is through part of the token:
>
> GET /servers/<instance uuid>
> Token: <token tied to a specific account>
>
> The latter is simpler but less flexible since it may not allow for
> operations on instances outside of the account the token was created
> for. I'm a bit out of the loop on those type of API decisions right
> now, so I'll stop there. :)
>
> -Eric
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack at lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2506 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20110711/b2184dc9/attachment.bin>
More information about the Openstack
mailing list