recently, the tempest image failed to build. following is the error message. More info to[0]
2016-04-02 12:10:17.487 | INFO:kolla.cmd.build:tempest: ---> Running in 95034611ccf2
2016-04-02 12:10:17.671 | INFO:kolla.cmd.build:magnum-base: ---> Running in 2ecf49ffaee8
2016-04-02 12:10:18.632 | INFO:kolla.cmd.build:tempest:[91mIgnoring dnspython3: markers u"python_version=='3.4'" don't match your environment
2016-04-02 12:10:18.632 | INFO:kolla.cmd.build:tempest:[0m
2016-04-02 12:10:18.805 | INFO:kolla.cmd.build:tempest:Processing /tempest
2016-04-02 12:10:20.089 | INFO:kolla.cmd.build:tempest:[91mCould not satisfy constraints for 'tempest': installation from path or url cannot be constrained to a version
2016-04-02 12:10:20.089 | INFO:kolla.cmd.build:tempest:[0m
2016-04-02 12:10:20.258 | INFO:kolla.cmd.build:neutron-base: ---> 9556e5c85bb1
2016-04-02 12:10:22.523 | INFO:kolla.cmd.build:tempest:Removing intermediate container 95034611ccf2
2016-04-02 12:10:22.524 | ERROR:kolla.cmd.build:tempest:Error'd with the following message
2016-04-02 12:10:22.524 | ERROR:kolla.cmd.build:tempest:The command '/bin/sh -c ln -s tempest-source/* tempest && /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /tempest && mkdir -p /etc/tempest /var/log/tempest /etc/tempest/tempest_lock' returned a non-zero code: 1
[0] http://logs.openstack.org/63/297963/7/check/gate-kolla-dsvm-build-ubuntu-source/5a83979/console.html#_2016-04-02_12_10_22_523
more info
Source in /tmp/pip- CyMtU0- build has version 10.0.1.dev145, which satisfies requirement tempest= =10.0.1. dev145 from file:// /home/jeffrey/ openstack/ tempest CyMtU0- build jeffrey/ .dotfiles/ virtualenvs/ tempest/ lib/python2. 7/site- packages/ pip/basecommand .py", line 209, in main jeffrey/ .dotfiles/ virtualenvs/ tempest/ lib/python2. 7/site- packages/ pip/commands/ install. py", line 310, in run build(autobuild ing=True) jeffrey/ .dotfiles/ virtualenvs/ tempest/ lib/python2. 7/site- packages/ pip/wheel. py", line 748, in build requirement_ set.prepare_ files(self. finder) jeffrey/ .dotfiles/ virtualenvs/ tempest/ lib/python2. 7/site- packages/ pip/req/ req_set. py", line 360, in prepare_files dependencies= self.ignore_ dependencies) ) jeffrey/ .dotfiles/ virtualenvs/ tempest/ lib/python2. 7/site- packages/ pip/req/ req_set. py", line 638, in _prepare_file add_requirement (req_to_ install, None) jeffrey/ .dotfiles/ virtualenvs/ tempest/ lib/python2. 7/site- packages/ pip/req/ req_set. py", line 268, in add_requirement
Cleaning up...
Removing source in /tmp/pip-
Could not satisfy constraints for 'tempest': installation from path or url cannot be constrained to a version
Exception information:
Traceback (most recent call last):
File "/home/
status = self.run(options, args)
File "/home/
wb.
File "/home/
self.
File "/home/
ignore_
File "/home/
self.
File "/home/
"constrained to a version" % name)
InstallationError: Could not satisfy constraints for 'tempest': installation from path or url cannot be constrained to a version
The root cause it that the tempest version is fixed in the upper-constrain ts.txt file due to this issue[0], and introduce in [1]
[0] http:// docs.openstack. org/developer/ tempest- lib/readme. html /review. openstack. org/#/c/ 300263/
[1] https:/
So the fix should be: when installing the tempest, remove the tempest from the upper-constrain ts.txt first.