Skip to content

Commit

Permalink
start_mon: fix DAEMON_OPTS
Browse files Browse the repository at this point in the history
Typical error:
```
Jan 21 16:15:20 mon0 docker[19458]: parse error setting 'mon_cluster_log_to_file' to 'false ' (Expected option value to be integer, got 'false ')
```

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

Signed-off-by: Guillaume Abrioux <[email protected]>
(cherry picked from commit dfaf273)
  • Loading branch information
guits authored and dsavineau committed Jan 21, 2020
1 parent 1fe1b1d commit 8e4fb8f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/daemon/start_mon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,9 @@ function start_mon {
# enable cluster/audit/mon logs on the same stream
# Mind the extra space after 'debug'
# DO NOT TOUCH IT, IT MUST BE PRESENT
DAEMON_OPTS+=(--mon-cluster-log-to-stderr "--log-stderr-prefix=debug ")
if [[ ! "${CEPH_VERSION}" =~ ^(luminous|mimic)$ ]]; then
DAEMON_OPTS+=(--mon-cluster-log-to-stderr "--default-mon-cluster-log-to-file=false " "--log-stderr-prefix=debug ")
else
DAEMON_OPTS+=(--mon-cluster-log-to-stderr "--log-stderr-prefix=debug ")
DAEMON_OPTS+=("--default-mon-cluster-log-to-file=false")
fi
log "SUCCESS"
exec /usr/bin/ceph-mon "${DAEMON_OPTS[@]}" -i "${MON_NAME}" --mon-data "$MON_DATA_DIR" --public-addr "${MON_IP}"
Expand Down

0 comments on commit 8e4fb8f

Please sign in to comment.