Skip to content

qa/rgw: test that multipart re-upload does not leave any orphans - #50667

Merged
ivancich merged 1 commit into
ceph:mainfrom
ivancich:wip-add-reupload-testing
Jun 30, 2023
Merged

ivancich merged 1 commit into
ceph:mainfrom
ivancich:wip-add-reupload-testing

Conversation

@ivancich

@ivancich ivancich commented Mar 25, 2023 •

Copy link
Copy Markdown
Member

Runs a boto script that reuploads one part multiple times before completing and then we check for any orphans.

Original boto script contributed by Matt Benjamin
[email protected] on top of which modifications were made.

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

Contribution Guidelines

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

@ivancich
ivancich force-pushed the wip-add-reupload-testing branch 8 times, most recently from b7dc3a1 to 455fc33 Compare June 2, 2023 02:48
@ivancich
ivancich requested a review from cbodley June 2, 2023 14:45
@ivancich
ivancich force-pushed the wip-add-reupload-testing branch from e7d0ff2 to ebc3c36 Compare June 2, 2023 14:47
@ivancich

ivancich commented Jun 2, 2023

Copy link
Copy Markdown
Member Author

I believe I addressed your comments, @cbodley. It's unfortunate that information about the connection (e.g., port and/or protocol) aren't provided via environment variables. So I guess you just have to probe ports 80, 443, and 8000.

My runs find orphans, whether the multipart upload is completed or aborted after the re-uploads. I'm going to see if I can figure out what's up with that. But if it gets merged as-is, the rgw/verify suite will be all red.

@ivancich

ivancich commented Jun 2, 2023

Copy link
Copy Markdown
Member Author

Ahhhh, the unused parts added to GC for removal. So I need to force GC as part of the test.

@ivancich
ivancich force-pushed the wip-add-reupload-testing branch from ebc3c36 to 2a8e251 Compare June 2, 2023 15:25
@ivancich

ivancich commented Jun 2, 2023

Copy link
Copy Markdown
Member Author

Everything passes now that I've added the forced GC.

@ivancich
ivancich force-pushed the wip-add-reupload-testing branch from 2a8e251 to 0129c57 Compare June 2, 2023 15:59
@ivancich

ivancich commented Jun 2, 2023

Copy link
Copy Markdown
Member Author

I just added the inclusion of versioned buckets in the testing. As with whether or not to complete or abort the multipart upload, versioning is randomized 50/50.

Runs a boto script that reuploads one part multiple times before
completing and then we check for any orphans.

Original boto script contributed by Matt Benjamin
<[email protected]> on top of which modifications were made.

Signed-off-by: J. Eric Ivancich <[email protected]>
@ivancich
ivancich force-pushed the wip-add-reupload-testing branch from 0129c57 to aeffd1b Compare June 2, 2023 21:39
@ivancich

ivancich commented Jun 3, 2023

Copy link
Copy Markdown
Member Author

@cfsnyder cfsnyder 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.

The test looks good to me

@ivancich ivancich added needs-qa wip-eric-testing-1 for ivancich testing labels Jun 21, 2023
@ivancich
ivancich merged commit fb9d481 into ceph:main Jun 30, 2023
@ivancich ivancich removed needs-qa wip-eric-testing-1 for ivancich testing labels Jun 30, 2023
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