ovn-controller container looses connection to openvswitch when openvswitch service is restarted

Bug #1764745 reported by Numan Siddique
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Numan Siddique

Bug Description

Presently ovn-controller container is started with "-v /run/openvswitch:/run/openvswitch".
The openvswitch systemd script deletes the /run/openvswitch folder when stopping it in the host.

/run/openvswitch path inside the ovn-controller container becomes a stale directory.
And when the service is started again, it creates the folder again. In order for ovn-controller
to access again, the folder has to be remounted or the ovn-controller container should be restarted.

Changed in tripleo:
assignee: nobody → Numan Siddique (numansiddique)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (master)

Fix proposed to branch: master
Review: https://review.openstack.org/561945

Changed in tripleo:
importance: Undecided → High
milestone: none → rocky-2
tags: added: containers networking queens-backport-potential
tags: added: pike-backport-potential
tags: removed: pike-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (master)

Reviewed: https://review.openstack.org/561945
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=49963bc180139300afc1a968bfab3f2904f2c09d
Submitter: Zuul
Branch: master

commit 49963bc180139300afc1a968bfab3f2904f2c09d
Author: Numan Siddique <email address hidden>
Date: Tue Apr 17 18:53:08 2018 +0530

    ovn: Mount /run instead of /run/openvswitch when starting ovn-controller container

    Presently ovn-controller container is started with "-v /run/openvswitch:/run/openvswitch".
    The openvswitch systemd script deletes the /run/openvswitch folder when stopping it in the host.
    /run/openvswitch path inside the ovn-controller container becomes a stale directory.
    And when the service is started again, it creates the folder again. In order for ovn-controller
    to access again, the folder has to be remounted or the ovn-controller container should be
    restarted.

    As a temporary fix, this patch mounts /run so that when /run/openvswitch is created again, it will
    get reflected inside the ovn-controller container. The proper fix has to come from openvswitch
    systemd script to not delete /run/openvswitch when stopping the service. This is presently
    discusses in OVS mailing list [1], but no proper solution has been arrived yet.

    [1] - https://mail.openvswitch.org/pipermail/ovs-dev/2018-March/345589.html
    Closes-bug: #1764745
    Change-Id: I032571cec49537cac972ebbbb44733ea17c299fa

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

Fix proposed to branch: stable/queens
Review: https://review.openstack.org/562538

Revision history for this message
Brent Eagles (beagles) wrote :

Won't this affect any neutron agent that mounts /run/openvswitch?

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/queens)

Reviewed: https://review.openstack.org/562538
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=d0219817174c78ea2a66a77511ba582c17278281
Submitter: Zuul
Branch: stable/queens

commit d0219817174c78ea2a66a77511ba582c17278281
Author: Numan Siddique <email address hidden>
Date: Tue Apr 17 18:53:08 2018 +0530

    ovn: Mount /run instead of /run/openvswitch when starting ovn-controller container

    Presently ovn-controller container is started with "-v /run/openvswitch:/run/openvswitch".
    The openvswitch systemd script deletes the /run/openvswitch folder when stopping it in the host.
    /run/openvswitch path inside the ovn-controller container becomes a stale directory.
    And when the service is started again, it creates the folder again. In order for ovn-controller
    to access again, the folder has to be remounted or the ovn-controller container should be
    restarted.

    As a temporary fix, this patch mounts /run so that when /run/openvswitch is created again, it will
    get reflected inside the ovn-controller container. The proper fix has to come from openvswitch
    systemd script to not delete /run/openvswitch when stopping the service. This is presently
    discusses in OVS mailing list [1], but no proper solution has been arrived yet.

    [1] - https://mail.openvswitch.org/pipermail/ovs-dev/2018-March/345589.html
    Closes-bug: #1764745
    Change-Id: I032571cec49537cac972ebbbb44733ea17c299fa
    (cherry picked from commit - 49963bc180139300afc1a968bfab3f2904f2c09d)

tags: added: in-stable-queens
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 8.0.3

This issue was fixed in the openstack/tripleo-heat-templates 8.0.3 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 9.0.0.0b3

This issue was fixed in the openstack/tripleo-heat-templates 9.0.0.0b3 development milestone.

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.