Is there a good way to migrate a stack from one pod to another in an OpenStack cluster?

asked 2020-06-08 04:21:31 -0500

rawmain gravatar image

There are some servers running in pod1 with network1 and IP1. Now need to change them to network2 and IP2 in pod2.

If don't delete all the servers in pod1 and create new stack with new IPs in pod2, is there an another way to do? Such as create snapshot, move the snapshot to pod2. But not sure if the snapshot can change to new IP.

edit retag flag offensive close merge delete

Comments

"pod" is not an OpenStack term. Are you talking about Kubernetes or OpenStack?

Bernd Bausch gravatar imageBernd Bausch ( 2020-06-08 04:33:06 -0500 )edit

We have different pods to deploy different OpenStack clusters. Now want to move servers from one pod in OpenStack A to the other pod in OpenStack B.

rawmain gravatar imagerawmain ( 2020-06-08 19:54:07 -0500 )edit

You mean that you want to move instances from one OpenStack cloud to another one?

As you said, take snapshots and copy them to the other cloud. If servers' IP addresses are set by DHCP (the default), networking should not be a problem.

Bernd Bausch gravatar imageBernd Bausch ( 2020-06-08 20:42:45 -0500 )edit

Yes, so that maybe the good way. Will use pre-assigned another network(with vlan and IP range). Thank you very much.

rawmain gravatar imagerawmain ( 2020-06-08 21:47:05 -0500 )edit

By the way, I found this guide: https://docs.openstack.org/mitaka/user-guide/cli_use_snapshots_to_migrate_instances.html (Use snapshots to migrate instances) But how to set network information and IP? If use heat_template, we can set network information before we create a whole stack.

rawmain gravatar imagerawmain ( 2020-06-09 19:36:23 -0500 )edit