OK, so once again: same root cause, same presenting symptom, different code path. In this case, the InternalServerError was caught properly in the _client function and then re-raised as VaultNotReady. The problem now is that kubernetes-control-plane didn't catch the VaultNotReady exception.
It looks like both the generate_encryption_key handler[1] and the _write_encryption_config function[2] (or its caller) may need to be updated to catch VaultNotReady.
Traceback from the occurrence in comment #4: https:/ /paste. ubuntu. com/p/nX3Jm85qv B/
OK, so once again: same root cause, same presenting symptom, different code path. In this case, the InternalServerError was caught properly in the _client function and then re-raised as VaultNotReady. The problem now is that kubernetes- control- plane didn't catch the VaultNotReady exception.
It looks like both the generate_ encryption_ key handler[1] and the _write_ encryption_ config function[2] (or its caller) may need to be updated to catch VaultNotReady.
[1]: https:/ /github. com/charmed- kubernetes/ charm-kubernete s-control- plane/blob/ 7de2ed17e09c170 9c49d72572eab29 9c5a64fcf0/ reactive/ kubernetes_ control_ plane.py# L3229 /github. com/charmed- kubernetes/ charm-kubernete s-control- plane/blob/ 7de2ed17e09c170 9c49d72572eab29 9c5a64fcf0/ reactive/ kubernetes_ control_ plane.py# L3243
[2]: https:/