On wallaby openvswitch is restarted even though enable-auto-restarts=False

Bug #1923636 reported by Liam Young
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Neutron Open vSwitch Charm
Fix Released
High
Felipe Reyes
charm-ovn-chassis
Confirmed
High
Liam Young

Bug Description

When running `dpkg-reconfigure openvswitch-switch` openvswitch services are restarted even though they should be blocked from restarting because enable-auto-restarts=False

This is because the charm does not put a policy file in place to block restarts of ovs-record-hostname.

Liam Young (gnuoy)
Changed in charm-ovn-chassis:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Liam Young (gnuoy)
Revision history for this message
Felipe Reyes (freyes) wrote :

2022-02-08 15:00:27.010539 | focal-medium | 2022-02-08 15:00:27 [ERROR] Service openvswitch-switch on unit neutron-openvswitch/0 should have start time of 2022-02-08 14:14:37 but it has 2022-02-08 14:59:11
2022-02-08 15:00:27.010915 | focal-medium | 2022-02-08 15:00:27 [ERROR] Service openvswitch-switch on unit neutron-openvswitch/1 should have start time of 2022-02-08 14:19:29 but it has 2022-02-08 14:59:35

neutron-openvswitch_0 $ cat var/log/policy-rc.d.log
[...]
2022-02-08 14:59:11,273 Permitting ovs-record-hostname.service restart
2022-02-08 14:59:12,329 restart of openvswitch-switch blocked by charm neutron-openvswitch

Occurrence seen in neutron-openvswitch gate - https://openstack-ci-reports.ubuntu.com/artifacts/e58/826707/3/check/migrate-ovn-focal-xena-dvr-snat/e5829b9/

Changed in charm-neutron-openvswitch:
assignee: nobody → Felipe Reyes (freyes)
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-neutron-openvswitch (master)
Changed in charm-neutron-openvswitch:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-neutron-openvswitch (master)

Reviewed: https://review.opendev.org/c/openstack/charm-neutron-openvswitch/+/828422
Committed: https://opendev.org/openstack/charm-neutron-openvswitch/commit/f6a9487b05b08e5481d0792d825c98548621e5c0
Submitter: "Zuul (22348)"
Branch: master

commit f6a9487b05b08e5481d0792d825c98548621e5c0
Author: Felipe Reyes <email address hidden>
Date: Tue Feb 8 16:50:42 2022 -0300

    Mark ovs-record-hostname as deferable service.

    Add ovs-record-hostname to the list of deferrable services, this service
    was SRU'ed into Ubuntu >= Focal, when it's not mark as deferrable on
    package upgrades will induce a restart of openvswitch-switch.

    Change-Id: I4fa3256b39e62e9df223ab40f17f1677a621f293
    Closes-Bug: #1923636
    Related-Bug: #1915829

Changed in charm-neutron-openvswitch:
status: In Progress → Fix Committed
Felipe Reyes (freyes)
Changed in charm-neutron-openvswitch:
milestone: none → 22.04
Revision history for this message
Drew Freiberger (afreiberger) wrote : Re: On wallaby openvswitch is restarted even though ebale-auto-restarts=False

this bug appears to be patched since 21.04 for charm-ovn-chassis based on this charm-layer-ovn commit.

https://github.com/openstack-charmers/charm-layer-ovn/commit/3763cefeb2251ac6c736c456f4ae5f7b534033d5

Andrea Ieri (aieri)
summary: - On wallaby openvswitch is restarted even though ebale-auto-
+ On wallaby openvswitch is restarted even though enable-auto-
restarts=False
Revision history for this message
Hemanth Nakkina (hemanth-n) wrote :

Just a note, the openvswitch restart is also observed during upgrade from bionic-train to bionic-ussuri. And the fix need to be backported until stable/ussuri.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-neutron-openvswitch (stable/xena)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-neutron-openvswitch (stable/wallaby)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-neutron-openvswitch (stable/victoria)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-neutron-openvswitch (stable/ussuri)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-neutron-openvswitch (stable/xena)

Reviewed: https://review.opendev.org/c/openstack/charm-neutron-openvswitch/+/838224
Committed: https://opendev.org/openstack/charm-neutron-openvswitch/commit/1d4f077e1117c2f0ea8a21ef60333470c5077eeb
Submitter: "Zuul (22348)"
Branch: stable/xena

commit 1d4f077e1117c2f0ea8a21ef60333470c5077eeb
Author: Felipe Reyes <email address hidden>
Date: Tue Feb 8 16:50:42 2022 -0300

    Mark ovs-record-hostname as deferable service.

    Add ovs-record-hostname to the list of deferrable services, this service
    was SRU'ed into Ubuntu >= Focal, when it's not mark as deferrable on
    package upgrades will induce a restart of openvswitch-switch.

    Change-Id: I4fa3256b39e62e9df223ab40f17f1677a621f293
    Closes-Bug: #1923636
    Related-Bug: #1915829
    (cherry picked from commit f6a9487b05b08e5481d0792d825c98548621e5c0)

tags: added: in-stable-xena
Changed in charm-neutron-openvswitch:
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-neutron-openvswitch (stable/wallaby)

Reviewed: https://review.opendev.org/c/openstack/charm-neutron-openvswitch/+/838225
Committed: https://opendev.org/openstack/charm-neutron-openvswitch/commit/96fb6408203b7d2c8592e6dd510fb7086160696a
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit 96fb6408203b7d2c8592e6dd510fb7086160696a
Author: Felipe Reyes <email address hidden>
Date: Tue Feb 8 16:50:42 2022 -0300

    Mark ovs-record-hostname as deferable service.

    Add ovs-record-hostname to the list of deferrable services, this service
    was SRU'ed into Ubuntu >= Focal, when it's not mark as deferrable on
    package upgrades will induce a restart of openvswitch-switch.

    Change-Id: I4fa3256b39e62e9df223ab40f17f1677a621f293
    Closes-Bug: #1923636
    Related-Bug: #1915829
    (cherry picked from commit f6a9487b05b08e5481d0792d825c98548621e5c0)

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

Reviewed: https://review.opendev.org/c/openstack/charm-neutron-openvswitch/+/838226
Committed: https://opendev.org/openstack/charm-neutron-openvswitch/commit/e3e8c74d99623ceb68558a387283cf0d19c45c58
Submitter: "Zuul (22348)"
Branch: stable/victoria

commit e3e8c74d99623ceb68558a387283cf0d19c45c58
Author: Felipe Reyes <email address hidden>
Date: Tue Feb 8 16:50:42 2022 -0300

    Mark ovs-record-hostname as deferable service.

    Add ovs-record-hostname to the list of deferrable services, this service
    was SRU'ed into Ubuntu >= Focal, when it's not mark as deferrable on
    package upgrades will induce a restart of openvswitch-switch.

    Change-Id: I4fa3256b39e62e9df223ab40f17f1677a621f293
    Closes-Bug: #1923636
    Related-Bug: #1915829
    (cherry picked from commit f6a9487b05b08e5481d0792d825c98548621e5c0)

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

Reviewed: https://review.opendev.org/c/openstack/charm-neutron-openvswitch/+/838227
Committed: https://opendev.org/openstack/charm-neutron-openvswitch/commit/65f405d63296215cf4c923a43895e8b060a85225
Submitter: "Zuul (22348)"
Branch: stable/ussuri

commit 65f405d63296215cf4c923a43895e8b060a85225
Author: Felipe Reyes <email address hidden>
Date: Tue Feb 8 16:50:42 2022 -0300

    Mark ovs-record-hostname as deferable service.

    Add ovs-record-hostname to the list of deferrable services, this service
    was SRU'ed into Ubuntu >= Focal, when it's not mark as deferrable on
    package upgrades will induce a restart of openvswitch-switch.

    Change-Id: I4fa3256b39e62e9df223ab40f17f1677a621f293
    Closes-Bug: #1923636
    Related-Bug: #1915829
    (cherry picked from commit f6a9487b05b08e5481d0792d825c98548621e5c0)

tags: added: in-stable-ussuri
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.