Charm Octavia fails to install on Lunar

Bug #2026861 reported by David Negreira
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Octavia Charm
Triaged
High
Unassigned

Bug Description

This is due to the issue of Lunar having a new python version and the wheels are not able to be installed.

We see the following error on the logs:

2023-07-11 13:49:29 WARNING unit.octavia/0.install logger.go:60 ERROR: Could not find a version that satisfies the requirement MarkupSafe==2.1.2 (from versions: none)
2023-07-11 13:49:29 WARNING unit.octavia/0.install logger.go:60 ERROR: No matching distribution found for MarkupSafe==2.1.2

If we enter the virtualenv and install the MarkupSafe manually then the charm installs correctly.

This is a similar issue that we had in OVN: https://bugs.launchpad.net/charm-ovn-central/+bug/2019996

The fix was to build the charm in Lunar, as an example: https://review.opendev.org/c/x/charm-ovn-central/+/883435

Revision history for this message
Alex Kavanagh (ajkavanagh) wrote :

There's current a problem building on interim (non-LTS) releases; only charmcraft latest/edge supports it, and that has a bug at the moment: https://github.com/canonical/charmcraft/issues/1150.

Changed in charm-octavia:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
David Negreira (dnegreira) wrote :

Hi @Alex, gentle nudge, seems that the issue on github has been closed, but the issue in Octavia still exists.

Revision history for this message
Alex Kavanagh (ajkavanagh) wrote :

Hi David; the issue for lunar is a little different for the 2023.1 charm (which I'm guessing you are using?). The latest/edge charm *should* work on lunar; the 2023.1 charm still has a charmcraft.yaml that builds on 22.04 to run on 23.04, which doesn't work as the octavia charm is a "binary" charm (builds binary wheels) and so isn't compatible with the python version that runs on lunar.

If you *are* talking about the latest/edge charm, then it's a different reason?

Please could you confirm which channel you are using?

Thanks.

Revision history for this message
David Negreira (dnegreira) wrote :

Hi Alex,

Apologies for not providing more details, the charm I was using was indeed the 2023.1/stable, the latest/edge channel works as expected on lunar and I can use the charm.

Revision history for this message
Alex Kavanagh (ajkavanagh) wrote :

Thanks David for the confirmation; I've upped the priority a bit, as it's a relatively simple fix to change the charmcraft.yaml to build for lunar; it'll also need a bump in the charmcraft version in osci.yaml (I suspect) to be able to build for lunar.

Changed in charm-octavia:
importance: Medium → High
tags: added: good-first-bug
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.