Skip to content

qa/d4n: Fix valkey installation fallback on Debian-based distros - #71293

Merged
BBoozmen merged 1 commit into
ceph:mainfrom
BBoozmen:wip-oozmen-79807
Sep 2, 2026
Merged

BBoozmen merged 1 commit into
ceph:mainfrom
BBoozmen:wip-oozmen-79807

Conversation

@BBoozmen

@BBoozmen BBoozmen commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

Fixes: https://tracker.ceph.com/issues/79807
Related to #68193

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.

@BBoozmen
BBoozmen requested review from a team and samarahu August 24, 2026 16:29
@BBoozmen BBoozmen self-assigned this Aug 24, 2026
@BBoozmen BBoozmen added the rgw label Aug 24, 2026
@github-actions github-actions Bot added the tests label Aug 24, 2026
@BBoozmen
BBoozmen requested a review from ivancich August 24, 2026 16:32
@BBoozmen BBoozmen added needs-qa wip-oozmen-testing for teuthology integration testing to be used via build-integration-branch.sh labels Aug 25, 2026
The d4n suite failed on Ubuntu because it was looking for valkey, while Ubuntu
provides it as valkey-server.

Updated the install to use Ubuntu’s valkey-server package and removed the
unnecessary Percona fallback.

Also now let systemd start Valkey instead of starting it manually. This avoids
conflicts on port 6379 and prevents false success reports before the server is
actually ready.

Signed-off-by: Oguzhan Ozmen <[email protected]>
@BBoozmen

Copy link
Copy Markdown
Contributor Author

@adamemerson / @samarahu - I tested the original (1st) fix (see https://pulpito.ceph.com/?sha1=45be1a834d2ba184228f843b399cc9404aa4ebbe) but d4n for Debian (ubuntu 24.04) failed again but for a different reason.

The original fix made the expected progress ... now "fallback to installing from the 3rd party pkg provider Percona" worked. The installer ran correctly and got all the way to the final step:

  10:42:51.242  > sudo percona-release enable valkey testing
  10:42:51.692  * Enabling the Percona Valkey repository
  10:42:54.053  The following NEW packages will be installed:
  10:42:54.053    valkey
  10:42:54.331  Get:1 http://repo.percona.com/valkey/apt noble/testing amd64 valkey amd64 1:8.0.2-1.noble
  10:42:55.040  Fetched 2284 kB in 1s (2945 kB/s)
...
  10:42:55.177  Unpacking valkey (1:8.0.2-1.noble) ...
  10:42:55.201  dpkg: error processing archive .../valkey_1%3a8.0.2-1.noble_amd64.deb (--unpack):
  10:42:55.201   unable to open '/usr/lib/systemd/system/valkey.service.dpkg-new': No such file or directory
  10:42:55.954  E: Sub-process /usr/bin/dpkg returned an error code (1)
  10:42:55.957  Redis Task: Error installing valkey package
  10:42:55.958  Command failed on trial183 with status 100: 'sudo apt install valkey -y'

"No such file or directory," is misleading here as in earlier lines we see the creation of the symlink:

10:42:18.179  Created symlink /etc/systemd/system/ceph.target.wants/ceph-crash.service
                  → /usr/lib/systemd/system/ceph-crash.service

So folder exists. looks like Percona package is simply built wrong for Ubuntu 24 as it tries to install the same startup file to both /lib and /usr/lib.

I think we decided to use Percona workaround on the premise that "Ubuntu doesn't have Valkey" but Ubuntu has added it in Noble. Yes, Jammy doesn't have it but we don't run d4n tests on Jammy but only in Noble (see https://github.com/ceph/ceph/tree/main/qa/distros/supported-random-distro)

Package: valkey-server
  Version: 7.2.13+dfsg1-0ubuntu0.1
  Depends: valkey-tools (= 7.2.13+dfsg1-0ubuntu0.1)

Since Ubuntu ship valkey-server natively, we can start using it as Percona pkg seems to be broken on Noble anyways.

The only concern would be Ubuntu ships valkey 7.2.13 while Rocky/CentOS ship 8.x, so this introduces a version skew across distros that the Percona didn't have. BUT, D4N's command set (HSET/ZADD/ZRANGE/HGET/ZREM/EXISTS/COPY/INCR/HGETALL) is well within 7.2 so this skewness doesn't really cause any issues.

So, I just pushed a new evidence that uses Ubuntu's native "valkey-server" and tested this new (2nd) fix:

@adamemerson / @samarahu / @ivancich Let me know what you think.

We can easily change the task to support Jammy (by bringing back the logic to fall back to Percona just for Jammy) but since we don't seem to support d4n test suite on Jammy, I don't think it's needed so just using the native packages gives us a clean solution.

Please take a look at the latest state of the PR which now carries the 2nd fix. When/If approved again, I'll do a full rgw QA testing and some multiple d4n suite tests again.

@BBoozmen

BBoozmen commented Sep 2, 2026

Copy link
Copy Markdown
Contributor Author

Based on the discussion at rgw-devel slack thread. We are good to drop Jammy support for d4n suite in main - which was already done in an earlier PR - so we can start using only native pkgs for valkey as this PR is trying to do.

ceph-ci branch: https://github.com/ceph/ceph-ci/commits/wip-oozmen-79807-testing-2026-08-25-2157/
QA test results: https://pulpito.ceph.com/?sha1=1afb18ad50b12084cb20b84de38451456f9facaf
Summary of results:

@BBoozmen
BBoozmen merged commit 0bc80fc into ceph:main Sep 2, 2026
7 checks passed
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown

This is an automated message by src/script/redmine-upkeep.py.

I have resolved the following tracker ticket due to the merge of this PR:

No backports are pending for the ticket. If this is incorrect, please update the tracker
ticket and reset to Pending Backport state.

Update Log: https://github.com/ceph/ceph/actions/runs/33630063832

@BBoozmen BBoozmen removed needs-qa wip-oozmen-testing for teuthology integration testing to be used via build-integration-branch.sh labels Sep 2, 2026
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