DevStack fails to install tempest

Bug #1420480 reported by Sean M. Collins
30
This bug affects 7 people
Affects Status Importance Assigned to Milestone
devstack
Invalid
Undecided
Unassigned

Bug Description

Successfully installed python-subunit-1.0.0 testrepository-0.0.20
+----+---------+-----------+------+-----------+------+-------+-------------+-----------+
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
+----+---------+-----------+------+-----------+------+-------+-------------+-----------+
| 42 | m1.nano | 64 | 0 | 0 | | 1 | 1.0 | True |
+----+---------+-----------+------+-----------+------+-------+-------------+-----------+
+----+----------+-----------+------+-----------+------+-------+-------------+-----------+
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
+----+----------+-----------+------+-----------+------+-------+-------------+-----------+
| 84 | m1.micro | 128 | 0 | 0 | | 1 | 1.0 | True |
+----+----------+-----------+------+-----------+------+-------+-------------+-----------+
venv develop-inst-nodeps: /opt/stack/tempest
ERROR: invocation failed (exit code 1), logfile: /opt/stack/tempest/.tox/venv/log/venv-3.log
ERROR: actionid=venv
msg=developpkg
cmdargs=[local('/opt/stack/tempest/.tox/venv/bin/pip'), 'install', '-U', '--no-deps', '-e', '/opt/stack/tempest']
env={'SSH_CLIENT': '10.0.2.2 54301 22', 'LOGNAME': 'vagrant', 'USER': 'vagrant', 'os_RELEASE': '14.04', 'OS_REGION_NAME': 'RegionOne', 'PATH': '/opt/stack/tempest/.tox/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/local/sbin:/usr/sbin:/sbin', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'SHLVL': '4', 'NEUTRON_TEST_CONFIG_FILE': '/etc/neutron/debug.ini', 'PYTHONHASHSEED': '3507433110', 'os_VENDOR': 'Ubuntu', 'SUDO_USER': 'vagrant', 'HOME': '/home/vagrant', 'DISTRO': 'trusty', 'USERNAME': 'root', 'LC_ALL': 'C', 'XDG_RUNTIME_DIR': '/run/user/1000', 'OS_USERNAME': 'admin', 'OS_AUTH_URL': 'http://192.168.33.2:35357/v2.0', 'SUDO_UID': '1000', 'VIRTUAL_ENV': '/opt/stack/tempest/.tox/venv', 'OS_TENANT_NAME': 'admin', 'OS_PASSWORD': 'secrete', 'XDG_SESSION_ID': '2', '_': '/usr/local/bin/tox', 'SUDO_COMMAND': '/bin/bash -l', 'SUDO_GID': '1000', 'os_UPDATE': '', 'OLDPWD': '/home/vagrant/devstack', 'RECLONE': 'True', 'PWD': '/opt/stack/tempest', 'os_CODENAME': 'trusty', 'OS_TEST_PATH': './tempest/tests', 'MAIL': '/var/mail/vagrant', 'SSH_CONNECTION': '10.0.2.2 54301 10.0.2.15 22', 'os_PACKAGE': 'deb'}
Obtaining file:///opt/stack/tempest
    [pbr] Reusing existing SOURCES.txt
Installing collected packages: tempest
  Running setup.py develop for tempest
    error: can't create or remove files in install directory
    The following error occurred while trying to add or remove files in the
    installation directory:
        [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/test-easy-install-5386.write-test'
    The installation directory you specified (via --install-dir, --prefix, or
    the distutils default setting) was:
        /usr/local/lib/python2.7/dist-packages/
    Perhaps your account does not have write access to this directory? If the
    installation directory is a system-owned directory, you may need to sign in
    as the administrator or "root" account. If you do not have administrative
    access to this machine, you may wish to choose a different installation
    directory, preferably one that is listed in your PYTHONPATH environment
    variable.
    For information on other options, you may wish to consult the
    documentation at:
      https://pythonhosted.org/setuptools/easy_install.html
    Please make the appropriate changes for your system and try again.
    Complete output from command /opt/stack/tempest/.tox/venv/bin/python -c "import setuptools, tokenize; __file__='/opt/stack/tempest/setup.py'; exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" develop --no-deps:
    running develop

    error: can't create or remove files in install directory

    The following error occurred while trying to add or remove files in the

    installation directory:

        [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/test-easy-install-5386.write-test'

    The installation directory you specified (via --install-dir, --prefix, or

    the distutils default setting) was:

        /usr/local/lib/python2.7/dist-packages/

    Perhaps your account does not have write access to this directory? If the

    installation directory is a system-owned directory, you may need to sign in

    as the administrator or "root" account. If you do not have administrative

    access to this machine, you may wish to choose a different installation

    directory, preferably one that is listed in your PYTHONPATH environment

    variable.

    For information on other options, you may wish to consult the

    documentation at:

      https://pythonhosted.org/setuptools/easy_install.html

    Please make the appropriate changes for your system and try again.

    ----------------------------------------
    Command "/opt/stack/tempest/.tox/venv/bin/python -c "import setuptools, tokenize; __file__='/opt/stack/tempest/setup.py'; exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" develop --no-deps" failed with error code 1 in /opt/stack/tempest

___________________________________ summary ____________________________________
ERROR: venv: InvocationError: /opt/stack/tempest/.tox/venv/bin/pip install -U --no-deps -e /opt/stack/tempest (see /opt/stack/tempest/.tox/venv/log/venv-3.log)
Error on exit

Revision history for this message
Sean M. Collins (scollins) wrote :

Reverting https://review.openstack.org/#/c/150928/ appears to resolve the issue

Revision history for this message
alioune (balioune3) wrote :

Hi Sean M. Collins,
Please may I know if you have solved that error ?

Best Regards

Revision history for this message
Reedip (reedip-banerjee-deactivatedaccount) wrote :

Hi Sean,
On a different system , when I tried initiating devstack, I am also getting the same error.
I have not changed the local.conf in any way.
Please let me know the logs which you require for the analysis of the same?

===========================================================
2015-10-08 12:58:12.138 | ++ iniset /opt/stack/tempest/etc/tempest.conf compute fixed_network_name private
2015-10-08 12:58:12.152 | ++ [[ -n '' ]]
2015-10-08 12:58:12.152 | +++ mktemp
2015-10-08 12:58:12.154 | ++ local tmp_cfg_file=/tmp/tmp.B4xOmNyzBs
2015-10-08 12:58:12.154 | ++ cd /opt/stack/tempest
2015-10-08 12:58:12.154 | ++ tox -revenv -- verify-tempest-config -uro /tmp/tmp.B4xOmNyzBs
2015-10-08 12:58:12.402 | venv recreate: /opt/stack/tempest/.tox/venv
2015-10-08 12:58:14.279 | venv installdeps: -r/opt/stack/tempest/requirements.txt, -r/opt/stack/tempest/test-requirements.txt
2015-10-08 12:58:48.512 | venv develop-inst: /opt/stack/tempest
2015-10-08 12:58:54.795 | venv installed: -f file:///opt/stack/.wheelhouse,anyjson==0.3.3,appdirs==1.4.0,Babel==2.1.1,boto==2.38.0,cffi==1.2.1,cliff==1.15.0,cmd2==0.6.8,coverage==4.0,cryptography==1.0.2,debtcollector==0.8.0,docutils==0.12,ecdsa==0.13,enum34==1.0.4,extras==0.0.3,fasteners==0.13.0,fixtures==1.4.0,flake8==2.2.4,funcsigs==0.4,functools32==3.2.3.post2,hacking==0.10.2,httplib2==0.9.2,idna==2.0,ipaddress==1.0.14,iso8601==0.1.10,Jinja2==2.8,jsonschema==2.5.1,keystoneauth1==1.1.0,linecache2==1.0.0,MarkupSafe==0.23,mccabe==0.2.1,mock==1.3.0,monotonic==0.4,mox==0.5.3,mox3==0.11.0,msgpack-python==0.4.6,netaddr==0.7.18,netifaces==0.10.4,os-client-config==1.8.1,os-testr==0.4.2,oslo.concurrency==2.6.0,oslo.config==2.4.0,oslo.context==0.6.0,oslo.i18n==2.6.0,oslo.log==1.11.0,oslo.serialization==1.10.0,oslo.utils==2.5.0,oslosphinx==3.2.0,oslotest==1.11.0,paramiko==1.15.3,pbr==1.8.1,pep8==1.5.7,prettytable==0.7.2,pyasn1==0.1.9,pycparser==2.14,pycrypto==2.6.1,pyflakes==0.8.1,Pygments==2.0.2,pyOpenSSL==0.15.1,pyparsing==2.0.3,python-mimeparse==0.1.4,python-subunit==1.1.0,pytz==2015.6,PyYAML==3.11,requests==2.8.0,retrying==1.3.3,six==1.10.0,Sphinx==1.2.3,stevedore==1.8.0,-e git://git.openstack.org/openstack/tempest.git@25d2fe5e15948aa86a4ec57594ee66181d84d785#egg=tempest-master,tempest-lib==0.9.0,testrepository==0.0.20,testscenarios==0.5.0,testtools==1.8.0,traceback2==1.4.0,unicodecsv==0.14.1,unittest2==1.1.0,wheel==0.24.0,wrapt==1.10.5
2015-10-08 12:58:54.795 | venv runtests: PYTHONHASHSEED='1426421581'
2015-10-08 12:58:54.796 | venv runtests: commands[0] | verify-tempest-config -uro ../../../tmp/tmp.B4xOmNyzBs
2015-10-08 12:58:55.225 | ERROR: InvocationError: '/opt/stack/tempest/.tox/venv/bin/verify-tempest-config -uro ../../../tmp/tmp.B4xOmNyzBs'
2015-10-08 12:58:55.225 | ___________________________________ summary ____________________________________
2015-10-08 12:58:55.225 | ERROR: venv: commands failed
================================================================

Revision history for this message
Reedip (reedip-banerjee-deactivatedaccount) wrote :

Also, I believe this is a similar error. If not then I can log a separate bug for tracking purposes.

Revision history for this message
Robert Fey (feyrob) wrote :

I have the same is with Ubuntu 14.04.3 and 15.10.

git clone https://git.openstack.org/openstack-dev/devstack
# ...
cd devstack
git rev-parse HEAD
# be8ac25f84c96763835584a879a13e52c127a9b5

./stack
# ...
# venv runtests: PYTHONHASHSEED='2260477668'
# venv runtests: commands[0] | verify-tempest-config -uro ../../../tmp/tmp.4c8fLawPb5
# Running config verification...
# Use of: 'verify-tempest-config' is deprecated, please use: 'tempest verify-config'
# ERROR: InvocationError: '/opt/stack/tempest/.tox/venv/bin/verify-tempest-config -uro ../../../tmp/tmp.4c8fLawPb5'
# _________________________________________________________________________________________________________ summary __________________________________________________________________________________________________________
# ERROR: venv: commands failed
# + exit_trap
# + local r=1
# ++ jobs -p
# + jobs=
# + [[ -n '' ]]
# + kill_spinner
# + '[' '!' -z '' ']'
# + [[ 1 -ne 0 ]]
# + echo 'Error on exit'
# Error on exit
# + [[ -z /opt/stack/logs ]]
# + /opt/stack/devstack/tools/worlddump.py -d /opt/stack/logs
# World dumping... see /opt/stack/logs/worlddump-2016-01-22-160306.txt for details
# + exit 1

Revision history for this message
Sean Dague (sdague) wrote :

This devstack bug was last updated over 180 days ago, as devstack
is a fast moving project and we'd like to get the tracker down to
currently actionable bugs, this is getting marked as Invalid. If the
issue still exists, please feel free to reopen it.

Changed in devstack:
status: New → Invalid
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.