Skip to content

Commit

Permalink
osd_disk_activate: add missing OSD_PATH variable
Browse files Browse the repository at this point in the history
When trying to resolve the Bluestore DB and/or WAL device then the
OSD_PATH variable isn't define.

Signed-off-by: Dimitri Savineau <[email protected]>
(cherry picked from commit 94cc2a6)
  • Loading branch information
dsavineau committed May 5, 2020
1 parent 9037779 commit bf0c3e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/daemon/osd_scenarios/osd_disk_activate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ function osd_activate {
OSD_ID=$(grep "${actual_part}" /proc/mounts | awk '{print $2}' | sed -r 's/^.*-([0-9]+)$/\1/')

if [[ ${OSD_BLUESTORE} -eq 1 ]]; then
OSD_PATH=$(get_osd_path "${OSD_ID}")
# Get the device used for block db and wal otherwise apply_ceph_ownership_to_disks will fail
OSD_BLUESTORE_BLOCK_DB_TMP=$(resolve_symlink "${OSD_PATH}block.db")
# shellcheck disable=SC2034
Expand Down

0 comments on commit bf0c3e8

Please sign in to comment.