OpenvSwitch run path not created

Bug #1754144 reported by Jeff Albert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
Undecided
Markos Chandras

Bug Description

In an OSA-deployed Pike environment specifying the openvswitch ml2 driver, openvswitch's run path (/var/run/openvswitch) is not created by OSA. As a result, the openvswitch database service, ovsdb-server, fails to start up, and openvswitch is non-functional.

From /var/log/messages:
Mar 6 18:30:22 pike06-neutron-agents-container-af2bf6c5 ovs-vsctl: ovs|00002|db_ctl_base|ERR|unix:/var/run/openvswitch/db.sock: database connection failed (No such file or directory)

Creating the directory manually allows ovsdb-server to be successfully restarted. OSA should create this path during deployment so that ovsdb-server can start without manual intervention.

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

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

Changed in openstack-ansible:
assignee: nobody → Kevin Carter (kevin-carter)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible-os_neutron (master)

Reviewed: https://review.openstack.org/550609
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible-os_neutron/commit/?id=7ba9b763828155ba4ec639b92017061b013a2f5f
Submitter: Zuul
Branch: master

commit 7ba9b763828155ba4ec639b92017061b013a2f5f
Author: Kevin Carter <email address hidden>
Date: Wed Mar 7 15:24:02 2018 -0600

    Create ovs temp directories when using ovs

    This change creates a tmpfiles file and related directories when using
    any "ovs" based plugin.

    Change-Id: I616880bc6883eacb8393bbcaabaccccdd2665200
    Closes-Bug: #1754144
    Signed-off-by: Kevin Carter <email address hidden>

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

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

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

Change abandoned by Kevin Carter (cloudnull) (<email address hidden>) on branch: stable/queens
Review: https://review.openstack.org/556890

Revision history for this message
Markos Chandras (hwoarang) wrote :

I have reverted the fix because we shouldn't have to create these directories ourselves. Open vSwitch is able to create these directories before starting the services so what you report here is probably a missing backport of

https://review.openstack.org/#/c/556892/

If this still doesn't fix the issue, it's a distribution packaging problem. OSA is not different than a 'user' in this case, so users are not expected to create /var/run/openvswitch themselves before installing ovs.

Changed in openstack-ansible:
assignee: Kevin Carter (kevin-carter) → Markos Chandras (hwoarang)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible-os_neutron 18.0.0.0b1

This issue was fixed in the openstack/openstack-ansible-os_neutron 18.0.0.0b1 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.