[nova][live-migration] Nova live-migration fails due to duplicate records in ml2_port_bindings table

Sean Mooney smooney at redhat.com
Wed Oct 21 13:56:41 UTC 2020


On Wed, 2020-10-21 at 13:05 +0000, Zhi CZ Chang wrote:
> Hi, all
>  
> I met some nova live-migration problems with the U version.
>  
> My env is one controller + two compute nodes. Here are the steps:
>  
> 1. Create a VM at comp;
> 2. Live-migrate the VM from comp to comp2;
> 3. Live-migration success;
> 4. Live-migrate the VM from the comp2 to comp
> 5. Live migration fail
> I find that there are duplicate records in the neutron's "ml2_port_bindings" table:
> MariaDB [neutron]> select * from ml2_port_bindings where port_id="71c3a3c7-d853-4b26-9975-50b99c449371";
> +--------------------------------------+-------+----------+-----------+---------------------------+-------------------------------------------------
> --------------------------------------------------------------------------+----------+
> | port_id | host | vif_type | vnic_type | profile | vif_details
>                                  | status |
> +--------------------------------------+-------+----------+-----------+---------------------------+-------------------------------------------------
> --------------------------------------------------------------------------+----------+
> | 71c3a3c7-d853-4b26-9975-50b99c449371 | comp | unbound | normal | {"migrating_to": "comp2"} |
>                                  | INACTIVE |
> | 71c3a3c7-d853-4b26-9975-50b99c449371 | comp2 | ovs | normal | {} | {"connectivity": "l2", "port_filter": true, "ovs_hybrid_plug": false,
> "datapath_type": "system", "bridge_name": "br-int"} | ACTIVE |
> +--------------------------------------+-------+----------+-----------+---------------------------+-------------------------------------------------
> --------------------------------------------------------------------------+----------+
>  
> Here is a duplicate record generated.
>  
> Why does nova or neutron generate an INACTIVE record in neutron's DB?
this is by design https://specs.openstack.org/openstack/nova-specs/specs/rocky/implemented/neutron-new-port-binding-api.html
>  
> I have filed a bug at https://bugs.launchpad.net/nova/+bug/1900843.
ill take a look at the bug but that failure is like not realted to the multiple port binding recoreds as we have done that intetionally
since rocky
>  
> Please feel free to give me some advice.
>  
>  
>  
> Thanks
> Zhi Chang
> 





More information about the openstack-discuss mailing list