upgrade-series complete fails bionic->focal
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NTP Charm |
New
|
Undecided
|
Unassigned |
Bug Description
First noticed in ntp-39 and still present in ntp-41, trying to do-release-upgrade from bionic to focal;
(osc) routergod@
machine-1 complete phase started
machine-1 started unit agents after series upgrade
ceph-osd/0 post-series-upgrade hook running
ceph-osd/0 post-series-upgrade completed
nova-compute/0 post-series-upgrade hook running
nova-compute/0 post-series-upgrade completed
neutron-
neutron-
That is all. In /var/log/
2020-08-11 18:41:19 DEBUG start Could not find platform independent libraries <prefix>
2020-08-11 18:41:19 DEBUG start Could not find platform dependent libraries <exec_prefix>
2020-08-11 18:41:19 DEBUG start Consider setting $PYTHONHOME to <prefix>
2020-08-11 18:41:19 DEBUG start Fatal Python error: Py_Initialize: Unable to get the locale encoding
2020-08-11 18:41:19 DEBUG start ModuleNotFoundE
2020-08-11 18:41:19 DEBUG start
2020-08-11 18:41:19 DEBUG start Current thread 0x00007f20e72e5740 (most recent call first):
2020-08-11 18:41:20 ERROR juju.worker.
2020-08-11 18:41:20 ERROR juju.worker.
Following the procedure suggested in https:/ /bugs.launchpad .net/charm- sysconfig/ +bug/1867929/ comments/ 3 it appears that I can resolve the situation as follows (this example a different machine than the report above);
root@ostmpv03:~# CHARM_DIR= /var/lib/ juju/agents/ unit-ntp- 0/charm DIR/wheelhouse/ .bootstrapped $CHARM_DIR/../.venv DIR=$CHARM_ DIR PYTHONPATH= $CHARM_ DIR/lib python3 -c 'import charms.layer.basic; charms. layer.basic. bootstrap_ charm_deps( )'
root@ostmpv03:~# rm -rf $CHARM_
root@ostmpv03:~# JUJU_CHARM_
Hope that helps!