/var/log bind mount overshadows /var/log/journal bindmount in lxc container setup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Fix Released
|
High
|
Dmitriy Rabotyagov |
Bug Description
Hi,
While deploying openstack with openstack-ansible 20.1.3 (stable/train) in lxc containers we ran into an issue related to logs mount points
By default when creating the containers, the role will add a bind mount so that the journald logs are sent to the host which is very useful for log collection. (see https:/
However, this mount point is overshadowed when running a service install after having created the containers. For example running the playbook os-heat-install.yml will overshadow the mount point /var/log/
Expected behavior would be that the more specific mount point would be mounted after the more general one to avoid overshadowing.
description: | updated |
I think as a workaround you can try setting `lxc_default_ bind_mounts: false` in your user_variables, to omit mounting /var/log at all, while journal is supposed to be mounted anyway.