diff options
author | Mykola Golub <mgolub@suse.com> | 2020-03-12 12:43:04 +0100 |
---|---|---|
committer | Mykola Golub <mgolub@suse.com> | 2020-03-12 12:47:53 +0100 |
commit | 5c80c497d59dd2653340161f1eeab235273d9ae5 (patch) | |
tree | fbb60274f4f9e56fa6f2bbf76a33bbdfece8ab10 | |
parent | mgr/rbd_support: don't scan pools that don't have schedules (diff) | |
download | ceph-5c80c497d59dd2653340161f1eeab235273d9ae5.tar.xz ceph-5c80c497d59dd2653340161f1eeab235273d9ae5.zip |
qa/workunits/rbd: wait for schedule status updated
Signed-off-by: Mykola Golub <mgolub@suse.com>
-rwxr-xr-x | qa/workunits/rbd/cli_generic.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/qa/workunits/rbd/cli_generic.sh b/qa/workunits/rbd/cli_generic.sh index 8c45fd0e6f6..485cf75437a 100755 --- a/qa/workunits/rbd/cli_generic.sh +++ b/qa/workunits/rbd/cli_generic.sh @@ -965,6 +965,12 @@ test_trash_purge_schedule() { rbd trash purge schedule ls -p rbd2 -R | grep 'every 2d starting at 00:17' rbd trash purge schedule ls -p rbd2/ns1 -R | grep 'every 2d starting at 00:17' + for i in `seq 12`; do + rbd trash purge schedule status --format xml | + $XMLSTARLET sel -t -v '//scheduled/item/pool' | grep 'rbd2' && break + sleep 10 + done + rbd trash purge schedule status rbd trash purge schedule status --format xml | $XMLSTARLET sel -t -v '//scheduled/item/pool' | grep 'rbd2' |