]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
test/librbd/test_notify.py: effect post object map rebuild assert
authorIlya Dryomov <idryomov@gmail.com>
Tue, 8 Mar 2022 12:56:15 +0000 (13:56 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 8 Mar 2022 12:59:58 +0000 (13:59 +0100)
commit5b94f080a359a70883ba34e5bd03e0e4601a6c6a
tree4f557b574df82725807df7385dc00eccae519654
parent4ba375ea2bf44ad3bdf132a49a722b8fb3f66857
test/librbd/test_notify.py: effect post object map rebuild assert

Instead of just optionally skipping update_features test, commit
9c0b239d70cd ("qa/upgrade: conditionally disable update_features
tests") moved it after rebuild_object_map test.  This isn't right
because update_features test invalidates the object map as a side
effect and rebuild_object_map test is what makes it valid again:

  assert((image.flags() & RBD_FLAG_OBJECT_MAP_INVALID) == 0)

Let's make this assert effective, at least when update_features
test isn't skipped.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
src/test/librbd/test_notify.py