Skip to content

rgw/tests: add os-specific java 1.7 install commands to keycloak task - #67578

Merged
ivancich merged 1 commit into
ceph:mainfrom
ivancich:wip-install-java-17
Mar 2, 2026
Merged

ivancich merged 1 commit into
ceph:mainfrom
ivancich:wip-install-java-17

Conversation

@ivancich

@ivancich ivancich commented Feb 27, 2026 •

Copy link
Copy Markdown
Member

Add commands to keycloak task specific for rocky, rhel, centos, and ubuntu. Also, clean-up installed package(s) after test is run.

This is necessary as rocky can't install the same package(s) that the other os types currently can.

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

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

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@ivancich

Copy link
Copy Markdown
Member Author

@cbodley I wanted to follow up on our previous conversation. When I just removed the rpm subsection of qa/suites/rgw/sts/tasks/1-keycloak.yaml it would give an error. So I ended up removing that whole section and handling the install in tasks/keycloak.py. I know that having the install code in the python file is not ideal. But it is more flexible too.....

@ivancich ivancich added the wip-eric-testing-1 for ivancich testing label Feb 27, 2026
@ivancich

Copy link
Copy Markdown
Member Author

Add commands to keycloak task specific for rocky, rhel, centos, and
ubuntu. Also, clean-up installed package(s) after test is run.

This is necessary as rocky can't install the same package(s) that the
other os types currently can.

Signed-off-by: J. Eric Ivancich <[email protected]>
@ivancich
ivancich force-pushed the wip-install-java-17 branch from 5535398 to ee71039 Compare February 28, 2026 01:25
@ivancich

Copy link
Copy Markdown
Member Author

The above test failed on one job rgw/sts/{auth-order/local-sts cluster ignore-pg-availability objectstore overrides pool-type rgw_frontend/beast s3tests-branch supported-random-distro$/{centos_latest} tasks/{0-install 1-keycloak 2-s3tests}} on centos. It was fixed here:

@ivancich ivancich added TESTED and removed wip-eric-testing-1 for ivancich testing labels Feb 28, 2026
Comment thread qa/tasks/keycloak.py
Comment on lines +56 to +59
if os_type in ['rocky']:
toxvenv_sh(ctx, remote, ['sudo', 'dnf', 'install', '-y', 'adoptium-temurin-java-repository'])
toxvenv_sh(ctx, remote, ['sudo', 'dnf', 'config-manager', '--set-enabled', 'adoptium-temurin-java-repository'])
toxvenv_sh(ctx, remote, ['sudo', 'dnf', 'install', '-y', 'temurin-17-jdk'])

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.

if this is specific to epel 10, it might break if/when we add rocky 9. but if it works for now, lets take it

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I just tested that sequence of commands in a rocky 9 container, and it worked.

@ivancich
ivancich merged commit d5e63bc into ceph:main Mar 2, 2026
6 checks passed
@phlogistonjohn

Copy link
Copy Markdown
Contributor

make check is failing for me now with:

flake8: install_deps /ceph/qa> python -I -m pip install flake8
flake8: commands[0] /ceph/qa> flake8 --select=F,E9 --exclude=venv,.tox
./tasks/keycloak.py:51:5: F841 local variable 'os_version' is assigned to but never used
flake8: exit 1 (6.09 seconds) /ceph/qa> flake8 --select=F,E9 --exclude=venv,.tox pid=126902
flake8: FAIL ✖ in 19.97 seconds

which I think is caused by ee71039

@phlogistonjohn

Copy link
Copy Markdown
Contributor

FWIW I also agree with the linter there: os_version appears unused.

@phlogistonjohn

Copy link
Copy Markdown
Contributor

Why didn't this get detected earlier?

+ echo 'Only the doc/, container/, qa/ or .github/ dir changed.  No need to run make check.'
Only the doc/, container/, qa/ or .github/ dir changed.  No need to run make check.
+ exit 0

Boo, make check, boo!

@tchaikov

tchaikov commented Mar 3, 2026 •

Copy link
Copy Markdown
Contributor

@phlogistonjohn @ivancich and @cbodley , FWIW, i created #67626 to address this test failure.

@idryomov

idryomov commented Mar 3, 2026

Copy link
Copy Markdown
Contributor
+ echo 'Only the doc/, container/, qa/ or .github/ dir changed.  No need to run make check.'
Only the doc/, container/, qa/ or .github/ dir changed.  No need to run make check.
+ exit 0

Boo, make check, boo!

This happened at least twice in the last couple of weeks and has popped up before as well. IMO we need to go back to running make check for qa-only PRs, at least until the relevant tests are moved out of it into a separate check: ceph/ceph-build#2547.

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