Don't exists requirements before executing build_wheels.sh

Bug #1453012 reported by Yuki Nishiwaki
36
This bug affects 8 people
Affects Status Importance Assigned to Milestone
devstack
Fix Released
Undecided
Yuki Nishiwaki

Bug Description

Current master branch doesn't work properly.
I got error log as following.

stack.sh.log
----------------------------
2015-05-08 07:18:15.353 | Installing collected packages: wheel
2015-05-08 07:18:15.396 | Successfully installed wheel-0.24.0
2015-05-08 07:18:15.415 | ++ local 'test_req=-U pip wheel/test-requirements.txt'
2015-05-08 07:18:15.415 | ++ [[ -e -U pip wheel/test-requirements.txt ]]
2015-05-08 07:18:15.415 | ++ PIP_VIRTUAL_ENV=tmp-venv-Wcuq
2015-05-08 07:18:15.415 | ++ pip_install_gr cffi
2015-05-08 07:18:15.415 | ++ local name=cffi
2015-05-08 07:18:15.415 | +++ get_from_global_requirements cffi
2015-05-08 07:18:15.415 | +++ local package=cffi
2015-05-08 07:18:15.416 | ++++ grep -i -h '^cffi' /opt/stack/requirements/global-requirements.txt
2015-05-08 07:18:15.416 | ++++ cut -d# -f1
2015-05-08 07:18:15.417 | grep: /opt/stack/requirements/global-requirements.txt: No such file or directory
2015-05-08 07:18:15.418 | +++ local required_pkg=
2015-05-08 07:18:15.418 | +++ [[ '' == '' ]]
2015-05-08 07:18:15.418 | +++ die 142 'Can'\''t find package cffi in requirements'
2015-05-08 07:18:15.418 | +++ local exitcode=0
2015-05-08 07:18:15.420 | [ERROR] /home/ukinau/devstack/inc/python:142 Can't find package cffi in requirements
2015-05-08 07:18:16.422 | ++ local 'clean_name=[Call Trace]
2015-05-08 07:18:16.422 | ./stack.sh:710:source
2015-05-08 07:18:16.423 | /home/ukinau/devstack/tools/build_wheels.sh:73:pip_install_gr
2015-05-08 07:18:16.423 | /home/ukinau/devstack/inc/python:63:get_from_global_requirements
2015-05-08 07:18:16.423 | /home/ukinau/devstack/inc/python:142:die'
2015-05-08 07:18:16.423 | ++ pip_install '[Call' 'Trace]' ./stack.sh:710:source /home/ukinau/devstack/tools/build_wheels.sh:73:pip_install_gr /home/ukinau/devstack/inc/python:63:get_from_global_requirements /home/ukinau/devstack/inc/python:142:die
2015-05-08 07:18:16.670 | ++ env http_proxy= https_proxy= no_proxy= PIP_FIND_LINKS=file:///opt/stack/.wheelhouse tmp-venv-Wcuq/bin/pip install '[Call' 'Trace]' ./stack.sh:710:source /home/ukinau/devstack/tools/build_wheels.sh:73:pip_install_gr /home/ukinau/devstack/inc/python:63:get_from_global_requirements /home/ukinau/devstack/inc/python:142:die
2015-05-08 07:18:17.193 | Exception:
2015-05-08 07:18:17.193 | Traceback (most recent call last):
2015-05-08 07:18:17.193 | File "/home/ukinau/devstack/tmp-venv-Wcuq/local/lib/python2.7/site-packages/pip/basecommand.py", line 246, in main
2015-05-08 07:18:17.193 | status = self.run(options, args)
2015-05-08 07:18:17.193 | File "/home/ukinau/devstack/tmp-venv-Wcuq/local/lib/python2.7/site-packages/pip/commands/install.py", line 308, in run
2015-05-08 07:18:17.193 | name, None, isolated=options.isolated_mode,
2015-05-08 07:18:17.193 | File "/home/ukinau/devstack/tmp-venv-Wcuq/local/lib/python2.7/site-packages/pip/req/req_install.py", line 220, in from_line
2015-05-08 07:18:17.193 | isolated=isolated)
2015-05-08 07:18:17.193 | File "/home/ukinau/devstack/tmp-venv-Wcuq/local/lib/python2.7/site-packages/pip/req/req_install.py", line 79, in __init__
2015-05-08 07:18:17.193 | req = pkg_resources.Requirement.parse(req)
2015-05-08 07:18:17.193 | File "/home/ukinau/devstack/tmp-venv-Wcuq/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2960, in parse
2015-05-08 07:18:17.193 | reqs = list(parse_requirements(s))
2015-05-08 07:18:17.193 | File "/home/ukinau/devstack/tmp-venv-Wcuq/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2891, in parse_requirements
2015-05-08 07:18:17.193 | raise ValueError("Missing distribution spec", line)
2015-05-08 07:18:17.193 | ValueError: ('Missing distribution spec', '[Call')
------------------------------------------

The reason of above error is to use global-requirements.txt in requirements-project before install one.
So I was warned "/opt/stack/requirements/global-requirements.txt: No such file or directory".

Changed in devstack:
assignee: nobody → Yuki Nishiwaki (uckey-1067)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to devstack (master)

Fix proposed to branch: master
Review: https://review.openstack.org/181312

Changed in devstack:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to devstack (stable/kilo)

Fix proposed to branch: stable/kilo
Review: https://review.openstack.org/181409

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to devstack (master)

Reviewed: https://review.openstack.org/181312
Committed: https://git.openstack.org/cgit/openstack-dev/devstack/commit/?id=0a9d03d5059356a9f494ad331b548cc74d85d75f
Submitter: Jenkins
Branch: master

commit 0a9d03d5059356a9f494ad331b548cc74d85d75f
Author: Yuki Nishiwaki <email address hidden>
Date: Fri May 8 16:29:55 2015 +0900

    Move install_infra before execute build_wheels.sh

    The pip_install_gr function in build_wheels.sh use requirements project.
    So requirements project must exist before execute build_wheels.sh.
    Then we moved install_infra function which install requirements project.

    Change-Id: I8f80ecafff0f7e1942731379b70bccac338ea3b3
    Closes-Bug: 1453012

Changed in devstack:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to devstack (stable/kilo)

Reviewed: https://review.openstack.org/181409
Committed: https://git.openstack.org/cgit/openstack-dev/devstack/commit/?id=60e37120de3b2010182362ec88e41f1d948c159d
Submitter: Jenkins
Branch: stable/kilo

commit 60e37120de3b2010182362ec88e41f1d948c159d
Author: Yuki Nishiwaki <email address hidden>
Date: Fri May 8 16:29:55 2015 +0900

    Move install_infra before execute build_wheels.sh

    The pip_install_gr function in build_wheels.sh use requirements project.
    So requirements project must exist before execute build_wheels.sh.
    Then we moved install_infra function which install requirements project.

    Change-Id: I8f80ecafff0f7e1942731379b70bccac338ea3b3
    Closes-Bug: 1453012

tags: added: in-stable-kilo
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.