<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="font-family:arial,sans-serif;font-size:13px">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. </span></blockquote>


<div><br></div><div>Forgot that one ;-)</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


 <span style="font-family:arial,sans-serif;font-size:13px">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? </span></blockquote>


<div><br></div><div>There is a dirty hack that you could perform for that. What you could do is (depends on your storage backend):</div><div><br></div><div>- detach the volume from project A</div><div>- create a dummy volume on project B</div>


<div>- make pointed the volume from project A to the dummy in project B </div><div>- delete the volume from project A</div><div><br></div><div>If you use Ceph RBD it's really easy for example. </div><div><br></div><div>

For the rest I don't know.</div><div class="gmail_extra">
<br clear="all"><div>--</div>Bien cordialement.<div>Sébastien HAN.</div><br>
<br><br><div class="gmail_quote">On Thu, Nov 29, 2012 at 9:55 AM, Lei Zhang <span dir="ltr"><<a href="mailto:zhang.lei.fly@gmail.com" target="_blank">zhang.lei.fly@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Hi Sébastien, <div><br></div><div>Good ideas. There is a very tricky way to solve this problem. </div><div><br></div><div>In addition, </div><div>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. </div>




<div>Anothe Question, </div><div>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? </div><div><div>
<div class="gmail_extra"><br>

<br><div class="gmail_quote">On Thu, Nov 29, 2012 at 3:38 PM, Sébastien Han <span dir="ltr"><<a href="mailto:han.sebastien@gmail.com" target="_blank">han.sebastien@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<p dir="ltr">Hi,</p>
<p dir="ltr">What I will do to achieve what you want:</p>
<p dir="ltr">_ take a snapshot of your instance<br>
_ export the snapshot from wherever it's stored (filesystem for instance)<br>
_ import it to Glance, make the image to public or assign it to the tenant (not 100% sure if the latest is possible though...)<br>
_ run a new vm with the based image previously created</p>
<p dir="ltr">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.</p>
<p dir="ltr">Cheers.</p>
<p dir="ltr"></p><div><div>On Nov 29, 2012 7:47 AM, "Tim Bell" <<a href="mailto:Tim.Bell@cern.ch" target="_blank">Tim.Bell@cern.ch</a>> wrote:<br>
><br>
>  <br>
><br>
> We were also interested in this function but could not find an easy way to do it.<br>
><br>
>  <br>
><br>
> The operation becomes more complex when there are attached volumes and potentially different permissions between the two projects.<br>
><br>
>  <br>
><br>
> Tim<br>
><br>
>  <br>
><br>
> From: openstack-bounces+tim.bell=<a href="mailto:cern.ch@lists.launchpad.net" target="_blank">cern.ch@lists.launchpad.net</a> [mailto:<a href="mailto:openstack-bounces%2Btim.bell" target="_blank">openstack-bounces+tim.bell</a>=<a href="mailto:cern.ch@lists.launchpad.net" target="_blank">cern.ch@lists.launchpad.net</a>] On Behalf Of Lei Zhang<br>






> Sent: 29 November 2012 06:09<br>
> To: <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
> Subject: [Openstack] Is there any way to migrate the Instance between the projects/tenants?<br>
><br>
>  <br>
><br>
> Hi all,<br>
><br>
>  <br>
><br>
> As the subject say, is there any way to do this? I search the Internet and only found the migration bewteen two physical machine. <br>
><br>
><br>
> thanks<br>
><br>
> --<br>
><br>
> Lei Zhang<br>
><br>
>  <br>
><br>
> Blog: <a href="http://jeffrey4l.github.com" target="_blank">http://jeffrey4l.github.com</a><br>
><br>
> twitter/weibo: @jeffrey4l<br>
><br>
>  <br>
><br>
><br></div></div>
> _______________________________________________<br>
> Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
> Post to     : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
> Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
> More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
><br>
<p></p>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse">Lei Zhang</span></div><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><br>




</span></div><div><font face="arial, sans-serif">Blog: <a href="http://jeffrey4l.github.com" target="_blank">http://jeffrey4l.github.com</a></font></div><div>twitter/weibo: @jeffrey4l</div><br>
</div>
</div></div></blockquote></div><br></div>