Whenever /var/log/horizon/horizon.log recreated as a root,
the touch command fails, and the chown commands got skipped.
This results in idempotency issues when the logs path become
accessed under mismatching user.
Fix this by making the chown command always applying disregard
of the touch command results.
Reviewed: https:/ /review. openstack. org/642717 /git.openstack. org/cgit/ openstack/ tripleo- heat-templates/ commit/ ?id=95e142d84ee af82b23323bb3a8 eab1e4f6a9e005
Committed: https:/
Submitter: Zuul
Branch: master
commit 95e142d84eeaf82 b23323bb3a8eab1 e4f6a9e005
Author: Bogdan Dobrelya <email address hidden>
Date: Tue Mar 12 11:38:51 2019 +0100
Fix idempotency for horizon container logs
Whenever /var/log/ horizon/ horizon. log recreated as a root,
the touch command fails, and the chown commands got skipped.
This results in idempotency issues when the logs path become
accessed under mismatching user.
Fix this by making the chown command always applying disregard
of the touch command results.
Closes-Bug: #1819626
Change-Id: Ied538dbc7dbd31 1361108747a1e89 d1f5740eedd
Signed-off-by: Bogdan Dobrelya <email address hidden>