Skydive: allow access to netns for skydive agents
This access is now mandatory for skydive. It allows to add netns info to the topology, and to attach interfaces to their netns if needed. Closes-Bug: #1710627 Change-Id: I41cc1fd0fdeae0757a2c4e3e310ec6375da0b8cf
This commit is contained in:
parent
f21d954179
commit
dff4c6b328
@ -16,10 +16,12 @@ skydive_services:
|
|||||||
group: skydive-agent
|
group: skydive-agent
|
||||||
enabled: true
|
enabled: true
|
||||||
image: "{{ skydive_agent_image_full }}"
|
image: "{{ skydive_agent_image_full }}"
|
||||||
|
privileged: True
|
||||||
volumes:
|
volumes:
|
||||||
- "{{ node_config_directory }}/skydive-agent/:{{ container_config_directory }}/:ro"
|
- "{{ node_config_directory }}/skydive-agent/:{{ container_config_directory }}/:ro"
|
||||||
- "/etc/localtime:/etc/localtime:ro"
|
- "/etc/localtime:/etc/localtime:ro"
|
||||||
- "/var/run/openvswitch/db.sock:/var/run/openvswitch/db.sock:ro"
|
- "/var/run/openvswitch/db.sock:/var/run/openvswitch/db.sock:ro"
|
||||||
|
- "/var/run/netns:/host/run:shared"
|
||||||
- "kolla_logs:/var/log/kolla/"
|
- "kolla_logs:/var/log/kolla/"
|
||||||
|
|
||||||
####################
|
####################
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
name: "{{ service.container_name }}"
|
name: "{{ service.container_name }}"
|
||||||
image: "{{ service.image }}"
|
image: "{{ service.image }}"
|
||||||
|
privileged: "{{ service.privileged }}"
|
||||||
volumes: "{{ service.volumes }}"
|
volumes: "{{ service.volumes }}"
|
||||||
when:
|
when:
|
||||||
- action != "config"
|
- action != "config"
|
||||||
|
@ -41,6 +41,7 @@
|
|||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
name: "{{ item.value.container_name }}"
|
name: "{{ item.value.container_name }}"
|
||||||
image: "{{ item.value.image }}"
|
image: "{{ item.value.image }}"
|
||||||
|
privileged: "{{ item.value.privileged | default(False) }}"
|
||||||
volumes: "{{ item.value.volumes }}"
|
volumes: "{{ item.value.volumes }}"
|
||||||
register: check_skydive_containers
|
register: check_skydive_containers
|
||||||
when:
|
when:
|
||||||
|
@ -52,3 +52,6 @@ agent:
|
|||||||
- ovsdb
|
- ovsdb
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
netns:
|
||||||
|
run_path: /host/run
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user