Hi Team,
I repeated my steps of launching ziti-edge-tunnel in
- ubuntu:focal docker container
- centos:latest docker container
I still see DNS issue and tun0 interface not getting added.
In Ubuntu system, resolvectl is not present. Also, as a matter of fact when i saw the code of to look into it, i found
find_dns_updater()
static struct dns_cmd dns_cmds[] = {
{
.path = ā/usr/bin/resolvectlā,
.update_fn = dns_update_resolvectl,
},
{
.path = ā/usr/bin/systemd-resolveā,
.update_fn = dns_update_systemd_resolve,
},
{
.path = ā/usr/sbin/resolvconfā,
.update_fn = dns_update_resolvconf
},
{0}
};
None of the path existks in ubuntu:focal docker image.
Then i thought to check the tunneler on centos:8 docker container, where systemd-resolve exist. So i thought this section of function would work
.path = ā/usr/bin/systemd-resolveā,
.update_fn = dns_update_systemd_resolve,
But to my surprise, instead of executing systemd-resolve command it tried to execute resolvectl command. Here is the log.
[root@ac79b8523582 home]# ./ziti-edge-tunnel run -i 1ALinuxTunneler2
[ 0.000] INFO tunnel-sdk:ziti_tunnel.c:53 ziti_tunneler_init() Ziti Tunneler SDK (v0.17.32)
[ 0.000] INFO tunnel-cbs:ziti_dns.c:147 seed_dns() DNS configured with range 100.64.0.0 - 100.127.255.255
[ 0.028] INFO ziti-edge-tunnel:resolvers.c:72 init_libsystemd() Initializing libsystemd
[ 0.028] WARN ziti-edge-tunnel:resolvers.c:91 init_libsystemd() Failure during dynamic loading function: /lib64/libsystemd.so.0: undefined symbol: sd_bus_call_methodv
[ 0.036] INFO tunnel-cbs:ziti_tunnel_ctrl.c:768 load_ziti_async() attempting to load ziti instance from file[1ALinuxTunneler2]
[ 0.036] INFO tunnel-cbs:ziti_tunnel_ctrl.c:774 load_ziti_async() loading ziti instance from /home/1ALinuxTunneler2
[ 0.036] INFO ziti_log_set_level set log level: ziti_log_lvl=3 &ziti_log_lvl = 0x561507a8cc20
[ 0.036] INFO ziti-edge-tunnel:ziti-edge-tunnel.c:631 load_id_cb() identity[1ALinuxTunneler2] loaded
[ 0.054] INFO ziti-sdk:ziti.c:393 ziti_init_async() ztx[0] Ziti C SDK version 0.27.2 @fc4d02e(HEAD) starting at (2022-04-29T10:57:59.829)
[ 0.054] INFO ziti-sdk:ziti.c:394 ziti_init_async() ztx[0] using uv_mbed[v0.14.4], tls[mbed TLS 3.1.0]
[ 0.054] INFO ziti-sdk:ziti.c:395 ziti_init_async() ztx[0] Loading from config[1ALinuxTunneler2] controller[https://174.129.210.139:443]
[ 0.054] INFO ziti-sdk:ziti_ctrl.c:375 ziti_ctrl_init() ctrl[174.129.210.139] ziti controller client initialized
[ 0.054] INFO ziti-sdk:ziti.c:779 ziti_re_auth_with_cb() ztx[0] starting to re-auth with ctlr[https://174.129.210.139:443] api_session_status[0] api_session_expired[TRUE]
sd_bus_open_system: No such file or directory
[ 0.061] ERROR ziti-edge-tunnel:utils.c:30 run_command_va() cmd{resolvectl dns tun0 100.64.0.2} failed: 256/0/Success
sd_bus_open_system: No such file or directory
sd_bus_open_system: No such file or directory
[ 0.109] ERROR ziti-edge-tunnel:utils.c:30 run_command_va() cmd{resolvectl domain tun0 āā} failed: 256/0/Success
[ 0.917] INFO ziti-sdk:ziti.c:1424 version_cb() ztx[0] connected to controller https://174.129.210.139:443 version v0.24.12(38fb70dce4b7 2022-03-01T20:32:23Z)
[ 1.399] ERROR ziti-sdk:ziti.c:1287 ziti_set_api_session() ztx[0] local clock is 340 seconds behind UTC (as reported by controller)
[ 1.399] INFO ziti-sdk:ziti.c:1314 ziti_set_api_session() ztx[0] api session set, setting api_session_timer to 1740s
[ 1.399] INFO tunnel-cbs:ziti_tunnel_ctrl.c:632 on_ziti_event() ziti_ctx[1ALinuxTunneler2] connected to controller
So clearly i see an issue here.