]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/feedback: make tracker URL configurable and stop hitting live tracker in tests 68297/head
authorKefu Chai <k.chai@proxmox.com>
Fri, 10 Apr 2026 04:41:00 +0000 (12:41 +0800)
committerKefu Chai <k.chai@proxmox.com>
Fri, 10 Apr 2026 04:54:35 +0000 (12:54 +0800)
commit69eff2d74b4219540fc8877e103b662f4e974374
treeaa4571344b28731f8b94c9316e7fedb5e6c9ae98
parentf31b22f2e74189f75882d29ce50a43a0e624e57e
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>
qa/tasks/mgr/dashboard/test_feedback.py
src/pybind/mgr/feedback/module.py
src/pybind/mgr/feedback/service.py