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/642718 /git.openstack. org/cgit/ openstack/ tripleo- heat-templates/ commit/ ?id=7761ae38d48 7bd074a3d5e2bab 50924588772243
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 7761ae38d487bd0 74a3d5e2bab5092 4588772243
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 b23323bb3a8eab1 e4f6a9e005)
Signed-off-by: Bogdan Dobrelya <email address hidden>
(cherry picked from commit 95e142d84eeaf82