[CEPH] Fix the ceph pool creations for openstack services
This is to fix the ceph version checks for enabling the applications on newly created pools for openstack services like cinder and glance. Change-Id: I2c007f728180cf7753255463ebf2f8dc5dc6fa5b
This commit is contained in:
parent
42cdcea972
commit
2002b9368d
@ -14,7 +14,7 @@ apiVersion: v1
|
||||
appVersion: v1.0.0
|
||||
description: OpenStack-Helm Cinder
|
||||
name: cinder
|
||||
version: 0.2.0
|
||||
version: 0.2.1
|
||||
home: https://docs.openstack.org/cinder/latest/
|
||||
icon: https://www.openstack.org/themes/openstack/images/project-mascots/Cinder/OpenStack_Project_Cinder_vertical.png
|
||||
sources:
|
||||
|
@ -32,8 +32,7 @@ elif [[ $STORAGE_BACKEND =~ 'cinder.backup.drivers.ceph' ]]; then
|
||||
ceph -s
|
||||
function ensure_pool () {
|
||||
ceph osd pool stats $1 || ceph osd pool create $1 $2
|
||||
local test_version=$(ceph tell osd.* version | egrep -c "nautilus|mimic|luminous" | xargs echo)
|
||||
if [[ ${test_version} -gt 0 ]]; then
|
||||
if [[ $(ceph mgr versions | awk '/version/{print $3}' | cut -d. -f1) -ge 12 ]]; then
|
||||
ceph osd pool application enable $1 $3
|
||||
fi
|
||||
size_protection=$(ceph osd pool get $1 nosizechange | cut -f2 -d: | tr -d '[:space:]')
|
||||
|
@ -29,8 +29,7 @@ if [ "x$STORAGE_BACKEND" == "xcinder.volume.drivers.rbd.RBDDriver" ]; then
|
||||
ceph -s
|
||||
function ensure_pool () {
|
||||
ceph osd pool stats $1 || ceph osd pool create $1 $2
|
||||
local test_version=$(ceph tell osd.* version | egrep -c "nautilus|mimic|luminous" | xargs echo)
|
||||
if [[ ${test_version} -gt 0 ]]; then
|
||||
if [[ $(ceph mgr versions | awk '/version/{print $3}' | cut -d. -f1) -ge 12 ]]; then
|
||||
ceph osd pool application enable $1 $3
|
||||
fi
|
||||
size_protection=$(ceph osd pool get $1 nosizechange | cut -f2 -d: | tr -d '[:space:]')
|
||||
|
@ -14,7 +14,7 @@ apiVersion: v1
|
||||
appVersion: v1.0.0
|
||||
description: OpenStack-Helm Glance
|
||||
name: glance
|
||||
version: 0.2.0
|
||||
version: 0.2.1
|
||||
home: https://docs.openstack.org/glance/latest/
|
||||
icon: https://www.openstack.org/themes/openstack/images/project-mascots/Glance/OpenStack_Project_Glance_vertical.png
|
||||
sources:
|
||||
|
@ -46,9 +46,8 @@ elif [ "x$STORAGE_BACKEND" == "xrbd" ]; then
|
||||
function ensure_pool () {
|
||||
ceph osd pool stats "$1" || ceph osd pool create "$1" "$2"
|
||||
local test_version
|
||||
test_version=$(ceph tell osd.* version | egrep -c "nautilus|mimic|luminous" | xargs echo)
|
||||
if [[ ${test_version} -gt 0 ]]; then
|
||||
ceph osd pool application enable "$1" "$3"
|
||||
if [[ $(ceph mgr versions | awk '/version/{print $3}' | cut -d. -f1) -ge 12 ]]; 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}"
|
||||
|
@ -17,3 +17,4 @@ cinder:
|
||||
- 0.1.14 Add Multipathd support for ISCSI backed volumes
|
||||
- 0.1.15 Fix the problem in hostNetwork mode
|
||||
- 0.2.0 Remove support for releases before T
|
||||
- 0.2.1 Fix the ceph pool creations for openstack services
|
||||
|
@ -10,3 +10,4 @@ glance:
|
||||
- 0.1.7 Update storage init script with cacert
|
||||
- 0.1.8 Update glance default policy values
|
||||
- 0.2.0 Remove support for releases before T
|
||||
- 0.2.1 Fix the ceph pool creations for openstack services
|
||||
|
Loading…
Reference in New Issue
Block a user