ceph: make log directory configurable

this is make log directory configurable incase if  another mon or
osd running on same host can point to other directory

Change-Id: I2db6dffd45599386f8082db8f893c799d139aba3
This commit is contained in:
Chinasubbareddy M 2018-10-24 15:45:43 -05:00 committed by chinasubbareddy mallavarapu
parent 1ec8981aa4
commit a1b8f394b2
4 changed files with 4 additions and 2 deletions

View File

@ -218,7 +218,7 @@ spec:
volumes:
- name: pod-var-log
hostPath:
path: /var/log/ceph
path: {{ .Values.conf.storage.mon.log_directory }}
- name: ceph-mon-bin
configMap:
name: ceph-mon-bin

View File

@ -179,6 +179,7 @@ conf:
storage:
mon:
directory: /var/lib/openstack-helm/ceph/mon
log_directory: /var/log/ceph
dependencies:
dynamic:

View File

@ -261,7 +261,7 @@ spec:
emptyDir: {}
- name: pod-var-log
hostPath:
path: /var/log/ceph
path: {{ .Values.conf.storage.osd_log_directory }}
- name: pod-run
emptyDir:
medium: "Memory"

View File

@ -104,6 +104,7 @@ conf:
osd_mount_options_xfs: "rw,noatime,largeio,inode64,swalloc,logbufs=8,logbsize=256k,allocsize=4M"
storage:
osd_log_directory: /var/log/ceph
# NOTE(portdirect): for homogeneous clusters the `osd` key can be used to
# define OSD pods that will be deployed across the cluster.
osd: