Skip to content

rbd-mirror: expose peer UUIDs to snapshot replayer - #68267

Closed
pkalever wants to merge 2 commits into
ceph:wip-rbd-cgsm-basefrom
pkalever:fix-peer-uuid
Closed

pkalever wants to merge 2 commits into
ceph:wip-rbd-cgsm-basefrom
pkalever:fix-peer-uuid

Conversation

@pkalever

@pkalever pkalever commented Apr 8, 2026

Copy link
Copy Markdown

Summary

This PR improves peer identification and enables snapshot-based replayers to access peer UUIDs through the existing ReplayerListener abstraction.

Changes

  • Initialize uuid in Peer and include it in logging
  • Implement it in ImageReplayer and add get_peer_uuids() to ReplayerListener

From image_replayer/snapshot/Replayer.cc:
m_replayer_listener->get_peer_uuids();

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

Prasanna Kumar Kalever added 2 commits April 9, 2026 00:19
Initialize the uuid member in the Peer constructor and include it in
stream output operator to ensure correct peer identification in logs.

Signed-off-by: Prasanna Kumar Kalever <[email protected]>
Extend ReplayerListener with get_peer_uuids() and implement it in
ImageReplayer. This allows snapshot-based replay logic to retrieve peer UUIDs
via the listener abstraction.

one can access peer_uuids from image_replayer/snapshot/Replayer.cc by
just a call to:
  m_replayer_listener->get_peer_uuids();

Signed-off-by: Prasanna Kumar Kalever <[email protected]>
@github-actions

github-actions Bot commented Jun 7, 2026

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days.
If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward.
If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

@github-actions github-actions Bot added the stale label Jun 7, 2026
@idryomov

Copy link
Copy Markdown
Contributor

"rbd-mirror: fix missing initialization of Peer UUID" commit landed with #68161, the other change isn't needed at this point.

@idryomov idryomov closed this Jun 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants