
When using both /run and /run/netns in docker container, mount propagation won't work when delete namespace after the containers are restarted. This PS makes /run mount as shared. Closes-Bug: #1616268 Change-Id: Ie16699e1b193b2bf1263d89ea634e89ea69add9e
46 lines
1.4 KiB
YAML
46 lines
1.4 KiB
YAML
---
|
|
- name: Starting iscsid container
|
|
kolla_docker:
|
|
action: "start_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
image: "{{ iscsid_image_full }}"
|
|
name: "iscsid"
|
|
ipc_mode: "host"
|
|
privileged: True
|
|
volumes:
|
|
- "{{ node_config_directory }}/iscsid/:{{ container_config_directory }}/:ro"
|
|
- "kolla_logs:/var/log/kolla/"
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
- "/dev/:/dev/"
|
|
- "/run/:/run/:shared"
|
|
- "/sys/fs/cgroup:/sys/fs/cgroup:ro"
|
|
- "/lib/modules:/lib/modules:ro"
|
|
- "/sys/kernel/config:/configfs"
|
|
- "cinder:/var/lib/cinder"
|
|
- "iscsi_info:/etc/iscsi"
|
|
when: inventory_hostname in groups['compute'] or
|
|
inventory_hostname in groups['storage']
|
|
|
|
- name: Starting tgtd container
|
|
kolla_docker:
|
|
action: "start_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
image: "{{ tgtd_image_full }}"
|
|
name: "tgtd"
|
|
ipc_mode: "host"
|
|
privileged: True
|
|
volumes:
|
|
- "{{ node_config_directory }}/tgtd/:{{ container_config_directory }}/:ro"
|
|
- "kolla_logs:/var/log/kolla/"
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
- "/dev/:/dev/"
|
|
- "/run/:/run/:shared"
|
|
- "/sys/fs/cgroup:/sys/fs/cgroup:ro"
|
|
- "/lib/modules:/lib/modules:ro"
|
|
- "/sys/kernel/config:/configfs"
|
|
- "cinder:/var/lib/cinder"
|
|
- "iscsi_info:/etc/iscsi"
|
|
when:
|
|
- inventory_hostname in groups['tgtd']
|
|
- enable_cinder_backend_lvm | bool
|