]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test/librbd/test_notify.py: effect post object map rebuild assert 45311/head
authorIlya Dryomov <idryomov@gmail.com>
Tue, 8 Mar 2022 12:56:15 +0000 (13:56 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 9 Mar 2022 09:20:28 +0000 (10:20 +0100)
commit48746c0a626e8133143e4b5b4ff91d4eab02e623
treebeff417886266d69f9ee6b9e62309d1cc4966d0d
parent372729756c2ba42025d263fce78fb2410486f54f
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>
(cherry picked from commit 5b94f080a359a70883ba34e5bd03e0e4601a6c6a)
src/test/librbd/test_notify.py