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:
@@ -16,10 +16,12 @@ skydive_services:
|
||||
group: skydive-agent
|
||||
enabled: true
|
||||
image: "{{ skydive_agent_image_full }}"
|
||||
privileged: True
|
||||
volumes:
|
||||
- "{{ node_config_directory }}/skydive-agent/:{{ container_config_directory }}/:ro"
|
||||
- "/etc/localtime:/etc/localtime:ro"
|
||||
- "/var/run/openvswitch/db.sock:/var/run/openvswitch/db.sock:ro"
|
||||
- "/var/run/netns:/host/run:shared"
|
||||
- "kolla_logs:/var/log/kolla/"
|
||||
|
||||
####################
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
common_options: "{{ docker_common_options }}"
|
||||
name: "{{ service.container_name }}"
|
||||
image: "{{ service.image }}"
|
||||
privileged: "{{ service.privileged }}"
|
||||
volumes: "{{ service.volumes }}"
|
||||
when:
|
||||
- action != "config"
|
||||
|
||||
@@ -41,6 +41,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 }}"
|
||||
register: check_skydive_containers
|
||||
when:
|
||||
|
||||
@@ -52,3 +52,6 @@ agent:
|
||||
- ovsdb
|
||||
{% endif %}
|
||||
|
||||
netns:
|
||||
run_path: /host/run
|
||||
|
||||
|
||||
Reference in New Issue
Block a user