Etcd rev 763 fails to install: Could not find a version that satisfies the requirement setuptools>=64

Bug #2061581 reported by Alexander Balderson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
EasyRSA Charm
Fix Released
Critical
Kevin W Monroe
Etcd Charm
Fix Released
Critical
Kevin W Monroe

Bug Description

Running some Openstack candidates tests, SQA tests using the candidate versions of all charms, and Etcd revision 763 on Jammy has failed to install with the error:

2024-04-13 14:28:12 WARNING unit.etcd/2.install logger.go:60 error: subprocess-exited-with-error
2024-04-13 14:28:12 WARNING unit.etcd/2.install logger.go:60
2024-04-13 14:28:12 WARNING unit.etcd/2.install logger.go:60 × pip subprocess to install build dependencies did not run successfully.
2024-04-13 14:28:12 WARNING unit.etcd/2.install logger.go:60 │ exit code: 1
2024-04-13 14:28:12 WARNING unit.etcd/2.install logger.go:60 ╰─> [3 lines of output]
2024-04-13 14:28:12 WARNING unit.etcd/2.install logger.go:60 Looking in links: wheelhouse
2024-04-13 14:28:12 WARNING unit.etcd/2.install logger.go:60 ERROR: Could not find a version that satisfies the requirement setuptools>=64 (from versions: 62.1.0)
2024-04-13 14:28:12 WARNING unit.etcd/2.install logger.go:60 ERROR: No matching distribution found for setuptools>=64
2024-04-13 14:28:12 WARNING unit.etcd/2.install logger.go:60 [end of output]
2024-04-13 14:28:12 WARNING unit.etcd/2.install logger.go:60
2024-04-13 14:28:12 WARNING unit.etcd/2.install logger.go:60 note: This error originates from a subprocess, and is likely not a problem with pip.
2024-04-13 14:28:12 WARNING unit.etcd/2.install logger.go:60 error: subprocess-exited-with-error
2024-04-13 14:28:12 WARNING unit.etcd/2.install logger.go:60
2024-04-13 14:28:12 WARNING unit.etcd/2.install logger.go:60 × pip subprocess to install build dependencies did not run successfully.
2024-04-13 14:28:12 WARNING unit.etcd/2.install logger.go:60 │ exit code: 1
2024-04-13 14:28:12 WARNING unit.etcd/2.install logger.go:60 ╰─> See above for output.
2024-04-13 14:28:12 WARNING unit.etcd/2.install logger.go:60
2024-04-13 14:28:12 WARNING unit.etcd/2.install logger.go:60 note: This error originates from a subprocess, and is likely not a problem with pip.
2024-04-13 14:28:13 WARNING unit.etcd/2.install logger.go:60 Traceback (most recent call last):
2024-04-13 14:28:13 WARNING unit.etcd/2.install logger.go:60 File "/var/lib/juju/agents/unit-etcd-2/charm/hooks/install", line 8, in <module>
2024-04-13 14:28:13 WARNING unit.etcd/2.install logger.go:60 basic.bootstrap_charm_deps()
2024-04-13 14:28:13 WARNING unit.etcd/2.install logger.go:60 File "/var/lib/juju/agents/unit-etcd-2/charm/lib/charms/layer/basic.py", line 226, in bootstrap_charm_deps
2024-04-13 14:28:13 WARNING unit.etcd/2.install logger.go:60 check_call([pip, 'install', '-U', reinstall_flag, '--no-index',
2024-04-13 14:28:13 WARNING unit.etcd/2.install logger.go:60 File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
2024-04-13 14:28:13 WARNING unit.etcd/2.install logger.go:60 raise CalledProcessError(retcode, cmd)
2024-04-13 14:28:13 WARNING unit.etcd/2.install logger.go:60 subprocess.CalledProcessError: Command '['/var/lib/juju/agents/unit-etcd-2/.venv/bin/pip', 'install', '-U', '--force-reinstall', '--no-index', '--no-cache-dir', '-f', 'wheelhouse', 'flit-core==3.9.0', 'pyaml==21.10.1', 'tomli==2.0.1', 'charmhelpers==1.2.1', 'tenacity==8.2.3', 'idna==3.6', 'anyio==3.6.2', 'PyYAML==6.0.1', 'packaging==24.0', 'netaddr==0.7.19', 'flit-scm==1.7.0', 'Jinja2==3.1.3', 'pbr==6.0.0', 'charms.reactive==1.5.2', 'Cython==0.29.37', 'sniffio==1.3.1']' returned non-zero exit status 1.

I suspect that it affects other charms as well.

Revision history for this message
Alexander Balderson (asbalderson) wrote :

This is also present in 57 of EasyRSA

Revision history for this message
Adam Dyess (addyess) wrote :

This can be resolved by pulling in a python package pinning introduced into layer-basic by this commit

https://github.com/charmed-kubernetes/layer-basic/commit/6f70ad3ffb4aeba58893821f359de4dac07ae720

Changed in charm-easyrsa:
milestone: none → 1.28+ck3
Changed in charm-etcd:
milestone: none → 1.28+ck3
Adam Dyess (addyess)
Changed in charm-easyrsa:
milestone: 1.28+ck3 → 1.29+ck1
Changed in charm-etcd:
milestone: 1.28+ck3 → 1.29+ck1
Adam Dyess (addyess)
Changed in charm-easyrsa:
status: New → Fix Committed
Changed in charm-etcd:
status: New → Fix Committed
Changed in charm-easyrsa:
assignee: nobody → Kevin W Monroe (kwmonroe)
Changed in charm-etcd:
assignee: nobody → Kevin W Monroe (kwmonroe)
importance: Undecided → Critical
Changed in charm-easyrsa:
importance: Undecided → Critical
Adam Dyess (addyess)
Changed in charm-easyrsa:
status: Fix Committed → Fix Released
Changed in charm-etcd:
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.