SRIOV: MAC address in use error

Bug #1830383 reported by Oleg Bondarev
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
Oleg Bondarev

Bug Description

When using direct-physical port, the port inherits physical device MAC address on binding.
When deleting the VM later - MAC address stays.
If try spawn a VM with another direct-physical port - we have "Neutron error: MAC address 0c:c4:7a:de:ae:19 is already in use on network None.: MacAddressInUseClient: Unable to complete operation for network 42915db3-4e46-4150-af9d-86d0c59d765f. The mac address 0c:c4:7a:de:ae:19 is in use."

The proposal is to reset port's MAC address when unbinding.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.opendev.org/661298

Changed in neutron:
status: New → In Progress
Changed in neutron:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/stein)

Fix proposed to branch: stable/stein
Review: https://review.opendev.org/663510

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

Fix proposed to branch: stable/rocky
Review: https://review.opendev.org/663511

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

Fix proposed to branch: stable/queens
Review: https://review.opendev.org/663512

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

Fix proposed to branch: stable/pike
Review: https://review.opendev.org/663517

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron (stable/stein)

Change abandoned by Oleg Bondarev (<email address hidden>) on branch: stable/stein
Review: https://review.opendev.org/663510

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron (stable/rocky)

Change abandoned by Oleg Bondarev (<email address hidden>) on branch: stable/rocky
Review: https://review.opendev.org/663511

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron (stable/queens)

Change abandoned by Oleg Bondarev (<email address hidden>) on branch: stable/queens
Review: https://review.opendev.org/663512

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron (stable/pike)

Change abandoned by Oleg Bondarev (<email address hidden>) on branch: stable/pike
Review: https://review.opendev.org/663517

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

Reviewed: https://review.opendev.org/661298
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=e603d19939c98b94081bb6a3af8bcb943f7bd2ce
Submitter: Zuul
Branch: master

commit e603d19939c98b94081bb6a3af8bcb943f7bd2ce
Author: Oleg Bondarev <email address hidden>
Date: Fri May 24 18:11:15 2019 +0400

    Reset MAC on unbinding direct-physical port

    direct-physical ports inherit MAC address of physical device
    when binding happens (VM created). When VM is deleted this
    MAC has to be cleared so other ports may be bound to same device
    without conflicts.

    Change-Id: I9dc8562546e9a7365d18492678f7fc1cb3553622
    Closes-Bug: #1830383

Changed in neutron:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/ocata)

Fix proposed to branch: stable/ocata
Review: https://review.opendev.org/664450

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

Reviewed: https://review.opendev.org/663510
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=aa7893bc1bbc0842020d9f7dbc39f38fe9ef54ac
Submitter: Zuul
Branch: stable/stein

commit aa7893bc1bbc0842020d9f7dbc39f38fe9ef54ac
Author: Oleg Bondarev <email address hidden>
Date: Fri May 24 18:11:15 2019 +0400

    Reset MAC on unbinding direct-physical port

    direct-physical ports inherit MAC address of physical device
    when binding happens (VM created). When VM is deleted this
    MAC has to be cleared so other ports may be bound to same device
    without conflicts.

    Change-Id: I9dc8562546e9a7365d18492678f7fc1cb3553622
    Closes-Bug: #1830383
    (cherry picked from commit e603d19939c98b94081bb6a3af8bcb943f7bd2ce)

tags: added: in-stable-stein
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/queens)

Reviewed: https://review.opendev.org/663512
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=021008cd69c764b66a3984ea725959bc5baf08c7
Submitter: Zuul
Branch: stable/queens

commit 021008cd69c764b66a3984ea725959bc5baf08c7
Author: Oleg Bondarev <email address hidden>
Date: Fri May 24 18:11:15 2019 +0400

    Reset MAC on unbinding direct-physical port

    direct-physical ports inherit MAC address of physical device
    when binding happens (VM created). When VM is deleted this
    MAC has to be cleared so other ports may be bound to same device
    without conflicts.

    Conflicts:
        neutron/plugins/ml2/plugin.py

    Change-Id: I9dc8562546e9a7365d18492678f7fc1cb3553622
    Closes-Bug: #1830383
    (cherry picked from commit e603d19939c98b94081bb6a3af8bcb943f7bd2ce)

tags: added: in-stable-queens
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/ocata)

Reviewed: https://review.opendev.org/664450
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=6842fc4337559c324d0807f6260ed9ca9c9d1de6
Submitter: Zuul
Branch: stable/ocata

commit 6842fc4337559c324d0807f6260ed9ca9c9d1de6
Author: Oleg Bondarev <email address hidden>
Date: Fri May 24 18:11:15 2019 +0400

    Reset MAC on unbinding direct-physical port

    direct-physical ports inherit MAC address of physical device
    when binding happens (VM created). When VM is deleted this
    MAC has to be cleared so other ports may be bound to same device
    without conflicts.

    Conflicts:
        neutron/plugins/ml2/plugin.py

    Change-Id: I9dc8562546e9a7365d18492678f7fc1cb3553622
    Closes-Bug: #1830383
    (cherry picked from commit e603d19939c98b94081bb6a3af8bcb943f7bd2ce)

tags: added: in-stable-ocata
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/pike)

Reviewed: https://review.opendev.org/663517
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=0ca634a60614d592983d2a90ac10fb6afe1bcfcb
Submitter: Zuul
Branch: stable/pike

commit 0ca634a60614d592983d2a90ac10fb6afe1bcfcb
Author: Oleg Bondarev <email address hidden>
Date: Fri May 24 18:11:15 2019 +0400

    Reset MAC on unbinding direct-physical port

    direct-physical ports inherit MAC address of physical device
    when binding happens (VM created). When VM is deleted this
    MAC has to be cleared so other ports may be bound to same device
    without conflicts.

    Conflicts:
        neutron/plugins/ml2/plugin.py

    Change-Id: I9dc8562546e9a7365d18492678f7fc1cb3553622
    Closes-Bug: #1830383
    (cherry picked from commit e603d19939c98b94081bb6a3af8bcb943f7bd2ce)

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

Reviewed: https://review.opendev.org/663511
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=3842bb21af749d81dacabbfabfa2b742a9b11a19
Submitter: Zuul
Branch: stable/rocky

commit 3842bb21af749d81dacabbfabfa2b742a9b11a19
Author: Oleg Bondarev <email address hidden>
Date: Fri May 24 18:11:15 2019 +0400

    Reset MAC on unbinding direct-physical port

    direct-physical ports inherit MAC address of physical device
    when binding happens (VM created). When VM is deleted this
    MAC has to be cleared so other ports may be bound to same device
    without conflicts.

    Conflicts:
        neutron/plugins/ml2/plugin.py

    Change-Id: I9dc8562546e9a7365d18492678f7fc1cb3553622
    Closes-Bug: #1830383
    (cherry picked from commit e603d19939c98b94081bb6a3af8bcb943f7bd2ce)

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

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

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

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

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

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

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

This issue was fixed in the openstack/neutron 15.0.0.0b1 development milestone.

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

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

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

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

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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