Rally fails to run on systems on which python-virtualenv is not installed

Bug #1678047 reported by Prateek Arora on 2017-03-31
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Rally
Undecided
Prateek Arora

Bug Description

My system does not have python-virtualenv installed and when i run

[stack@localhost rally]$ rally verify create-verifier --type tempest --name tempest-verifier

2017-03-31 08:59:59.079 16899 WARNING rally.common.logging [-] 'decorator' is deprecated in Rally v0.10.0: required_plaform(...) decorator is deprecated in favor of validation.add(name='required_plaform', ...)
2017-03-31 08:59:59.367 16899 INFO rally.api [-] Creating verifier 'tempest-verifier'.
2017-03-31 08:59:59.528 16899 INFO rally.verification.manager [-] Cloning verifier repo from https://git.openstack.org/openstack/tempest.
2017-03-31 09:00:12.227 16899 INFO rally.verification.manager [-] Creating virtual environment. It may take a few minutes.
Command failed, please check log for more info
2017-03-31 09:00:12.364 16899 CRITICAL rally [-] OSError: [Errno 2] No such file or directory
2017-03-31 09:00:12.364 16899 ERROR rally Traceback (most recent call last):
2017-03-31 09:00:12.364 16899 ERROR rally File "/usr/bin/rally", line 10, in <module>
2017-03-31 09:00:12.364 16899 ERROR rally sys.exit(main())
2017-03-31 09:00:12.364 16899 ERROR rally File "/opt/stack/rally/rally/cli/main.py", line 38, in main
2017-03-31 09:00:12.364 16899 ERROR rally return cliutils.run(sys.argv, categories)
2017-03-31 09:00:12.364 16899 ERROR rally File "/opt/stack/rally/rally/cli/cliutils.py", line 660, in run
2017-03-31 09:00:12.364 16899 ERROR rally ret = fn(*fn_args, **fn_kwargs)
2017-03-31 09:00:12.364 16899 ERROR rally File "<decorator-gen-42>", line 2, in create_verifier
2017-03-31 09:00:12.364 16899 ERROR rally File "/opt/stack/rally/rally/plugins/__init__.py", line 43, in ensure_plugins_are_loaded
2017-03-31 09:00:12.364 16899 ERROR rally return f(*args, **kwargs)
2017-03-31 09:00:12.364 16899 ERROR rally File "/opt/stack/rally/rally/cli/commands/verify.py", line 143, in create_verifier
2017-03-31 09:00:12.364 16899 ERROR rally version=version, system_wide=system_wide, extra_settings=extra)
2017-03-31 09:00:12.364 16899 ERROR rally File "/opt/stack/rally/rally/api.py", line 487, in create
2017-03-31 09:00:12.364 16899 ERROR rally verifier.manager.install()
2017-03-31 09:00:12.364 16899 ERROR rally File "/opt/stack/rally/rally/plugins/common/verification/testr.py", line 105, in install
2017-03-31 09:00:12.364 16899 ERROR rally super(TestrLauncher, self).install()
2017-03-31 09:00:12.364 16899 ERROR rally File "/opt/stack/rally/rally/verification/manager.py", line 239, in install
2017-03-31 09:00:12.364 16899 ERROR rally self.install_venv()
2017-03-31 09:00:12.364 16899 ERROR rally File "/opt/stack/rally/rally/verification/manager.py", line 266, in install_venv
2017-03-31 09:00:12.364 16899 ERROR rally "in %s directory." % self.venv_dir)
2017-03-31 09:00:12.364 16899 ERROR rally File "/opt/stack/rally/rally/verification/utils.py", line 53, in check_output
2017-03-31 09:00:12.364 16899 ERROR rally output = subprocess.check_output(*args, **kwargs)
2017-03-31 09:00:12.364 16899 ERROR rally File "/usr/lib64/python2.7/subprocess.py", line 212, in check_output
2017-03-31 09:00:12.364 16899 ERROR rally process = Popen(stdout=PIPE, *popenargs, **kwargs)
2017-03-31 09:00:12.364 16899 ERROR rally File "/usr/lib64/python2.7/subprocess.py", line 390, in __init__
2017-03-31 09:00:12.364 16899 ERROR rally errread, errwrite)
2017-03-31 09:00:12.364 16899 ERROR rally File "/usr/lib64/python2.7/subprocess.py", line 1024, in _execute_child
2017-03-31 09:00:12.364 16899 ERROR rally raise child_exception
2017-03-31 09:00:12.364 16899 ERROR rally OSError: [Errno 2] No such file or directory
2017-03-31 09:00:12.364 16899 ERROR rally

I get an error. I have verified it by installing python-virtualenv on my system and the error is resolved after that.

Prateek Arora (parora) on 2017-03-31
Changed in rally:
assignee: nobody → Prateek Arora (parora)
status: New → In Progress
Juha Kosonen (juha-kosonen) wrote :

Does this happen also when '--system-wide' option is used?

Prateek Arora (parora) wrote :

No that does not happen when --system-wide option is used.

Reviewed: https://review.openstack.org/452137
Committed: https://git.openstack.org/cgit/openstack/rally/commit/?id=93ee5102e839564807dda71d072d07ca820a62e4
Submitter: Jenkins
Branch: master

commit 93ee5102e839564807dda71d072d07ca820a62e4
Author: Prateek Arora <email address hidden>
Date: Fri Mar 31 09:04:30 2017 -0400

    Requirements file missing python-virtualenv

    On systems where python-virtualenv is not installed, rally fails
    to run. As such adding the package to requirements required for
    running rally.

    Change-Id: Ib95331bab90d0926750548704ac4ba7e997d72f1
    Closes-Bug: #1678047

Changed in rally:
status: In Progress → Fix Released

Reviewed: https://review.openstack.org/453685
Committed: https://git.openstack.org/cgit/openstack/rally/commit/?id=f987f0103cf2bf0d214751f9eaf7f819b0c7e5c5
Submitter: Jenkins
Branch: stable/0.9

commit f987f0103cf2bf0d214751f9eaf7f819b0c7e5c5
Author: Prateek Arora <email address hidden>
Date: Fri Mar 31 09:04:30 2017 -0400

    Requirements file missing python-virtualenv

    On systems where python-virtualenv is not installed, rally fails
    to run. As such adding the package to requirements required for
    running rally.

    Change-Id: Ib95331bab90d0926750548704ac4ba7e997d72f1
    Closes-Bug: #1678047
    (cherry picked from commit 93ee5102e839564807dda71d072d07ca820a62e4)

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

Other bug subscribers