Cinder: allow Ceph RBD pool params to be tuned
This PS exposes the Ceph RBD pool params to the cinder chart, allowing them to be tuned. Change-Id: I615e999928948193b24cc4978efb31bd1b36f8f7 Closes-Bug: #1754535
This commit is contained in:
parent
05d1123497
commit
e8219bc6d8
@ -38,6 +38,8 @@ elif [ "x$STORAGE_BACKEND" == "xcinder.backup.drivers.ceph" ]; then
|
||||
if [[ ${test_luminous} -gt 0 ]]; then
|
||||
ceph osd pool application enable $1 $3
|
||||
fi
|
||||
ceph osd pool set $1 size ${RBD_POOL_REPLICATION}
|
||||
ceph osd pool set $1 crush_rule "${RBD_POOL_CRUSH_RULE}"
|
||||
}
|
||||
ensure_pool ${RBD_POOL_NAME} ${RBD_POOL_CHUNK_SIZE} "cinder-backup"
|
||||
|
||||
|
@ -35,6 +35,8 @@ if [ "x$STORAGE_BACKEND" == "xcinder.volume.drivers.rbd.RBDDriver" ]; then
|
||||
if [[ ${test_luminous} -gt 0 ]]; then
|
||||
ceph osd pool application enable $1 $3
|
||||
fi
|
||||
ceph osd pool set $1 size ${RBD_POOL_REPLICATION}
|
||||
ceph osd pool set $1 crush_rule "${RBD_POOL_CRUSH_RULE}"
|
||||
}
|
||||
ensure_pool ${RBD_POOL_NAME} ${RBD_POOL_CHUNK_SIZE} "cinder-volume"
|
||||
|
||||
|
@ -102,8 +102,12 @@ spec:
|
||||
value: {{ .Values.conf.cinder.DEFAULT.backup_ceph_pool | quote }}
|
||||
- name: RBD_POOL_USER
|
||||
value: {{ .Values.conf.cinder.DEFAULT.backup_ceph_user | quote }}
|
||||
- name: RBD_POOL_CRUSH_RULE
|
||||
value: {{ .Values.conf.ceph.pools.backup.crush_rule | quote }}
|
||||
- name: RBD_POOL_REPLICATION
|
||||
value: {{ .Values.conf.ceph.pools.backup.replication | quote }}
|
||||
- name: RBD_POOL_CHUNK_SIZE
|
||||
value: "8"
|
||||
value: {{ .Values.conf.ceph.pools.backup.chunk_size | quote }}
|
||||
- name: RBD_POOL_SECRET
|
||||
value: {{ .Values.secrets.rbd.backup | quote }}
|
||||
{{ end }}
|
||||
|
@ -102,8 +102,12 @@ spec:
|
||||
value: {{ index (index .Values.conf.backends (include "cinder.ceph_volume_section_name" $envAll)) "rbd_pool" | quote }}
|
||||
- name: RBD_POOL_USER
|
||||
value: {{ index (index .Values.conf.backends (include "cinder.ceph_volume_section_name" $envAll)) "rbd_user" | quote }}
|
||||
- name: RBD_POOL_CRUSH_RULE
|
||||
value: {{ .Values.conf.ceph.pools.volume.crush_rule | quote }}
|
||||
- name: RBD_POOL_REPLICATION
|
||||
value: {{ .Values.conf.ceph.pools.volume.replication | quote }}
|
||||
- name: RBD_POOL_CHUNK_SIZE
|
||||
value: "8"
|
||||
value: {{ .Values.conf.ceph.pools.volume.chunk_size | quote }}
|
||||
- name: RBD_POOL_SECRET
|
||||
value: {{ .Values.secrets.rbd.volume | quote }}
|
||||
{{- end }}
|
||||
|
@ -437,6 +437,15 @@ conf:
|
||||
append:
|
||||
monitors: []
|
||||
admin_keyring: null
|
||||
pools:
|
||||
backup:
|
||||
replication: 3
|
||||
crush_rule: replicated_rule
|
||||
chunk_size: 8
|
||||
volume:
|
||||
replication: 3
|
||||
crush_rule: replicated_rule
|
||||
chunk_size: 8
|
||||
cinder:
|
||||
DEFAULT:
|
||||
use_syslog: false
|
||||
|
@ -20,8 +20,22 @@ make pull-images cinder
|
||||
|
||||
#NOTE: Deploy command
|
||||
: ${OSH_EXTRA_HELM_ARGS:=""}
|
||||
tee /tmp/cinder.yaml <<EOF
|
||||
conf:
|
||||
ceph:
|
||||
pools:
|
||||
backup:
|
||||
replication: 1
|
||||
crush_rule: same_host
|
||||
chunk_size: 8
|
||||
volume:
|
||||
replication: 1
|
||||
crush_rule: same_host
|
||||
chunk_size: 8
|
||||
EOF
|
||||
helm upgrade --install cinder ./cinder \
|
||||
--namespace=openstack \
|
||||
--values=/tmp/cinder.yaml \
|
||||
${OSH_EXTRA_HELM_ARGS} \
|
||||
${OSH_EXTRA_HELM_ARGS_CINDER}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user