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

util: add support to configure mirror daemon count #4566

Merged
merged 1 commit into from
Apr 22, 2024

Conversation

Madhu-1
Copy link
Collaborator

@Madhu-1 Madhu-1 commented Apr 18, 2024

Describe what this PR does

Currently, we are assuming that only one rbd mirror daemon running on the ceph cluster but that is not true for many cases and it can be more than one, this PR makes this a configurable parameter.

Is there anything that requires special attention

Do you have any questions?

Is the change backward compatible?

yes

Are there concerns around backward compatibility?

No

Fixes: #4312

@Madhu-1 Madhu-1 requested review from a team April 18, 2024 12:09
@@ -45,6 +45,7 @@ const (
"clusterID": "<cluster-id>",
"rbd": {
"radosNamespace": "<rados-namespace>"
"mirrorDaemonCount": "1"
Copy link
Member

Choose a reason for hiding this comment

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

Great test case, but unfortunately missing in the unit tests.

Please add a test-case that expects an error when the argument is a number as "string" (maybe convert it?) or even an invalid number.

Currently we are assuming that only one
rbd mirror daemon running on the ceph cluster
but that is not true for many cases and it
can be more that one, this PR make this as a
configurable parameter.

fixes: ceph#4312

Signed-off-by: Madhu Rajanna <[email protected]>
@nixpanic nixpanic requested a review from a team April 19, 2024 07:30
@nixpanic nixpanic added component/rbd Issues related to RBD component/util Utility functions shared between CephFS and RBD labels Apr 19, 2024
@Rakshith-R
Copy link
Contributor

@megifyio rebase
@Mergifyio queue

@Madhu-1
Copy link
Collaborator Author

Madhu-1 commented Apr 22, 2024

@Mergifyio rebase

@Madhu-1
Copy link
Collaborator Author

Madhu-1 commented Apr 22, 2024

@Mergifyio queue

Copy link
Contributor

mergify bot commented Apr 22, 2024

rebase

☑️ Nothing to do

  • any of:
    • #commits-behind>0 [📌 rebase requirement]
    • #commits>1 [📌 rebase requirement]
    • -linear-history [📌 rebase requirement]
  • -closed [📌 rebase requirement]
  • -conflict [📌 rebase requirement]
  • queue-position=-1 [📌 rebase requirement]

Copy link
Contributor

mergify bot commented Apr 22, 2024

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 4c2d2ca

@mergify mergify bot added the ok-to-test Label to trigger E2E tests label Apr 22, 2024
@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/k8s-e2e-external-storage/1.29

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/k8s-e2e-external-storage/1.28

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/k8s-e2e-external-storage/1.27

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e-helm/k8s-1.29

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e-helm/k8s-1.28

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e-helm/k8s-1.27

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e/k8s-1.29

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e/k8s-1.28

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e/k8s-1.27

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/upgrade-tests-cephfs

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/upgrade-tests-rbd

@ceph-csi-bot ceph-csi-bot removed the ok-to-test Label to trigger E2E tests label Apr 22, 2024
@mergify mergify bot merged commit 4c2d2ca into ceph:devel Apr 22, 2024
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/rbd Issues related to RBD component/util Utility functions shared between CephFS and RBD
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rbd: add support for adjusting the number of RBD mirror image watchers
4 participants