Skip to content

server: add rbd storageid and clientProfile name to the GetStorageClientInfo rpc #3189

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

rewantsoni
Copy link
Member

@rewantsoni rewantsoni commented Apr 28, 2025

ClientProfileMapping creation requires blockpoolIDs (local and remote) and clientProfile (local and remote). We are sending the remote blockpool IDs via the getBlockPoolsInfo rpc call. For 4.18 provider mode RDR, we made an assumption as the clientProfile name was a hash of the storageClaim name. This doesn't hold true for 4.19 onwards. We need to move away from such an assumption and fetch the remote ClientProfile from the other side. Hence, adding the clientProfile name to the GetStorageClientsInfo rpc.

There is another hack that we use to construct the rbdStorageID from the mirroring token and remote radosnamesape to build the replicationID. We should stop relying on this hack a well and send the rbdstorageID in the GetStorageClientsInfo rpc.

  1. add the rbd clientprofile to the response of GetStorageClientInfo rpc
  2. Send the rbd storageID and rbd clientProfile from the GetStorageClientInfo rpc

Fixes a part of https://issues.redhat.com/browse/DFBUGS-2307 , more PRs will follow for the mirroring controller and the provider server (update the ClientProfileMapping and remove the hack for peer rbd storageID)

Copy link
Contributor

openshift-ci bot commented Apr 28, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: rewantsoni
Once this PR has been reviewed and has the lgtm label, please assign nb-ohad for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@rewantsoni rewantsoni changed the title server: add rbd storageid and clientProfile name to the GetStorageClinetInfo rpc server: add rbd storageid and clientProfile name to the GetStorageClientInfo rpc Apr 28, 2025
send the clientProfile and rbd storageid from the
GetStorageClinetsInfo rpc

Signed-off-by: Rewant Soni <[email protected]>
@rewantsoni rewantsoni force-pushed the clientprofilemapping branch from 0732217 to b4eb10e Compare April 28, 2025 10:59
Copy link
Contributor

openshift-ci bot commented Apr 28, 2025

@rewantsoni: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/ocs-operator-bundle-e2e-aws b4eb10e link true /test ocs-operator-bundle-e2e-aws

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

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