Commit Graph

4917 Commits

Author SHA1 Message Date
Kefu Chai
1f5169db36 Merge pull request #68297 from tchaikov/wip-feedback-without-tracker
mgr/feedback: fix flaky test_issue_tracker_create_with_invalid_key

Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Afreen Misbah <afreen@ibm.com>
2026-04-17 13:34:51 +08:00
Patrick Donnelly
dd2b7661be Merge PR #67822 into main
* refs/pull/67822/head:
	qa: remove vestiges of ceph-deploy
	doc: remove references to ceph-deploy

Reviewed-by: Anthony D Atri <anthony.datri@gmail.com>
2026-04-16 12:28:52 -04:00
Kefu Chai
f9c14ff857 Merge pull request #68282 from tchaikov/wip-mgr-module-neg-exit-code
mgr/crash, mgr/status: return negative errno to fix CLI exit code

Reviewed-by: Dan Mick <dmick@ibm.com>
2026-04-16 13:13:05 +08:00
Patrick Donnelly
acf75b9442 Merge PR #66294 into main
* refs/pull/66294/head:
	qa: enforce centos9 for test
	qa: rename distro
	qa/suites/fs/bugs: use centos9 for squid upgrade test
	qa: remove unused variables
	qa: use centos9 for fs suites using k-testing
	qa: update fs suite to rocky10
	qa: skip dashboard install due to dependency noise
	qa: only setup nat rules during bridge creation
	qa: correct wording of comment
	qa: use nft instead iptables
	qa: use py3 builtin ipaddress module

Reviewed-by: Venky Shankar <vshankar@redhat.com>
2026-04-14 11:46:54 -04:00
Venky Shankar
9f0cc8789d Merge pull request #62351 from vshankar/wip-revert-referent-inodes
mds: revert referent inode work

Reviewed-by: Patrick Donnelly <pdonnell@ibm.com>
2026-04-14 21:05:25 +05:30
Patrick Donnelly
d60ec8e0ac qa: remove vestiges of ceph-deploy
Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
2026-04-14 09:03:58 -04:00
Patrick Donnelly
4ebd6f62eb Merge PR #67555 into main
* refs/pull/67555/head:
	qa/tasks/quiescer: remove racy assertion

Reviewed-by: Rishabh Dave <ridave@redhat.com>
2026-04-14 08:18:07 -04:00
Patrick Donnelly
d8cc2ea40c qa: remove unused variables
To make tox-qa happy.

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
2026-04-13 21:27:19 -04:00
Patrick Donnelly
6fa39caea7 qa: only setup nat rules during bridge creation
Currently the code recreates these NAT rules for every mount. This only
needs to be done once by the first mount.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2026-04-13 21:27:18 -04:00
Patrick Donnelly
83ecfdfe8b qa: correct wording of comment
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2026-04-13 21:27:18 -04:00
Patrick Donnelly
60b31e5021 qa: use nft instead iptables
rocky.10 does not support iptables with MASQUERADE targets. (Or maybe it
does with more prodding but it's easier to just switch to nft.)

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
2026-04-13 21:27:18 -04:00
Patrick Donnelly
5c511835c3 qa: use py3 builtin ipaddress module
Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
2026-04-13 21:27:18 -04:00
Matan Breizman
82466e2244 Merge pull request #68342 from Matan-B/wip-matanb-objecter-branch
qa/tasks/admin_socket.py: replace git.ceph.com with GitHub raw URLs

Reviewed-by: Shraddha Agrawal <shraddhaag@ibm.com>
2026-04-13 19:20:40 +03:00
Matan Breizman
05f80acd3d qa/tasks/admin_socket.py: replace git.ceph.com with GitHub raw URLs
admin_socket tests can still fail on non-default branches
due to git.ceph.com wget timeouts. Use raw URLs instead.

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

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
2026-04-12 17:41:30 +03:00
Kefu Chai
69eff2d74b mgr/feedback: make tracker URL configurable and stop hitting live tracker in tests
The feedback module hard-coded tracker.ceph.com as the Ceph issue
tracker hostname. This meant the dashboard test
test_issue_tracker_create_with_invalid_key actually performed an
HTTPS POST against the live production tracker on every CI run.
Whenever tracker.ceph.com returned an unexpected response (5xx,
gateway error, transient failure), the test would fail on
completely unrelated pull requests.

Add a runtime module option 'mgr/feedback/tracker_url' that
controls which host the CephTrackerClient talks to. The default
keeps the existing behaviour (tracker.ceph.com). The dashboard
test now sets this option to an unreachable hostname in setUpClass
so create_issue fails fast with a ConnectionError instead of
depending on tracker.ceph.com being reachable.

Combined with the prior commit's error-handling fix, the test now
deterministically verifies that any tracker failure is surfaced as
HTTP 400, without requiring network access.

Signed-off-by: Kefu Chai <k.chai@proxmox.com>
2026-04-10 12:54:35 +08:00
Casey Bodley
c632fb95ea Merge pull request #68269 from kshtsk/wip-rgw-crypt-kmip
qa/rgw: Revive crypt kmip

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2026-04-09 15:47:20 -04:00
Kefu Chai
7041f6b6b3 mgr/crash, mgr/status: return negative errno to fix CLI exit code
The crash and status mgr modules return positive errno values (e.g.
errno.EINVAL) on error. However, the ceph CLI (src/ceph.in) only
treats negative return codes as errors:

    if ret < 0:
        final_ret = -ret

A positive return code falls through and the CLI exits with 0, masking
the error. This causes commands like "ceph crash post" and "ceph crash
info <bad-id>" to return success (rc=0) despite failing, with the
error message only appearing on stderr.

This was observed in the wild and worked around in a77b47eeeb, which added a
stderr != "" check to ceph-crash's post_crash() as a mitigation.

Fix the root cause by negating the errno values in both modules,
consistent with the HandleCommandResult convention
(retval: "E.g. 0 or -errno.EINVAL") and the 154 other call sites
across mgr modules that already use negative errno.

Also add error-path tests for the crash module to cover the three
affected commands (info, post, archive).

See-also: a77b47eeeb
Fixes: https://tracker.ceph.com/issues/75937
Signed-off-by: Kefu Chai <k.chai@proxmox.com>
2026-04-09 20:40:35 +08:00
Redouane Kachach
93aa3cb449 Merge pull request #67953 from rkachach/fix_issue_raw_osd_teuthology
qa: wipe disks in case of raw option is provided

Reviewed-by: Guillaume Abrioux <gabrioux@ibm.com>
2026-04-09 12:53:43 +02:00
Kyr Shatskyy
da7d3b2847 qa/tasks/pykmip: archive pykmip log after server down
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@clyso.com>
2026-04-09 02:16:25 +02:00
Kyr Shatskyy
995fd24597 qa/tasks/pykmip: use OpenSSL names instead IANA
For OpenSSL 3.x which the IANA names might not be supported.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@clyso.com>
2026-04-09 02:16:25 +02:00
Kyr Shatskyy
4698fff408 qa/tasks/pykmip: drop py2 deps
We don't need no more python2 dependencies

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@clyso.com>
2026-04-09 02:16:25 +02:00
J. Eric Ivancich
d19578ffa7 rgw/test: enhanced java s3-tests change setting of JAVA_HOME
Under Centos 9 the Java 8 version is recognized by the substring
"java-1.8" rather than "java-8". So the grep has been modified to
accept either.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
(cherry picked from commit a49d4446e4)
2026-04-06 22:19:48 -04:00
J. Eric Ivancich
b8e2796270 rgw: java s3-tests change setting of JAVA_HOME
Previously s3tests_java.py set JAVA_HOME using the `alternatives`
command. That had issues in that `alternatives` is not present on all
Ubuntu systems, and some installations of Java don't update
alternatives. So instead we look for a "java-8" jvm in /usr/lib/jvm/
and set JAVA_HOME to the first one we find.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
2026-04-03 19:26:41 -04:00
Shraddha Agrawal
620d683191 qa/tasks/cephadm.py: only pass --objectstore when not bluestore
This commit ensure that we only pass --objectstore argument to
cephadm's add/apply OSD command only when the value is not the
default value, bluestore.

This is done to ensure older ceph releases, like Squid and Tentacle
do not fail, as --objectstore argument was only added in Umbrella.

Fixes: https://tracker.ceph.com/issues/75731
Signed-off-by: Shraddha Agrawal <shraddha.agrawal000@gmail.com>
2026-03-30 15:42:08 +05:30
Sridhar Seshasayee
9cbdecd972 Merge pull request #67829 from sseshasa/wip-fix-test-backfilltoofull-with-compression
qa/tasks/backfill_toofull.py: Fix assert failures with & without compression

Reviewed-by: Bill Scales <bill_scales@uk.ibm.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2026-03-28 00:04:03 +05:30
Yuval Lifshitz
acf8f7c7ad test/rgw/notification: fix rabbitmq dependency for rocky10
Fixes: https://tracker.ceph.com/issues/75712

Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
2026-03-26 15:25:49 +00:00
Venky Shankar
03aaf69fac Merge PR #61981 into main
* refs/pull/61981/head:

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@ibm.com>
2026-03-23 20:34:06 +05:30
Redouane Kachach
f3c938f503 qa/cephadm: zap raw devices before OSD deployment
ceph_osds() assumes all teuthology scratch devices are clean
and directly usable by:

 > ceph orch apply osd --all-available-devices --method raw

However, in practice some devices may retain stale BlueStore metadata
(or other data) from previous runs. cephadm correctly skips such
devices, leading to fewer OSDs than expected and causing the test to
timeout waiting for an exact OSD count.

This change adds a pre-deployment cleanup step for `raw-osds` that:
- zaps any existing BlueStore metadata (`ceph-bluestore-tool zap-device`)
- removes filesystem signatures (`wipefs --all`)
- clears initial disk data (`dd`)

This ensures all scratch devices are truly available for OSD
deployment and prevents mismatches between expected and actual OSD
counts.

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

Signed-off-by: Redouane Kachach <rkachach@ibm.com>
2026-03-23 13:28:32 +01:00
Vallari Agrawal
9b8a9d14da Merge pull request #67804 from VallariAg/wip-nvmeof-thrasher-fixes
qa: Fix nvmeof 'errors during thrashing'
2026-03-23 15:39:47 +05:30
Patrick Donnelly
912e429e04 Merge PR #67557 into main
* refs/pull/67557/head:
	qa: resolve py3.12 regression for random.sample

Reviewed-by: Venky Shankar <vshankar@redhat.com>
2026-03-20 17:55:40 -04:00
Venky Shankar
30d41e7b8d Revert "qa/test_backtrace: Validate remote_inode xattr is stored"
This reverts commit 4e0f7dbd55.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
2026-03-20 12:55:14 +05:30
Venky Shankar
3c70540726 Revert "qa/cephfs-data-scan: Validate referent hardlink recovery"
This reverts commit ba5df7ae75.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
2026-03-20 12:55:14 +05:30
Venky Shankar
cd792bf2b0 Revert "qa: Fix dashboard test_health failure"
This reverts commit d2c1f9953d.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
2026-03-20 12:55:14 +05:30
Venky Shankar
b1088ddd61 Revert "qa: Add function to fetch inode from metadata pool"
This reverts commit 5e4812cdb5.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
2026-03-20 12:55:13 +05:30
Venky Shankar
d5523447fc Revert "qa: referent inode test - link w/ max_mds=1"
This reverts commit f27a47ac9d.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
2026-03-20 12:55:13 +05:30
Venky Shankar
2fcd27a980 Revert "qa: Disable referent inodes for a few test_strays tests"
This reverts commit ecd2496933.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
2026-03-20 12:55:13 +05:30
Venky Shankar
a97958eb0b Revert "qa: referent inodes - unlink, stray_reintegration"
This reverts commit 43b4ef3f54.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
2026-03-20 12:55:13 +05:30
Venky Shankar
bcba417d0a Revert "qa: add more referent inode tests"
This reverts commit 7b2d9c4b58.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
2026-03-20 12:55:13 +05:30
Venky Shankar
713e88e41b Merge pull request #67406 from batrick/i75013
mon/AuthMonitor: add osd w cap for superuser client

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
2026-03-20 10:26:31 +05:30
neeraj pratap singh
3689aefbba qa: test case for evicting clients with id having multiple number of consecutive zeroes
Fixes: https://tracker.ceph.com/issues/70198
Signed-off-by: neeraj pratap singh <neerajpratapsingh@li-ff7f0d4c-3462-11b2-a85c-d4004c0fa1a0.ibm.com>
2026-03-18 15:04:27 +05:30
Venky Shankar
434d488ad3 Merge pull request #67125 from batrick/multifs-auth-fix
qa: clean up and simplify client 2 caps

Venky Shankar <vshankar@redhat.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
2026-03-17 15:27:25 +05:30
Venky Shankar
5d2301d892 Merge pull request #67556 from batrick/i70580
qa: allow multiple mgr sessions during eviction test

Reviewed-by: Venky Shankar <vshankar@redhat.com>
2026-03-17 15:25:20 +05:30
Sridhar Seshasayee
91de6a0b7b qa/tasks/backfill_toofull.py: Fix assert failures with & without compression
The following issues with the test are addressed:

1. The test was encountering assertion failure (assert backfillfull < 0.9) with
   compression enabled. This was because the condition was not factoring in the
   compression ratio. Without it the backfillfull ratio can easily exceed 1. By
   factoring in the compression ratio, the backfillfull ratio will be in the
   range (0 - n), where n can vary depending on the type of compression used.

2. The main contributing factor for (1) above is the amount of data written to
   the pool. The writes were time-bound earlier leading to excess data and
   eventually the assertion failure. By limiting the data written to the OSDs
   to 50% of the OSD capacity in the first phase and only 20% in the re-write
   phase, the outcome of the test is more deterministic regardless of
   compression being enabled or not.

3. A potential false cluster error is avoided by swapping the setting of
   the nearfull-ratio and backfill-ratio after the re-write phase.

4. Fix a couple of typos - s/tartget/target.

Fixes: https://tracker.ceph.com/issues/71005
Signed-off-by: Sridhar Seshasayee <sridhar.seshasayee@ibm.com>
2026-03-17 11:57:46 +05:30
Venky Shankar
d499c7f30f qa/cephfs: do not validate error string in "fs authorize" tests
Error string validation is prone to failures when error string
changes. errno (retval) validation suffices for tests.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
2026-03-16 10:21:26 +05:30
Vallari Agrawal
86ac2893fb qa/tasks/nvmeof.py: retry do_check if gw in CREATED
In do_check(), ensure all the namespaces+listeners are
added in gateway (i.e. gateway not in CREATED state)
after gateway is restarted. This is to prevent going into
next iteration of tharshing while gateways are still being
updated.

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

Signed-off-by: Vallari Agrawal <vallari.agrawal@ibm.com>
2026-03-14 11:08:00 +05:30
Vallari Agrawal
5fcc8b0e46 qa/tasks/nvmeof.py: Fix tharsher daemon_rm revival
Instead of "ceph orch daemon restart",
wait for daemon to come backup on it's own
during revival.
Also improve do_check retry logic.
And some logging improvements in nvmeof.thrasher task.

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

Signed-off-by: Vallari Agrawal <vallari.agrawal@ibm.com>
2026-03-13 14:01:40 +05:30
Chunmei Liu
503e2efd62 qa/suites/crimson-rados: add fio test case for osd shard number changes upon restart for 3 osd
Signed-off-by: Chunmei Liu <chunmei.liu@ibm.com>
2026-03-12 12:10:19 -07:00
kyr
944f78e5ba Merge pull request #67660 from kshtsk/wip-keystone-2025.2
qa/tasks/keystone: upgrade keystone to 2025.2
2026-03-12 12:05:28 +01:00
Hezko
4a8594ff9e Merge pull request #67641 from Hezko/revive-nvme-module
introduce nvme module again
2026-03-12 00:03:55 +02:00
Vallari Agrawal
97f4043a64 qa: Add "auto_pool_create" to nvmeof_initiator
While deploying gateways with "ceph orch apply nvmeof",
--pool can be optional now. If not passed, a pool with
name ".nvmeof" would automatically be created.

In nvmeof task, "auto_pool_create: True" would skip --pool
in "ceph orch apply nvmeof".

Signed-off-by: Vallari Agrawal <vallari.agrawal@ibm.com>
2026-03-11 21:18:36 +02:00