Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Commit

Permalink
tcmu-runner: set log dir to /var/log/tcmu-runner
Browse files Browse the repository at this point in the history
This commit changes the log directory for tcmu-runner to
`/var/log/tcmu-runner`. This way we can bindmount this directory in
order to make logrotate access it from the host.

ceph-ansible related PR: ceph/ceph-ansible#5780

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1873915

Signed-off-by: Guillaume Abrioux <[email protected]>
(cherry picked from commit 94c4ece)
  • Loading branch information
guits authored and dsavineau committed Sep 16, 2020
1 parent 1e002bc commit c114b44
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/daemon/start_tcmu_runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ function start_tcmu_runner {
# mount configfs at /sys/kernel/config
mount -t configfs none /sys/kernel/config

# create the log directory
mkdir -p "${TCMU_RUNNER_LOG_DIR}"

log "SUCCESS"
# start tcmu-runner
exec tcmu-runner
exec tcmu-runner --tcmu-log-dir "${TCMU_RUNNER_LOG_DIR}"
}
1 change: 1 addition & 0 deletions src/daemon/variables_entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,4 @@ MONMAP=/etc/ceph/monmap-${CLUSTER}
MGR_KEYRING=/var/lib/ceph/mgr/${CLUSTER}-${MGR_NAME}/keyring
RBD_MIRROR_KEYRING=/etc/ceph/${CLUSTER}.client.rbd-mirror.${HOSTNAME}.keyring
STAYALIVE=
TCMU_RUNNER_LOG_DIR=/var/log/tcmu-runner

0 comments on commit c114b44

Please sign in to comment.