Skip to content

Microstack test fails to build with snapcraft 7.1.0 #1

@NucciTheBoss

Description

@NucciTheBoss

Microstack fails to build with core18 using snapcraft 7.1.0. Here is a a copy of the stacktrace:

Launching a container.
Waiting for container to be ready
Waiting for network to be ready...
core20 20220719 from Canonical✓ installed
"core20" switched to the "latest/stable" channel

Skipping pull patches (already ran)
Skipping pull rally-openstack (already ran)
Skipping pull tempest (already ran)
'tempest-dump' has dependencies that need to be staged: tempest
Skipping pull tempest (already ran)
Building tempest 
+ snapcraftctl build
Looking in links: /root/parts/tempest/python-packages
Processing /root/parts/tempest/python-packages/pbr-5.9.0-py2.py3-none-any.whl
Processing /root/parts/tempest/python-packages/cliff-3.10.1-py3-none-any.whl
Processing /root/parts/tempest/python-packages/jsonschema-3.2.0-py2.py3-none-any.whl
Processing /root/parts/tempest/python-packages/testtools-2.5.0-py3-none-any.whl
Processing /root/parts/tempest/python-packages/paramiko-2.11.0-py2.py3-none-any.whl
Processing /root/parts/tempest/python-packages/netaddr-0.8.0-py2.py3-none-any.whl
Processing /root/parts/tempest/python-packages/oslo.concurrency-4.5.1-py3-none-any.whl
Processing /root/parts/tempest/python-packages/oslo.config-8.8.0-py3-none-any.whl
Processing /root/parts/tempest/python-packages/oslo.log-4.8.0-py3-none-any.whl
Processing /root/parts/tempest/python-packages/stestr-3.2.1-py3-none-any.whl
Processing /root/parts/tempest/python-packages/oslo.serialization-4.3.0-py3-none-any.whl
Processing /root/parts/tempest/python-packages/oslo.utils-4.13.0-py3-none-any.whl
Processing /root/parts/tempest/python-packages/six-1.16.0-py2.py3-none-any.whl
Processing /root/parts/tempest/python-packages/fixtures-4.0.1.tar.gz
  Installing build dependencies ... error
  ERROR: Command errored out with exit status 1:
   command: /root/stage/usr/bin/python3 /root/stage/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-xh8zbwjc/overlay --no-warn-script-location --no-binary :none: --only-binary :none: --no-index --find-links /root/parts/tempest/python-packages -- 'pbr>=5.7.0' 'setuptools>=36.6.0' wheel
       cwd: None
  Complete output (5 lines):
  Looking in links: /root/parts/tempest/python-packages
  Processing /root/parts/tempest/python-packages/pbr-5.9.0-py2.py3-none-any.whl
  Processing /root/parts/tempest/python-packages/setuptools-59.6.0-py3-none-any.whl
  ERROR: Could not find a version that satisfies the requirement wheel (from versions: none)
  ERROR: No matching distribution found for wheel
  ----------------------------------------
WARNING: Discarding file:///root/parts/tempest/python-packages/fixtures-4.0.1.tar.gz. Command errored out with exit status 1: /root/stage/usr/bin/python3 /root/stage/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-xh8zbwjc/overlay --no-warn-script-location --no-binary :none: --only-binary :none: --no-index --find-links /root/parts/tempest/python-packages -- 'pbr>=5.7.0' 'setuptools>=36.6.0' wheel Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement fixtures>=3.0.0 (from versions: 4.0.1)
ERROR: No matching distribution found for fixtures>=3.0.0
Failed to run '/root/stage/usr/bin/python3 -m pip wheel --no-index --find-links /root/parts/tempest/python-packages --wheel-dir /tmp/tmp5s6ua_h2 --requirement /root/parts/tempest/build/requirements.txt': Exited with code 1.
Run the same command again with --debug to shell into the environment if you wish to introspect this failure.

I have a solid idea that the issue is due to a similar one I had with the main Microstack snap, where python3-wheel needed to be provided as a build dependency. The solution is alluded to here in a snapcraft forum post: https://forum.snapcraft.io/t/error-invalid-command-bdist-wheel/18960. Going to try this and see what happens.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions