diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-09-11 11:50:15 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-09-11 11:50:15 +0000 |
commit | 39bb4cf3e960cbbe3390175b230aa32a5d795a4c (patch) | |
tree | 19023a8040c98085aaacabe387c1797c94b0a3e8 | |
parent | f166254ad85db888faae54a4f96c62819f56fd75 (diff) | |
parent | 260648ffe3c28ee294e977346c0289adaa114118 (diff) |
Merge "Mount vhost_sockets directory for vhost-user socket creation" into stable/pike
-rw-r--r-- | docker/services/nova-libvirt.yaml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/docker/services/nova-libvirt.yaml b/docker/services/nova-libvirt.yaml index 8f151cfe..d20c093d 100644 --- a/docker/services/nova-libvirt.yaml +++ b/docker/services/nova-libvirt.yaml @@ -204,6 +204,7 @@ outputs: - /var/lib/libvirt:/var/lib/libvirt - /var/log/libvirt/qemu:/var/log/libvirt/qemu:ro - /var/log/containers/nova:/var/log/nova + - /var/lib/vhost_sockets:/var/lib/vhost_sockets - if: - use_tls_for_live_migration @@ -252,6 +253,30 @@ outputs: - /etc/libvirt/qemu - /var/lib/libvirt - /var/log/containers/nova + # 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 - name: ensure ceph configurations exist file: path: /etc/ceph |