]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
qa/workunits/rbd: expand LevelSpec parsing coverage
authorIlya Dryomov <idryomov@gmail.com>
Fri, 4 Mar 2022 13:52:43 +0000 (14:52 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 21 Mar 2022 11:43:14 +0000 (12:43 +0100)
commitf40e3a5de53e5ed3a75c95d8f001105b33dd6abe
treef9318195fd8e0663d17b9115e60a288ca323a48c
parent065c9d29f7426c283cf80fed433ed59efc43fe5e
qa/workunits/rbd: expand LevelSpec parsing coverage

Invoke "rbd mirror snapshot schedule ls -R" and "rbd mirror snapshot
schedule status" commands on all levels, consistently.  In particular,
make sure that an image level schedule is listed for a recursive query
at the pool level both before and after the schedule kicks in:

  $ rbd create --size 1G --mirror-image-mode snapshot -p foo bar
  $ rbd mirror snapshot schedule add -p foo --image bar 1m
  $ rbd mirror snapshot schedule ls -p foo -R
  POOL  NAMESPACE  IMAGE  SCHEDULE
  foo              bar    every 1m
  <wait for schedule to become visible in status>
  $ rbd mirror snapshot schedule ls -p foo -R
  POOL  NAMESPACE  IMAGE  SCHEDULE
  foo              bar    every 1m

Also, make sure that pool and image level status queries work:

  $ rbd mirror snapshot schedule status -p foo
  SCHEDULE TIME        IMAGE
  2022-03-04 07:14:00  foo/bar
  $ rbd mirror snapshot schedule status -p foo --image bar
  SCHEDULE TIME        IMAGE
  2022-03-04 07:14:00  foo/bar

Both of these issues are fixed by the previous commit.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 08df6e0fd00689649b802e975df320efe3b07c83)
qa/workunits/rbd/cli_generic.sh