-
Couldn't load subscription status.
- Fork 580
rbd: Register FenceController only once #5248
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
Conversation
|
I compiled the patched version and tested it on a non-production Swarm. The plugin now starts up as expected, and the mentioned error does not appear.:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Looks good to me.
|
Maybe the same thing is needed for CephFS too? I guess you'll find out later 👍 |
|
Hi @monoamin , There seem to be two issues with the commit:
Please amend the existing commit, and force-push it to your branch to update this PR. Thanks for providing this fix, I hope it gets you get closer running Ceph-CSI on Docker Swarm 👏 |
0b956d5 to
b8f3740
Compare
|
@nixpanic Thanks, I updated it accordingly, please let me know if there are any further complications. From what I gathered, the same patch is not needed for cephfs. The code seems to only register one FenceController, specifically within the setupCSIAddonsServer function. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks !
|
@Mergifyio rebase |
Running cephcsi in docker swarm currently requires serving both the nodeserver and controllerserver over the same socket. This leads to errors like > FATAL: [core] grpc: Server.RegisterService found duplicate > service registration for \"fence.FenceController\"" ...since `FenceController` is registererd once per server type. Commit proposes simple fix by registering `FenceController` only once when at least one of `IsControllerServer` or `IsNodeServer` is `true`. Signed-off-by: monoamin <[email protected]>
✅ Branch has been successfully rebased |
b8f3740 to
700eee1
Compare
|
/test ci/centos/mini-e2e-helm/k8s-1.32 |
|
/test ci/centos/mini-e2e-helm/k8s-1.31 |
|
/test ci/centos/mini-e2e-helm/k8s-1.30 |
|
/test ci/centos/mini-e2e/k8s-1.32 |
|
/test ci/centos/mini-e2e/k8s-1.31 |
|
/test ci/centos/mini-e2e/k8s-1.30 |
|
/test ci/centos/k8s-e2e-external-storage/1.32 |
|
/test ci/centos/k8s-e2e-external-storage/1.31 |
|
/test ci/centos/k8s-e2e-external-storage/1.30 |
|
/test ci/centos/upgrade-tests |
|
/retest ci/centos/k8s-e2e-external-storage/1.30 |
|
/retest ci/centos/mini-e2e/k8s-1.31 |
|
/retest ci/centos/mini-e2e/k8s-1.32 |
Failed while deploying minikube. |
Ceph MON failure of some kind (logs) |
Running on Docker Swarm currently requires serving both the nodeserver and controllerserver over the same socket. This leads to errors like
...since FenceController is registered once per server type.
The commit proposes a simple fix by registering
FenceControlleronly once when at least one ofIsControllerServerorIsNodeServeristrue.Updates: #3769