Docker build is failing

Bug #1867191 reported by rohit
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mistral
New
Undecided
Unassigned

Bug Description

I am not able to build docker container using the latest source code (commit - dbfc0bea227e45ba36756bc5e91aba36f83c2f09 )

Below is the error -

Collecting SQLAlchemy>=1.2.5
  Downloading SQLAlchemy-1.3.15.tar.gz (6.1 MB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
ERROR: Exception:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/pip/_internal/cli/base_command.py", line 186, in _main
    status = self.run(options, args)
  File "/usr/local/lib/python2.7/dist-packages/pip/_internal/commands/install.py", line 331, in run
    resolver.resolve(requirement_set)
  File "/usr/local/lib/python2.7/dist-packages/pip/_internal/legacy_resolve.py", line 177, in resolve
    discovered_reqs.extend(self._resolve_one(requirement_set, req))
  File "/usr/local/lib/python2.7/dist-packages/pip/_internal/legacy_resolve.py", line 333, in _resolve_one
    abstract_dist = self._get_abstract_dist_for(req_to_install)
  File "/usr/local/lib/python2.7/dist-packages/pip/_internal/legacy_resolve.py", line 282, in _get_abstract_dist_for
    abstract_dist = self.preparer.prepare_linked_requirement(req)
  File "/usr/local/lib/python2.7/dist-packages/pip/_internal/operations/prepare.py", line 516, in prepare_linked_requirement
    req, self.req_tracker, self.finder, self.build_isolation,
  File "/usr/local/lib/python2.7/dist-packages/pip/_internal/operations/prepare.py", line 95, in _get_prepared_distribution
    abstract_dist.prepare_distribution_metadata(finder, build_isolation)
  File "/usr/local/lib/python2.7/dist-packages/pip/_internal/distributions/sdist.py", line 38, in prepare_distribution_metadata
    self._setup_isolation(finder)
  File "/usr/local/lib/python2.7/dist-packages/pip/_internal/distributions/sdist.py", line 96, in _setup_isolation
    reqs = backend.get_requires_for_build_wheel()
  File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/pep517/wrappers.py", line 152, in get_requires_for_build_wheel
    'config_settings': config_settings
  File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/pep517/wrappers.py", line 255, in _call_hook
    raise BackendUnavailable(data.get('traceback', ''))
BackendUnavailable
The command '/bin/sh -c curl -o "${TMP_CONSTRAINTS}" http://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt && sed -i "/^mistral.*/d" "${TMP_CONSTRAINTS}" && pip install -r "${MISTRAL_DIR}/requirements.txt"' returned a non-zero code: 2

Steps to reproduce -

- using docker
docker build -t mistral -f tools/docker/Dockerfile .

- using docker-compose
docker-compose -f tools/docker/docker-compose/infrastructure.yaml \
             -f tools/docker/docker-compose/mistral-single-node.yaml \
             -p mistral up -d

Apparently, this issue is getting fixed by adding '--no-use-pep517' flag in Dockerfile at 51 line (https://github.com/openstack/mistral/blob/master/tools/docker/Dockerfile#L51)

    pip install --no-use-pep517 -r "${MISTRAL_DIR}/requirements.txt"

Is this valid bug or am I doing something stupid ?

Revision history for this message
rohit (rohitchormale) wrote :

Additional Info -

Docker version 19.03.6 on Ubuntu 18.04.4 LTS

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.