Ask Your Question
0

updating/changing reseller prefix?

asked 2015-03-23 00:51:07 -0500

elijahpaul gravatar image

updated 2015-03-23 00:53:01 -0500

I've updated the reseller_prefix from 'AUTH' to 'KEY' for keystoneauth on my swift proxy server.

I've also amended the endpoint urls on the keystone server to reflect the new prefix 'KEY'.

However after doing this, I can no longer browse or list containers from existing ('AUTH') tenants.

How can I update existing tenants to use the new prefix?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-04-18 23:43:43 -0500

torgomatic gravatar image

For each account pair AUTH_xyz and KEY_xyz, you'll need to copy every container and object from AUTH_xyz to KEY_xyz, then delete AUTH_xyz.

Swift uses a hash of the entity name (account, account/container, account/container/object) to determine placement of the entity on disk. Renaming an account thus changes the hash of everything therein, and so requires a copy-and-delete of everything in the account.

Note that though I've said "rename", Swift's API has no such operation. To "rename" something is really to copy it and then delete the original.

Side note: from the standpoint of getting your cluster working again, the fastest way is to put the reseller prefix back. It's just an arbitrary string. Even if you're running multiple auth systems, just ensure their prefixes don't collide; that's all.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-03-23 00:51:07 -0500

Seen: 139 times

Last updated: Apr 18 '15