Add /var/lib/kolla/venv/bin to Zun exec_dirs

This is necessary for rootwrap/privsep to work properly

Closes-Bug: #1883604
Change-Id: I128fb04a5ddeb77428697d33e2015158bc74738f
(cherry picked from commit 570a6120be)
This commit is contained in:
Hongbin Lu 2018-09-30 16:14:31 +00:00 committed by Radosław Piliszek
parent 965a288da2
commit dd0069addb
1 changed files with 2 additions and 1 deletions

View File

@ -52,7 +52,8 @@ RUN ln -s zun-base-source/* zun \
&& mkdir -p /etc/zun /var/www/cgi-bin/zun \
&& cp -r /zun/etc/zun/* /etc/zun/ \
&& cp /zun/zun/api/app.wsgi /var/www/cgi-bin/zun \
&& chown -R zun: /etc/zun /var/www/cgi-bin/zun
&& chown -R zun: /etc/zun /var/www/cgi-bin/zun \
&& sed -i 's|^exec_dirs.*|exec_dirs=/var/lib/kolla/venv/bin,/sbin,/usr/sbin,/bin,/usr/bin,/usr/local/bin,/usr/local/sbin|g' /etc/zun/rootwrap.conf
{% endif %}