ovn version differences on ovn-chassis and ovn-central cause "mismatch with northd version" and chassis unable to register to centrals

Bug #2030944 reported by Diko Parvanov
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Snap
Triaged
Medium
Unassigned
charm-ovn-chassis
Fix Released
Undecided
Unassigned
charm-ovn-dedicated-chassis
Fix Released
Undecided
Unassigned

Bug Description

ovn-chassis and ovn-central charms sync ovn packages from different repos, because of different versions in both of them:

ovn-central (focal-updates/yoga/main):
 ovn-common | 22.03.2-0ubuntu0.22.04.1~cloud1 | yoga | focal-updates | linux-any all

ovn-chassis (focal-updates/ovn-22.03/main):
 ovn-common | 22.03.0-0ubuntu1~cloud0 | ovn-22.03 | focal-updates | linux-any all

This needs to be addressed, as during migration from ovs to ovn this causes the ovn-chassis to not be able to register with the central units with:

2023-08-10T07:28:24.235Z|02840|main|WARN|controller version - 22.03.0-20.21.0-58.3 mismatch with northd version - 22.03.2-20.21.0-61.4

The workaround is to use this to prevent the check, but if left there it's dangerous during future upgrades of ovn:

ovs-vsctl set open . external_ids:ovn-match-northd-version="false"

Diko Parvanov (dparv)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-ovn-chassis (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/x/charm-ovn-chassis/+/892326

Changed in charm-ovn-chassis:
status: New → In Progress
Frode Nordahl (fnordahl)
affects: charm-ovn-central → charm-ovn-dedicated-chassis
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-ovn-dedicated-chassis (master)

Reviewed: https://review.opendev.org/c/x/charm-ovn-dedicated-chassis/+/892327
Committed: https://opendev.org/x/charm-ovn-dedicated-chassis/commit/fa21facfe4636fb7f7610f5286fff66f0d5d1f7b
Submitter: "Zuul (22348)"
Branch: master

commit fa21facfe4636fb7f7610f5286fff66f0d5d1f7b
Author: Frode Nordahl <email address hidden>
Date: Tue Aug 22 15:12:30 2023 +0200

    Make version pinning optional

    The OVN charms prepared for the upgrade from OVN 20.03 to newer
    versions by enabling the version pinning by default.

    Since then we have reached agreement with upstream that rolling
    upgrades should work when upgrading within the previous upstream
    LTS version and the next.

    Having the pinning enabled by default causes unnecessary grief for
    anyone already upgraded to OVN 22.03, so it's time to turn it off
    by default.

    We add a charm configuration option in case anyone wants to
    upgrade across LTS boundaries in the future.

    Closes-Bug: #2030944
    Signed-off-by: Frode Nordahl <email address hidden>
    Change-Id: I21dc2dc6615d39ffaa88cc27dbe3b2ba9b3982c4

Changed in charm-ovn-dedicated-chassis:
status: New → Fix Committed
Changed in charm-ovn-chassis:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-ovn-chassis (master)

Reviewed: https://review.opendev.org/c/x/charm-ovn-chassis/+/892326
Committed: https://opendev.org/x/charm-ovn-chassis/commit/a4f2a1fecb5ea7200286765b348ba154da5fde45
Submitter: "Zuul (22348)"
Branch: master

commit a4f2a1fecb5ea7200286765b348ba154da5fde45
Author: Frode Nordahl <email address hidden>
Date: Tue Aug 22 15:11:23 2023 +0200

    Make version pinning optional

    The OVN charms prepared for the upgrade from OVN 20.03 to newer
    versions by enabling the version pinning by default.

    Since then we have reached agreement with upstream that rolling
    upgrades should work when upgrading within the previous upstream
    LTS version and the next.

    Having the pinning enabled by default causes unnecessary grief for
    anyone already upgraded to OVN 22.03, so it's time to turn it off
    by default.

    We add a charm configuration option in case anyone wants to
    upgrade across LTS boundaries in the future.

    Closes-Bug: #2030944
    Signed-off-by: Frode Nordahl <email address hidden>
    Change-Id: I22a99838c13e5203459b1e5edab72f3d9536260c

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-ovn-chassis (stable/23.03)

Fix proposed to branch: stable/23.03
Review: https://review.opendev.org/c/x/charm-ovn-chassis/+/902571

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-ovn-chassis (stable/22.09)

Fix proposed to branch: stable/22.09
Review: https://review.opendev.org/c/x/charm-ovn-chassis/+/902572

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-ovn-chassis (stable/22.03)

Fix proposed to branch: stable/22.03
Review: https://review.opendev.org/c/x/charm-ovn-chassis/+/902573

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-ovn-dedicated-chassis (stable/22.03)

Fix proposed to branch: stable/22.03
Review: https://review.opendev.org/c/x/charm-ovn-dedicated-chassis/+/902869

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-ovn-dedicated-chassis (stable/22.09)

Fix proposed to branch: stable/22.09
Review: https://review.opendev.org/c/x/charm-ovn-dedicated-chassis/+/902870

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-ovn-dedicated-chassis (stable/23.03)

Fix proposed to branch: stable/23.03
Review: https://review.opendev.org/c/x/charm-ovn-dedicated-chassis/+/902871

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-ovn-chassis (stable/23.03)

Reviewed: https://review.opendev.org/c/x/charm-ovn-chassis/+/902571
Committed: https://opendev.org/x/charm-ovn-chassis/commit/246ce2653b4adb742dbe9c0efe350284588dd699
Submitter: "Zuul (22348)"
Branch: stable/23.03

commit 246ce2653b4adb742dbe9c0efe350284588dd699
Author: Frode Nordahl <email address hidden>
Date: Mon Dec 4 14:51:22 2023 +0100

    Make version pinning configurable

    Add charm configuration option `enable-version-pinning` which
    defaults to 'true' for the stable branches.

    build.lock: Update pin set for PyYAML and Cython.

    Closes-Bug: #2030944
    Signed-off-by: Frode Nordahl <email address hidden>
    Change-Id: If98b094efe5e16eb3db1eb6025f8c10b93660225

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-ovn-chassis (stable/22.03)

Reviewed: https://review.opendev.org/c/x/charm-ovn-chassis/+/902573
Committed: https://opendev.org/x/charm-ovn-chassis/commit/4d7a3ae2da0c1868d399769e898c7a07a2f0ec5d
Submitter: "Zuul (22348)"
Branch: stable/22.03

commit 4d7a3ae2da0c1868d399769e898c7a07a2f0ec5d
Author: Frode Nordahl <email address hidden>
Date: Mon Dec 4 14:55:31 2023 +0100

    Make version pinning configurable

    Add charm configuration option `enable-version-pinning` which
    defaults to 'true' for the stable branches.

    build.lock: Update pin-set for PyYAML and Cython.

    Closes-Bug: #2030944
    Signed-off-by: Frode Nordahl <email address hidden>
    Change-Id: Id5b6d10f8da926529acf42ad29721b100a3aa001

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-ovn-chassis (stable/22.09)

Reviewed: https://review.opendev.org/c/x/charm-ovn-chassis/+/902572
Committed: https://opendev.org/x/charm-ovn-chassis/commit/dd93ab2deab17a99567507b980656c35f27950e9
Submitter: "Zuul (22348)"
Branch: stable/22.09

commit dd93ab2deab17a99567507b980656c35f27950e9
Author: Frode Nordahl <email address hidden>
Date: Mon Dec 4 14:53:44 2023 +0100

    Make version pinning configurable

    Add charm configuration option `enable-version-pinning` which
    defaults to 'true' for the stable branches.

    build.lock: Update pin set for PyYAML and Cython.

    Closes-Bug: #2030944
    Signed-off-by: Frode Nordahl <email address hidden>
    Change-Id: If861276435e08731d4a97cc2d86ee5a2dbb85a23

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-ovn-dedicated-chassis (stable/23.03)

Reviewed: https://review.opendev.org/c/x/charm-ovn-dedicated-chassis/+/902871
Committed: https://opendev.org/x/charm-ovn-dedicated-chassis/commit/5e291d2109673f00cb1d653169eb66c798a3c5c2
Submitter: "Zuul (22348)"
Branch: stable/23.03

commit 5e291d2109673f00cb1d653169eb66c798a3c5c2
Author: Frode Nordahl <email address hidden>
Date: Thu Dec 7 10:09:37 2023 +0100

    Make version pinning configurable

    Add charm configuration option `enable-version-pinning` which
    defaults to 'true' for the stable branches.

    build.lock: Update pin set for PyYAML and Cython.

    Closes-Bug: #2030944
    Signed-off-by: Frode Nordahl <email address hidden>
    Change-Id: I0d4351bc447516167d20d0febc28c221a39dcd62

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-ovn-dedicated-chassis (stable/22.03)

Reviewed: https://review.opendev.org/c/x/charm-ovn-dedicated-chassis/+/902869
Committed: https://opendev.org/x/charm-ovn-dedicated-chassis/commit/0ee8307e71185152dc6e65b66749fc9b65c0e9bb
Submitter: "Zuul (22348)"
Branch: stable/22.03

commit 0ee8307e71185152dc6e65b66749fc9b65c0e9bb
Author: Frode Nordahl <email address hidden>
Date: Thu Dec 7 10:04:34 2023 +0100

    Make version pinning configurable

    Add charm configuration option `enable-version-pinning` which
    defaults to 'true' for the stable branches.

    build.lock: Update pin-set for PyYAML and Cython.

    Closes-Bug: #2030944
    Signed-off-by: Frode Nordahl <email address hidden>
    Change-Id: I3288917ae339312ab1365d17d217e5f228218a13

James Page (james-page)
Changed in snap-openstack:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-ovn-dedicated-chassis (stable/22.09)

Reviewed: https://review.opendev.org/c/x/charm-ovn-dedicated-chassis/+/902870
Committed: https://opendev.org/x/charm-ovn-dedicated-chassis/commit/aaddc75b0007691139ca78d8320d7f28d51a6d1c
Submitter: "Zuul (22348)"
Branch: stable/22.09

commit aaddc75b0007691139ca78d8320d7f28d51a6d1c
Author: Frode Nordahl <email address hidden>
Date: Thu Dec 7 10:06:54 2023 +0100

    Make version pinning configurable

    Add charm configuration option `enable-version-pinning` which
    defaults to 'true' for the stable branches.

    build.lock: Update pin set for PyYAML and Cython.

    Closes-Bug: #2030944
    Signed-off-by: Frode Nordahl <email address hidden>
    Change-Id: Ie7c2bfd46af903a9023da5213add2dde0cd17690

Frode Nordahl (fnordahl)
Changed in charm-ovn-chassis:
status: Fix Committed → Fix Released
Changed in charm-ovn-dedicated-chassis:
status: Fix Committed → Fix Released
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.