migrate to Python 3

Bug #1890205 reported by Paul Collins
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Ubuntu Mirror Charm
Confirmed
Undecided
Unassigned

Bug Description

This charm is written in Python 2. We should migrate to Python 3.

Canonical IS's deployment currently uses 18.04 LTS (bionic). In 20.04 LTS (focal) Python 2 has been moved to universe.

James Simpson (jsimpso)
Changed in ubuntu-mirror-charm:
status: New → Confirmed
Revision history for this message
Barry Price (barryprice) wrote :

We'll also likely need to migrate templating from cheetah to jinja2 if we want to keep bionic compatibility, since there's no python3-cheetah pre-focal:

https://packages.ubuntu.com/focal/python3-cheetah

vs

https://packages.ubuntu.com/bionic/python3-jinja2

And it may be better to just bite the bullet and port to operator while we're at it.

Revision history for this message
Junien F (axino) wrote :

If we port to operator, could we please make it easy to allow the usage of another http server in the future ? apache2 doesn't support TLS offloading currently https://bz.apache.org/bugzilla/show_bug.cgi?id=66028#c2

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.