Hi,

My test system and build system doesn't have /etc/resolv.conf file
and then a warning is printed which breaks a number of tests in
master and branch-2.10.

Looks like unbound comes with hardcoded root servers list which could
be the fallback in case of no /etc/resolv.conf, so that message would
be an INFO and could be ignored by the testsuite.

What do you think?

Details below.
lib/dns-resolve.c:
74 void
 75 dns_resolve_init(bool is_daemon)
 76 {
[...]
 84     int retval;
 85 #ifdef __linux__                                                            
                                                                                
                     
 86     retval = ub_ctx_resolvconf(ub_ctx__, "/etc/resolv.conf");
 87     if (retval != 0) {
>88         VLOG_WARN_RL(&rl, "Failed to read /etc/resolv.conf: %s",
 89                      ub_strerror(retval));
 90     }
 91 #endif


## ------------- ##
## Test results. ##
## ------------- ##
ERROR: 2292 tests were run,
552 failed unexpectedly.
346 tests were skipped.
## -------------------------- ##
## testsuite.log was created. ##
## -------------------------- ##
Please send `tests/testsuite.log' and all information you think might help:
   To: <[email protected]>
   Subject: [openvswitch 2.10.0] testsuite: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 
98 99 100 116 117 118 119 120 121 158 159 160 161 162 416 432 433 434 435 436 
437 438 439 440 441 444 445 446 447 448 454 455 456 473 474 475 476 477 478 479 
480 481 482 483 484 485 554 556 558 789 790 791 792 793 794 795 796 797 798 799 
800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 869 
870 871 873 874 875
[the list continues...]


One sample:
1024. ofproto.at:5867: testing ofproto - bundle discard without open (OpenFlow 
1.3) ...
[...]
/1024/db.sock: connecting...
2018-08-07T17:56:33Z|00007|netlink_socket|INFO|netlink: could not enable 
listening to all nsid (Operation not permitted)
2018-08-07T17:56:33Z|00008|reconnect|INFO|unix:/builddir/build/BUILD/ovs-7a78d1c1ad73ae6f8f07d91021b71f8d8a4848d6/tests/testsuite.dir/1024/db.sock:
 connected
2018-08-07T17:56:33Z|00009|dpdk|INFO|DPDK Disabled - Use other_config:dpdk-init 
to enable
./ofproto.at:5869: sed < stderr '
/ovs_numa|INFO|Discovered /d
/vlog|INFO|opened log file/d
/vswitchd|INFO|ovs-vswitchd (Open vSwitch)/d
/reconnect|INFO|/d
/dpif_netlink|INFO|Generic Netlink family .ovs_datapath. does not exist/d
/ofproto|INFO|using datapath ID/d
/netdev_linux|INFO|.*device has unknown hardware address family/d
/ofproto|INFO|datapath ID changed to fedcba9876543210/d
/dpdk|INFO|DPDK Disabled - Use other_config:dpdk-init to enable/d
/netlink_socket|INFO|netlink: could not enable listening to all nsid/d
/netdev: Flow API/d
/probe tc:/d
/tc: Using policy/d'
--- /dev/null   2018-08-07 17:51:09.647040889 +0000
+++ 
/builddir/build/BUILD/ovs-7a78d1c1ad73ae6f8f07d91021b71f8d8a4848d6/tests/testsuite.dir/at-groups/1024/stdout
        2018-08-07 17:56:33.547867577 +0000
@@ -0,0 +1 @@
+2018-08-07T17:56:33Z|00001|dns_resolve|WARN|Failed to read /etc/resolv.conf: 
error reading file
ovsdb-server.log:
> 2018-08-07T17:56:33.490Z|00001|vlog|INFO|opened log file 
> /builddir/build/BUILD/ovs-7a78d1c1ad73ae6f8f07d91021b71f8d8a4848d6/tests/testsuite.dir/1024/ovsdb-server.log
> 2018-08-07T17:56:33.494Z|00002|ovsdb_server|INFO|ovsdb-server (Open vSwitch) 
> 2.10.0
ovs-vswitchd.log:


This is the commit introduced the DNS support:
commit 771680d96fb6f996987630cb85bb749478512268
Author: Yifeng Sun <[email protected]>
Date:   Tue Jun 26 14:06:21 2018 -0700

    DNS: Add basic support for asynchronous DNS resolving

-- 
Flavio

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to