Merge "Mount vhost_sockets directory for vhost-user socket creation"
This commit is contained in:
commit
6ba9a71f40
|
@ -204,6 +204,7 @@ outputs:
|
||||||
- /var/lib/libvirt:/var/lib/libvirt
|
- /var/lib/libvirt:/var/lib/libvirt
|
||||||
- /var/log/libvirt/qemu:/var/log/libvirt/qemu:ro
|
- /var/log/libvirt/qemu:/var/log/libvirt/qemu:ro
|
||||||
- /var/log/containers/nova:/var/log/nova
|
- /var/log/containers/nova:/var/log/nova
|
||||||
|
- /var/lib/vhost_sockets:/var/lib/vhost_sockets
|
||||||
-
|
-
|
||||||
if:
|
if:
|
||||||
- use_tls_for_live_migration
|
- use_tls_for_live_migration
|
||||||
|
@ -252,6 +253,30 @@ outputs:
|
||||||
- /etc/libvirt/qemu
|
- /etc/libvirt/qemu
|
||||||
- /var/lib/libvirt
|
- /var/lib/libvirt
|
||||||
- /var/log/containers/nova
|
- /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
|
- name: ensure ceph configurations exist
|
||||||
file:
|
file:
|
||||||
path: /etc/ceph
|
path: /etc/ceph
|
||||||
|
|
Loading…
Reference in New Issue