create swift mirror instance and switch to it

Asked by Dawid

Hi, is it possible to create totally separate Swift instance of latest release - for example grizzly or havana together with corresponding keystone. And later I would like to move all data from some old instance to it and preserve all accounts with existing names so that all data urls and account names are the same after migration. Finally I want to switch to the new instance and shut down the old one.
Best regards,
Dawid

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Object Storage (swift) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Samuel Merritt (torgomatic) said :
#1

It sounds like you're trying to move from one set of Swift nodes to another, newer set of Swift nodes.

What I'd do is add the newer Swift nodes to the existing cluster, wait for replication to move your data, then remove the old Swift nodes from the cluster, wait for replication to move your data completely onto the new nodes, and then decommission the old nodes.

I do not believe there is a problem with running mixed Swift versions within a cluster. Swift supports rolling upgrades, and has always done so.

The one thing to look out for: when you're rebalancing the rings, do it on a machine running the older Swift version. The ring serialization format changed at some point, and newer versions can read old formats, but older versions can't read newer formats.

Revision history for this message
Dawid (dejw-f) said :
#2

OK, nice to know the different versions should work together. And what about the keystone service. Should it be enough to export the database and set it up in the new kestone service - can I import setting form the old database somehow?

Revision history for this message
Samuel Merritt (torgomatic) said :
#3

You'd have to ask the Keystone folks about that one; they've got their own Launchpad Answers section, or there's ask.openstack.org.

Can you help with this problem?

Provide an answer of your own, or ask Dawid for more information if necessary.

To post a message you must log in.