Closed moon127 closed 1 year ago
Per https://github.com/juju-solutions/layer-basic/pull/160 and https://github.com/juju-solutions/layer-basic/pull/177 , I think rebuilding and republishing cs:ubuntu will include the latest layer-basic and fix the problem.
Unable to juju upgrade-series from xenial to bionic without manual intervention:
deploy a xenial instance: juju deploy --series=xenial cs:ubuntu
Upgrade to bionic: juju upgrade-series 0 prepare bionic juju ssh 0 do-release-uprade
after reboot, issue the complete step which hangs running hooks:
juju upgrade-series 0 complete
`Unit Workload Agent Machine Public address Ports Message ubuntu/0* error idle 0 192.168.88.254 hook failed: "start"
ubuntu: 2020-06-15 15:39:47 ERROR juju.worker.dependency engine.go:671 "uniter" manifold worker returned unexpected error: executing operation "run start hook": hook failed 2020-06-15 15:42:41 ERROR juju.worker.uniter.operation runhook.go:136 hook "start" (via explicit, bespoke hook script) failed: signal: aborted (core dumped) 2020-06-15 15:42:51 ERROR juju.worker.uniter.operation runhook.go:136 hook "start" (via explicit, bespoke hook script) failed: signal: aborted (core dumped) 2020-06-15 15:43:12 ERROR juju.worker.uniter.operation runhook.go:136 hook "start" (via explicit, bespoke hook script) failed: signal: aborted (core dumped)`
This seems to be an issue with the venv, and the following workaround allows to continue:
juju run --application ubuntu 'rm $JUJU_CHARM_DIR/wheelhouse/.bootstrapped' juju run --application ubuntu 'rm -rf $JUJU_CHARM_DIR/../.venv' juju run --application ubuntu 'hooks/update-status'
Reading package lists... Building dependency tree... Reading state information... build-essential is already the newest version (12.4ubuntu1). python3-setuptools is already the newest version (39.0.1-2). python3-yaml is already the newest version (3.12-1build2). python3-wheel is already the newest version (0.30.0-0.2). python3-dev is already the newest version (3.6.7-1~18.04). python3-pip is already the newest version (9.0.1-2.3~ubuntu1.18.04.1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Reading package lists... Building dependency tree... Reading state information... 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Reading package lists... Building dependency tree... Reading state information... virtualenv is already the newest version (15.1.0+ds-1.1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Already using interpreter /usr/bin/python3 Using base prefix '/usr' New python executable in /var/lib/juju/agents/unit-ubuntu-0/.venv/bin/python3 Also creating executable in /var/lib/juju/agents/unit-ubuntu-0/.venv/bin/python Please make sure you remove any previous custom paths from your /root/.pydistutils.cfg file. Installing setuptools, pkg_resources, pip, wheel...done. Collecting pip Installing collected packages: pip Found existing installation: pip 9.0.1 Uninstalling pip-9.0.1: Successfully uninstalled pip-9.0.1 Successfully installed pip-18.1 Looking in links: wheelhouse Collecting setuptools Collecting setuptools-scm Installing collected packages: setuptools, setuptools-scm Found existing installation: setuptools 39.0.1 Uninstalling setuptools-39.0.1: Successfully uninstalled setuptools-39.0.1 Successfully installed setuptools-41.6.0 setuptools-scm-1.17.0 Looking in links: wheelhouse Processing ./wheelhouse/PyYAML-5.2.tar.gz Processing ./wheelhouse/pyaml-19.12.0.tar.gz Processing ./wheelhouse/setuptools_scm-1.17.0.tar.gz Processing ./wheelhouse/Jinja2-2.10.1.tar.gz Processing ./wheelhouse/MarkupSafe-1.1.1.tar.gz Processing ./wheelhouse/Tempita-0.5.2.tar.gz Processing ./wheelhouse/wheel-0.33.6.tar.gz Processing ./wheelhouse/charmhelpers-0.20.10.tar.gz Processing ./wheelhouse/charms.reactive-1.3.0.tar.gz Processing ./wheelhouse/six-1.14.0.tar.gz Processing ./wheelhouse/netaddr-0.7.19.tar.gz Processing ./wheelhouse/setuptools-41.6.0.zip Processing ./wheelhouse/pip-18.1.tar.gz Installing build dependencies: started Installing build dependencies: finished with status 'done' Collecting MarkupSafe>=0.23 (from Jinja2==2.10.1) Collecting six (from charmhelpers==0.20.10) Collecting netaddr (from charmhelpers==0.20.10) Building wheels for collected packages: PyYAML, pyaml, setuptools-scm, Jinja2, MarkupSafe, Tempita, wheel, charmhelpers, netaddr, charms.reactive, setuptools, pip Running setup.py bdist_wheel for PyYAML: started Running setup.py bdist_wheel for PyYAML: finished with status 'done' Stored in directory: /root/.cache/pip/wheels/17/f5/ff/22743f7b40a4b79a647936c4584c6925cda853c39ca14017b7 Running setup.py bdist_wheel for pyaml: started Running setup.py bdist_wheel for pyaml: finished with status 'done' Stored in directory: /root/.cache/pip/wheels/a7/f3/db/6c1a4705acd3ab339d0ec89e6c6c94434432ef5b08ddadbe9e Running setup.py bdist_wheel for setuptools-scm: started Running setup.py bdist_wheel for setuptools-scm: finished with status 'done' Stored in directory: /root/.cache/pip/wheels/b2/35/0d/5f4d406f2fcb85885ba4d9ab64ca1ec4f17bbecfa7815aa51d Running setup.py bdist_wheel for Jinja2: started Running setup.py bdist_wheel for Jinja2: finished with status 'done' Stored in directory: /root/.cache/pip/wheels/1e/a9/3a/35f7445ead6fd24bd4f07e10a0d450b2a28997e2b530775879 Running setup.py bdist_wheel for MarkupSafe: started Running setup.py bdist_wheel for MarkupSafe: finished with status 'done' Stored in directory: /root/.cache/pip/wheels/25/ef/fa/f7e2b5fef77310797b19119e273c83065dfca897ac98aed054 Running setup.py bdist_wheel for Tempita: started Running setup.py bdist_wheel for Tempita: finished with status 'done' Stored in directory: /root/.cache/pip/wheels/49/6e/25/cf8c402589da166ca9bb5bed029260524024326dead52ecfb9 Running setup.py bdist_wheel for wheel: started Running setup.py bdist_wheel for wheel: finished with status 'done' Stored in directory: /root/.cache/pip/wheels/49/31/b2/d511a612a0ff7806980ca14ee161013c75d0c4a2b946925a34 Running setup.py bdist_wheel for charmhelpers: started Running setup.py bdist_wheel for charmhelpers: finished with status 'done' Stored in directory: /root/.cache/pip/wheels/22/9b/56/a047ca04da1587e1a00a39527a30ce92165e58aa34d500d01a Running setup.py bdist_wheel for netaddr: started Running setup.py bdist_wheel for netaddr: finished with status 'done' Stored in directory: /root/.cache/pip/wheels/e0/c1/a3/badca60a89a1ea35d012c50ff74a53f6683d91ecd3936c8552 Running setup.py bdist_wheel for charms.reactive: started Running setup.py bdist_wheel for charms.reactive: finished with status 'done' Stored in directory: /root/.cache/pip/wheels/b2/0e/9d/51dbf2859adc4d18f2f5e3583d3932b8825ff1c7f8704bec70 Running setup.py bdist_wheel for setuptools: started Running setup.py bdist_wheel for setuptools: finished with status 'done' Stored in directory: /root/.cache/pip/wheels/ea/08/c4/149ab9aa8467ccf6260389208e4a4dcef43848d8964414185a Running setup.py bdist_wheel for pip: started Running setup.py bdist_wheel for pip: finished with status 'done' Stored in directory: /root/.cache/pip/wheels/b3/be/74/b24e19d3fe2467ebdddbc71f5effdddfa669605797eef8168e Successfully built PyYAML pyaml setuptools-scm Jinja2 MarkupSafe Tempita wheel charmhelpers netaddr charms.reactive setuptools pip Installing collected packages: PyYAML, pyaml, setuptools-scm, MarkupSafe, Jinja2, Tempita, wheel, six, netaddr, charmhelpers, charms.reactive, setuptools, pip Successfully installed Jinja2-2.10.1 MarkupSafe-1.1.1 PyYAML-5.2 Tempita-0.5.2 charmhelpers-0.20.10 charms.reactive-1.3.0 netaddr-0.7.19 pip-18.1 pyaml-19.12.0 setuptools-41.6.0 setuptools-scm-1.17.0 six-1.14.0 wheel-0.33.6
The hooks then run, and the
juju upgrade-series 0 complete
then runs to completion.