Skip to content
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

Add a new RPC and Cap to advertise the client details #75

Merged
merged 2 commits into from
Nov 4, 2024

Conversation

Madhu-1
Copy link
Member

@Madhu-1 Madhu-1 commented Oct 29, 2024

added a GET_CLIENTS_TO_FENCE so that the plugins can register with these caps to advertise that they support publishing the metadata like identifier and the cluster IP addresses of the clone cline for the fence operations.

Adding an RPC to get the local client details which includes the id and the local IP addresses for fencing. The ID can be anything that can be used as an identifier of the client address. For example, the ID can be the cephcluster UUID and the ip address/cidr is the local client address used to connect to the ceph cluster, The ceph is an example/representation here.

@mergify mergify bot added the design Adds or updates an operation or service label Oct 29, 2024
@Madhu-1 Madhu-1 force-pushed the client-to-fence branch 4 times, most recently from d8df023 to 66639b5 Compare October 29, 2024 10:53
Copy link
Contributor

@nixpanic nixpanic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable to me. Just need some typo fixes, and possibly rephrasing the description of the new RPC a bit.

@@ -234,6 +234,13 @@ message Capability {
// plugin can invoke RPCs that require access to the storage system,
// similar to the CSI Controller (provisioner).
NETWORK_FENCE = 1;

// GET_CLIENTS_TO_FENCE indicates that the CSI-driver provides RPCs for a
// GET_CLIENTS_TO_FENCE operation to fet the clients to fence.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo fet

Also a typo cline in the commit message.

fence/README.md Outdated
@@ -66,6 +66,11 @@ service FenceController {
// ListClusterFence RPC call to provide a list of blocklisted/fenced clients.
rpc ListClusterFence(ListClusterFenceRequest)
returns (ListClusterFenceResponse){}

// GetFenceClients RPC calls to get the clients information that needs
// to be fenced.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe .. get the client information to use in a FenceClusterNetwork or UnfenceClusterNetwork RPC.

nixpanic
nixpanic previously approved these changes Oct 31, 2024
// GET_CLIENTS_TO_FENCE operation to get the clients to fence.
// The presence of this capability determines whether the CSI-Addons CO
// plugin can invoke RPCs that require access to the storage system,
// similar to the CSI Controller (provisioner).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing the typos, however there is now clinets in the commit description 😆

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed now 🤦🏻

added a GET_CLIENTS_TO_FENCE so that
the plugins can register with this caps
to advertise that they support publishing
the metadata like identifier and the cluster
IP addresses of the clients for the fence
operations.

Signed-off-by: Madhu Rajanna <[email protected]>
Adding a RPC to get the local client details
which includes the id and the local ip addresses
for fencing. The ID can be anything that can be
used as an identifier about the client address.
For example the ID can be the cephcluster UUID
and the ip addressed/cidr is the local client
addresses used to connect to the ceph cluster,
The ceph is an example/representation here.

Signed-off-by: Madhu Rajanna <[email protected]>
@Madhu-1 Madhu-1 requested a review from nixpanic October 31, 2024 10:58
@mergify mergify bot dismissed nixpanic’s stale review October 31, 2024 10:59

Pull request has been modified.

@mergify mergify bot merged commit 27825f7 into csi-addons:main Nov 4, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design Adds or updates an operation or service
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants