For swauth there is provision to change account_id using swauth-set-account-service, it could be changed to the tenant_id, but since account_id is part of the hashing, old data in that account won't be accessible, i am not familiar with keystone, is there any such service in keystone to change tenant_id, then we can change tenant_id to the account_id, and old account will be accessible.
Regards, Gaurav On Wed, Sep 14, 2011 at 2:44 AM, Nguyen, Liem Manh <liem_m_ngu...@hp.com>wrote: > Without changing the account id, how do I map the uuid of the old account > to a Keystone tenant Id? For a given tenantId, I would like to be able to > reference both the corresponding Swift account and Nova project, right? > > Liem > > -----Original Message----- > From: John Dickinson [mailto:m...@not.mn] > Sent: Tuesday, September 13, 2011 2:01 PM > To: Nguyen, Liem Manh > Cc: openstack@lists.launchpad.net > Subject: Re: [Openstack] [Swift] [Keystone] Account migration > > Why would the account need to change? Can the swift account reference in > keystone be set to the old value? If not, then yes you will have 2 swift > accounts. > > > On Sep 13, 2011, at 3:48 PM, Nguyen, Liem Manh wrote: > > > Thanks, John, for pointing out the uuid thing :). > > > > So, let's say I have stored data into a Swift account with a UUID. When > I switch to using Keystone, I would like to continue using my "old" account, > since I have a bunch of data in it. However, the account format has changed > (under Keystone). So, if I have lazy provisioning on (account_autocreate), > would I *accidentally* have 2 Swift accounts instead of one? Ideally, if I > can "migrate" all the old account Ids to use the new format, that would > guarantee consistency between the old accounts and any newly-created > accounts. Am I missing something here? > > > > Liem > > > > -----Original Message----- > > From: John Dickinson [mailto:m...@not.mn] > > Sent: Tuesday, September 13, 2011 1:11 PM > > To: Nguyen, Liem Manh > > Cc: openstack@lists.launchpad.net > > 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@lists.launchpad.net > >> Unsubscribe : https://launchpad.net/~openstack > >> More help : https://help.launchpad.net/ListHelp > > > > > _______________________________________________ > Mailing list: https://launchpad.net/~openstack > Post to : openstack@lists.launchpad.net > Unsubscribe : https://launchpad.net/~openstack > More help : https://help.launchpad.net/ListHelp >
_______________________________________________ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp