Skip to content

src/test: allow ENOENT if target object of tier_flush has snapshots - #61374

Merged
rzarzynski merged 1 commit into
ceph:mainfrom
myoungwon:fix-68518
Feb 3, 2025
Merged

rzarzynski merged 1 commit into
ceph:mainfrom
myoungwon:fix-68518

Conversation

@myoungwon

@myoungwon myoungwon commented Jan 15, 2025 •

Copy link
Copy Markdown
Member

Tier_flush can return ENOENT if the recovery procedure for adjacent clones are in progress.
To prevent the false alarm, this commit allows ENOENT to be returned in the case of tier_flush.

Allowing ENOENT might not cover some cases, but this has a advantage:

  1. No need to change OSD code.
    Also, the other cases can be covered because:
  2. tier_flush is a write operation that rarely returns ENOENT
  3. other operations in combination test can cover ENOENT case, minimizing OSD changes.

fix: https://tracker.ceph.com/issues/68518

result:
https://pulpito.ceph.com/myoungwon-2024-12-30_01:15:36-rados-fix-68518-distro-default-smithi/
https://pulpito.ceph.com/myoungwon-2024-12-27_14:52:24-rados-fix-68518-distro-default-smithi/
https://pulpito.ceph.com/myoungwon-2024-12-26_04:25:39-rados-fix-68518-distro-default-smithi/
https://pulpito.ceph.com/myoungwon-2025-01-02_05:52:25-rados-fix-68518-distro-default-smithi/

Signed-off-by: Myoungwon Oh [email protected]
Signed-off-by: Naveen Naidu [email protected]

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

Tier_flush can return ENOENT if the recovery procedure for
adjacent clones are in progress. Allowing ENOENT might not
cover some cases, but this has some advantages:
1) tier_flush is a write operation that rarely returns ENOENT
2) other operations in combination test can cover ENOENT case,
minimizing OSD changes.

Signed-off-by: Myoungwon Oh <[email protected]>
@myoungwon
myoungwon requested a review from a team as a code owner January 15, 2025 01:25
@Naveenaidu Naveenaidu mentioned this pull request Jan 15, 2025
3 of 14 tasks
@ljflores

Copy link
Copy Markdown
Member

jenkins retest this please

@ljflores

Copy link
Copy Markdown
Member

Looks good! This can merge after the checks pass, as it was already tested by teuthology.

@rzarzynski

Copy link
Copy Markdown
Contributor

jenkins test make check

@rzarzynski
rzarzynski merged commit a79ff9a into ceph:main Feb 3, 2025
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.

3 participants