Skip to content

cleanup: deprecate the setmetadata flag#6225

Merged
mergify[bot] merged 6 commits into
ceph:develfrom
iPraveenParihar:cleanup-remove-setmetadata-flag
Apr 14, 2026
Merged

cleanup: deprecate the setmetadata flag#6225
mergify[bot] merged 6 commits into
ceph:develfrom
iPraveenParihar:cleanup-remove-setmetadata-flag

Conversation

@iPraveenParihar

Copy link
Copy Markdown
Contributor

Describe what this PR does

The `--setmetadata` flag has been enabled by default and metadata
is always set on volumes. Remove the flag, its Config struct field,
and all related from the core configuration.

Fixes: #5433

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.

Show available bot commands

These commands are normally not required, but in case of issues, leave any of
the following bot commands in an otherwise empty comment in this PR:

  • /retest ci/centos/<job-name>: retest the <job-name> after unrelated
    failure (please report the failure too!)

@mergify mergify Bot added the cleanup label Apr 7, 2026
@iPraveenParihar iPraveenParihar force-pushed the cleanup-remove-setmetadata-flag branch 6 times, most recently from e40c136 to 74828d4 Compare April 7, 2026 15:29
@iPraveenParihar

Copy link
Copy Markdown
Contributor Author

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

@iPraveenParihar iPraveenParihar force-pushed the cleanup-remove-setmetadata-flag branch from 74828d4 to ac637b9 Compare April 8, 2026 04:43
@iPraveenParihar

Copy link
Copy Markdown
Contributor Author

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

@nixpanic

nixpanic commented Apr 8, 2026

Copy link
Copy Markdown
Member

Has the flag been removed from ceph-csi-operator too already?

@iPraveenParihar

Copy link
Copy Markdown
Contributor Author

Has the flag been removed from ceph-csi-operator too already?

Not yet, will be removed after we remove from ceph-csi right?

@iPraveenParihar iPraveenParihar marked this pull request as ready for review April 8, 2026 09:41
@nixpanic

nixpanic commented Apr 8, 2026

Copy link
Copy Markdown
Member

Has the flag been removed from ceph-csi-operator too already?

Not yet, will be removed after we remove from ceph-csi right?

If we remove it, ceph-csi-operator deployments will still have the parameter and the containers will fail to start.

We need the change in ceph-csi-operator first, otherwise our e2e will fail (k8s-external-storage deploys with ceph-csi-operator).

@Madhu-1

Madhu-1 commented Apr 9, 2026

Copy link
Copy Markdown
Collaborator

@iPraveenParihar i think we should not remove it rather add a log stating that setting the field will have no effect so that we dont break any clusters

@iPraveenParihar

Copy link
Copy Markdown
Contributor Author

@iPraveenParihar i think we should not remove it rather add a log stating that setting the field will have no effect so that we dont break any clusters

Okay, we can remove the flag in two-phases?

  1. This release: Keep the flag, make it a no-op, and log a deprecation warning.
  2. Next release: Remove the flag entirely.

@Madhu-1

Madhu-1 commented Apr 9, 2026

Copy link
Copy Markdown
Collaborator

@iPraveenParihar i think we should not remove it rather add a log stating that setting the field will have no effect so that we dont break any clusters

Okay, we can remove the flag in two-phases?

  1. This release: Keep the flag, make it a no-op, and log a deprecation warning.
  2. Next release: Remove the flag entirely.

yes that would be good plan

@iPraveenParihar iPraveenParihar force-pushed the cleanup-remove-setmetadata-flag branch from ac637b9 to e989738 Compare April 9, 2026 10:17
@mergify

mergify Bot commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

This pull request now has conflicts with the target branch. Could you please resolve conflicts and force push the corrected changes? 🙏

@iPraveenParihar iPraveenParihar force-pushed the cleanup-remove-setmetadata-flag branch 2 times, most recently from a302d93 to 776ad3e Compare April 10, 2026 07:07
@iPraveenParihar

Copy link
Copy Markdown
Contributor Author

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

@iPraveenParihar

Copy link
Copy Markdown
Contributor Author

@nixpanic @Madhu-1 PTAL

@nixpanic nixpanic requested a review from a team April 14, 2026 08:15
@nixpanic nixpanic added component/cephfs Issues related to CephFS component/rbd Issues related to RBD labels Apr 14, 2026
@mergify

mergify Bot commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

rebase

✅ Branch has been successfully rebased

@nixpanic

Copy link
Copy Markdown
Member

Use @mergifyio rebase to do a rebase once #6232 is merged. After rebasing, add the ok-to-test label to run CI and get this PR merged.

@nixpanic

Copy link
Copy Markdown
Member

@Mergifyio rebase

Remove the SetMetadata/EnableMetadata fields and conditional checks
from the RBD driver. Metadata is now always set on volumes.

Signed-off-by: Praveen M <m.praveen@ibm.com>
Remove the SetMetadata/enableMetadata fields, parameters, and
conditional checks from the CephFS driver, core, and store
packages. Metadata is now always set on volumes.

Signed-off-by: Praveen M <m.praveen@ibm.com>
The `--setmetadata` flag has been enabled by default and metadata
is always set on volumes. deprecate the flag, its Config struct field,
and all related from the core configuration.

Signed-off-by: Praveen M <m.praveen@ibm.com>
Mark the `--setmetadata` flag as deprecated in the RBD and CephFS
deployment documentation tables.

Signed-off-by: Praveen M <m.praveen@ibm.com>
The `setmetadata` flag has been deprecated as metadata is now always
set on images and subvolumes. Remove the `setEnableMetadata` methods
and the test that verified behavior.

Signed-off-by: Praveen M <m.praveen@ibm.com>
Signed-off-by: Praveen M <m.praveen@ibm.com>
@ceph-csi-bot ceph-csi-bot force-pushed the cleanup-remove-setmetadata-flag branch from 82aa312 to ebc6b88 Compare April 14, 2026 17:41
@nixpanic nixpanic added the ok-to-test Label to trigger E2E tests label Apr 14, 2026
@mergify

mergify Bot commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

rebase

✅ Branch has been successfully rebased

@ceph-csi-bot

Copy link
Copy Markdown
Collaborator

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

@ceph-csi-bot

Copy link
Copy Markdown
Collaborator

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

@ceph-csi-bot

Copy link
Copy Markdown
Collaborator

/test ci/centos/upgrade-tests-cephfs

@ceph-csi-bot

Copy link
Copy Markdown
Collaborator

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

@ceph-csi-bot

Copy link
Copy Markdown
Collaborator

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

@ceph-csi-bot

Copy link
Copy Markdown
Collaborator

/test ci/centos/upgrade-tests-rbd

@ceph-csi-bot

Copy link
Copy Markdown
Collaborator

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

@ceph-csi-bot

Copy link
Copy Markdown
Collaborator

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

@ceph-csi-bot

Copy link
Copy Markdown
Collaborator

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

@ceph-csi-bot

Copy link
Copy Markdown
Collaborator

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

@ceph-csi-bot

Copy link
Copy Markdown
Collaborator

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

@ceph-csi-bot ceph-csi-bot added ci/in-progress/e2e This label acts like a guard and prevents Mergify from adding the `ok-to-test` label again. and removed ok-to-test Label to trigger E2E tests labels Apr 14, 2026
@mergify mergify Bot removed the ci/in-progress/e2e This label acts like a guard and prevents Mergify from adding the `ok-to-test` label again. label Apr 14, 2026
@mergify

mergify Bot commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

Deprecation notice: This pull request comes from a fork and was queued with update_method=rebase and update_bot_account impersonation. This capability will be removed on July 1, 2026. After this date, the merge queue will no longer be able to rebase fork pull requests with this configuration. To avoid disruption, switch to update_method=merge in your queue rule.

@mergify

mergify Bot commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • Entered queue2026-04-14 21:03 UTC · Rule: default
  • Checks skipped · PR is already up-to-date
  • Merged2026-04-14 21:03 UTC · at ebc6b889129ec8f7f80ab57c03909a8957911b30

This pull request spent 12 seconds in the queue, including 2 seconds running CI.

Required conditions to merge

@mergify mergify Bot merged commit d6f0ea8 into ceph:devel Apr 14, 2026
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup component/cephfs Issues related to CephFS component/rbd Issues related to RBD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cleanup: deprecate the setmetadata flag

5 participants