Fix that cyborg agent failed to start privsep daemon.

Add privileged capability to cyborg agent.

Change-Id: Id237df1acb1b44c4e6442b39838058be1a95fcc6
Closes-bug: #1873715
This commit is contained in:
ya.wang 2020-04-20 10:36:59 +08:00 committed by Radosław Piliszek
parent bb6e23fb29
commit 953edb870e
4 changed files with 11 additions and 0 deletions

View File

@ -13,6 +13,7 @@ cyborg_services:
container_name: cyborg_agent
group: cyborg-agent
enabled: true
privileged: true
image: "{{ cyborg_agent_image_full }}"
volumes: "{{ cyborg_agent_default_volumes + cyborg_agent_extra_volumes }}"
dimensions: "{{ cyborg_agent_dimensions }}"

View File

@ -9,6 +9,7 @@
common_options: "{{ docker_common_options }}"
name: "{{ service.container_name }}"
image: "{{ service.image }}"
privileged: "{{ service.privileged | default(False) }}"
volumes: "{{ service.volumes }}"
dimensions: "{{ service.dimensions }}"
when:
@ -24,6 +25,7 @@
common_options: "{{ docker_common_options }}"
name: "{{ service.container_name }}"
image: "{{ service.image }}"
privileged: "{{ service.privileged | default(False) }}"
volumes: "{{ service.volumes }}"
dimensions: "{{ service.dimensions }}"
when:
@ -39,6 +41,7 @@
common_options: "{{ docker_common_options }}"
name: "{{ service.container_name }}"
image: "{{ service.image }}"
privileged: "{{ service.privileged | default(False) }}"
volumes: "{{ service.volumes }}"
dimensions: "{{ service.dimensions }}"
when:

View File

@ -6,6 +6,7 @@
common_options: "{{ docker_common_options }}"
name: "{{ item.value.container_name }}"
image: "{{ item.value.image }}"
privileged: "{{ item.value.privileged | default(False) }}"
volumes: "{{ item.value.volumes }}"
dimensions: "{{ item.value.dimensions }}"
when:

View File

@ -0,0 +1,6 @@
---
fixes:
- |
Fix that cyborg agent failed to start privsep daemon. Add privileged
capability for cyborg agent. See `bug 1873715
<https://bugs.launchpad.net/kolla-ansible/+bug/1873715>`__.