[OVN] Cannot update network with external ports

Bug #2000634 reported by Bartosz Bezak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
Bartosz Bezak

Bug Description

[OVN] Cannot update networks with external ports, and Maintenance task for availability zones changes is failing:

stable/zed

Maintenance task: Failed to fix resource 4ec5215b-1599-4c66-a7d1-5a75f26bcb41 (type: networks): AttributeError: 'str' object has no attribute 'external_ids'
2022-12-28 13:16:33.919 34 ERROR neutron.plugins.ml2.drivers.ovn.mech_driver.ovsdb.maintenance Traceback (most recent call last):
2022-12-28 13:16:33.919 34 ERROR neutron.plugins.ml2.drivers.ovn.mech_driver.ovsdb.maintenance File "/var/lib/kolla/venv/lib/python3.6/site-packages/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/maintenance.py", line 397, in check_for_inconsistencies
2022-12-28 13:16:33.919 34 ERROR neutron.plugins.ml2.drivers.ovn.mech_driver.ovsdb.maintenance self._fix_create_update(admin_context, row)
2022-12-28 13:16:33.919 34 ERROR neutron.plugins.ml2.drivers.ovn.mech_driver.ovsdb.maintenance File "/var/lib/kolla/venv/lib/python3.6/site-packages/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/maintenance.py", line 255, in _fix_create_update
2022-12-28 13:16:33.919 34 ERROR neutron.plugins.ml2.drivers.ovn.mech_driver.ovsdb.maintenance res_map['ovn_update'](context, n_obj)
2022-12-28 13:16:33.919 34 ERROR neutron.plugins.ml2.drivers.ovn.mech_driver.ovsdb.maintenance File "/var/lib/kolla/venv/lib/python3.6/site-packages/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_client.py", line 1993, in update_network
2022-12-28 13:16:33.919 34 ERROR neutron.plugins.ml2.drivers.ovn.mech_driver.ovsdb.maintenance ovn_ls_azs = lswitch_name.external_ids.get(
2022-12-28 13:16:33.919 34 ERROR neutron.plugins.ml2.drivers.ovn.mech_driver.ovsdb.maintenance AttributeError: 'str' object has no attribute 'external_ids'
2022-12-28 13:16:33.919 34 ERROR neutron.plugins.ml2.drivers.ovn.mech_driver.ovsdb.maintenance

Bartosz Bezak (bbezak)
description: updated
Changed in neutron:
status: New → In Progress
Revision history for this message
Bence Romsics (bence-romsics) wrote :

Thanks for working on this!

Let me link your proposed change here:
https://review.opendev.org/c/openstack/neutron/+/868746

Changed in neutron:
importance: Undecided → Medium
tags: added: ovn
Bartosz Bezak (bbezak)
Changed in neutron:
assignee: nobody → Bartosz Bezak (bbezak)
Revision history for this message
Bartosz Bezak (bbezak) wrote :

In addition the impact is that one cannot update network with ovn external ports (SRIOV, Baremetal) it got introduced with https://review.opendev.org/c/openstack/neutron/+/762550, impacting xena onwards.

summary: - [OVN] Maintenance task for availability zones changes failing
+ [OVN] Cannot update network with external ports
Bartosz Bezak (bbezak)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/zed)

Fix proposed to branch: stable/zed
Review: https://review.opendev.org/c/openstack/neutron/+/869111

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

Fix proposed to branch: stable/yoga
Review: https://review.opendev.org/c/openstack/neutron/+/869112

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

Fix proposed to branch: stable/xena
Review: https://review.opendev.org/c/openstack/neutron/+/869113

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

Reviewed: https://review.opendev.org/c/openstack/neutron/+/868746
Committed: https://opendev.org/openstack/neutron/commit/5e19eaadbb298aaf58b5389fea74c9b8064d0f41
Submitter: "Zuul (22348)"
Branch: master

commit 5e19eaadbb298aaf58b5389fea74c9b8064d0f41
Author: Bartosz Bezak <email address hidden>
Date: Wed Dec 28 14:47:21 2022 +0100

    [OVN] Fix availability zones changes check

    Closes-Bug: #2000634

    Change-Id: Id5f34ec858a940d2fc4a03b9290adc6161aa9db3

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

Reviewed: https://review.opendev.org/c/openstack/neutron/+/869111
Committed: https://opendev.org/openstack/neutron/commit/c5532b6c6b5257e58995087baf3127cbc4ba2d5a
Submitter: "Zuul (22348)"
Branch: stable/zed

commit c5532b6c6b5257e58995087baf3127cbc4ba2d5a
Author: Bartosz Bezak <email address hidden>
Date: Wed Dec 28 14:47:21 2022 +0100

    [OVN] Fix availability zones changes check

    Closes-Bug: #2000634

    Change-Id: Id5f34ec858a940d2fc4a03b9290adc6161aa9db3
    (cherry picked from commit 5e19eaadbb298aaf58b5389fea74c9b8064d0f41)

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

Reviewed: https://review.opendev.org/c/openstack/neutron/+/869112
Committed: https://opendev.org/openstack/neutron/commit/2bf242a375933bc819493ee80f3aad98854f8e78
Submitter: "Zuul (22348)"
Branch: stable/yoga

commit 2bf242a375933bc819493ee80f3aad98854f8e78
Author: Bartosz Bezak <email address hidden>
Date: Wed Dec 28 14:47:21 2022 +0100

    [OVN] Fix availability zones changes check

    Closes-Bug: #2000634

    Change-Id: Id5f34ec858a940d2fc4a03b9290adc6161aa9db3
    (cherry picked from commit 5e19eaadbb298aaf58b5389fea74c9b8064d0f41)

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

Reviewed: https://review.opendev.org/c/openstack/neutron/+/869113
Committed: https://opendev.org/openstack/neutron/commit/8bd833185d2795f42fa3369321a3eba072d84a45
Submitter: "Zuul (22348)"
Branch: stable/xena

commit 8bd833185d2795f42fa3369321a3eba072d84a45
Author: Bartosz Bezak <email address hidden>
Date: Wed Dec 28 14:47:21 2022 +0100

    [OVN] Fix availability zones changes check

    Closes-Bug: #2000634

    Change-Id: Id5f34ec858a940d2fc4a03b9290adc6161aa9db3
    (cherry picked from commit 5e19eaadbb298aaf58b5389fea74c9b8064d0f41)

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

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

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

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

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

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

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

This issue was fixed in the openstack/neutron 21.1.0 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.