Skip to content

qa/rgw: fix perl tests missing Amazon::S3 module - #63760

Merged
cbodley merged 1 commit into
ceph:mainfrom
mkogan1:wip-tst-perl-fix
Jun 30, 2025
Merged

cbodley merged 1 commit into
ceph:mainfrom
mkogan1:wip-tst-perl-fix

Conversation

@mkogan1

@mkogan1 mkogan1 commented Jun 5, 2025 •

Copy link
Copy Markdown
Contributor

and a second case where perl tests can fail without error output

  1. fix errors like: Can't locate Amazon/S3.pm in @INC (you may need to install the Amazon::S3 module)
    by priming the perl tests with installing the Amazon::S3 module from cpan

ex:

2025-06-23T19:18:40.162 INFO:tasks.workunit.client.0.smithi090.stderr:Can't locate Amazon/S3.pm in @INC (you may need to install the Amazon::S3 module) (@INC contains: /usr/local/lib64/perl5/5.32 ...
  1. log an error when RGW process is not detected

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

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

@mkogan1
mkogan1 requested a review from cbodley June 5, 2025 17:34
@mkogan1 mkogan1 added the bug-fix label Jun 5, 2025
@mkogan1
mkogan1 requested a review from a team as a code owner June 5, 2025 17:34
@github-actions github-actions Bot added the tests label Jun 5, 2025
@adamemerson

Copy link
Copy Markdown
Contributor

I'd like to take this for reef, squid, and tentacle, if it works.

@cbodley

cbodley commented Jun 5, 2025

Copy link
Copy Markdown
Contributor

on test env pgrep ... without -f did not recognize the radosgw process when its started with full path and not just process from $CWD

oh wow, maybe this was just a regression from https://tracker.ceph.com/issues/71543 because the process name changed to dedup_bg?

there was a similar regression on reef from #60728 (comment) which had renamed the main thread to notif-worker0

@cbodley

cbodley commented Jun 5, 2025

Copy link
Copy Markdown
Contributor

there was a similar regression on reef from #60728 (comment) which had renamed the main thread to notif-worker0

^ still need to merge #63095 for this

@cbodley

cbodley commented Jun 6, 2025

Copy link
Copy Markdown
Contributor

oh wow, maybe this was just a regression from https://tracker.ceph.com/issues/71543 because the process name changed to dedup_bg?

lab permitting, i'll try to get this 'dedup_bg' fix through teuthology to see if it resolves the issue on main

@cbodley

cbodley commented Jun 6, 2025

Copy link
Copy Markdown
Contributor

oh wow, maybe this was just a regression from https://tracker.ceph.com/issues/71543 because the process name changed to dedup_bg?

lab permitting, i'll try to get this 'dedup_bg' fix through teuthology to see if it resolves the issue on main

https://pulpito.ceph.com/cbodley-2025-06-06_17:18:13-rgw-wip-cbodley-testing-distro-default-smithi/ did contain the fix, and while there are lots of unrelated failures, the rgw/multifs jobs succeeded in running these perl tests👍

so i don't think we need this pr

@mkogan1
mkogan1 force-pushed the wip-tst-perl-fix branch 2 times, most recently from 8a0b70d to a543ff7 Compare June 8, 2025 12:17
@mkogan1 mkogan1 changed the title qa/rgw: attempt to fix intermitent RGW perl tests failures qa/rgw: log an error when RGW process is not detected Jun 8, 2025
@mkogan1

mkogan1 commented Jun 8, 2025

Copy link
Copy Markdown
Contributor Author

@cbodley amended the commit to leave only the added error log when RGW process is not detected, could it be useful?

@cbodley cbodley removed the bug-fix label Jun 9, 2025
@mkogan1

mkogan1 commented Jun 11, 2025

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@mkogan1

mkogan1 commented Jun 11, 2025

Copy link
Copy Markdown
Contributor Author

@mkogan1

mkogan1 commented Jun 15, 2025

Copy link
Copy Markdown
Contributor Author

jenkins test make check arm64

and a second case where perl tests can fail without error output

1. fix errors like: `Can't locate Amazon/S3.pm in @inc (you may need to
   install the Amazon::S3 module)`
by priming the perl tests with installing the Amazon::S3 module from cpan

ex:
```
2025-06-23T19:18:40.162 INFO:tasks.workunit.client.0.smithi090.stderr:Can't locate Amazon/S3.pm in @inc (you may need to install the Amazon::S3 module) (@inc contains: /usr/local/lib64/perl5/5.32 ...
```

2. log an error when RGW process is not detected

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

Signed-off-by: Mark Kogan <[email protected]>
@mkogan1
mkogan1 force-pushed the wip-tst-perl-fix branch from a543ff7 to 7faa23f Compare June 27, 2025 09:32
@mkogan1

mkogan1 commented Jun 27, 2025

Copy link
Copy Markdown
Contributor Author

tested OK --suite rgw:multifs on both centos and ubuntu
image
image

@mkogan1

mkogan1 commented Jun 27, 2025

Copy link
Copy Markdown
Contributor Author

@mkogan1
mkogan1 requested review from adamemerson and cbodley June 27, 2025 09:40
@mkogan1 mkogan1 changed the title qa/rgw: log an error when RGW process is not detected qa/rgw: fix perl tests missing Amazon::S3 module Jun 27, 2025
@cbodley

cbodley commented Jun 27, 2025

Copy link
Copy Markdown
Contributor

https://jenkins.ceph.com/job/ceph-pull-requests-arm64/76568/

The following tests FAILED:
33 - run-rbd-unit-tests-109.sh (Failed)

@cbodley

cbodley commented Jun 27, 2025

Copy link
Copy Markdown
Contributor

jenkins test make check arm64

@adamemerson

Copy link
Copy Markdown
Contributor

@yuriw This is the last thing we need.

@adamemerson adamemerson modified the milestone: v19.2.3 Jun 27, 2025
@mkogan1

mkogan1 commented Jun 30, 2025

Copy link
Copy Markdown
Contributor Author

full rgw suite with centos/ubuntu mix submitted: https://pulpito.ceph.com/mkogan-2025-06-27_09:34:28-rgw-main-distro-default-smithi/

The teuthology full rgw suite run has completed, the failed tests are not related to the perl fixes in this PR
image

@cbodley @adamemerson With your permission, will merge

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