charm doesn't work on trusty
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Grafana Charm |
Won't Fix
|
Medium
|
Alvaro Uria |
Bug Description
Hi,
There's an issue with "requests" in the wheelhouse, on trusty, specifically :
requests requires Python '>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*' but the running Python is 3.4.3
I tried installing python 3.5 and updating the shebang of the upgrade-charm hook, but then it failed because "ImportError: No module named 'apt_pkg'"
Either this should be fixed, or trusty should be dropped for supported series.
Thanks !
2020-02-20 11:50:00 INFO upgrade-charm Reading package lists...
2020-02-20 11:50:00 INFO upgrade-charm Building dependency tree...
2020-02-20 11:50:00 INFO upgrade-charm Reading state information...
2020-02-20 11:50:00 INFO upgrade-charm build-essential is already the newest version.
2020-02-20 11:50:00 INFO upgrade-charm python3-dev is already the newest version.
2020-02-20 11:50:00 INFO upgrade-charm python3-setuptools is already the newest version.
2020-02-20 11:50:00 INFO upgrade-charm python3-wheel is already the newest version.
2020-02-20 11:50:00 INFO upgrade-charm python3-yaml is already the newest version.
2020-02-20 11:50:00 INFO upgrade-charm python3-pip is already the newest version.
2020-02-20 11:50:00 INFO upgrade-charm 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2020-02-20 11:50:00 INFO upgrade-charm Reading package lists...
2020-02-20 11:50:01 INFO upgrade-charm Building dependency tree...
2020-02-20 11:50:01 INFO upgrade-charm Reading state information...
2020-02-20 11:50:01 INFO upgrade-charm 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2020-02-20 11:50:02 INFO upgrade-charm Ignoring indexes: https:/
2020-02-20 11:50:02 INFO upgrade-charm Collecting pip
2020-02-20 11:50:03 INFO upgrade-charm Building wheels for collected packages: pip
2020-02-20 11:50:03 INFO upgrade-charm Running setup.py bdist_wheel for pip: started
2020-02-20 11:50:04 INFO upgrade-charm Running setup.py bdist_wheel for pip: finished with status 'done'
2020-02-20 11:50:04 INFO upgrade-charm Stored in directory: /root/.
2020-02-20 11:50:04 INFO upgrade-charm Successfully built pip
2020-02-20 11:50:04 INFO upgrade-charm Installing collected packages: pip
2020-02-20 11:50:04 INFO upgrade-charm Found existing installation: pip 8.1.2
2020-02-20 11:50:04 INFO upgrade-charm Uninstalling pip-8.1.2:
2020-02-20 11:50:04 INFO upgrade-charm Successfully uninstalled pip-8.1.2
2020-02-20 11:50:05 INFO upgrade-charm Successfully installed pip-18.1
2020-02-20 11:50:06 INFO upgrade-charm Looking in links: wheelhouse
2020-02-20 11:50:06 INFO upgrade-charm Collecting setuptools
2020-02-20 11:50:06 INFO upgrade-charm Requirement already up-to-date: setuptools-scm in /var/lib/
2020-02-20 11:50:06 INFO upgrade-charm Building wheels for collected packages: setuptools
2020-02-20 11:50:06 INFO upgrade-charm Running setup.py bdist_wheel for setuptools: started
2020-02-20 11:50:07 INFO upgrade-charm Running setup.py bdist_wheel for setuptools: finished with status 'done'
2020-02-20 11:50:07 INFO upgrade-charm Stored in directory: /root/.
2020-02-20 11:50:07 INFO upgrade-charm Successfully built setuptools
2020-02-20 11:50:07 INFO upgrade-charm Installing collected packages: setuptools
2020-02-20 11:50:07 INFO upgrade-charm Found existing installation: setuptools 39.0.1
2020-02-20 11:50:07 INFO upgrade-charm Uninstalling setuptools-39.0.1:
2020-02-20 11:50:07 INFO upgrade-charm Successfully uninstalled setuptools-39.0.1
2020-02-20 11:50:07 INFO upgrade-charm Successfully installed setuptools-41.6.0
2020-02-20 11:50:07 INFO upgrade-charm Looking in links: wheelhouse
2020-02-20 11:50:07 INFO upgrade-charm Processing ./wheelhouse/
2020-02-20 11:50:08 INFO upgrade-charm Processing ./wheelhouse/
2020-02-20 11:50:08 INFO upgrade-charm Processing ./wheelhouse/
2020-02-20 11:50:09 INFO upgrade-charm Processing ./wheelhouse/
2020-02-20 11:50:09 INFO upgrade-charm Processing ./wheelhouse/
2020-02-20 11:50:09 INFO upgrade-charm Processing ./wheelhouse/
2020-02-20 11:50:10 INFO upgrade-charm Processing ./wheelhouse/
2020-02-20 11:50:10 INFO upgrade-charm requests requires Python '>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*' but the running Python is 3.4.3
2020-02-20 11:50:10 INFO upgrade-charm Traceback (most recent call last):
2020-02-20 11:50:10 INFO upgrade-charm File "/var/lib/
2020-02-20 11:50:10 INFO upgrade-charm basic.bootstrap
2020-02-20 11:50:10 INFO upgrade-charm File "lib/charms/
2020-02-20 11:50:10 INFO upgrade-charm '-f', 'wheelhouse'] + glob('wheelhous
2020-02-20 11:50:10 INFO upgrade-charm File "/usr/lib/
2020-02-20 11:50:10 INFO upgrade-charm raise CalledProcessEr
2020-02-20 11:50:10 INFO upgrade-charm subprocess.
.tar.gz', 'wheelhouse/
use/urllib3-
.gz', 'wheelhouse/
2020-02-20 11:50:10 ERROR juju.worker.
Related branches
- Alvaro Uria (community): Disapprove
-
Diff: 49 lines (+6/-3)3 files modifiedmetadata.yaml (+3/-2)
tests/functional/test_deploy.py (+2/-0)
wheelhouse.txt (+1/-1)
- Alvaro Uria (community): Approve
-
Diff: 39 lines (+2/-5)2 files modifiedmetadata.yaml (+2/-3)
tests/functional/test_deploy.py (+0/-2)
Changed in charm-grafana: | |
status: | New → Confirmed |
assignee: | nobody → Alvaro Uria (aluria) |
Changed in charm-grafana: | |
milestone: | none → 20.02 |
Changed in charm-grafana: | |
status: | Confirmed → Won't Fix |
In order to fix the "requests" error, wheelhouse.txt would need to be updated to:
"""
requests<=2.21 # supports py34 (trusty)
"""
However, trusty support in LXD containers is broken since layer-snap was added [1]. I'm going to discuss if we should continue trusty support and figure out how we could test it (ie. on KVM?).
1. https:/ /git.launchpad. net/layer- snap/tree/ reactive/ snap.py# n127