permission denied problem with old dpdk vhost interfaces after updating ovs to 2.8+

Bug #1764971 reported by zenghui.shi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
Unassigned

Bug Description

when updating ovs to 2.8+ in newton, there will be a vhost_socket folder created for dpdkvhostuserclient mode interfaces(at /var/lib/vhost_socket). but for old dpdk instances, vhost_socket interface were created under /var/run/openvswitch folder and remain in that
folder after ovs update. Since the files in /var/run/openvswitch has 0755 mode, qemu cannot access them even it's in the same hugetlbfs group with openvswitch, this in turn causes permission denied errors.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to tripleo-heat-templates (stable/ocata)

Related fix proposed to branch: stable/ocata
Review: https://review.openstack.org/562148

Changed in tripleo:
milestone: none → rocky-2
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to tripleo-heat-templates (stable/newton)

Related fix proposed to branch: stable/newton
Review: https://review.openstack.org/564423

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-heat-templates (stable/ocata)

Change abandoned by zenghui.shi (<email address hidden>) on branch: stable/ocata
Review: https://review.openstack.org/562148
Reason: abandon for ocata.
patch for newton: https://review.openstack.org/564423

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

Reviewed: https://review.openstack.org/564423
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=93476eb49fa60ad7373060fb720b39a610794016
Submitter: Zuul
Branch: stable/newton

commit 93476eb49fa60ad7373060fb720b39a610794016
Author: Zenghui Shi <email address hidden>
Date: Thu Apr 26 16:29:43 2018 +0800

    Change ovs RuntimeDirectory Mode

    when updating ovs to 2.8+, ovs and qemu share the
    same group hugetlbfs, but for existing vhostusermode
    interfaces located at /var/run/openvswitch dir, qemu
    can't access them after ovs update, because the dir
    has default 0755 mode instead of a group write
    permission. This change is going to add g+w mode to
    /var/run/openvswitch.

    Change-Id: If9687fee5171d395585d72a923b50903a94297a7
    Related-Bug: #1764971

tags: added: in-stable-newton
Changed in tripleo:
milestone: rocky-2 → rocky-3
Changed in tripleo:
milestone: rocky-3 → rocky-rc1
Changed in tripleo:
milestone: rocky-rc1 → stein-1
Changed in tripleo:
milestone: stein-1 → stein-2
zenghui.shi (zshi)
Changed in tripleo:
status: Triaged → 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.