<html 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=utf-8">
<meta name="Generator" content="Microsoft Word 15 (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:0in;
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;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Thanks for the update! If you can work out the exact process for someone else to follow, I’m sure the docs team would appreciate your input!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">James <o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">Ignazio Cassano <ignaziocassano@gmail.com><br>
<b>Date: </b>Friday, March 13, 2020 at 1:38 PM<br>
<b>To: </b>Slawek Kaplonski <skaplons@redhat.com><br>
<b>Cc: </b>James Denton <james.denton@rackspace.com>, openstack-discuss <openstack-discuss@lists.openstack.org><br>
<b>Subject: </b>Re: [qeeens][neutron] migrating from iptables_hybrid to openvswitch<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div style="border:solid #9C6500 1.0pt;padding:2.0pt 2.0pt 2.0pt 2.0pt">
<p class="MsoNormal" style="line-height:12.0pt;background:#FFEB9C"><b><span style="font-size:10.0pt;color:#9C6500">CAUTION:</span></b><span style="font-size:10.0pt;color:black"> This message originated externally, please use caution when clicking on links or
opening attachments!<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<p class="MsoNormal">Hi All, first of all I want to thank everyone for help me.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">I I tried all your suggestions but without rebooting instances does not work.
<o:p></o:p></p>
<div>
<p class="MsoNormal">The following steps do the job well:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">- evacuate node A and switch to openvswitch<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">- migrate (no live) instances from node B<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">- switch node B to openvswitch but before activating the agent, clean Its openswitch entries otherwhise live migration from node A does not work<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">- and so on for all remaing nodes<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Ignazio<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">Il Gio 12 Mar 2020, 22:22 Slawek Kaplonski <<a href="mailto:skaplons@redhat.com" target="_blank">skaplons@redhat.com</a>> ha scritto:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi,<br>
<br>
IIRC, if You want to manually change Your database to force nova to not use hybrid connection anymore and to not require qbr bridge You may need to update also one of the tables in Nova’s db. It’s called “instance_info_network_cache” or something similar.<br>
But TBH I’m not sure if live migration then will work or not as I’m not sure if instance’s libvirt.xml file isn’t going from src to dest node during the live migration.<br>
<br>
If You don’t need to do live migration, You can switch firewall_driver in the L2 agent’s config file and restart it. Even instances which has got hybrid connectivity (so are plugged through qbr bridge) will have SG working in new way. It shouldn’t be problem
that those instances are plugged through qbr bridge as it finally ends up in br-int and there SG rules will be applied. You will need to manually clean iptables rules for such ports as it will not be cleaned automatically.<br>
New instances on such host should works fine and will be plugged in “new way”, directly to br-int.<br>
The only problem with this approach is that You will not be able to do live-migration for those old vms.<br>
<br>
If You want to do it properly, You should do “nova interface-detach” and then “nova interface-attach” for each of such instances. Then new ports plugged to the instances will be bound in new way and plugged directly to br-int.
<br>
<br>
> On 12 Mar 2020, at 19:09, Ignazio Cassano <<a href="mailto:ignaziocassano@gmail.com" target="_blank">ignaziocassano@gmail.com</a>> wrote:<br>
> <br>
> James, I checked again with your method. While live migration phase, the informations on neutron db are changed automatically and returns with "system", "ovs_hybrid_plug": True} ......<br>
> This is because the instance migrated has got interface under qbr.<br>
> Ignazio<br>
> <br>
> Il giorno gio 12 mar 2020 alle ore 13:30 James Denton <<a href="mailto:james.denton@rackspace.com" target="_blank">james.denton@rackspace.com</a>> ha scritto:<br>
> Hi Ignazio,<br>
> <br>
> <br>
> <br>
> I tested a process that converted iptables_hybrid to openvswitch in-place, but not without a hard reboot of the VM and some massaging of the existing bridges/veths. Since you are live-migrating, though, you might be able to get around that.<br>
> <br>
> <br>
> <br>
> Regardless, to make this work, I had to update the port’s vif_details in the Neutron DB and set ‘ovs_hybrid_plug’ to false. Something like this:<br>
> <br>
> <br>
> <br>
> > use neutron;<br>
> <br>
> > update ml2_port_bindings set vif_details='{"port_filter": true, "bridge_name": "br-int", "datapath_type": "system", "ovs_hybrid_plug": false}' where port_id='3d88982a-6b39-4f7e-8772-69367c442939' limit 1;<br>
> <br>
> <br>
> <br>
> So, perhaps making that change prior to moving the VM back to the other compute node will do the trick.<br>
> <br>
> <br>
> <br>
> Good luck!<br>
> <br>
> <br>
> <br>
> James<br>
> <br>
> <br>
> <br>
> From: Ignazio Cassano <<a href="mailto:ignaziocassano@gmail.com" target="_blank">ignaziocassano@gmail.com</a>><br>
> Date: Thursday, March 12, 2020 at 6:41 AM<br>
> To: openstack-discuss <<a href="mailto:openstack-discuss@lists.openstack.org" target="_blank">openstack-discuss@lists.openstack.org</a>><br>
> Subject: [qeeens][neutron] migrating from iptables_hybrid to openvswitch<br>
> <br>
> <br>
> <br>
> CAUTION: This message originated externally, please use caution when clicking on links or opening attachments!<br>
> <br>
> <br>
> <br>
> Hello All, I am facing some problems migrating from iptables_hybrid frirewall to openvswitch firewall on centos 7 queens,<br>
> <br>
> I am doing this because I want enable security groups logs which require openvswitch firewall.<br>
> <br>
> I would like to migrate without restarting my instances.<br>
> <br>
> I startded moving all instances from compute node 1.<br>
> <br>
> Then I configured openvswitch firewall on compute node 1,<br>
> <br>
> Instances migrated from compute node 2 to compute node 1 without problems.<br>
> <br>
> Once the compute node 2 was empty, I migrated it to openvswitch.<br>
> <br>
> But now instances does not migrate from node 1 to node 2 because it requires the presence of qbr bridge on node 2<br>
> <br>
> <br>
> <br>
> This happened because migrating instances from node2 with iptables_hybrid to compute node 1 with openvswitch, does not put the tap under br-int as requested by openvswich firewall, but qbr is still present on compute node 1.<br>
> <br>
> Once I enabled openvswitch on compute node 2, migration from compute node 1 fails because it exprects qbr on compute node 2 .<br>
> <br>
> So I think I should moving on the fly tap interfaces from qbr to br-int on compute node 1 before migrating to compute node 2 but it is a huge work on a lot of instances.<br>
> <br>
> <br>
> <br>
> Any workaround, please ?<br>
> <br>
> <br>
> <br>
> Ignazio<br>
> <br>
<br>
— <br>
Slawek Kaplonski<br>
Senior software engineer<br>
Red Hat<o:p></o:p></p>
</blockquote>
</div>
</div>
</div>
</div>
</body>
</html>