deckard issueshttps://gitlab.nic.cz/knot/deckard/-/issues2022-03-24T11:13:35+01:00https://gitlab.nic.cz/knot/deckard/-/issues/70trouble on centos72022-03-24T11:13:35+01:00wzlutrouble on centos7I try to run deckard on centos7:
CentOS Linux release 7.9.2009 (Core)
uname -a: Linux localhost.localdomain 3.10.0-1160.49.1.el7.x86_64 #1 SMP Tue Nov 30 15:51:32 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Python 3.7.11
But receive the foll...I try to run deckard on centos7:
CentOS Linux release 7.9.2009 (Core)
uname -a: Linux localhost.localdomain 3.10.0-1160.49.1.el7.x86_64 #1 SMP Tue Nov 30 15:51:32 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Python 3.7.11
But receive the following messages:
(base) [lwz@localhost deckard-master]$ ./kresd_run.sh -n 4 -k "iter_minim_a.rpl"
[gw0] Python 3.7.11 (default, Jul 27 2021, 14:32:16) -- [GCC 7.5.0]
[gw1] Python 3.7.11 (default, Jul 27 2021, 14:32:16) -- [GCC 7.5.0]
[gw2] Python 3.7.11 (default, Jul 27 2021, 14:32:16) -- [GCC 7.5.0]
[gw3] Python 3.7.11 (default, Jul 27 2021, 14:32:16) -- [GCC 7.5.0]
gw0 ok / gw1 ok / gw2 ok / gw3 ok
gw0 [0] / gw1 [0] / gw2 [0] / gw3 [0]
scheduling tests via LoadScheduling
============================================================ warnings summary =============================================================
../../ana3/lib/python3.7/site-packages/xdist/plugin.py:205
../../ana3/lib/python3.7/site-packages/xdist/plugin.py:205
../../ana3/lib/python3.7/site-packages/xdist/plugin.py:205
../../ana3/lib/python3.7/site-packages/xdist/plugin.py:205
../../ana3/lib/python3.7/site-packages/xdist/plugin.py:205
/home/lwz/ana3/lib/python3.7/site-packages/xdist/plugin.py:205: DeprecationWarning: The --boxed commmand line argument is deprecated. Install pytest-forked and use --forked instead. pytest-xdist 3.0.0 will remove the --boxed argument and pytest-forked dependency.
config.issue_config_time_warning(warning, 2)
../../ana3/lib/python3.7/site-packages/pyroute2/__init__.py:72
../../ana3/lib/python3.7/site-packages/pyroute2/__init__.py:72
../../ana3/lib/python3.7/site-packages/pyroute2/__init__.py:72
../../ana3/lib/python3.7/site-packages/pyroute2/__init__.py:72
/home/lwz/ana3/lib/python3.7/site-packages/pyroute2/__init__.py:72: DeprecationWarning: SelectableGroups dict interface is deprecated. Use select.
for entry_point in metadata.entry_points().get('pr2modules', []):
-- Docs: https://docs.pytest.org/en/stable/warnings.html
=========================================================== 9 warnings in 2.48s ===========================================================
[gw0] Python 3.7.11 (default, Jul 27 2021, 14:32:16) -- [GCC 7.5.0]
[gw1] Python 3.7.11 (default, Jul 27 2021, 14:32:16) -- [GCC 7.5.0]
[gw2] Python 3.7.11 (default, Jul 27 2021, 14:32:16) -- [GCC 7.5.0]
[gw3] Python 3.7.11 (default, Jul 27 2021, 14:32:16) -- [GCC 7.5.0]
gw0 [2] / gw1 [2] / gw2 [2] / gw3 [2]
scheduling tests via LoadScheduling
deckard_pytest.py::test_passes_qmin_on[Scenario(path='sets/resolver/iter_minim_a.rpl', qmin=True, config={'programs': [{'name': 'kresd', 'binary': 'kresd', 'additional': ['-n'], 'templates': ['template/kresd.j2'], 'configs': ['config']}]})-max-retries-3]
deckard_pytest.py::test_passes_qmin_off[Scenario(path='sets/resolver/iter_minim_a.rpl', qmin=True, config={'programs': [{'name': 'kresd', 'binary': 'kresd', 'additional': ['-n'], 'templates': ['template/kresd.j2'], 'configs': ['config']}]})-max-retries-3]
[gw0] [ 50%] ERROR deckard_pytest.py::test_passes_qmin_on[Scenario(path='sets/resolver/iter_minim_a.rpl', qmin=True, config={'programs': [{'name': 'kresd', 'binary': 'kresd', 'additional': ['-n'], 'templates': ['template/kresd.j2'], 'configs': ['config']}]})-max-retries-3]
[gw1] [100%] ERROR deckard_pytest.py::test_passes_qmin_off[Scenario(path='sets/resolver/iter_minim_a.rpl', qmin=True, config={'programs': [{'name': 'kresd', 'binary': 'kresd', 'additional': ['-n'], 'templates': ['template/kresd.j2'], 'configs': ['config']}]})-max-retries-3]
================================================================= ERRORS ==================================================================
_ ERROR at setup of test_passes_qmin_on[Scenario(path='sets/resolver/iter_minim_a.rpl', qmin=True, config={'programs': [{'name': 'kresd', 'binary': 'kresd', 'additional': ['-n'], 'templates': ['template/kresd.j2'], 'configs': ['config']}]})-max-retries-3] _
[gw0] linux -- Python 3.7.11 /home/lwz/ana3/bin/python3
conftest.py:126: in pytest_runtest_setup
LinuxNamespace("user").__enter__()
contrib/namespaces.py:60: in __init__
raise OSError(e, os.strerror(e))
E OSError: [Errno 22] Invalid argument
_ ERROR at setup of test_passes_qmin_off[Scenario(path='sets/resolver/iter_minim_a.rpl', qmin=True, config={'programs': [{'name': 'kresd', 'binary': 'kresd', 'additional': ['-n'], 'templates': ['template/kresd.j2'], 'configs': ['config']}]})-max-retries-3] _
[gw1] linux -- Python 3.7.11 /home/lwz/ana3/bin/python3
conftest.py:126: in pytest_runtest_setup
LinuxNamespace("user").__enter__()
contrib/namespaces.py:60: in __init__
raise OSError(e, os.strerror(e))
E OSError: [Errno 22] Invalid argument
============================================================ warnings summary =============================================================
../../ana3/lib/python3.7/site-packages/xdist/plugin.py:205
../../ana3/lib/python3.7/site-packages/xdist/plugin.py:205
../../ana3/lib/python3.7/site-packages/xdist/plugin.py:205
../../ana3/lib/python3.7/site-packages/xdist/plugin.py:205
../../ana3/lib/python3.7/site-packages/xdist/plugin.py:205
/home/lwz/ana3/lib/python3.7/site-packages/xdist/plugin.py:205: DeprecationWarning: The --boxed commmand line argument is deprecated. Install pytest-forked and use --forked instead. pytest-xdist 3.0.0 will remove the --boxed argument and pytest-forked dependency.
config.issue_config_time_warning(warning, 2)
../../ana3/lib/python3.7/site-packages/pyroute2/__init__.py:72
../../ana3/lib/python3.7/site-packages/pyroute2/__init__.py:72
../../ana3/lib/python3.7/site-packages/pyroute2/__init__.py:72
../../ana3/lib/python3.7/site-packages/pyroute2/__init__.py:72
/home/lwz/ana3/lib/python3.7/site-packages/pyroute2/__init__.py:72: DeprecationWarning: SelectableGroups dict interface is deprecated. Use select.
for entry_point in metadata.entry_points().get('pr2modules', []):
-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================================================= short test summary info =========================================================
ERROR deckard_pytest.py::test_passes_qmin_on[Scenario(path='sets/resolver/iter_minim_a.rpl', qmin=True, config={'programs': [{'name': 'kresd', 'binary': 'kresd', 'additional': ['-n'], 'templates': ['template/kresd.j2'], 'configs': ['config']}]})-max-retries-3]
ERROR deckard_pytest.py::test_passes_qmin_off[Scenario(path='sets/resolver/iter_minim_a.rpl', qmin=True, config={'programs': [{'name': 'kresd', 'binary': 'kresd', 'additional': ['-n'], 'templates': ['template/kresd.j2'], 'configs': ['config']}]})-max-retries-3]
====================================================== 9 warnings, 2 errors in 2.45s ======================================================https://gitlab.nic.cz/knot/deckard/-/issues/64ci: XML reports used in comparative tests are broken2021-04-30T16:18:46+02:00Štěpán Balážikci: XML reports used in comparative tests are brokenThis job for example https://gitlab.nic.cz/knot/deckard/-/jobs/438159 should not pass since some test fail in the first run and pass in the second one without any modification.
This is caused by the `head.xml` and `base.xml` reports fro...This job for example https://gitlab.nic.cz/knot/deckard/-/jobs/438159 should not pass since some test fail in the first run and pass in the second one without any modification.
This is caused by the `head.xml` and `base.xml` reports from pytest being generated almost empty for some reason.
I suppose this broke in the _recent_ pytest update.https://gitlab.nic.cz/knot/deckard/-/issues/63Reintroduce a way to access other binaries' IP addresses (and maybe all their...2020-11-26T12:23:10+01:00Štěpán BalážikReintroduce a way to access other binaries' IP addresses (and maybe all their configuration) from Jinja templateBefore 04d2e67355ce5e3d34844a808f0701df72aea07f there was a IPADDRS dictionary indexed with a binary's name for this purpose but it got scrapped in the networking rewrite (but not [from](https://gitlab.nic.cz/knot/deckard/-/blob/06bfe7fa...Before 04d2e67355ce5e3d34844a808f0701df72aea07f there was a IPADDRS dictionary indexed with a binary's name for this purpose but it got scrapped in the networking rewrite (but not [from](https://gitlab.nic.cz/knot/deckard/-/blob/06bfe7fa097a42d507acdc1399436246a9ed7edc/doc/user_guide.rst#L121) [the](https://gitlab.nic.cz/knot/deckard/-/blob/06bfe7fa097a42d507acdc1399436246a9ed7edc/doc/user_guide.rst#206) [docs](https://gitlab.nic.cz/knot/deckard/-/blob/06bfe7fa097a42d507acdc1399436246a9ed7edc/doc/user_guide.rst#L104)).
Apparently usecases for this exist (testing forwarding is certainly one of them), so let's reintroduce some a more general of accessing other programs' configuration: I suggest a `PROGRAMS` dictionary indexed (again) by name, which exposes all the configuration fields. One would than use `PROGRAMS["recursor"]["address"]` instead of `IPADDRS["recursor"]`. We might document as much and as few of them that we dare to pronounce stable enough.Štěpán BalážikŠtěpán Balážikhttps://gitlab.nic.cz/knot/deckard/-/issues/62a2020-08-07T16:06:13+02:00Petr Špačekaknot/knot-resolver/!1020knot/knot-resolver/!1020https://gitlab.nic.cz/knot/deckard/-/issues/61a2020-08-07T16:06:07+02:00Petr Špačekaknot/knot-resolver/!1020knot/knot-resolver/!1020https://gitlab.nic.cz/knot/deckard/-/issues/60a2020-08-07T16:06:02+02:00Petr Špačekaknot/knot-resolver/!1020knot/knot-resolver/!1020https://gitlab.nic.cz/knot/deckard/-/issues/59a2020-08-07T16:05:58+02:00Petr Špačekaknot/knot-resolver/!1020knot/knot-resolver/!1020https://gitlab.nic.cz/knot/deckard/-/issues/58a2020-08-07T16:05:53+02:00Petr Špačekaknot/knot-resolver/!1020knot/knot-resolver/!1020https://gitlab.nic.cz/knot/deckard/-/issues/54resurrect RFC 5011 tests2020-08-12T11:05:32+02:00Petr Špačekresurrect RFC 5011 testsThese test were removed in https://gitlab.nic.cz/knot/deckard/-/commit/192c269164a9e29c3199c679a57a50cb96806eba but we need them back, RFC 5011 in Knot Resolver got broken without us noticing.
Problems:
- [ ] might require faking monoto...These test were removed in https://gitlab.nic.cz/knot/deckard/-/commit/192c269164a9e29c3199c679a57a50cb96806eba but we need them back, RFC 5011 in Knot Resolver got broken without us noticing.
Problems:
- [ ] might require faking monotonic time as well as real time clock
- [ ] probably requires different kresd config template to enable `ta_update` module -> move test to kresd repo?Štěpán BalážikŠtěpán Balážikhttps://gitlab.nic.cz/knot/deckard/-/issues/51`pylint` jobs in CI are now failing for some reason2020-05-03T16:25:35+02:00Štěpán Balážik`pylint` jobs in CI are now failing for some reasonsee job [#384625](https://gitlab.labs.nic.cz/knot/deckard/-/jobs/384625) that failed for ed0a316cfd1bbcb0f8697e5860b3409fcde52dde for example
same for current mastersee job [#384625](https://gitlab.labs.nic.cz/knot/deckard/-/jobs/384625) that failed for ed0a316cfd1bbcb0f8697e5860b3409fcde52dde for example
same for current masterhttps://gitlab.nic.cz/knot/deckard/-/issues/50remove _fixme_prebind_hack2020-04-30T16:30:25+02:00Petr Špačekremove _fixme_prebind_hackhttps://gitlab.nic.cz/knot/deckard/-/issues/49tests without `stub-addr` are broken2020-05-03T16:24:39+02:00Petr Špačektests without `stub-addr` are brokenOne of "accidental" changes in !169 broke tests without `stub-addr` in test's config section.One of "accidental" changes in !169 broke tests without `stub-addr` in test's config section.Štěpán BalážikŠtěpán Balážikhttps://gitlab.nic.cz/knot/deckard/-/issues/48networking: replace running `ip` commands with some module with actual API2020-05-05T17:28:21+02:00Štěpán Balážiknetworking: replace running `ip` commands with some module with actual API`subproccess.run(["ip",…` is inherently slow. Choose and incorporate a better wrapper for `ip` command.`subproccess.run(["ip",…` is inherently slow. Choose and incorporate a better wrapper for `ip` command.https://gitlab.nic.cz/knot/deckard/-/issues/47replace bundled faketime with a dependency from distributions2021-05-11T17:14:53+02:00Štěpán Balážikreplace bundled faketime with a dependency from distributionsWe got rid of socket_wrapper, libfaketime is next in line. :)
Fixes #47.We got rid of socket_wrapper, libfaketime is next in line. :)
Fixes #47.https://gitlab.nic.cz/knot/deckard/-/issues/45fix new mypy and pylint errors2020-04-14T08:40:36+02:00Petr Špačekfix new mypy and pylint errorsSee
Job [#354630](https://gitlab.labs.nic.cz/knot/deckard/-/jobs/354630) and job [#354620](https://gitlab.labs.nic.cz/knot/deckard/-/jobs/354620).
```
tools/answer_checker.py:35: error: On Python 3 '%s' % b'abc' produces "b'abc'"; use ...See
Job [#354630](https://gitlab.labs.nic.cz/knot/deckard/-/jobs/354630) and job [#354620](https://gitlab.labs.nic.cz/knot/deckard/-/jobs/354620).
```
tools/answer_checker.py:35: error: On Python 3 '%s' % b'abc' produces "b'abc'"; use %r if this is a desired behavior
```
and
```
pydnstest/scenario.py:683:16: R1724: Unnecessary "else" after "continue" (no-else-continue)
pydnstest/scenario.py:732:12: R1724: Unnecessary "else" after "continue" (no-else-continue)
```Štěpán BalážikŠtěpán Balážikhttps://gitlab.nic.cz/knot/deckard/-/issues/44junit-compare errors: CI job #3546242020-04-14T08:44:45+02:00Petr Špačekjunit-compare errors: CI job #354624@sbalazik Please investigate & fix junit-compare problems in job [#354624](https://gitlab.labs.nic.cz/knot/deckard/-/jobs/354624), it failed on commit 81826fd016930e0d22bfe0c6559cfacf44a4655e.@sbalazik Please investigate & fix junit-compare problems in job [#354624](https://gitlab.labs.nic.cz/knot/deckard/-/jobs/354624), it failed on commit 81826fd016930e0d22bfe0c6559cfacf44a4655e.Štěpán BalážikŠtěpán Balážikhttps://gitlab.nic.cz/knot/deckard/-/issues/42replace socket_wrapper with Linux network namespaces2020-04-24T17:56:00+02:00Petr Špačekreplace socket_wrapper with Linux network namespacesProblem:
Socket wrapper has its limitations, like lack of `sendmmsg()` syscall, non-fuctional TCP when combined with libuv, and most importantly we have our ugly fork to support "any" IP address (instead of original loopback + link local...Problem:
Socket wrapper has its limitations, like lack of `sendmmsg()` syscall, non-fuctional TCP when combined with libuv, and most importantly we have our ugly fork to support "any" IP address (instead of original loopback + link local).
It turns out that new versions of Linux allows us to create an isolated network namespace even under non-root user - that can be tested using command `unshare -rUn`.
In long term we might migrate Deckard from socket_wrapper to network namespaces and solve incompatibilities and missing features in socket_wrapper.
An obvious problem is that it is Linux-specific, but oh well, one cannot have everything. Reasoning:
- socket_wrapper hides OS networking stack anyway - running tests with socker_wrapper on e.g. MacOS does not actually test networking interaction with MacOS. It always tests mock environment provided by socket_wrapper.
- Migrating to Linux namespaces will test behavior on real networking stack on Linux, which is an improvement because right now we are only testing behavior inside socket_wrapper mock.https://gitlab.nic.cz/knot/deckard/-/issues/40RAW replies return incorrect data2019-03-12T07:56:19+01:00Tomas KrizekRAW replies return incorrect dataWhen using `RAW` in scenario, the blobs that are returned by deckard do not match the defined blobs. Also, `ADJUST raw_id` doesn't seem to override the transaction ID.
Using the following test, https://gitlab.labs.nic.cz/knot/respdiff/b...When using `RAW` in scenario, the blobs that are returned by deckard do not match the defined blobs. Also, `ADJUST raw_id` doesn't seem to override the transaction ID.
Using the following test, https://gitlab.labs.nic.cz/knot/respdiff/blob/master/tests/deckard/scenarios/malformed.rpl produces the attached [deckard.pcap](/uploads/ec46f71ac65c2ecacd220ffa8bc958a8/deckard.pcap)
Last known working version: 0164c2a37c384fabba57098d4b30e6381c36e581
Test coverage for `RAW` / `raw_id` should be added to avoid breaking this functionality in the futureŠtěpán BalážikŠtěpán Balážikhttps://gitlab.nic.cz/knot/deckard/-/issues/38"=> going insecure because there's no covering TA" message2018-12-14T12:58:59+01:00Ivana Krumlova"=> going insecure because there's no covering TA" messageDeckard often prints this at the beginning of the log, even on tests where data are DNSSEC-validated correctly.
Maybe this is a problem in kresd logging or something like that.
for example:
log:
```deckard.py 364 DEBUG...Deckard often prints this at the beginning of the log, even on tests where data are DNSSEC-validated correctly.
Maybe this is a problem in kresd logging or something like that.
for example:
log:
```deckard.py 364 DEBUG [00000.00][plan] plan 'b.example.com.' type 'DS' uid [36622.00]
deckard.py 364 DEBUG [36622.00][iter] 'b.example.com.' type 'DS' new uid was assigned .01, parent uid .00
deckard.py 364 DEBUG [36622.01][resl] => going insecure because there's no covering TA
deckard.py 364 DEBUG [36622.01][resl] => using root hints
deckard.py 364 DEBUG [36622.01][iter] 'b.example.com.' type 'DS' new uid was assigned .02, parent uid .00
deckard.py 364 DEBUG [36622.02][resl] => id: '50568' querying: '193.0.14.129' score: 10 zone cut: '.' qname: 'b.EXampLe.COm.' qtype: 'DS' proto: 'udp'
deckard.py 364 DEBUG [36622.02][iter] <= answer received:
deckard.py 364 DEBUG ;; ->>HEADER<<- opcode: QUERY; status: NOERROR; id: 50568
deckard.py 364 DEBUG ;; Flags: qr QUERY: 1; ANSWER: 0; AUTHORITY: 1; ADDITIONAL: 2
deckard.py 364 DEBUG
deckard.py 364 DEBUG ;; EDNS PSEUDOSECTION:
deckard.py 364 DEBUG ;; Version: 0; flags: ; UDP size: 1280 B; ext-rcode: Unused
deckard.py 364 DEBUG
deckard.py 364 DEBUG ;; QUESTION SECTION
deckard.py 364 DEBUG b.example.com. DS
deckard.py 364 DEBUG
deckard.py 364 DEBUG ;; AUTHORITY SECTION
deckard.py 364 DEBUG com. 3600 NS a.gtld-servers.net.
deckard.py 364 DEBUG
deckard.py 364 DEBUG [36622.02][iter] <= loaded 1 glue addresses
deckard.py 364 DEBUG [36622.02][iter] <= referral response, follow
deckard.py 364 DEBUG [36622.02][cach] => stashed com. NS, rank 002, 36 B total, incl. 0 RRSIGs
deckard.py 364 DEBUG [36622.02][cach] => stashed also 1 nonauth RRsets
deckard.py 364 DEBUG [36622.02][resl] <= server: '193.0.14.129' rtt: 103 ms
deckard.py 364 DEBUG [36622.02][iter] 'b.example.com.' type 'DS' new uid was assigned .03, parent uid .00
deckard.py 364 DEBUG [36622.03][resl] => id: '52885' querying: '192.5.6.30' score: 10 zone cut: 'com.' qname: 'b.EXampLe.CoM.' qtype: 'DS' proto: 'udp'
deckard.py 364 DEBUG [36622.03][iter] <= answer received:
deckard.py 364 DEBUG ;; ->>HEADER<<- opcode: QUERY; status: NOERROR; id: 52885
deckard.py 364 DEBUG ;; Flags: qr QUERY: 1; ANSWER: 0; AUTHORITY: 1; ADDITIONAL: 2
deckard.py 364 DEBUG
deckard.py 364 DEBUG ;; EDNS PSEUDOSECTION:
deckard.py 364 DEBUG ;; Version: 0; flags: ; UDP size: 1280 B; ext-rcode: Unused
deckard.py 364 DEBUG
deckard.py 364 DEBUG ;; QUESTION SECTION
deckard.py 364 DEBUG b.example.com. DS
deckard.py 364 DEBUG
deckard.py 364 DEBUG ;; AUTHORITY SECTION
deckard.py 364 DEBUG example.com. 3600 NS ns.example.com.
deckard.py 364 DEBUG
deckard.py 364 DEBUG [36622.03][iter] <= loaded 1 glue addresses
deckard.py 364 DEBUG [36622.03][iter] <= referral response, follow
deckard.py 364 DEBUG [36622.03][cach] => stashed example.com. NS, rank 002, 32 B total, incl. 0 RRSIGs
deckard.py 364 DEBUG [36622.03][cach] => stashed also 1 nonauth RRsets
deckard.py 364 DEBUG [36622.03][resl] <= server: '192.5.6.30' rtt: 5 ms
deckard.py 364 DEBUG [36622.03][iter] 'b.example.com.' type 'DS' new uid was assigned .04, parent uid .00
deckard.py 364 DEBUG [36622.04][resl] >< TA: 'example.com.'
deckard.py 364 DEBUG [36622.04][plan] plan 'example.com.' type 'DNSKEY' uid [36622.05]
deckard.py 364 DEBUG [36622.05][iter] 'example.com.' type 'DNSKEY' new uid was assigned .06, parent uid .04
deckard.py 364 DEBUG [36622.06][cach] => no NSEC* cached for zone: example.com.
deckard.py 364 DEBUG [36622.06][cach] => skipping zone: example.com., NSEC, hash 0;new TTL -123456789, ret -2
deckard.py 364 DEBUG [36622.06][cach] => skipping zone: example.com., NSEC, hash 0;new TTL -123456789, ret -2
deckard.py 364 DEBUG [36622.06][resl] => id: '19571' querying: '1.2.3.4' score: 10 zone cut: 'example.com.' qname: 'EXaMPlE.Com.' qtype: 'DNSKEY' proto: 'udp'
deckard.py 364 DEBUG [36622.06][iter] <= answer received:
deckard.py 364 DEBUG ;; ->>HEADER<<- opcode: QUERY; status: NOERROR; id: 19571
deckard.py 364 DEBUG ;; Flags: qr QUERY: 1; ANSWER: 2; AUTHORITY: 2; ADDITIONAL: 3
deckard.py 364 DEBUG
deckard.py 364 DEBUG ;; EDNS PSEUDOSECTION:
deckard.py 364 DEBUG ;; Version: 0; flags: do; UDP size: 1280 B; ext-rcode: Unused
deckard.py 364 DEBUG
deckard.py 364 DEBUG ;; QUESTION SECTION
deckard.py 364 DEBUG example.com. DNSKEY
deckard.py 364 DEBUG
deckard.py 364 DEBUG ;; ANSWER SECTION
deckard.py 364 DEBUG example.com. 3600 DNSKEY 256 3 7 AwEAAef0Gt81KzrbFGbFmk6VeEzLLcRbnKiDjdMBO7R+HsQWCO9YpPGx20mBEV7ISCLva+LZulf584i30ga7qMeVsarsdh9xCYtyMXd4Ex5nMEXxV9f2Or+FjihPduL2TnAlWpvL8oc1oKVI2RISTT1yf8IYy6X/FpfmMP819WBN2Kit
deckard.py 364 DEBUG example.com. 3600 RRSIG DNSKEY 7 2 3600 20181230101851 20181130101851 16907 example.com. RPXAcaVjBdtk/geHTdTg9ZOKREpAdjZAopRE/5Kk9fdFYQWwg0uRxexLPJ11jXjnp9MKOp1FehctyvE/mm1lB/J6+YepHu3tRAzzJ9YfjVxJjUppQv/nA/fU55MHWYhdhXwKn7F+PXD8+MFlAqPyFz9mYZEO89lI4P2/Wf4xpv4=
deckard.py 364 DEBUG
deckard.py 364 DEBUG ;; AUTHORITY SECTION
deckard.py 364 DEBUG example.com. 3600 NS ns.example.com.
deckard.py 364 DEBUG example.com. 3600 RRSIG NS 7 2 3600 20181230101851 20181130101851 16907 example.com. KXsKhCme80OQl4qekE+q0KvymkhEelk+OdOsajCsGmfG5eeCEkN58gVw5fBgtR2Ekp15KLsV1elsyVL8i7W5Hp5f2G70/plqSQ+78n3Al5jXONgNoVFSOuf8N179F2uf3k20MpnlxQQ7W/VX6SpuAOejyVpp6il6dm2YwRHHnX4=
deckard.py 364 DEBUG
deckard.py 364 DEBUG [36622.06][iter] <= loaded 1 glue addresses
deckard.py 364 DEBUG [36622.06][iter] <= rcode: NOERROR
deckard.py 364 DEBUG [36622.06][vldr] <= parent: updating DNSKEY
deckard.py 364 DEBUG [36622.06][vldr] <= answer valid, OK
deckard.py 364 DEBUG [36622.06][cach] => stashed example.com. DNSKEY, rank 060, 314 B total, incl. 1 RRSIGs
deckard.py 364 DEBUG [36622.06][cach] => not overwriting A ns.example.com.
deckard.py 364 DEBUG [36622.06][resl] <= server: '1.2.3.4' rtt: 7 ms
deckard.py 364 DEBUG [36622.04][iter] 'b.example.com.' type 'DS' new uid was assigned .07, parent uid .00
deckard.py 364 DEBUG [36622.07][resl] => id: '04066' querying: '1.2.3.4' score: 11 zone cut: 'example.com.' qname: 'b.EXAmPLE.cOM.' qtype: 'DS' proto: 'udp'
deckard.py 364 DEBUG [36622.07][iter] <= answer received:
deckard.py 364 DEBUG ;; ->>HEADER<<- opcode: QUERY; status: NOERROR; id: 4066
deckard.py 364 DEBUG ;; Flags: qr aa QUERY: 1; ANSWER: 0; AUTHORITY: 4; ADDITIONAL: 1
deckard.py 364 DEBUG
deckard.py 364 DEBUG ;; EDNS PSEUDOSECTION:
deckard.py 364 DEBUG ;; Version: 0; flags: do; UDP size: 1280 B; ext-rcode: Unused
deckard.py 364 DEBUG
deckard.py 364 DEBUG ;; QUESTION SECTION
deckard.py 364 DEBUG b.example.com. DS
deckard.py 364 DEBUG
deckard.py 364 DEBUG ;; AUTHORITY SECTION
deckard.py 364 DEBUG example.com. 86394 SOA ns.iana.org. nstld.iana.org. 2007092000 1800 900 604800 86400
deckard.py 364 DEBUG example.com. 86394 RRSIG SOA 7 2 86394 20181230101851 20181130101851 16907 example.com. uQjgfvlcxQLPfqetqWjTgKTbDOK3BoqbdmrqudrEl/X/S3OR8uhTQu7PEsrJm7IP7lmKcsbF4LAFjBNRp28G4at8v5cnCpvZfKFDzO3JzCubaVnn18rSZj9gM1e4CN5ms/aAlr5I2hDhIQnsKmhxQBTrngyTcpGgf/YQuruMRKw=
deckard.py 364 DEBUG *.example.com. 3600 NSEC *.b.example.com. A MX RRSIG NSEC
deckard.py 364 DEBUG *.example.com. 86400 RRSIG NSEC 7 2 86400 20181230101851 20181130101851 16907 example.com. 5NyjMTv7p0jvYrfxQzTJXvTlf1Uy2tMSmYKEWZoBq87u6mLNBtRgpKl91gpVvT8o+uA2XAznujnFZYgLdE9Swk87KqQQSWkyM81458SuSVwB5hma9afCrB38FH9D9aOCN1nfqIuoEsQi3Bu3Uvtr+eV7oE97ViROSy/1pyyKg9A=
deckard.py 364 DEBUG
deckard.py 364 DEBUG [36622.07][iter] <= rcode: NOERROR
deckard.py 364 DEBUG [36622.07][vldr] <= DS doesn't exist, going insecure
deckard.py 364 DEBUG [36622.07][vldr] <= answer valid, OK
deckard.py 364 DEBUG [36622.07][cach] => stashed *.example.com. NSEC, rank 060, 204 B total, incl. 1 RRSIGs
deckard.py 364 DEBUG [36622.07][cach] => stashed example.com. SOA, rank 060, 228 B total, incl. 1 RRSIGs
deckard.py 364 DEBUG [36622.07][cach] => nsec_p stashed for example.com. (new, hash: 0)
deckard.py 364 DEBUG [36622.07][resl] <= server: '1.2.3.4' rtt: 7 ms
deckard.py 364 DEBUG [36622.07][resl] AD: request classified as SECURE
deckard.py 364 DEBUG [36622.07][resl] finished: 4, queries: 2, mempool: 16400 B
scenario.py 536 INFO [ RANGE 0-100 ] {'192.5.6.30'} received: 1 sent: 1
scenario.py 536 INFO [ RANGE 0-100 ] {'193.0.14.129'} received: 1 sent: 1
scenario.py 536 INFO [ RANGE 0-100 ] {'1.2.3.4'} received: 2 sent: 2
. [100%]
1 passed, 1 skipped in 1.32 seconds```
from test [val_mal_wc.rpl](https://gitlab.labs.nic.cz/knot/deckard/blob/master/sets/resolver/val_mal_wc.rpl)https://gitlab.nic.cz/knot/deckard/-/issues/37Asking non-existent IP times out and test still suceeds2019-01-09T16:37:11+01:00Vladimír Čunátvladimir.cunat@nic.czAsking non-existent IP times out and test still suceedsI thought this wasn't possible. It seems unintentional (i.e. bug).
[This test](/uploads/d8708b58a5f1bc6030d7e43b214d1270/test1.rpl) leads to queries sent that time out
```
=> querying: '1.2.3.4' score: 10 zone cut: 'fail.net.' qname: '...I thought this wasn't possible. It seems unintentional (i.e. bug).
[This test](/uploads/d8708b58a5f1bc6030d7e43b214d1270/test1.rpl) leads to queries sent that time out
```
=> querying: '1.2.3.4' score: 10 zone cut: 'fail.net.' qname: 'FAIL.net.' qtype: 'A' proto: 'udp'
```
and the whole tests succeeds.Štěpán BalážikŠtěpán Balážik