Merge "Support rbd pool replication and crush ruleset for glance"
This commit is contained in:
commit
09b341885f
|
@ -47,6 +47,8 @@ elif [ "x$STORAGE_BACKEND" == "xrbd" ]; then
|
||||||
if [[ ${test_version} -gt 0 ]]; then
|
if [[ ${test_version} -gt 0 ]]; then
|
||||||
ceph osd pool application enable "$1" "$3"
|
ceph osd pool application enable "$1" "$3"
|
||||||
fi
|
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}" "glance-image"
|
ensure_pool "${RBD_POOL_NAME}" "${RBD_POOL_CHUNK_SIZE}" "glance-image"
|
||||||
|
|
||||||
|
|
|
@ -104,6 +104,10 @@ spec:
|
||||||
value: {{ .Values.conf.glance.glance_store.rbd_store_pool | quote }}
|
value: {{ .Values.conf.glance.glance_store.rbd_store_pool | quote }}
|
||||||
- name: RBD_POOL_USER
|
- name: RBD_POOL_USER
|
||||||
value: {{ .Values.conf.glance.glance_store.rbd_store_user | quote }}
|
value: {{ .Values.conf.glance.glance_store.rbd_store_user | quote }}
|
||||||
|
- name: RBD_POOL_REPLICATION
|
||||||
|
value: {{ .Values.conf.glance.glance_store.rbd_store_replication | quote }}
|
||||||
|
- name: RBD_POOL_CRUSH_RULE
|
||||||
|
value: {{ .Values.conf.glance.glance_store.rbd_store_crush_rule | quote }}
|
||||||
- name: RBD_POOL_CHUNK_SIZE
|
- name: RBD_POOL_CHUNK_SIZE
|
||||||
value: {{ .Values.conf.glance.glance_store.rbd_store_chunk_size | quote }}
|
value: {{ .Values.conf.glance.glance_store.rbd_store_chunk_size | quote }}
|
||||||
- name: RBD_POOL_SECRET
|
- name: RBD_POOL_SECRET
|
||||||
|
|
|
@ -275,6 +275,8 @@ conf:
|
||||||
memcache_security_strategy: ENCRYPT
|
memcache_security_strategy: ENCRYPT
|
||||||
glance_store:
|
glance_store:
|
||||||
rbd_store_chunk_size: 8
|
rbd_store_chunk_size: 8
|
||||||
|
rbd_store_replication: 3
|
||||||
|
rbd_store_crush_rule: replicated_rule
|
||||||
rbd_store_pool: glance.images
|
rbd_store_pool: glance.images
|
||||||
rbd_store_user: glance
|
rbd_store_user: glance
|
||||||
rbd_store_ceph_conf: /etc/ceph/ceph.conf
|
rbd_store_ceph_conf: /etc/ceph/ceph.conf
|
||||||
|
|
Loading…
Reference in New Issue