Ceph: fix logic for check ceph version
The logic for check ceph version in some charts has a code that doesn't work. This patch check ceph version properly. Change-Id: Ie97a3ec5ac5078f556f59a09db820ee574c60f50
This commit is contained in:
parent
2d2e10bfb7
commit
96610abac1
@ -313,7 +313,7 @@ bootstrap:
|
||||
function ensure_pool () {
|
||||
ceph osd pool stats $1 || ceph osd pool create $1 $2
|
||||
local test_luminous=$(ceph -v | egrep -q "12.2|luminous"; echo $?)
|
||||
if [[ ${test_luminous} -ne 0 ]]; then
|
||||
if [[ ${test_luminous} -eq 0 ]]; then
|
||||
ceph osd pool application enable $1 $3
|
||||
fi
|
||||
}
|
||||
|
@ -35,7 +35,7 @@ elif [ "x$STORAGE_BACKEND" == "xcinder.backup.drivers.ceph" ]; then
|
||||
function ensure_pool () {
|
||||
ceph osd pool stats $1 || ceph osd pool create $1 $2
|
||||
local test_luminous=$(ceph -v | egrep -q "12.2|luminous"; echo $?)
|
||||
if [[ ${test_luminous} -ne 0 ]]; then
|
||||
if [[ ${test_luminous} -eq 0 ]]; then
|
||||
ceph osd pool application enable $1 $3
|
||||
fi
|
||||
}
|
||||
|
@ -32,7 +32,7 @@ if [ "x$STORAGE_BACKEND" == "xcinder.volume.drivers.rbd.RBDDriver" ]; then
|
||||
function ensure_pool () {
|
||||
ceph osd pool stats $1 || ceph osd pool create $1 $2
|
||||
local test_luminous=$(ceph -v | egrep -q "12.2|luminous"; echo $?)
|
||||
if [[ ${test_luminous} -ne 0 ]]; then
|
||||
if [[ ${test_luminous} -eq 0 ]]; then
|
||||
ceph osd pool application enable $1 $3
|
||||
fi
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ elif [ "x$STORAGE_BACKEND" == "xrbd" ]; then
|
||||
function ensure_pool () {
|
||||
ceph osd pool stats $1 || ceph osd pool create $1 $2
|
||||
local test_luminous=$(ceph -v | egrep -q "12.2|luminous"; echo $?)
|
||||
if [[ ${test_luminous} -ne 0 ]]; then
|
||||
if [[ ${test_luminous} -eq 0 ]]; then
|
||||
ceph osd pool application enable $1 $3
|
||||
fi
|
||||
}
|
||||
|
@ -29,7 +29,7 @@ ceph -s
|
||||
function ensure_pool () {
|
||||
ceph osd pool stats $1 || ceph osd pool create $1 $2
|
||||
local test_luminous=$(ceph -v | egrep -q "12.2|luminous"; echo $?)
|
||||
if [[ ${test_luminous} -ne 0 ]]; then
|
||||
if [[ ${test_luminous} -eq 0 ]]; then
|
||||
ceph osd pool application enable $1 $3
|
||||
fi
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user