Ceph-osd: Fix static osd id to variable

This is to fix static osd id logic to variable as we have an issue
in our current logic.
this is happening only when we have file backed journals and
block backed data as shown below.

ex:

 storage:
    osd:
      - data:
          type: block-logical
          location: /dev/vdb
        journal:
          type: directory
          location: /var/lib/openstack-helm/ceph/osd/journal-one
      - data:
          type: block-logical
          location: /dev/vdc
        journal:
          type: directory
          location: /var/lib/openstack-helm/ceph/osd/journal-two

Change-Id: I36d08b1b7aa5925831a64c03259098f6c4753c3e
This commit is contained in:
Chinasubbareddy Mallavarapu 2019-07-01 12:34:46 -05:00
parent 24841d6dea
commit a20e7177c6

View File

@ -114,7 +114,7 @@ if [ "x${JOURNAL_TYPE}" == "xdirectory" ]; then
--osd-data ${OSD_PATH} \
--osd-journal ${OSD_JOURNAL} \
-f \
-i 0 \
-i ${OSD_ID} \
--setuser ceph \
--setgroup disk \
--mkjournal