Trunk subport's port status and binding:host_id don't updated after live-migration

Bug #1914747 reported by Slawek Kaplonski
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
High
Slawek Kaplonski

Bug Description

It happens for me in ml2/ovs env for sure.

How to reproduce the issue:

1. Create trunk with some subport,
2. Spawn vm with plugged to the trunk's parent port,
3. Check status of trunk's parent port and subport's port - both are ACTIVE and have correct host_id,
4. Live-migrate vm
5. Check status of trunk's parent port and subport's port - subport is DOWN and has old host_id.

Due to that, if e.g. dvr and l2pop are used, connectivity to such subport is broken.
To fix it I needed to restart neutron-ovs-agent on the host to which vm was migrated to.

Revision history for this message
Lajos Katona (lajos-katona) wrote :
Revision history for this message
Lajos Katona (lajos-katona) wrote :
Changed in neutron:
status: Confirmed → Fix Released
tags: added: neutron-proactive-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 15.3.3

This issue was fixed in the openstack/neutron 15.3.3 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 16.3.1

This issue was fixed in the openstack/neutron 16.3.1 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 17.1.1

This issue was fixed in the openstack/neutron 17.1.1 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 18.0.0.0rc1

This issue was fixed in the openstack/neutron 18.0.0.0rc1 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/rocky)

Reviewed: https://review.opendev.org/c/openstack/neutron/+/775103
Committed: https://opendev.org/openstack/neutron/commit/d570871e57f6d65c1eedad902754aa098a942829
Submitter: "Zuul (22348)"
Branch: stable/rocky

commit d570871e57f6d65c1eedad902754aa098a942829
Author: Slawek Kaplonski <email address hidden>
Date: Fri Feb 5 13:32:23 2021 +0100

    Fix update of trunk subports during live migration

    During the live migration trunk subports where updated only based
    on the "host_id" field. But when rpc message to update subports
    is send trunk's port is still bound to the old host and has
    "migrating_to" field in binding:profile set to the new host.
    Because of that binding:host_id for the subport's port wasn't updated
    proberly and port was set to DOWN on the new host.
    That could even cause connectivity break if L2population is used in the
    cloud.

    This patch fixes that by updating subport's binding:host_id field based
    on the migrating_to field if that is available and not empty.

    Closes-Bug: #1914747
    Change-Id: I98e55242d381ada642ca0729e9aefdea7628c945
    (cherry picked from commit e05101c8ac953cc2823b35aaed3d499afc101988)

tags: added: in-stable-rocky
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron queens-eol

This issue was fixed in the openstack/neutron queens-eol release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron rocky-eol

This issue was fixed in the openstack/neutron rocky-eol release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron stein-eol

This issue was fixed in the openstack/neutron stein-eol release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.