<div dir="ltr"><div dir="ltr">On my current instance, the meta_data.json is the following:<div><br></div><div><div>{</div><div>    "availability_zone": "nova",</div><div>    "devices": [],</div><div>    "hostname": "ims-host-1",</div><div>    "keys": [</div><div>        {</div><div>            "data": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCoq69QeFy0E9A4uMf5be62ENRAAMh/VQ3Uva/HXMY0nz0I0KwyVs2gzim2f5u51BtTJf9Hr5rDrwBtsmXliPlkCwlCi6oLLe9+06jEZsATdLak9rxbtbuRBiCYcHMAuQWIbVzo1IW1w+WE6DDLc2qwkb0RCozq3wzEJgVUTNMRa9gEzRtD3WGeV2wegt/FNpM1/lXM9T1Ki577vCcv0zFAr4JoNW2YjtFO83t8N5+rDgE4Ar9jFGZWjhB7NuYUN2MlzS1DjXi3SxbBm8gd1ReiqNA7MruUudqQ8I/TgSE5CxQL0UH67c3Y17hyzQDT/r8DAqfDm2P6HzSJQXBVZ7+j IMS Migration",</div><div>            "name": "fdupont",</div><div>            "type": "ssh"</div><div>        }</div><div>    ],</div><div>    "launch_index": 0,</div><div>    "name": "ims_host_1",</div><div>    "project_id": "641a64a1a42d429f9606b345f328d306",</div><div>    "public_keys": {</div><div>        "fdupont": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCoq69QeFy0E9A4uMf5be62ENRAAMh/VQ3Uva/HXMY0nz0I0KwyVs2gzim2f5u51BtTJf9Hr5rDrwBtsmXliPlkCwlCi6oLLe9+06jEZsATdLak9rxbtbuRBiCYcHMAuQWIbVzo1IW1w+WE6DDLc2qwkb0RCozq3wzEJgVUTNMRa9gEzRtD3WGeV2wegt/FNpM1/lXM9T1Ki577vCcv0zFAr4JoNW2YjtFO83t8N5+rDgE4Ar9jFGZWjhB7NuYUN2MlzS1DjXi3SxbBm8gd1ReiqNA7MruUudqQ8I/TgSE5CxQL0UH67c3Y17hyzQDT/r8DAqfDm2P6HzSJQXBVZ7+j IMS Migration"</div><div>    },</div><div>    "random_seed": "2Fo3Ys4aEO0JdrjOtIsLzq89/nQZ5ojFqIESCRkP23wIcNOB4rpLAMxNwe1mGKja0XMKefBAYqCvOYL9u7X8L50dkA6WqnsKQP6MSJToF19YU7QAURixo13ZQQI4l/f2ou4cDE6yUyB/NlqaHEwjUF3mfYgUZfHLHdSgrv7YaSyZ0etUvtHxAseiXiBYdB3boQhVD8YE7EKZ8gKWHgDbOk3wAd/FsTDya70O01QlKZiJPv0MMCFbanvo6rN3PJN+qN6xhBoRvg0ZRY6bDz2PtQltLhqCCP+M6kj4qvrW6uW/Mg+qNcxwFSvASXoTPxTnaII0MPx6tL7AqgIechBBtBkEgXKvFA/p7SAPRvcucwwNvNYytiBqTbKAS+kLYUJbDYouqqychYbh4kwtpXkMTrpoI070R6uNamHpfGXfyJv/7ancW42K1EhOb52tMRNCPUWEi4TqOozFCTNeozopdcG7cyAf9w0NxAdcvtVOxKtgSJipjNE87e6kL3s3etxANQwMf/rN5406P0up9qTR1owxlRxSUf0ydKSdqcsZH/m5Ua4w5t9fPCHxCmOXiVfTW5iFKZOIGQwdcH8f5j5UnX/Q50dyrvy2QIw+nzLQcGHa5ZZKPFcXmAO7NBx7pIdrf76FtIVwnF4FA8AAKrsZc4We/IAAhX/SUNYZ3JHjp/M=",</div><div>    "uuid": "7ee62bdc-1c9d-4193-bb8f-fdbbbdfded0f"</div><div>}</div></div><div><br></div><div>The information we need is the uuid.</div><div><br></div><div><a class="gmail_plusreply" id="plusReplyChip-0" href="mailto:nperic@redhat.com" tabindex="-1">@Nenad Peric</a>, this comes from our lab. I've enabled DHCP on the external network, but that don't mean that all networks will use it. In the conversion host project, I'd enable it.</div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Sep 24, 2018 at 9:16 PM Nenad Peric <<a href="mailto:nperic@redhat.com">nperic@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Mon, Sep 24, 2018 at 6:30 PM Richard W.M. Jones <<a href="mailto:rjones@redhat.com" target="_blank">rjones@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Mon, Sep 24, 2018 at 10:00:21AM +0200, Fabien Dupont wrote:<br>
> Hi,<br>
<br>
Hi Fabien, sorry I didn't respond to this earlier as I was doing some<br>
work.  If you CC me on emails then you can usually get a quicker<br>
response.<br>
<br>
> I've read the virt-v2v OpenStack output code to understand how it works and<br>
> I've seen this:<br>
> <br>
> >   (* The server name or UUID of the conversion appliance where<br>
> >    * virt-v2v is currently running.  In future we may be able<br>
> >    * to make this optional and derive it from the OpenStack<br>
> >    * metadata service instead.<br>
> >    *)<br>
> >   server_id : string;<br>
> <br>
> Indeed, it can be derived from OpenStack metadata service. The following<br>
> URL called from within the conversion appliance will return the metadata:<br>
> <a href="http://169.254.169.254/openstack/latest/meta_data.json" rel="noreferrer" target="_blank">http://169.254.169.254/openstack/latest/meta_data.json</a>. As you can see, the<br>
> IP address is 169.254.169.254, which will is the metadata service. The JSON<br>
> body contains a uuid entry that is the current appliance UUID, hence the<br>
> server_id used by virt-v2v.<br>
<br>
We certainly do want to do this, although there was some concern about<br>
whether the metadata service is enabled on every OpenStack instance<br>
out there.  (Also there are two different types of metadata service IIRC?)<br>
<br></blockquote><div><br></div><div>This concrete approach will not work in our current deployment, since the metadata service is not there.</div><div>The infrastructure was made in such a way that the IP addressing and network configuration</div><div>is done on the provider side. This means that all the information VMs are getting, are coming</div><div>from the lab network. I am thinking a way around this if possible. I'll try out different OSP network </div><div>configurations and see if I can come up with something which will keep IP, MAC and routing consistent </div><div>after migration, and still have an isolated metadata service on the OSP side. </div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> (Unfortunately the connection hung<br>
for minutes instead of timing out quickly, which is not great.)<br></blockquote><div><br></div><div>yeah ... That is not the friendliest of approaches, but it waits for a pre-defined timeout someplace. </div><div> </div><div>Cheers,</div><div><br></div><div>Nenad</div><div> </div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><p style="margin:0px!important;padding:0px!important"><b style="font-family:arial,helvetica,sans-serif;font-size:small"><font color="#cc0000"><span style="margin:0px!important;padding:0px!important">Fabien</span> <span style="margin:0px!important;padding:0px!important">Dupont</span></font></b><br></p><p style="color:rgb(0,0,0);margin:0px!important;padding:0px!important"></p><p style="font-size:small;color:rgb(0,0,0);margin:0px!important;padding:0px!important"><span style="font-family:arial,helvetica,sans-serif;font-size:x-small">PRINCIPAL SOFTWARE ENGINEER</span><font size="1" face="arial, helvetica, sans-serif"><br style="margin:0px!important;padding:0px!important"></font></p><p style="font-size:small;margin:0px!important;padding:0px!important"><font face="arial, helvetica, sans-serif" size="1" color="#000000">Red Hat - Solutions Engineering</font></p><p style="margin:0px!important;padding:0px!important"><font size="1" face="arial, helvetica, sans-serif"><span style="margin:0px!important;padding:0px!important"><span style="margin:0px!important;padding:0px!important"><a href="mailto:fabien@redhat.com" target="_blank"><font color="#0b5394">fabien@redhat.com</font></a></span><font color="#000000">     </font></span><span style="margin:0px!important;padding:0px!important"><font color="#000000">M: </font><a href="tel:+33662784971" style="margin:0px!important;padding:0px!important" target="_blank"><font color="#0b5394">+33 (0) 662 784 971</font></a></span></font></p><p style="margin:0px!important;padding:0px!important"><span style="margin:0px!important;padding:0px!important"><font size="1" face="arial, helvetica, sans-serif"><a href="http://redhat.com" style="color:rgb(0,0,0)" target="_blank"><img src="https://www.redhat.com/profiles/rh/themes/redhatdotcom/img/logo-red-hat-black.png" width="96" height="30"></a><font color="#000000">  </font><span style="margin:0px!important;padding:0px!important"><font color="#cc0000"><b>TRIED. TESTED. TRUSTED.</b></font></span></font></span></p><p style="color:rgb(0,0,0);margin:0px!important;padding:0px!important"><font size="1" face="arial, helvetica, sans-serif"><span style="margin:0px!important;padding:0px!important"></span></font></p><div style="color:rgb(0,0,0);margin:0px!important;padding:0px!important"><div style="margin:0px!important;padding:0px!important"><font size="1" face="arial, helvetica, sans-serif">Twitter: <a href="https://twitter.com/redhatway" target="_blank">@redhatway</a> | Instagram: <a href="https://www.instagram.com/redhatinc/" target="_blank">@redhatinc</a> | Snapchat: @redhatsnaps</font></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>