Charm is missing jammy support
Bug #1986516 reported by
Barry Price
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Apache2 Charm |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Charm is missing jammy (Ubuntu 22.04 LTS) support from its metadata.yaml
Related branches
~dparv/apache2-charm:python3
Ready for review
for merging
into
apache2-charm:master
- Junien Fridrick: Needs Information
- Canonical IS Reviewers: Pending requested
-
Diff: 178 lines (+27/-32)4 files modifiedMakefile (+8/-8)
hooks/hooks.py (+14/-14)
hooks/install (+4/-10)
metadata.yaml (+1/-0)
To post a comment you must log in.
Looked into this, it's far from a trivial fix.
The whole charm is written in python2, and relies on python2-specific packages that no longer exist in jammy.
Furthermore, the test suite uses nose, which "has been in maintenance mode for the past several years"[1]. As that site also notes, "nose itself supports python 3, but many 3rd-party plugins do not!". This may be why bootstrapping the existing test suite seems to fail using python3 (in a trusty LXD).
To resolve this, we'll need to update all the actual charm code to python3, and ideally port the test suite to use tox/pytest too, to bring it in line with other charms.
Porting to reactive (or operator) may not be that much more work given the above, and would bring this more in line with other charms.
[1] https:/ /nose.readthedo cs.io/en/ latest/