Skip to content

Add rbdmirror test scenario - #7754

Open
noonedeadpunk wants to merge 4 commits into
ceph:mainfrom
noonedeadpunk:feat/molecule_improvements
Open

noonedeadpunk wants to merge 4 commits into
ceph:mainfrom
noonedeadpunk:feat/molecule_improvements

Conversation

@noonedeadpunk

Copy link
Copy Markdown
Collaborator

rbd-mirror was one of well-tested scenarios in the past.
This patch does return back the test, while focusing it only over dev
path to have a minimal impact on amount of tests that need to run,
to save some resources.

During side-effect of the test we add a "spare" node as a second mirror,
verify the state, and remove that node afterwards.

Peer adding tasks were run regardlessly of existing mirror configuration
which means that result will always return "changed" results,
making idempotence test to fail.

Now these tasks are being run only if mirroring user does not exist yet
for the cluster.

Signed-off-by: Dmitriy Rabotyagov <noonedeadpunk@gmail.com>
Mapping .keys() always contain a list of strings. At the same time
rbdmirror_to_kill_gid is fetched as an int. When comparison
happens, it returns no matches, prematurely passing the post task.

Matching it to a string makes servicemap to wait for a positive result
before proceeding further.

Signed-off-by: Dmitriy Rabotyagov <noonedeadpunk@gmail.com>
rbd-mirror was one of well-tested scenarios in the past.
This patch does return back the test, while focusing it only over `dev`
path to have a minimal impact on amount of tests that need to run,
to save some resources.

During side-effect of the test we add a "spare" node as a second mirror,
verify the state, and remove that node afterwards.

Signed-off-by: Dmitriy Rabotyagov <noonedeadpunk@gmail.com>
@noonedeadpunk
noonedeadpunk requested a review from guits November 10, 2026 09:00
As we don't have anything in default scenario per say, but
prepare/converge/cleanup playbooks are pretty much the same and shared
between scenarios, let's move them under `default` umbrella to avoid
creating weird cross-scenario dependencies.

Signed-off-by: Dmitriy Rabotyagov <noonedeadpunk@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant