<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi, <o:p></o:p></p>
<p class="MsoNormal">I am using Quantum not in scope of the OpenStack, but as a standalone service and provide 'nova like' orchestration (using QuntumClient).<o:p></o:p></p>
<p class="MsoNormal">I would like to raise several concerns regarding VM live migration flow from Quantum perspective.<o:p></o:p></p>
<p class="MsoNormal">My assumption was that Cloud Controller using Compute Service on source and destination Hosts will do the following:<o:p></o:p></p>
<p class="MsoNormal">Destination Host – pre migrate: call Quantum for new port creation and association to VM device<o:p></o:p></p>
<p class="MsoNormal">Source Host – post migrate: call Quantum for old port removal.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">But I see that my assumption was wrong. Nova does not create new port in Quantum, the same port is used.<o:p></o:p></p>
<p class="MsoNormal">Is there any special reason why same port is used? I feel it quite conceptual decision what port should represent.  <o:p></o:p></p>
<p class="MsoNormal">Current flow between Nova and Quantum seems to be like following:<o:p></o:p></p>
<p class="MsoNormal">Destination Host get VM network information from Quantum and configures the Host.<o:p></o:p></p>
<p class="MsoNormal">Source Host removes VM network configuration.<o:p></o:p></p>
<p class="MsoNormal">Quantum Agents do the provisioning part and update port state.<o:p></o:p></p>
<p class="MsoNormal">Looking at the open source plugins implementation (Linux Bridge), seems that there is possible bug that port status will be eventually set to DOWN in case source Host agent will run after destination Host Agent already set the port state
 to UP.<o:p></o:p></p>
<p class="MsoNormal">If other port is used for destination, there is no problem. Currently it is not possible in quantum to create second port for the VM, since there is a check for MAC uniqueness.<o:p></o:p></p>
<p class="MsoNormal">Maybe the other possible solution can be to use port update with status 'migrating' then it may possibly ignore DOWN update, if done by source Host.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Will appreciate any input regarding then live migration nova-quantum flow regarding both design and implementation.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">My intention is mimic the nova flow in order to be aligned with general Quantum development.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Regards,<o:p></o:p></p>
<p class="MsoNormal">Irena<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>