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

WIP: Enable using host networking for Controller Plugin pods. #176

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

obnoxxx
Copy link
Collaborator

@obnoxxx obnoxxx commented Nov 15, 2024

Describe what this PR does

This work in progress is a draft PR for the implementation of host Networking for controller plugin pods as described in https://github.com/ceph/ceph-csi-operator/blob/main/docs/design/hostNetwork.md

Is there anything that requires special attention

This a first draft and still needs to be thoroughly tested.

Is the change backward compatible?

should be but needs testing.

Are there concerns around backward compatibility?

see issue #157 for background and context.

This PR is currently based on PR #175 to let it pass unit tests.

It will need to be rebased should that other PR merge.

Related issues

Fixes: #157

Future concerns

none.

Checklist:

  • Commit Message Formatting: Commit titles and messages follow
    guidelines in the developer
    guide
    .
  • Reviewed the developer guide on Submitting a Pull
    Request
  • Pending release
    notes

    updated with breaking and/or notable changes for the next major release.
  • Documentation has been updated, if necessary.
  • Unit tests have been added, if necessary.
  • Integration tests have been added, if necessary.

@obnoxxx obnoxxx marked this pull request as draft November 15, 2024 19:15
@obnoxxx
Copy link
Collaborator Author

obnoxxx commented Nov 15, 2024

@nb-ohad , @Madhu-1 , @leelavg , @rohan47, FYI:

Copy link
Collaborator

@Madhu-1 Madhu-1 left a comment

Choose a reason for hiding this comment

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

@obnoxxx please test both cephfs/rbd with below combination

  • cephfs and RBD Driver running on Host network
  • cephfs and RBD Driver running on pod network
  • cephfs and RBD Driver with csiaddons running on Host hetwork
  • cephfs and RBD Driver with csiaddons running on pod network

I expect some port conflict as csiaddons uses same port for cephfs and rbd deployments

utils.ControllerPortContainerArg,

api/v1alpha1/driver_types.go Outdated Show resolved Hide resolved
@@ -564,6 +564,7 @@ func (r *driverReconcile) reconcileControllerPluginDeployment() error {
Strategy: ptr.Deref(pluginSpec.DeploymentStrategy, defaultDeploymentStrategy),
Template: corev1.PodTemplateSpec{
ObjectMeta: metav1.ObjectMeta{

Copy link
Collaborator

Choose a reason for hiding this comment

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

please remove this new line as well.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@Madhu-1
Copy link
Collaborator

Madhu-1 commented Nov 21, 2024

@obnoxxx there is a typo in commit message as well PTAL.

@obnoxxx obnoxxx force-pushed the host-network branch 2 times, most recently from cb6b8e7 to adee77d Compare November 21, 2024 10:41
This bool setting can be added to the controllerPlugin section of the
Driver Spec.

It will be propagated to all controller plugin pods.

This implements the following design:

https://github.com/ceph/ceph-csi-operator/blob/main/docs/design/hostNetwork.md

Signed-off-by: Michael Adam <[email protected]>
@obnoxxx
Copy link
Collaborator Author

obnoxxx commented Nov 25, 2024

@Madhu-1 wrote:

@obnoxxx there is a typo in commit message as well PTAL.

Thanks for pointing out! fixed.

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.

Enforce host networking for Ceph CSI controller plugin pods
2 participants