wheelhouse requires pinning of importlib_metadata

Bug #1948967 reported by Corey Bryant
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Neutron API OVN Plugin Charm
Fix Released
Undecided
Unassigned

Bug Description

install hook fails with:

2021-10-27 00:39:23 DEBUG install Collecting importlib_metadata>=1.7.0 (from debtcollector==2.3.0)
2021-10-27 00:39:23 WARNING install Could not find a version that satisfies the requirement importlib_metadata>=1.7.0 (from debtcollector==2.3.0) (from versions: )
2021-10-27 00:39:23 WARNING install No matching distribution found for importlib_metadata>=1.7.0 (from debtcollector==2.3.0)
2021-10-27 00:39:23 WARNING install Traceback (most recent call last):
2021-10-27 00:39:23 WARNING install File "/var/lib/juju/agents/unit-neutron-api-plugin-ovn-2/charm/hooks/install", line 8, in <module>
2021-10-27 00:39:23 WARNING install basic.bootstrap_charm_deps()
2021-10-27 00:39:23 WARNING install File "lib/charms/layer/basic.py", line 214, in bootstrap_charm_deps
2021-10-27 00:39:23 WARNING install env=_get_subprocess_env())
2021-10-27 00:39:23 WARNING install File "/usr/lib/python3.6/subprocess.py", line 311, in check_call
2021-10-27 00:39:23 WARNING install raise CalledProcessError(retcode, cmd)
2021-10-27 00:39:23 WARNING install subprocess.CalledProcessError: Command '['/var/lib/juju/agents/unit-neutron-api-plugin-ovn-2/.venv/bin/pip', 'install', '-U', '--force-reinstall', '--no-index', '--no-cache-dir', '-f', 'wheelhouse', 'wheel==0.33.6', 'idna==3.3', 'charmhelpers==0.20.24.dev2', 'MarkupSafe==1.1.1', 'requests==2.26.0', 'six==1.16.0', 'charms.openstack==0.0.1.dev1', 'charms.reactive==1.4.1', 'urllib3==1.26.7', 'PyYAML==5.2', 'pyaml==21.10.1', 'rfc3986==1.5.0', 'dnspython==1.16.0', 'certifi==2021.10.8', 'netaddr==0.7.19', 'wrapt==1.13.2', 'debtcollector==2.3.0', 'stevedore==3.5.0', 'psutil==5.8.0', 'Jinja2==2.10.1', 'pbr==5.6.0', 'charset-normalizer==2.0.7', 'oslo.config==8.7.1', 'oslo.i18n==5.1.0', 'Tempita==0.4', 'zipp==1.2.0', 'netifaces==0.11.0']' returned non-zero exit status 1.
2021-10-27 00:39:23 ERROR juju.worker.uniter.operation runhook.go:139 hook "install" (via explicit, bespoke hook script) failed: exit status 1

Running command manually:

ubuntu@juju-a71d84-zaza-ebd19147c228-2:/var/lib/juju/agents/unit-neutron-api-plugin-ovn-0/charm$ sudo /var/lib/juju/agents/unit-neutron-api-plugin-ovn-0/.venv/bin/pip install -U --force-reinstall --no-index --no-cache-dir -f wheelhouse wheel==0.33.6 dnspython==1.16.0 PyYAML==5.2 debtcollector==2.3.0 idna==3.3 Tempita==0.4 charset-normalizer==2.0.7 urllib3==1.26.7 rfc3986==1.5.0 oslo.i18n==5.1.0 charms.reactive==1.4.1 charms.openstack==0.0.1.dev1 stevedore==3.5.0 MarkupSafe==1.1.1 oslo.config==8.7.1 psutil==5.8.0 wrapt==1.13.2 Jinja2==2.10.1 netaddr==0.7.19 requests==2.26.0 certifi==2021.10.8 netifaces==0.11.0 charmhelpers==0.20.24.dev2 zipp==1.2.0 pbr==5.6.0 six==1.16.0 pyaml==21.10.1
Looking in links: wheelhouse
Collecting wheel==0.33.6
Collecting dnspython==1.16.0
Collecting PyYAML==5.2
Collecting debtcollector==2.3.0
Collecting idna==3.3
Collecting Tempita==0.4
Collecting charset-normalizer==2.0.7
Collecting urllib3==1.26.7
Collecting rfc3986==1.5.0
Collecting oslo.i18n==5.1.0
Collecting charms.reactive==1.4.1
Collecting charms.openstack==0.0.1.dev1
Collecting stevedore==3.5.0
Collecting MarkupSafe==1.1.1
Collecting oslo.config==8.7.1
Collecting psutil==5.8.0
Collecting wrapt==1.13.2
Collecting Jinja2==2.10.1
Collecting netaddr==0.7.19
Collecting requests==2.26.0
Collecting certifi==2021.10.8
Collecting netifaces==0.11.0
Collecting charmhelpers==0.20.24.dev2
Collecting zipp==1.2.0
  Installing build dependencies ... done
Collecting pbr==5.6.0
Collecting six==1.16.0
Collecting pyaml==21.10.1
Collecting importlib_metadata>=1.7.0 (from debtcollector==2.3.0)
  Could not find a version that satisfies the requirement importlib_metadata>=1.7.0 (from debtcollector==2.3.0) (from versions: )
No matching distribution found for importlib_metadata>=1.7.0 (from debtcollector==2.3.0)

Revision history for this message
Corey Bryant (corey.bryant) wrote (last edit ):

This is a conflict with importlib_metadata and setuptools [1]. The wheelhouse has setuptools 41.6.0 and the last version of importlib_metadata to support <= setuptools 42 is v3.1.0:

https://github.com/python/importlib_metadata/blob/v3.1.0/pyproject.toml

[1]
ubuntu@juju-c22dda-zaza-be92e42daf69-2:/var/lib/juju/agents/unit-neutron-api-plugin-ovn-0/charm/wheelhouse$ ls
Jinja2-2.10.1.tar.gz
MarkupSafe-1.1.1.tar.gz
PyYAML-5.2.tar.gz
Tempita-0.4.tar.gz
certifi-2021.10.8.tar.gz
charmhelpers-0.20.24.dev2.zip
charms.openstack-0.0.1.dev1.zip
charms.reactive-1.4.1.tar.gz
charset-normalizer-2.0.7.tar.gz
debtcollector-2.3.0.tar.gz
dnspython-1.16.0.zip
idna-3.3.tar.gz
importlib_metadata-3.1.0.tar.gz
netaddr-0.7.19.tar.gz
netifaces-0.11.0.tar.gz
oslo.config-8.7.1.tar.gz
oslo.i18n-5.1.0.tar.gz
pbr-5.6.0.tar.gz
pip-18.1.tar.gz
psutil-5.8.0.tar.gz
pyaml-21.10.1.tar.gz
requests-2.26.0.tar.gz
rfc3986-1.5.0.tar.gz
setuptools-41.6.0.zip
setuptools_scm-1.17.0.tar.gz
six-1.16.0.tar.gz
stevedore-3.5.0.tar.gz
urllib3-1.26.7.tar.gz
wheel-0.33.6.tar.gz
wrapt-1.13.2.tar.gz
zipp-1.2.0.tar.gz

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-neutron-api-plugin-ovn (master)
Changed in charm-neutron-api-plugin-ovn:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-neutron-api-plugin-ovn (master)

Reviewed: https://review.opendev.org/c/openstack/charm-neutron-api-plugin-ovn/+/815716
Committed: https://opendev.org/openstack/charm-neutron-api-plugin-ovn/commit/68e9c7586a8630a0d5f23798ac164f33371d2677
Submitter: "Zuul (22348)"
Branch: master

commit 68e9c7586a8630a0d5f23798ac164f33371d2677
Author: Corey Bryant <email address hidden>
Date: Wed Oct 27 18:22:11 2021 +0000

    Pin importlib_metadata in wheelhouse

    This fixes an install hook failure caused by a conflict
    between setuptools 41.6.0 and importlib_metadata by pinning
    importlib_metadata to the last version that supported that
    version of setuptools.

    Closes-Bug: #1948967
    Change-Id: Ic8376be8f1ef157dbfa13bd34ba51389cc472bb9

Changed in charm-neutron-api-plugin-ovn:
status: In Progress → Fix Committed
Changed in charm-neutron-api-plugin-ovn:
milestone: none → 22.04
Changed in charm-neutron-api-plugin-ovn:
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.