lxc_default_bind_mounts are now mounted before list_of_bind_mounts.
As a consequence, /var/log/ is now mounted before /var/log/log-storage/
in rsyslog containers.
Also, directory creation inside the container is now handled by LXC
(using the create=dir option) just before the directory gets mounted,
so mounting a subdirectory after a directory (such as
/var/log/log-storage/ and /var/log/) will work.
Change-Id: I29be91b4dca5abe1bb8307429a86c06dbd3ef7aa
Closes-Bug: #1648065
(cherry picked from commit f219d90d8b85ed2c2c7a3771ee1f8143f1065fa6)
Reviewed: https:/ /review. openstack. org/409768 /git.openstack. org/cgit/ openstack/ openstack- ansible/ commit/ ?id=8a660f7c2aa 1b7ca9a638c9358 400df627610d1d
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit 8a660f7c2aa1b7c a9a638c9358400d f627610d1d
Author: Adrien Cunin <email address hidden>
Date: Wed Dec 7 14:23:54 2016 +0100
Process and mount default bind mounts first
lxc_ default_ bind_mounts are now mounted before list_of_ bind_mounts. log-storage/ log/log- storage/ and /var/log/) will work.
As a consequence, /var/log/ is now mounted before /var/log/
in rsyslog containers.
Also, directory creation inside the container is now handled by LXC
(using the create=dir option) just before the directory gets mounted,
so mounting a subdirectory after a directory (such as
/var/
Change-Id: I29be91b4dca5ab e1bb8307429a86c 06dbd3ef7aa c2c7a3771ee1f81 43f1065fa6)
Closes-Bug: #1648065
(cherry picked from commit f219d90d8b85ed2