Mount /run directory into zun_cni_daemon container

During zun_cni_daemon binds the port to container netns,
zun_cni_damon creates a new net namepsaces(cni-xxx),
Currently, the namespace is only present inside the
zun_cni_daemon container, if this container restart or
rerun, all zun capsules will lost network capability.

Closes-Bug: #1993551

Change-Id: I3642bbf1ad8e8f4744b215fb8deff25fd4ceae75
This commit is contained in:
wuchunyang 2022-10-19 19:39:11 +08:00 committed by wu.chunyang
parent 766a7827f9
commit ccbdfaea5c
2 changed files with 6 additions and 0 deletions

View File

@ -188,6 +188,7 @@ zun_cni_daemon_default_volumes:
- "{{ '/etc/timezone:/etc/timezone:ro' if ansible_facts.os_family == 'Debian' else '' }}"
- "kolla_logs:/var/log/kolla/"
- "{{ kolla_dev_repos_directory ~ '/zun/zun:/var/lib/kolla/venv/lib/python' ~ distro_python_version ~ '/site-packages/zun' if zun_dev_mode | bool else '' }}"
- "/run:/run:shared"
zun_extra_volumes: "{{ default_extra_volumes }}"
zun_api_extra_volumes: "{{ zun_extra_volumes }}"

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Fix zun capsules lose the network namespaces after restarting
zun_cni_daemon container