install_rally.sh script fails since commit a6e311c6ca1

Bug #1652917 reported by Antonio Ojea
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Rally
Fix Released
High
Anton Studenov

Bug Description

That patch introduced bindep to install rally, since then the install_rally.sh scrpt is failing in our environments with the following error, it seems that something is failing parsing the required files:

23:20:53 ==> default: In order to install the required software you would need to run as
23:20:53 ==> default: 'root' the following command:
23:20:53 ==> default:
23:20:53 ==> default: apt-get install --yes Neither file .txt nor file other-requirements.txt exist.
23:20:53 ==> default: pip install bindep
23:20:53 ==> default:
23:20:53 ==> default: Requirement already satisfied (use --upgrade to upgrade): bindep in /usr/local/lib/python2.7/dist-packages
23:20:53 ==> default: Requirement already satisfied (use --upgrade to upgrade): pbr!=0.7,<1.0,>=0.6 in /usr/local/lib/python2.7/dist-packages (from bindep)
23:20:53 ==> default: Requirement already satisfied (use --upgrade to upgrade): Parsley in /usr/local/lib/python2.7/dist-packages (from bindep)
23:20:53 ==> default: Requirement already satisfied (use --upgrade to upgrade): pip in /usr/lib/python2.7/dist-packages (from pbr!=0.7,<1.0,>=0.6->bindep)
23:20:53 ==> default: You are using pip version 8.1.1, however version 9.0.1 is available.
23:20:53 ==> default: You should consider upgrading via the 'pip install --upgrade pip' command.
23:20:53 ==> default: Reading package lists...
23:20:53 ==> default: Building dependency tree...
23:20:53 ==> default:
23:20:53 ==> default: Reading state information...
23:20:53 ==> default: E: Unable to locate package Neither
23:20:53 ==> default: E: Unable to locate package nor
23:20:53 ==> default: E: Unable to locate package other-requirements.txt
23:20:53 ==> default: E: Couldn't find any package by glob 'other-requirements.txt'
23:20:53 ==> default: E: Couldn't find any package by regex 'other-requirements.txt'
23:20:53 ==> default: E: Unable to locate package exist.
23:20:53 ==> default: E: Couldn't find any package by glob 'exist.'
23:20:53 ==> default: E: Couldn't find any package by regex 'exist.'
23:20:53 ==> default: install_rally.sh: ERROR: Error while installing Neither file .txt nor file other-requirements.txt exist.

Changed in rally:
status: New → Incomplete
Revision history for this message
Anton Studenov (astudenov) wrote :

Hello A.Ojea,

Please include the following information:
- OS type
- How do you run install_rally.sh and what parameters do you use?
- Do you use sudo or root user to run it?
- Do you use something to parse output of install_rally.sh ? Please share code snippets in this case.

Please use 0.7.0 release as temporary solution: https://github.com/openstack/rally/blob/0.7.0/install_rally.sh

Thanks,
Anton

Revision history for this message
Antonio Ojea (aojea) wrote :

Hi,

you can reproduce it with the following vagrantfile

https://gist.github.com/itsuugo/221b3b1e3c17b7d4db10b15841626595

It's tested in ubuntu 14.04, running as root with

bash install_rally.sh -y -s

Revision history for this message
Antonio Ojea (aojea) wrote :

The problem is because of this code

https://github.com/openstack/rally/blob/master/install_rally.sh#L254-L258

The variable missing is populated with the output of the command bindep -b, that in this case is the message:

"Neither file bindep.txt nor file other-requirements.txt exist."

Because of this, it fails when it try to install the missing packages with the above string.

Sorry for not being able to help more, but I can't understand the logic of the script and send a patch to fix this bug.

Changed in rally:
assignee: nobody → Anton Studenov (astudenov)
status: Incomplete → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to rally (master)

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

Changed in rally:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to rally (master)

Reviewed: https://review.openstack.org/415746
Committed: https://git.openstack.org/cgit/openstack/rally/commit/?id=4b631afa680019a202170f10ac45904bf1e3ffe3
Submitter: Jenkins
Branch: master

commit 4b631afa680019a202170f10ac45904bf1e3ffe3
Author: Anton Studenov <email address hidden>
Date: Fri Dec 30 18:28:42 2016 +0300

    [install] Fix install_rally.sh

    install_rally.sh fails to find bindep.txt if the script
    is downloaded separately.

    This patch moves logic related to bindep to the place where
    rally repo already cloned.

    Closes-Bug: #1652917
    Change-Id: Ia43b25461696f681a2e3b13a13636b95aabafae7

Changed in rally:
status: In Progress → Fix Released
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.