← Back to team overview

openstack team mailing list archive

Re: [Swift] [Keystone] Account migration

 

Swift uses the entire account string as part of the lookup. Therefore a different account string means that everything associated with that account (account, containers, and objects) would have to be rehashed. That's basically a fancy way of saying "copy the data from the old account to the new one", or, as was originally stated, "migrate". There are no plans to migrate accounts in swift from one account string to another (ie account rename).

--John


On Sep 13, 2011, at 3:57 PM, Souza, Bob wrote:

> John,
> 
> If you migrate a user's account ID from uuid to <reseller_prefix>_<tenant>, dhw would you find an object that was stored in the ring based on is (uuid, container, object) tuple?
> 
> Or maybe you are suggesting that is bad idea?
> 
> b
>> -----Original Message-----
>> From: openstack-bounces+bob.souza=hp.com@xxxxxxxxxxxxxxxxxxx
>> [mailto:openstack-bounces+bob.souza=hp.com@xxxxxxxxxxxxxxxxxxx] On
>> Behalf Of John Dickinson
>> Sent: Tuesday, September 13, 2011 4:11 PM
>> To: Nguyen, Liem Manh
>> Cc: openstack@xxxxxxxxxxxxxxxxxxx
>> Subject: Re: [Openstack] [Swift] [Keystone] Account migration
>> 
>> Swift treats the <hash> or <tenantid> part of the account as an opaque
>> string. (Technically, the first one isn't a hash but a uuid.) I don't
>> think there is any migration path because there is nothing to migrate.
>> 
>> But I may be missing something.
>> 
>> --John
>> 
>> 
>> On Sep 13, 2011, at 2:55 PM, Nguyen, Liem Manh wrote:
>> 
>>> Hello Stackers,
>>> 
>>> With swauth, Swift accounts are identified by
>> <reseller_prefix>_<hash>.  Under Keystone (with swift_auth and Swift's
>> lazy provisioning), I see the Swift account now has the format
>> <reseller_prefix>_<tenantId>.  So, if we have existing Swift account
>> data with the old format, how would one go about migrating from the old
>> format to the Keystone format?  Is there a plan to do so within the
>> Diablo time-frame?
>>> 
>>> Thanks,
>>> Liem
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~openstack
>>> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~openstack
>>> More help   : https://help.launchpad.net/ListHelp
> 

Attachment: smime.p7s
Description: S/MIME cryptographic signature


References