openziti / ziti-tunnel-sdk-c

Apache License 2.0
43 stars 17 forks source link

tunneler doesn't recover if Dial session is deleted #573

Closed qrkourier closed 1 year ago

qrkourier commented 1 year ago

I expected the tunneler to obtain a new API session automatically, but when I delete the tunneler's Dial session it fails to re-authenticate.

TRACE and UV_MDED_DEBUG log attached: ziti-edge-tunnel-0.20.12-trace.log

Steps to reproduce:

  1. Run the tunneler

    sudo ZITI_LOG=4 UV_MBED_DEBUG=4 /opt/openziti/bin/ziti-edge-tunnel run --verbose 6 --identity /opt/openziti/etc/identities/oryp4clienttunneler.json
  2. let a client continually connect to a Ziti service to exercise the path

  3. on the controller, delete all Dial sessions

    ziti edge delete session where 'type="Dial"'
  4. observe the Ziti service can no longer be dialed and tunneler does not re-authenticate immediately

qrkourier commented 1 year ago

The result is the same if api-session is administratively deleted instead of session.

qrkourier commented 1 year ago

stale