Hello,
we are trying to build docker images for kolla from source with ubuntu as the base distro.
During the build process (kolla-build ...) the openstack base container fails with ModuleNotFoundError: No module named 'setuptools' after downloading distlib.
Release: stable/ussuri
Kolla: 10.1.1
Type: source
Base Distro: ubuntu
Base Tag: 18.04
INFO:kolla.common.utils.openstack-base:Ignoring scikit-learn: markers 'python_version == "2.7"' don't match your environment
INFO:kolla.common.utils.openstack-base:
INFO:kolla.common.utils.openstack-base:Ignoring scikit-learn: markers 'python_version == "3.7"' don't match your environment
INFO:kolla.common.utils.openstack-base:
INFO:kolla.common.utils.openstack-base:Ignoring scikit-learn: markers 'python_version == "3.8"' don't match your environment
INFO:kolla.common.utils.openstack-base:
INFO:kolla.common.utils.openstack-base:Collecting virtualenv===20.0.17 (from -c /requirements/upper-constraints.txt (line 987))
INFO:kolla.common.utils.openstack-base: Downloading https://files.pythonhosted.org/packages/82/34/ae98cb0c3eca73b871d51b8f27af0389c746f0e166cd3b2ab31f41085b82/virtualenv-20.0.17-py2.py3-none-any.whl (4.6MB)
INFO:kolla.common.utils.openstack-base:Collecting importlib-resources===1.4.0 (from -c /requirements/upper-constraints.txt (line 882))
INFO:kolla.common.utils.openstack-base: Downloading https://files.pythonhosted.org/packages/8f/36/e678bc02cad98e566fbd7e6711ab2f389fc9adfb1edbb9f553eae41f9f97/importlib_resources-1.4.0-py2.py3-none-any.whl
INFO:kolla.common.utils.openstack-base:Collecting filelock===3.0.12 (from -c /requirements/upper-constraints.txt (line 960))
INFO:kolla.common.utils.openstack-base: Downloading https://files.pythonhosted.org/packages/93/83/71a2ee6158bb9f39a90c0dea1637f81d5eef866e188e1971a1b1ab01a35a/filelock-3.0.12-py3-none-any.whl
INFO:kolla.common.utils.openstack-base:Collecting importlib-metadata===1.6.0 (from -c /requirements/upper-constraints.txt (line 471))
INFO:kolla.common.utils.openstack-base: Downloading https://files.pythonhosted.org/packages/ad/e4/891bfcaf868ccabc619942f27940c77a8a4b45fd8367098955bb7e152fb1/importlib_metadata-1.6.0-py2.py3-none-any.whl
INFO:kolla.common.utils.openstack-base:Collecting appdirs===1.4.3 (from -c /requirements/upper-constraints.txt (line 393))
INFO:kolla.common.utils.openstack-base: Downloading https://files.pythonhosted.org/packages/56/eb/810e700ed1349edde4cbdc1b2a21e28cdf115f9faf263f6bbf8447c1abf3/appdirs-1.4.3-py2.py3-none-any.whl
INFO:kolla.common.utils.openstack-base:Collecting six===1.14.0 (from -c /requirements/upper-constraints.txt (line 778))
INFO:kolla.common.utils.openstack-base: Downloading https://files.pythonhosted.org/packages/65/eb/1f97cb97bfc2390a276969c6fae16075da282f5058082d4cb10c6c5c1dba/six-1.14.0-py2.py3-none-any.whl
INFO:kolla.common.utils.openstack-base:Collecting distlib===0.3.0 (from -c /requirements/upper-constraints.txt (line 717))
INFO:kolla.common.utils.openstack-base: Downloading https://files.pythonhosted.org/packages/7d/29/694a3a4d7c0e1aef76092e9167fbe372e0f7da055f5dcf4e1313ec21d96a/distlib-0.3.0.zip (571kB)
INFO:kolla.common.utils.openstack-base: Complete output from command python setup.py egg_info:
INFO:kolla.common.utils.openstack-base: Traceback (most recent call last):
INFO:kolla.common.utils.openstack-base: File "<string>", line 1, in <module>
INFO:kolla.common.utils.openstack-base: ModuleNotFoundError: No module named 'setuptools'
INFO:kolla.common.utils.openstack-base:
INFO:kolla.common.utils.openstack-base: ----------------------------------------
INFO:kolla.common.utils.openstack-base:Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-4f9x1uex/distlib/
INFO:kolla.common.utils.openstack-base:Removing intermediate container aa29ef1bd061
ERROR:kolla.common.utils.openstack-base:Error'd with the following message
ERROR:kolla.common.utils.openstack-base:The command '/bin/sh -c ln -s openstack-base-source/* /requirements && mkdir -p /var/lib/kolla && python3.6 -m pip --no-cache-dir install --upgrade -c /requirements/upper-constraints.txt virtualenv && virtualenv --system-site packages /var/lib/kolla/venv' returned a non-zero code: 1
DEBUG:kolla.common.utils:Image openstack-base failed
Ussuri builds fine both locally and on CI.