I have been experimenting with release upgrades. I know this is unsupported, but bionic->focal, which often does not work so well Several times I have come across the issue where the command e.g.
juju upgrade-series 0 complete
never actually completes. In this case, machine 0 had a neutron-gateway on it, but it seems that the ntp charm was responsible for this failure;
:~$ juju ssh 0 tail /var/log/juju/unit-ntp-1.log 2020-07-07 16:35:53 DEBUG start Could not find platform independent libraries <prefix> 2020-07-07 16:35:53 DEBUG start Could not find platform dependent libraries <exec_prefix> 2020-07-07 16:35:53 DEBUG start Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] 2020-07-07 16:35:53 DEBUG start Fatal Python error: Py_Initialize: Unable to get the locale encoding 2020-07-07 16:35:53 DEBUG start ModuleNotFoundError: No module named 'encodings' 2020-07-07 16:35:53 DEBUG start 2020-07-07 16:35:53 DEBUG start Current thread 0x00007fb8cb8fb740 (most recent call first): 2020-07-07 16:35:54 ERROR juju.worker.uniter.operation runhook.go:136 hook "start" (via explicit, bespoke hook script) failed: signal: aborted (core dumped)
So I get it doesn’t work yet, I don’t really care about that. The question is, can I recover from this somehow? As it stands the machine is still locked for the release upgrade and I can’t seem to do anything with it.
Any advice please?