install hook fails due to incompatible setuptools

Bug #1929847 reported by Kevin W Monroe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Calico Charm
Fix Released
High
Kevin W Monroe
Canal Charm
Fix Released
High
Kevin W Monroe
Tigera Secure EE Charm
Fix Released
High
Kevin W Monroe

Bug Description

Canal and calico rely on the 'conctl' package, which relies on click:

https://github.com/charmed-kubernetes/conctl/blob/master/setup.py#L14

The 'click' package was upgraded to 8.x in the last couple weeks:

https://pypi.org/project/click/#history

Among other things, this brings in 'importlib-metadata', which relies on 'setuptools>=42':

https://github.com/python/importlib_metadata/commit/0bf3d43d97d5466fddac708e7ca38ba95281c6e7

This is incompatible with the pin from `layer-basic`:

https://github.com/juju-solutions/layer-basic/commit/6d2d4fcad3def1511d1a39339326885e270c0772

This results in an install hook failure like this:
2021-05-26 22:00:21 DEBUG install Installing build dependencies: started
2021-05-26 22:00:23 WARNING install ERROR: Command errored out with exit status 1:
2021-05-26 22:00:23 WARNING install command: /var/lib/juju/agents/unit-canal-4/.venv/bin/python /var/lib/juju/agents/unit-canal-4/.venv/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-cxeeiml8/overlay --no-warn-script-location --no-binary :none: --only-binary :none: --no-index --find-links wheelhouse -- 'setuptools>=42' wheel 'setuptools_scm[toml]>=3.4.1'
2021-05-26 22:00:23 WARNING install cwd: None
2021-05-26 22:00:23 WARNING install Complete output (3 lines):
2021-05-26 22:00:23 WARNING install Looking in links: wheelhouse
2021-05-26 22:00:23 WARNING install ERROR: Could not find a version that satisfies the requirement setuptools>=42 (from versions: 41.6.0)
2021-05-26 22:00:23 WARNING install ERROR: No matching distribution found for setuptools>=42

We need to set a 'click<8.0' pin in both canal and calico to keep 'setuptools' at a usable rev.

Changed in charm-calico:
assignee: nobody → Kevin W Monroe (kwmonroe)
Changed in charm-canal:
assignee: nobody → Kevin W Monroe (kwmonroe)
Changed in charm-calico:
milestone: none → 1.21+ck2
Changed in charm-canal:
milestone: none → 1.21+ck2
Changed in charm-calico:
importance: Undecided → High
Changed in charm-canal:
importance: Undecided → High
Changed in charm-calico:
status: New → In Progress
Changed in charm-canal:
status: New → In Progress
George Kraft (cynerva)
Changed in charm-tigera-secure-ee:
importance: Undecided → High
Changed in charm-tigera-secure-ee:
assignee: nobody → Kevin W Monroe (kwmonroe)
milestone: none → 1.21+ck2
George Kraft (cynerva)
Changed in charm-tigera-secure-ee:
status: New → Triaged
Changed in charm-tigera-secure-ee:
status: Triaged → In Progress
Revision history for this message
Kevin W Monroe (kwmonroe) wrote :
Revision history for this message
Kevin W Monroe (kwmonroe) wrote :
Changed in charm-calico:
status: In Progress → Fix Committed
Changed in charm-canal:
status: In Progress → Fix Committed
Changed in charm-tigera-secure-ee:
status: In Progress → Fix Committed
Revision history for this message
Cory Johns (johnsca) wrote :

This was released on May 28th with canal rev 799, calico rev 799, and tigera-secure-ee rev 194.

Changed in charm-calico:
status: Fix Committed → Fix Released
Changed in charm-canal:
status: Fix Committed → Fix Released
Changed in charm-tigera-secure-ee:
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.