Skip to content

RADOS: Generalize stretch mode pg temp handling to be usable without stretch mode - #56233

Merged
kamoltat merged 4 commits into
ceph:mainfrom
kamoltat:wip-ksirivad-fix-64802
Aug 7, 2024
Merged

kamoltat merged 4 commits into
ceph:mainfrom
kamoltat:wip-ksirivad-fix-64802

Conversation

@kamoltat

@kamoltat kamoltat commented Mar 15, 2024 •

Copy link
Copy Markdown
Member

ATTENTION:

THIS PR SHOULD BE TESTED IN CONJUNCTION WITH #57381
Recommend merging #57381 before this PR.

In the command ceph osd pool stretch set

<pool> <peering_crush_bucket_count>
<peering_crush_bucket_target> <peering_crush_bucket_barrier> <crush_rule> <size> <min_size>

user has the option of setting the value of peering_crush_bucket_{count|target|barrier}.
This will then allow the utilization calc_replicated_acting_stretch,
since with peering_crush_bucket_count != 0
the pool is now a stretch_pool and we can handle pg_temp
better by setting barriers and limits to how much OSDs
should be in a pg_temp.

This will enable the specify pool to
handle pg_temp properly during create_acting, as a stretch pool
should.

Users can also use the command:
osd pool stretch show <pool>

to show all the stretch related information for the pool

pool: cephfs.a.data
pool_id: 3
is_stretch_pool: 1
peering_crush_bucket_count: 3
peering_crush_bucket_target: 3
peering_crush_bucket_barrier: 8
crush_rule: replicated_rule_custom
size: 3
min_size: 2

Users can also unset the stretch pool with the command:
osd pool stretch unset <pool>

However, the pool must be a stretch pool.

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

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

@kamoltat
kamoltat requested a review from a team as a code owner March 15, 2024 22:12
@kamoltat kamoltat changed the title [WIP] src/mon/OSDMonitor: Added peering_bucket_count & peering_bucket_barrier in prepare_new_pool [WIP] RADOS: Generalize stretch mode pg temp handling to be usable without stretch mode Mar 15, 2024
@kamoltat
kamoltat force-pushed the wip-ksirivad-fix-64802 branch from de33711 to 8413e1c Compare March 20, 2024 15:57
@kamoltat kamoltat self-assigned this Mar 20, 2024
@kamoltat
kamoltat force-pushed the wip-ksirivad-fix-64802 branch 6 times, most recently from 3b504ac to 1b24e98 Compare March 25, 2024 13:53
@github-actions github-actions Bot added the tests label Mar 25, 2024
@kamoltat
kamoltat force-pushed the wip-ksirivad-fix-64802 branch from 3bbda7a to a2dc1ef Compare March 26, 2024 12:44
@kamoltat
kamoltat requested a review from a team as a code owner March 26, 2024 17:22
@kamoltat
kamoltat force-pushed the wip-ksirivad-fix-64802 branch from 3739add to 2969da8 Compare March 26, 2024 17:31
@kamoltat
kamoltat force-pushed the wip-ksirivad-fix-64802 branch from 2969da8 to a9ec826 Compare April 2, 2024 19:16
@kamoltat

kamoltat commented Apr 2, 2024

Copy link
Copy Markdown
Member Author

@kamoltat
kamoltat force-pushed the wip-ksirivad-fix-64802 branch from a9ec826 to b79cec7 Compare April 2, 2024 20:05
@kamoltat kamoltat changed the title [WIP] RADOS: Generalize stretch mode pg temp handling to be usable without stretch mode RADOS: Generalize stretch mode pg temp handling to be usable without stretch mode Apr 2, 2024
@kamoltat
kamoltat force-pushed the wip-ksirivad-fix-64802 branch 6 times, most recently from 069bd14 to ea789dd Compare April 5, 2024 20:32
@kamoltat
kamoltat force-pushed the wip-ksirivad-fix-64802 branch 8 times, most recently from 525aecb to 85a1e5a Compare June 2, 2024 23:34
@kamoltat
kamoltat force-pushed the wip-ksirivad-fix-64802 branch from 85a1e5a to 50b6a34 Compare June 17, 2024 19:53
@kamoltat

kamoltat commented Jun 18, 2024 •

Copy link
Copy Markdown
Member Author

@kamoltat

Copy link
Copy Markdown
Member Author

@gregsfortytwo ready for second round of review :)

@kamoltat

Copy link
Copy Markdown
Member Author

/a/ksirivad-2024-07-12_16:29:18-rados-wip-ksirivad-pr-56233-plus-57381-distro-default-smithi/

287/316 Passed (scheduled against RADOS suite, using a branch that combines #56233 with #57381 
wip-ksirivad-pr-56233-plus-57381



FAILED & DEAD jobs unrelated



7798816, 7798892, 7798966, 7799045 https://tracker.ceph.com/issues/66881 qa/workunits/cephtool/test.sh: cannot remove '/tmp/foo': Operation not permitted
7798822, 7798839, 7798981, 7798912, 7799122 https://tracker.ceph.com/issues/61774 centos 9 testing reveals rocksdb "Leak_StillReachable" memory leak in mons
7798870, 7799029 https://tracker.ceph.com/issues/62972 ERROR: test_list_enabled_module (tasks.mgr.dashboard.test_mgr_module.MgrModuleTest)
7798904, tracker.ceph.com/issues/63784 qa/standalone/mon/mkfs.sh:'mkfs/a' already exists and is not empty: monitor may already exist
7798953 https://tracker.ceph.com/issues/66922 rados/dashboard/{0-single-container-host debug/mgr mon_election/classic random-objectstore$/{bluestore-comp-zlib} tasks/e2e}
7798962 https://tracker.ceph.com/issues/66209 ec-rados-plugin=jerasure-k=8-m=6-crush: too many values to unpack (expected 1)
7799030 https://tracker.ceph.com/issues/66658 qa/workunits/dencoder/test-dencoder.sh: Error encountered in subprocess. Command: ['ceph-dencoder', 'type', 'cls_rgw_reshard_get_ret’]
7799035 https://tracker.ceph.com/issues/66602 cluster [WRN] Health check failed: 1 pool(s) do not have an application enabled (POOL_APP_NOT_ENABLED)" in cluster log
7799054 https://tracker.ceph.com/issues/61774 centos 9 testing reveals rocksdb "Leak_StillReachable" memory leak in mons
7799111 https://tracker.ceph.com/issues/64870 Health check failed: 1 osds down (OSD_DOWN)

RADOS approved

@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

kamoltat added 3 commits July 17, 2024 22:11
In the command `ceph osd pool stretch set`

<pool> <peering_crush_bucket_count>
<peering_crush_bucket_target> <peering_crush_bucket_barrier>
<crush_rule> <size> <min_size>

user has the option of setting the value of `peering_crush_bucket_{count|target|barrier}`.
This will then allow the utilization `calc_replicated_acting_stretch`,
since with `peering_crush_bucket_count != 0`
the pool is now a stretch_pool and we can handle pg_temp
better by settubg barriers and limits to how much OSDs
should be in a pg_temp.

This will enable the specify pool to
handle pg_temp properly during create_acting, as a stretch pool
should.

User can also use the command:
`osd pool stretch show <pool> `

to show all the stretch related information for the pool

pool: cephfs.a.data
pool_id: 3
is_stretch_pool: 1
peering_crush_bucket_count: 3
peering_crush_bucket_target: 3
peering_crush_bucket_barrier: 8
crush_rule: replicated_rule_custom
size: 3
min_size: 2

User can also unset the stretch pool wiith the commnad:
`osd pool stretch unset <pool>`
However, the pool must be a stretch pool.

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

Signed-off-by: Kamoltat <[email protected]>
Test the following new Ceph CLI commands:

`ceph osd pool stretch set`
`ceph osd pool stretch unset`
`ceph osd pool stretch show`

`qa/workunits/mon/mon-stretch-pool.sh`

will create the stretch cluster
while performing input validation for the CLI
Commands mentioned above.

`qa/tasks/stretch_cluster.py`

is in charge of
setting a pool to stretch cluster
and checks whether it prevents PGs
from the going active when there is not
enough buckets available in the acting
set of PGs to go active.

Also, test different MON fail over scenarios
after setting pool as stretch

`qa/suites/rados/singleton/all/mon-stretch-pool.yaml`

brings the scripts together.

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

Signed-off-by: Kamoltat <[email protected]>
@kamoltat
kamoltat force-pushed the wip-ksirivad-fix-64802 branch from 50b6a34 to cdf0f92 Compare July 17, 2024 22:12
@kamoltat
kamoltat force-pushed the wip-ksirivad-fix-64802 branch from cdf0f92 to 666266e Compare July 17, 2024 22:14
Test the case where 2 DC loses connection with each other
for a 3 AZ stretch cluster with stretch pool enabled.
Check if cluster is accessible and PGs are active+clean
after reconnected.

Signed-off-by: Kamoltat <[email protected]>
@kamoltat
kamoltat force-pushed the wip-ksirivad-fix-64802 branch from 666266e to 7b41aff Compare July 17, 2024 22:16
@kamoltat

Copy link
Copy Markdown
Member Author

jenkins test windows

@athanatos

Copy link
Copy Markdown
Contributor

Fine by me to merge if it passes tests.

@kamoltat

kamoltat commented Aug 7, 2024 •

Copy link
Copy Markdown
Member Author

RADOS APPROVED

/ksirivad-2024-08-06_15:03:07-rados-wip-ksirivad-57381-and-56233-distro-default-smithi/

Known Failures:

  1. https://tracker.ceph.com/issues/66883 OSDs - marked "down and dead" during rados/thrash-old-clients tests time out in recovery
  2. https://tracker.ceph.com/issues/62972 - ERROR: test_list_enabled_module (tasks.mgr.dashboard.test_mgr_module.MgrModuleTest)
  3. https://tracker.ceph.com/issues/66602 - rados/upgrade: Health check failed: 1 pool(s) do not have an application enabled (POOL_APP_NOT_ENABLED)
  4. https://tracker.ceph.com/issues/67263 - ceph-dencoder.sh fail beacuse no backword compability to cls_rgw_reshard_entry
  5. https://tracker.ceph.com/issues/67225 - cephadm TLS/SSL connection has been closed
  6. https://tracker.ceph.com/issues/67302 - KarnelDevice showing Conditional jump or move depends on uninitialised value(s) valgrind error

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