openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #19059
Re: Is there any way to migrate the Instance between the projects/tenants?
>
> The step 2 and 3 can be left out. Because the instance snapshot can be
> marked public. Then we can lanuch instance from the snapshot in another
> tenant.
Forgot that one ;-)
How about when the instance is attached with volume? How to migrate the
> Volume? It seems that the Volume can not be marked publice? Do you have any
> ideas?
There is a dirty hack that you could perform for that. What you could do is
(depends on your storage backend):
- detach the volume from project A
- create a dummy volume on project B
- make pointed the volume from project A to the dummy in project B
- delete the volume from project A
If you use Ceph RBD it's really easy for example.
For the rest I don't know.
--
Bien cordialement.
Sébastien HAN.
On Thu, Nov 29, 2012 at 9:55 AM, Lei Zhang <zhang.lei.fly@xxxxxxxxx> wrote:
> Hi Sébastien,
>
> Good ideas. There is a very tricky way to solve this problem.
>
> In addition,
> The step 2 and 3 can be left out. Because the instance snapshot can be
> marked public. Then we can lanuch instance from the snapshot in another
> tenant.
> Anothe Question,
> How about when the instance is attached with volume? How to migrate the
> Volume? It seems that the Volume can not be marked publice? Do you have any
> ideas?
>
>
> On Thu, Nov 29, 2012 at 3:38 PM, Sébastien Han <han.sebastien@xxxxxxxxx>wrote:
>
>> Hi,
>>
>> What I will do to achieve what you want:
>>
>> _ take a snapshot of your instance
>> _ export the snapshot from wherever it's stored (filesystem for instance)
>> _ import it to Glance, make the image to public or assign it to the
>> tenant (not 100% sure if the latest is possible though...)
>> _ run a new vm with the based image previously created
>>
>> Some steps could be avoided like step 2 and 3. You could use the admin
>> user to snapshot and then run the snapshot from the other tenan. However
>> it's NOT recommended.
>>
>> Cheers.
>>
>> On Nov 29, 2012 7:47 AM, "Tim Bell" <Tim.Bell@xxxxxxx> wrote:
>> >
>> >
>> >
>> > We were also interested in this function but could not find an easy way
>> to do it.
>> >
>> >
>> >
>> > The operation becomes more complex when there are attached volumes and
>> potentially different permissions between the two projects.
>> >
>> >
>> >
>> > Tim
>> >
>> >
>> >
>> > From: openstack-bounces+tim.bell=cern.ch@xxxxxxxxxxxxxxxxxxx [mailto:
>> openstack-bounces+tim.bell=cern.ch@xxxxxxxxxxxxxxxxxxx] On Behalf Of Lei
>> Zhang
>> > Sent: 29 November 2012 06:09
>> > To: openstack@xxxxxxxxxxxxxxxxxxx
>> > Subject: [Openstack] Is there any way to migrate the Instance between
>> the projects/tenants?
>> >
>> >
>> >
>> > Hi all,
>> >
>> >
>> >
>> > As the subject say, is there any way to do this? I search the Internet
>> and only found the migration bewteen two physical machine.
>> >
>> >
>> > thanks
>> >
>> > --
>> >
>> > Lei Zhang
>> >
>> >
>> >
>> > Blog: http://jeffrey4l.github.com
>> >
>> > twitter/weibo: @jeffrey4l
>> >
>> >
>> >
>> >
>> > _______________________________________________
>> > Mailing list: https://launchpad.net/~openstack
>> > Post to : openstack@xxxxxxxxxxxxxxxxxxx
>> > Unsubscribe : https://launchpad.net/~openstack
>> > More help : https://help.launchpad.net/ListHelp
>> >
>>
>>
>
>
> --
> Lei Zhang
>
> Blog: http://jeffrey4l.github.com
> twitter/weibo: @jeffrey4l
>
>
Follow ups
References