Ask Your Question
0

How migrate instances between clouds with the same storage? [closed]

asked 2018-12-27 05:32:58 -0600

amkgi gravatar image

I have two OpenStack clouds. The first is Newton, and the second is Rocky. Both use the same Ceph. I find a lot of information on how I can do this (use snapshots (but it may take a long time)). In Newton I have 250 instances, and many of them are very critical for downtime. Is there still no way to do it easily and quickly with used single storage?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by amkgi
close date 2019-01-05 08:38:15.074105

Comments

I tried to migrate using virsh migrate and it was successful, but now I need to add the necessary information about this instance to the database so that it appears in OpenStack. But I don't quite understand how I can do it right.

amkgi gravatar imageamkgi ( 2018-12-27 08:18:20 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2018-12-27 23:30:15 -0600

amkgi gravatar image

I decided it this way. I created similar instance in OpenStack Rocky. Looked at UUID disk in OpenStack Rocky and Newton, I connected to the Ceph and rename old UUID of disk to new UUID (rbd -p vms mv oldUUID_disk newUUID_disk). Before doing this, I deleted the disc that Rocky created. I shutted off both instance at this moment. This can do using a script to automate this process and minimize downtime.

edit flag offensive delete link more
0

answered 2018-12-27 08:37:02 -0600

updated 2018-12-27 08:39:24 -0600

You are a bit vague how the two clouds use Ceph. Assuming your instances are booted from Ceph-based volumes, I suppose they could be migrated using the cinder manage command, which takes a LUN or whatever other reference on the backend and turns it into a volume.

So, shut down the instance, or snapshot the attached volume then create a new volume, then cinder manage the corresponding Ceph object on the destination cloud.

I am not sure if the RBD driver supports this.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2018-12-27 05:32:58 -0600

Seen: 100 times

Last updated: Dec 27 '18