You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
373 B
Bash
18 lines
373 B
Bash
#!/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
|