DPDK: Validate if creation of vhost_sockets directory is still required in nova-libvirt

Bug #1751711 reported by Saravanan KR
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Saravanan KR

Bug Description

Validate if creation of vhost_sockets directory is still required in nova-libvirt, if required, ensure the new group name (hugetlbfs) is updated to this directory

        # qemu user on host will be cretaed by libvirt package install, ensure
        # the qemu user created with same uid/gid as like libvirt package.
        # These specific values are required since ovs is running on host.
        # Once ovs with DPDK is containerized, we could modify this uid/gid
        # to match with kolla config values.
        - name: ensure qemu group is present on the host
          group:
            name: qemu
            gid: 107
            state: present
        - name: ensure qemu user is present on the host
          user:
            name: qemu
            uid: 107
            group: qemu
            state: present
            shell: /sbin/nologin
            comment: qemu user
        - name: create directory for vhost-user sockets with qemu ownership
          file:
            path: /var/lib/vhost_sockets
            state: directory
            owner: qemu
            group: qemu

Saravanan KR (skramaja)
Changed in tripleo:
milestone: none → queens-rc1
importance: Undecided → High
status: New → Confirmed
assignee: nobody → Saravanan KR (skramaja)
Changed in tripleo:
status: Confirmed → Triaged
Changed in tripleo:
milestone: queens-rc1 → rocky-1
Revision history for this message
Saravanan KR (skramaja) wrote :

Additional discussion on the BZ - https://bugzilla.redhat.com/show_bug.cgi?id=1549938#c15

Need to set correct selinux type or use command restorecon to set correct types.

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/555661

Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (master)

Reviewed: https://review.openstack.org/555661
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=611830fd7621325fbbea5267492a631312aca767
Submitter: Zuul
Branch: master

commit 611830fd7621325fbbea5267492a631312aca767
Author: Saravanan KR <email address hidden>
Date: Tue Feb 27 17:44:04 2018 +0530

    Apply the vhost group parameter for the vhost_sockets directory creation

    Directory /var/lib/vhost_sockets will be used to create vhost sockets
    which should have the the group name as hugetlbfs, which is common
    between qemu and openvswitch to share the vhost_sockets. And the
    correct selinux context to be applied on the vhost_sockets directory.
    Closes-Bug: #1751711
    Change-Id: Ib917cf86bd9a4ce57af243ab43337ea6c88bf76c

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/559891

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

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

commit b055eb339b17e1352867a3a082ec6e671f21788a
Author: Saravanan KR <email address hidden>
Date: Tue Feb 27 17:44:04 2018 +0530

    Apply the vhost group parameter for the vhost_sockets directory creation

    Directory /var/lib/vhost_sockets will be used to create vhost sockets
    which should have the the group name as hugetlbfs, which is common
    between qemu and openvswitch to share the vhost_sockets. And the
    correct selinux context to be applied on the vhost_sockets directory.
    Closes-Bug: #1751711
    Change-Id: Ib917cf86bd9a4ce57af243ab43337ea6c88bf76c
    (cherry picked from commit 611830fd7621325fbbea5267492a631312aca767)

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

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

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

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

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.