]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa/dnsmasq: use managed dnsmasq instead of editing resolv.conf
authorCasey Bodley <cbodley@redhat.com>
Tue, 9 Jun 2026 18:04:53 +0000 (14:04 -0400)
committerCasey Bodley <cbodley@redhat.com>
Tue, 7 Jul 2026 16:17:21 +0000 (12:17 -0400)
commit70e1fd79f3584568302596f4dfb15fb15a0f48ca
tree78b6fc886aa09ed35aa8c161fface8235882bc5c
parent7c8dae21fa0400abee8da5011a76f3b747dec84e
qa/dnsmasq: use managed dnsmasq instead of editing resolv.conf

this task was manually editing /etc/resolv.conf to configure dns names.
on ubuntu 24, these changes were getting clobbered by NetworkManager or
systemd service restarts

instead, manage dnsmasq depending on host distro. rpm-based distros use
NetworkManager's dnsmasq plugin, while deb-based distros use
systemd-resolved to point at the local dnsmasq

Fixes: https://tracker.ceph.com/issues/76961
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 617f55391339c1c94259de63a6e7886fcb11ca31)
qa/tasks/dnsmasq.py