haproxy complains about missing distutils package

Bug #2074001 reported by Anna Savchenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
charm-haproxy
New
Undecided
Unassigned

Bug Description

When I try to deploy the haproxy charm on Ubuntu 24.04 VM, it complains about a missing package:

2024-07-24 15:11:42 INFO unit.haproxy/0.juju-log server.go:325 Invoking charm-pre-install hooks
2024-07-24 15:11:42 INFO unit.haproxy/0.juju-log server.go:325 Invoking python-based install hook
2024-07-24 15:11:42 WARNING unit.haproxy/0.install logger.go:60 Traceback (most recent call last):
2024-07-24 15:11:42 WARNING unit.haproxy/0.install logger.go:60 File "/var/lib/juju/agents/unit-haproxy-0/charm/hooks/hooks.py", line 18, in <module>
2024-07-24 15:11:42 WARNING unit.haproxy/0.install logger.go:60 from charmhelpers.core.host import pwgen, lsb_release, service_restart
2024-07-24 15:11:42 WARNING unit.haproxy/0.install logger.go:60 File "/var/lib/juju/agents/unit-haproxy-0/charm/hooks/charmhelpers/core/host.py", line 37, in <module>
2024-07-24 15:11:42 WARNING unit.haproxy/0.install logger.go:60 from .hookenv import log, INFO, DEBUG, local_unit, charm_name
2024-07-24 15:11:42 WARNING unit.haproxy/0.install logger.go:60 File "/var/lib/juju/agents/unit-haproxy-0/charm/hooks/charmhelpers/core/hookenv.py", line 21, in <module>
2024-07-24 15:11:42 WARNING unit.haproxy/0.install logger.go:60 from distutils.version import LooseVersion
2024-07-24 15:11:42 WARNING unit.haproxy/0.install logger.go:60 ModuleNotFoundError: No module named 'distutils'
2024-07-24 15:11:42 ERROR juju.worker.uniter.operation runhook.go:180 hook "install" (via explicit, bespoke hook script) failed: exit status 1
2024-07-24 15:11:42 INFO juju.worker.uniter resolver.go:180 awaiting error resolution for "install" hook
2024-07-24 15:16:42 INFO juju.worker.uniter resolver.go:180 awaiting error resolution for "install" hook

env: Ubuntu 24.04 VMware VM
charm: latest/edge rev.83

Revision history for this message
Jeff Hillman (jhillman) wrote :

It appears noble no longer has python3-distutils, however manually installing python3-distutils-extra gets past this error, but brings up another one

Revision history for this message
Peter Jose De Sousa (pjds) wrote :
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.