Charm is missing jammy support

Bug #1986516 reported by Barry Price
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Apache2 Charm
Fix Released
Medium
Simone Pelosi

Bug Description

Charm is missing jammy (Ubuntu 22.04 LTS) support from its metadata.yaml

Related branches

Revision history for this message
Barry Price (barryprice) wrote :

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.readthedocs.io/en/latest/

Revision history for this message
Barry Price (barryprice) wrote :

See also LP:1849233

Revision history for this message
Tom Haddon (mthaddon) wrote :

Likely we should rewrite the charm using the Operator Framework as part of addressing this.

Changed in apache2-charm:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Brian Murray (brian-murray) wrote :

I was trying to deploy apache2 on Ubuntu 22.04 LTS today and was unable to due to the python2 / python3 issues described.

Simone Pelosi (pelpsi)
Changed in apache2-charm:
assignee: nobody → Simone Pelosi (pelpsi)
status: Confirmed → In Progress
Revision history for this message
Tom Haddon (mthaddon) wrote :

This has been released to the edge channel as revision 42

Barry Price (barryprice)
Changed in apache2-charm:
status: In Progress → Fix Committed
Simone Pelosi (pelpsi)
Changed in apache2-charm:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.