]> git.apps.os.sepia.ceph.com Git - ceph-ci.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>
Sat, 5 Mar 2022 10:20:33 +0000 (11:20 +0100)
commit08df6e0fd00689649b802e975df320efe3b07c83
tree0513d1347056cc95db854e402744387b5df48fc5
parent05f2cfd9b5fdd34afc7f65685e57024dc183619f
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>
qa/workunits/rbd/cli_generic.sh