install_tempest failed at uninstalling appdirs 1.4.1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
devstack |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
devstack failed on our 3rd party CI system when install_tempest.
first tox --notest -efull installed appdirs 1.4.1 which was pushed onto pypi.python.org today and upper constraints pin the version to 1.4.0, so when pip tried to uninstall 1.4.1, the following error occurred:
2017-02-24 02:13:11.045 | Requirement already satisfied: ipaddress===1.0.18 in ./.tox/
2017-02-24 02:13:11.048 | Requirement already satisfied: pycparser===2.17 in ./.tox/
2017-02-24 02:13:11.051 | Collecting appdirs===1.4.0 (from -c /opt/stack/
2017-02-24 02:13:11.069 | Using cached appdirs-
2017-02-24 02:13:11.080 | Requirement already satisfied: packaging===16.8 in ./.tox/
2017-02-24 02:13:11.085 | Building wheels for collected packages: cmd2
2017-02-24 02:13:11.086 | Running setup.py bdist_wheel for cmd2: started
2017-02-24 02:13:11.716 | Running setup.py bdist_wheel for cmd2: finished with status 'done'
2017-02-24 02:13:11.716 | Stored in directory: /opt/stack/
2017-02-24 02:13:11.729 | Successfully built cmd2
2017-02-24 02:13:11.731 | Installing collected packages: appdirs, cmd2
2017-02-24 02:13:11.731 | Found existing installation: appdirs 1.4.1
2017-02-24 02:13:11.739 | Uninstalling appdirs-1.4.1:
2017-02-24 02:13:11.752 | Successfully uninstalled appdirs-1.4.1
2017-02-24 02:13:11.867 | Rolling back uninstall of appdirs
2017-02-24 02:13:11.879 | Exception:
2017-02-24 02:13:11.879 | Traceback (most recent call last):
2017-02-24 02:13:11.879 | File "/opt/stack/
2017-02-24 02:13:11.879 | status = self.run(options, args)
2017-02-24 02:13:11.879 | File "/opt/stack/
2017-02-24 02:13:11.879 | prefix=
2017-02-24 02:13:11.879 | File "/opt/stack/
2017-02-24 02:13:11.879 | **kwargs
2017-02-24 02:13:11.879 | File "/opt/stack/
2017-02-24 02:13:11.879 | self.move_
2017-02-24 02:13:11.879 | File "/opt/stack/
2017-02-24 02:13:11.879 | isolated=
2017-02-24 02:13:11.879 | File "/opt/stack/
2017-02-24 02:13:11.879 | prefix=prefix,
2017-02-24 02:13:11.879 | File "/opt/stack/
2017-02-24 02:13:11.879 | d = Distribution(
2017-02-24 02:13:11.879 | File "/opt/stack/
2017-02-24 02:13:11.879 | _Distribution.
2017-02-24 02:13:11.879 | File "/usr/lib/
2017-02-24 02:13:11.879 | self.finalize_
2017-02-24 02:13:11.879 | File "/opt/stack/
2017-02-24 02:13:11.880 | ep.require(
2017-02-24 02:13:11.880 | File "/opt/stack/
2017-02-24 02:13:11.880 | items = working_
2017-02-24 02:13:11.880 | File "/opt/stack/
2017-02-24 02:13:11.880 | new_requirements = dist.requires(
2017-02-24 02:13:11.880 | File "/opt/stack/
2017-02-24 02:13:11.880 | dm = self._dep_map
2017-02-24 02:13:11.880 | File "/opt/stack/
2017-02-24 02:13:11.880 | self.__dep_map = self._compute_
2017-02-24 02:13:11.880 | File "/opt/stack/
2017-02-24 02:13:11.880 | for req in self._parsed_
2017-02-24 02:13:11.880 | File "/opt/stack/
2017-02-24 02:13:11.880 | metadata = self.get_
2017-02-24 02:13:11.880 | File "/opt/stack/
2017-02-24 02:13:11.880 | value = self._get(
2017-02-24 02:13:11.880 | File "/opt/stack/
2017-02-24 02:13:11.880 | with open(path, 'rb') as stream:
2017-02-24 02:13:11.880 | IOError: [Errno 2] No such file or directory: '/opt/stack/
2017-02-24 02:13:12.031 | + lib/tempest:
http://
I am not using pypi mirrors like upstream CI so the behavior might be different, because upstream CI doesn't fail here:
2017-02-23 23:19:17.996 | Collecting appdirs===1.4.0 (from -c ../requirements
2017-02-23 23:19:18.523 | Downloading http://
2017-02-23 23:19:18.530 | Requirement already satisfied: packaging===16.8 in ./.tox/
2017-02-23 23:19:18.534 | Requirement already satisfied: pycparser===2.17 in ./.tox/
2017-02-23 23:19:18.535 | Installing collected packages: appdirs, cmd2
2017-02-23 23:19:18.535 | Found existing installation: appdirs 1.4.1
2017-02-23 23:19:18.541 | Uninstalling appdirs-1.4.1:
2017-02-23 23:19:18.547 | Successfully uninstalled appdirs-1.4.1
2017-02-23 23:19:18.558 | Found existing installation: cmd2 0.7.0
2017-02-23 23:19:18.562 | Uninstalling cmd2-0.7.0:
2017-02-23 23:19:18.563 | Successfully uninstalled cmd2-0.7.0
2017-02-23 23:19:18.629 | Successfully installed appdirs-1.4.0 cmd2-0.6.9
2017-02-23 23:19:18.708 | _______
2017-02-23 23:19:18.708 | venv-tempest: commands succeeded
2017-02-23 23:19:18.708 | congratulations :)
my node is built everyday by nodepool with latest pip 9.0.1 and setuptools, which was upgraded to 34.3.0 by devstack.
For your information, just found the cause:
https:/ /github. com/pypa/ pip/issues/ 4264 /github. com/ActiveState /appdirs/ issues/ 89
https:/