Add minsize_1 test

This commit is contained in:
Vitaliy Filippov
2021-12-28 10:54:36 +03:00
parent b9f5c2a823
commit ec2852c598
2 changed files with 20 additions and 2 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/bin/bash -ex
PG_MINSIZE=1
SCHEME=replicated
. `dirname $0`/run_3osds.sh
kill -INT $OSD1_PID
kill -INT $OSD2_PID
sleep 5
if ! ($ETCDCTL get /vitastor/pg/state/1/ --prefix --print-value-only | jq -s -e '[ .[] | select(.state == ["active", "degraded"]) ] | length == '$PG_COUNT); then
format_error "FAILED: $PG_COUNT PG(s) NOT ACTIVE+DEGRADED"
fi
format_green OK