Bug #78572
closedqa/tasks/dnsmasq: DNS query loop on Ubuntu causes rgw s3tests to hit max job timeout
0%
Description
On Ubuntu, rgw/website and rgw/s3control s3tests run ~15–20× slower than on CentOS/Rocky and get killed by the 6-hour "max job
timeout" (dead) at ~40–55% complete. Same branch/suite on CentOS/Rocky finishes in ~20 min. No test failure, purely slow DNS.
Related Trackers: Bug #76961 and #75718
Root cause : the deb path of configure_dnsmasq() writes only address= records, with no upstream and no no-resolv. Any query dnsmasq
can't answer locally falls back to /etc/resolv.conf then systemd-resolved (127.0.0.53), which is configured (Domains=~cname) to route
that domain back to dnsmasq (127.0.0.1) which is a loop. Each round trip burns one 5-second glibc resolver retry.
Evidence (from teuthology.log, the dnsmasq task's own ping):
- Ubuntu: s3.trial006… took 15.0 s to resolve (= 3 × 5 s glibc retries); CentOS: 0.05 s
- ops-log: half of the requests preceded by a ~5.0 s stall on Ubuntu, ~0% on CentOS
Fix : add no-resolv to the dnsmasq config on the systemd-resolved (deb) path so dnsmasq is authoritative-only and never forwards,
breaking the loop.
Some more details in the Ceph Slack -> Sepia Channel thread
Two jobs (of the same suite) showing the discrepancy...same test branch, same job/suite (e.g., rgw/website/{clusters/fixed-2 frontend/beast http ignore-pg-availability overrides supported-random-distro/) on 2 different nodes:
- centos : https://qa-proxy.ceph.com/teuthology/bcs-ceph-2026-07-22_02:34:58-rgw:website-wip-oozmen-az-admin-autotrim-testing-2026-07-18-0142-distro-default-trial/384576/teuthology.log completes in ~20 mins
- ubuntu : https://qa-proxy.ceph.com/teuthology/bcs-ceph-2026-07-21_19:57:34-rgw-wip-oozmen-az-admin-autotrim-testing-2026-07-18-0142-distro-default-trial/383639/teuthology.log times out after 6 hours
OO Updated by Oguzhan Ozmen 4 months ago
- Related to Bug #75718: qa/rgw/website: flaky test - dnsmasq wildcard DNS setup failing with NameResolutionError added
- Related to Bug #76961: rgw/s3control: s3tests starts failing halfway through with "Name or service not known" added
OO Updated by Oguzhan Ozmen 4 months ago
- Pull request ID set to 70449
OO Updated by Oguzhan Ozmen 4 months ago
- Status changed from In Progress to Fix Under Review
AE Updated by Adam Emerson 4 months ago
Are we sure this doesn't need to go to squid? The original dnsmasq fix did.
UB Updated by Upkeep Bot 4 months ago
- Status changed from Fix Under Review to Pending Backport
- Merge Commit set to 993f3f7c504e52db41372f864466812c85ab8b13
- Fixed In set to v21.3.0-1424-g993f3f7c50
- Upkeep Timestamp set to 2026-07-27T13:24:08+00:00
OO Updated by Oguzhan Ozmen 4 months ago
Adam Emerson wrote in #note-4:
Are we sure this doesn't need to go to squid? The original dnsmasq fix did.
https://tracker.ceph.com/issues/76961 seems to have umbrella and tentacle as backport targets.
If it's backported to Squid, then yes this can be backported to Squid as well since one is added on top of https://tracker.ceph.com/issues/76961.
UB Updated by Upkeep Bot 4 months ago
- Copied to Backport #78714: umbrella: qa/tasks/dnsmasq: DNS query loop on Ubuntu causes rgw s3tests to hit max job timeout added
UB Updated by Upkeep Bot 4 months ago
- Copied to Backport #78715: tentacle: qa/tasks/dnsmasq: DNS query loop on Ubuntu causes rgw s3tests to hit max job timeout added
UB Updated by Upkeep Bot 4 months ago
- Tags (freeform) set to backport_processed
UB Updated by Upkeep Bot 3 months ago
- Status changed from Pending Backport to Backporting
- Tags (freeform) deleted (
backport_processed) - Upkeep Timestamp changed from 2026-07-27T13:24:08+00:00 to 2026-08-27T18:43:11+00:00