When IP address of the client changes due to DHCP error condition certificate is generated automatically with new (wrong) IP address. However when original IP address is restored certificate doesn't generate again anymore. I found there is some problem with just getting proper certificate file path in tls_client.py code. Applying the following workaround patch (it's for kubernetes-worker case) fixes the issue:
When IP address of the client changes due to DHCP error condition certificate is generated automatically with new (wrong) IP address. However when original IP address is restored certificate doesn't generate again anymore. I found there is some problem with just getting proper certificate file path in tls_client.py code. Applying the following workaround patch (it's for kubernetes-worker case) fixes the issue:
After applying the patch certificate is generating again with currently configured (proper restored) IP address.