Skip to content

[3AZ] src/mon : Allow user to specify crush_rule, size and min_size when unsetting a stretch pool - #60631

Merged
SrinivasaBharath merged 3 commits into
ceph:mainfrom
kamoltat:wip-ksirivad-fix-3az-unset
Mar 21, 2025
Merged

SrinivasaBharath merged 3 commits into
ceph:mainfrom
kamoltat:wip-ksirivad-fix-3az-unset

Conversation

@kamoltat

@kamoltat kamoltat commented Nov 5, 2024 •

Copy link
Copy Markdown
Member

Problem:

When we enable stretched mode on the pools,
we modify 6 configs on the pool,
namely peering_crush_bucket_count,
peering_crush_bucket_target,
peering_crush_bucket_barrier,
crush_rule, size, min_size.

Out of these, only 3 configs,
namely peering_crush_bucket_count,
peering_crush_bucket_target,
peering_crush_bucket_barrier is reset to 0.

The remaining 3 configs,
namely crush_rule, size,
min_size are not reverted back,
and are still the values that were set with stretch set command.

Solution:

The unset command now is required
to specify `crush_rule`, `size`, `min_size`.

New command:

ceph osd pool stretch unset {pool-name} {crush_rule} {size} {min_size}

Fixes: https://tracker.ceph.com/issues/68842

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows
  • jenkins test rook e2e

@anthonyeleven anthonyeleven left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I suspect that the PR title should be different, but in this case I'm not sure what that might be.

@kamoltat kamoltat changed the title [3AZ Stretch pool]: Allow user to specify values when unsetting pools [3AZ] src/mon : Allow user to specify crush_rule, size and min_size when unsetting a stretch pool Nov 6, 2024
@kamoltat

kamoltat commented Nov 6, 2024

Copy link
Copy Markdown
Member Author

I suspect that the PR title should be different, but in this case I'm not sure what that might be.

@anthonyeleven Just updated the title, hopefully it makes more sense.

@gregsfortytwo gregsfortytwo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@github-actions github-actions Bot added the tests label Nov 22, 2024
@kamoltat

Copy link
Copy Markdown
Member Author

I just added some changes on the test file to reflect the new unset command

@kamoltat

Copy link
Copy Markdown
Member Author

jenkins test api

@kamoltat

Copy link
Copy Markdown
Member Author

jenkins test make check

@kamoltat

Copy link
Copy Markdown
Member Author

jenkins test api

@kamoltat

Copy link
Copy Markdown
Member Author

jenkins test make check

@kamoltat

Copy link
Copy Markdown
Member Author

jenkins test make check arm64

@kamoltat

Copy link
Copy Markdown
Member Author

dashboard keeps failing Ceph API

No such file or directoryNo such file or directoryIndication 1
--
  | Error E{INVAL,PERM,ACCESS...}Found some Errors in the build logIndication 2
  | Python TracebackModuleNotFoundError: No module named 'ceph_argparse'Traceback (most recent call last):   File "/home/jenkins-build/build/workspace/ceph-api/build/./bin/ceph", line 157, in      from ceph_argparse import \ ModuleNotFoundError: No module named 'ceph_argparse'Indication 3
  | Python Unit-test ErrorERROR: test_pool_create_with_quotas (tasks.mgr.dashboard.test_pool.PoolTest)

No such file or directory

No such file or directory
[Indication 1](https://jenkins.ceph.com/job/ceph-api/85471/consoleFull#9385701067dc3600c-28d8-42e2-9653-291a0c275fdf)
Error E{INVAL,PERM,ACCESS...}

Found some Errors in the build log
[Indication 2](https://jenkins.ceph.com/job/ceph-api/85471/consoleFull#-9553764944b0cfa0c-a892-49e0-a359-82544e1a192e)
Python Traceback

ModuleNotFoundError: No module named 'ceph_argparse'
Traceback (most recent call last):
  File "/home/jenkins-build/build/workspace/ceph-api/build/./bin/ceph", line 157, in 
    from ceph_argparse import \
ModuleNotFoundError: No module named 'ceph_argparse'

[Indication 3](https://jenkins.ceph.com/job/ceph-api/85471/consoleFull#-149115809c212b007-e891-4176-9ee7-2f60eca393b7)
Python Unit-test Error

ERROR: test_pool_create_with_quotas (tasks.mgr.dashboard.test_pool.PoolTest)

@kamoltat

Copy link
Copy Markdown
Member Author

jenkins test api

@kamoltat

Copy link
Copy Markdown
Member Author

jenkins test make check arm64

@kamoltat

Copy link
Copy Markdown
Member Author

@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days.
If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward.
If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

@github-actions github-actions Bot added the stale label Jan 24, 2025
@github-actions

Copy link
Copy Markdown

This pull request has been automatically closed because there has been no activity for 90 days. Please feel free to reopen this pull request (or open a new one) if the proposed change is still appropriate. Thank you for your contribution!

@github-actions github-actions Bot closed this Feb 24, 2025
@kamoltat kamoltat reopened this Feb 24, 2025
@github-actions github-actions Bot removed the stale label Feb 24, 2025
@kamoltat kamoltat added needs-qa needs-squid-backport PR needs a squid backport and removed needs-squid-backport PR needs a squid backport labels Mar 7, 2025
Problem:

When we enable stretched mode on the pools,
we modify 6 configs on the pool,
namely peering_crush_bucket_count,
peering_crush_bucket_target,
peering_crush_bucket_barrier,
crush_rule, size, min_size.

Out of these, only 3 configs,
namely peering_crush_bucket_count,
peering_crush_bucket_target,
peering_crush_bucket_barrier is reset to 0.

The remaining 3 configs,
namely crush_rule, size,
min_size are not reverted back,
and are still the values that were set with stretch set command.

Solution:

The unset command now is required
to specify `crush_rule`, `size`, `min_size`.

Fixes: https://tracker.ceph.com/issues/68842

Signed-off-by: Kamoltat Sirivadhna <[email protected]>
@kamoltat
kamoltat force-pushed the wip-ksirivad-fix-3az-unset branch from 3733b55 to 62b3d2b Compare March 17, 2025 12:37
@kamoltat

Copy link
Copy Markdown
Member Author

Pushed some new changes due to failure in:
Failed in skanta-2025-03-12_23:26:26-rados-wip-bharath4-testing-2025-03-12-0528-distro-default-smithi/8185363/

branch with new commit currently building, will re-run the test once done.

@kamoltat
kamoltat force-pushed the wip-ksirivad-fix-3az-unset branch from 62b3d2b to ecce751 Compare March 18, 2025 14:52
@kamoltat

Copy link
Copy Markdown
Member Author

@kamoltat

Copy link
Copy Markdown
Member Author

@kamoltat

Copy link
Copy Markdown
Member Author

jenkins retest this please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants