Skip to content

networkd-test.py fails with dnsmasq 2.80 in test_resolved_domain_restricted_dns #10487

@mbiebl

Description

@mbiebl

systemd version the issue has been seen with

v239
git master

Used distribution

Debian sid

This is from the downstream bug report https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=911408

After the update of dnsmasq from 2.79 to 2.80, the systemd autopkgtest fails for test/networkd-test.py.

Running git bisect on dnsmasq identified the following commit as the problematic one:
http://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=1682d15a744880b0398af75eadf68fe66128af78

commit 1682d15a744880b0398af75eadf68fe66128af78
Author: Simon Kelley <[email protected]>
Date:   Fri Aug 3 20:38:18 2018 +0100

    Add missing EDNS0 section.
    EDNS0 section missing in replies to EDNS0-containing queries where
    answer generated from --local=/<domain>/

Simon Kelley (the author of dnsmasq) replied at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=911408#52

The failing test is

======================================================================
ERROR: test_resolved_domain_restricted_dns (__main__.DnsmasqClientTest)
resolved: domain-restricted DNS servers
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/tmp/autopkgtest-lxc.mecm2pp3/downtmp/build.egD/src/test/networkd-test.py",
line 583, in test_resolved_domain_restricted_dns
    out = subprocess.check_output(['systemd-resolve', 'math.lab'])
  File "/usr/lib/python3.6/subprocess.py", line 336, in check_output
    **kwargs).stdout
  File "/usr/lib/python3.6/subprocess.py", line 418, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['systemd-resolve', 'math.lab']'
returned non-zero exit status 1.

----------------------------------------------------------------------
Ran 36 tests in 208.186s

FAILED (errors=1, skipped=2)

I can't really answer the questions Simon raised in the Debian bug report, so I'm filing this bug report here to get further input.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions