failed to build tempest image

Bug #1565268 reported by Jeffrey Zhang
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
kolla
Fix Released
Critical
Jeffrey Zhang

Bug Description

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:Ignoring dnspython3: markers u"python_version=='3.4'" don't match your environment
2016-04-02 12:10:18.632 | INFO:kolla.cmd.build:tempest:
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:Could 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:
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

Revision history for this message
Jeffrey Zhang (jeffrey4l) wrote :

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
Cleaning up...
  Removing source in /tmp/pip-CyMtU0-build
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/jeffrey/.dotfiles/virtualenvs/tempest/lib/python2.7/site-packages/pip/basecommand.py", line 209, in main
    status = self.run(options, args)
  File "/home/jeffrey/.dotfiles/virtualenvs/tempest/lib/python2.7/site-packages/pip/commands/install.py", line 310, in run
    wb.build(autobuilding=True)
  File "/home/jeffrey/.dotfiles/virtualenvs/tempest/lib/python2.7/site-packages/pip/wheel.py", line 748, in build
    self.requirement_set.prepare_files(self.finder)
  File "/home/jeffrey/.dotfiles/virtualenvs/tempest/lib/python2.7/site-packages/pip/req/req_set.py", line 360, in prepare_files
    ignore_dependencies=self.ignore_dependencies))
  File "/home/jeffrey/.dotfiles/virtualenvs/tempest/lib/python2.7/site-packages/pip/req/req_set.py", line 638, in _prepare_file
    self.add_requirement(req_to_install, None)
  File "/home/jeffrey/.dotfiles/virtualenvs/tempest/lib/python2.7/site-packages/pip/req/req_set.py", line 268, in add_requirement
    "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-constraints.txt file due to this issue[0], and introduce in [1]

[0] http://docs.openstack.org/developer/tempest-lib/readme.html
[1] https://review.openstack.org/#/c/300263/

So the fix should be: when installing the tempest, remove the tempest from the upper-constraints.txt first.

Changed in kolla:
assignee: nobody → Jeffrey Zhang (jeffrey4l)
status: New → Confirmed
importance: Undecided → Critical
milestone: none → newton-1
Changed in kolla:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (master)

Reviewed: https://review.openstack.org/300733
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=9bde62345bc9cf94a55c3a3c78133643615d8e68
Submitter: Jenkins
Branch: master

commit 9bde62345bc9cf94a55c3a3c78133643615d8e68
Author: Jeffrey Zhang <jeffrey.zhang@99cloud.net>
Date: Sat Apr 2 21:23:34 2016 +0800

    Remove the tempest version constrains in tempest container

    Remove the tempest version constraint in the upper-constrains.txt
    file. Otherwise, it will be failed.

    Closes-Bug: #1565268
    Change-Id: I693efe1818bfae0eac1649cbc058d1752724cd59

Changed in kolla:
status: In Progress → Fix Released
no longer affects: kolla/mitaka
Steven Dake (sdake)
no longer affects: kolla/mitaka
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/kolla 3.0.0.0b1

This issue was fixed in the openstack/kolla 3.0.0.0b1 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.