[openstack-dev] [Neutron][LBaaS] Trouble with Devstack

Trevor Vardeman trevor.vardeman at RACKSPACE.COM
Tue Jun 24 17:32:57 UTC 2014


I'm running Ubuntu 14.04, and rather suddenly I'm unable to run "./stack.sh" successfully.  Brandon, who is also running Ubuntu 14.04, is seeing no issues here.  However, all the same, I'm at a loss as to understand what the problem is.  At the bottom of my text is the terminal output from running "./stack.sh"

It should be noted, I don't use a python virtual environment.  My reasoning is simple: I have a specific partition set up to use devstack, and only devstack.  I don't think its necessary to use a VE mostly because I would find it weird to handle dependencies in an isolated environment rather than the host environment I've already dedicated to the project in the first place.  Not sure any of you will agree with me, and I'd only really entertain the idea of said VE if its the only solution to my problem.  I've installed "python-pip" as the latest version, 1.5.6.  When running "./stack.sh" it will uninstall the latest version and try using pip 1.4.1, to no avail, and where it would try to install 1.4.1 escapes me, according to the following output.  If I manually install 1.4.1 and add files to the appropriate location for its use according to "./stack.sh" it still uninstalls the installed packages, and then fails, under what appeared to me to be the same output and failure as the following.  If anyone can help me sort this out, I'd be very appreciative.  Please feel free to message me on IRC (handle TrevorV) if you have a suggestion or are confused about anything I've done/tried.

<Terminal>
Using mysql database backend
2014-06-24 17:16:32.095 | + echo_summary 'Installing package prerequisites'
2014-06-24 17:16:32.095 | + [[ -t 3 ]]
2014-06-24 17:16:32.095 | + [[ True != \T\r\u\e ]]
2014-06-24 17:16:32.095 | + echo -e Installing package prerequisites
2014-06-24 17:16:32.095 | + source /home/stack/workspace/devstack/tools/install_prereqs.sh
2014-06-24 17:16:32.095 | ++ [[ -n '' ]]
2014-06-24 17:16:32.095 | ++ [[ -z /home/stack/workspace/devstack ]]
2014-06-24 17:16:32.095 | ++ PREREQ_RERUN_MARKER=/home/stack/workspace/devstack/.prereqs
2014-06-24 17:16:32.095 | ++ PREREQ_RERUN_HOURS=2
2014-06-24 17:16:32.095 | ++ PREREQ_RERUN_SECONDS=7200
2014-06-24 17:16:32.096 | +++ date +%s
2014-06-24 17:16:32.096 | ++ NOW=1403630192
2014-06-24 17:16:32.096 | +++ head -1 /home/stack/workspace/devstack/.prereqs
2014-06-24 17:16:32.096 | ++ LAST_RUN=1403628907
2014-06-24 17:16:32.096 | ++ DELTA=1285
2014-06-24 17:16:32.096 | ++ [[ 1285 -lt 7200 ]]
2014-06-24 17:16:32.096 | ++ [[ -z '' ]]
2014-06-24 17:16:32.096 | ++ echo 'Re-run time has not expired (5915 seconds remaining) '
2014-06-24 17:16:32.096 | Re-run time has not expired (5915 seconds remaining)
2014-06-24 17:16:32.096 | ++ echo 'and FORCE_PREREQ not set; exiting...'
2014-06-24 17:16:32.096 | and FORCE_PREREQ not set; exiting...
2014-06-24 17:16:32.096 | ++ return 0
2014-06-24 17:16:32.096 | + [[ False != \T\r\u\e ]]
2014-06-24 17:16:32.096 | + /home/stack/workspace/devstack/tools/install_pip.sh
2014-06-24 17:16:32.096 | +++ dirname /home/stack/workspace/devstack/tools/install_pip.sh
2014-06-24 17:16:32.096 | ++ cd /home/stack/workspace/devstack/tools
2014-06-24 17:16:32.096 | ++ pwd
2014-06-24 17:16:32.096 | + TOOLS_DIR=/home/stack/workspace/devstack/tools
2014-06-24 17:16:32.096 | ++ cd /home/stack/workspace/devstack/tools/..
2014-06-24 17:16:32.096 | ++ pwd
2014-06-24 17:16:32.096 | + TOP_DIR=/home/stack/workspace/devstack
2014-06-24 17:16:32.096 | + cd /home/stack/workspace/devstack
2014-06-24 17:16:32.096 | + source /home/stack/workspace/devstack/functions
2014-06-24 17:16:32.096 | ++++ dirname /home/stack/workspace/devstack/functions
2014-06-24 17:16:32.096 | +++ cd /home/stack/workspace/devstack
2014-06-24 17:16:32.096 | +++ pwd
2014-06-24 17:16:32.096 | ++ FUNC_DIR=/home/stack/workspace/devstack
2014-06-24 17:16:32.096 | ++ source /home/stack/workspace/devstack/functions-common
2014-06-24 17:16:32.105 | + FILES=/home/stack/workspace/devstack/files
2014-06-24 17:16:32.105 | + PIP_GET_PIP_URL=https://bootstrap.pypa.io/get-pip.py
2014-06-24 17:16:32.106 | ++ basename https://bootstrap.pypa.io/get-pip.py
2014-06-24 17:16:32.107 | + LOCAL_PIP=/home/stack/workspace/devstack/files/get-pip.py
2014-06-24 17:16:32.107 | + GetDistro
2014-06-24 17:16:32.107 | + GetOSVersion
2014-06-24 17:16:32.108 | ++ which sw_vers
2014-06-24 17:16:32.111 | + [[ -x '' ]]
2014-06-24 17:16:32.111 | ++ which lsb_release
2014-06-24 17:16:32.114 | + [[ -x /usr/bin/lsb_release ]]
2014-06-24 17:16:32.115 | ++ lsb_release -i -s
2014-06-24 17:16:32.160 | + os_VENDOR=Ubuntu
2014-06-24 17:16:32.161 | ++ lsb_release -r -s
2014-06-24 17:16:32.209 | + os_RELEASE=14.04
2014-06-24 17:16:32.209 | + os_UPDATE=
2014-06-24 17:16:32.209 | + os_PACKAGE=rpm
2014-06-24 17:16:32.209 | + [[ Debian,Ubuntu,LinuxMint =~ Ubuntu ]]
2014-06-24 17:16:32.209 | + os_PACKAGE=deb
2014-06-24 17:16:32.210 | ++ lsb_release -c -s
2014-06-24 17:16:32.262 | + os_CODENAME=trusty
2014-06-24 17:16:32.262 | + export os_VENDOR os_RELEASE os_UPDATE os_PACKAGE os_CODENAME
2014-06-24 17:16:32.262 | + [[ Ubuntu =~ (Ubuntu) ]]
2014-06-24 17:16:32.262 | + DISTRO=trusty
2014-06-24 17:16:32.262 | + export DISTRO
2014-06-24 17:16:32.262 | + echo 'Distro: trusty'
2014-06-24 17:16:32.262 | Distro: trusty
2014-06-24 17:16:32.262 | + get_versions
2014-06-24 17:16:32.262 | ++ which pip
2014-06-24 17:16:32.264 | + PIP=/usr/local/bin/pip
2014-06-24 17:16:32.265 | + [[ -n /usr/local/bin/pip ]]
2014-06-24 17:16:32.265 | ++ awk '{ print $2}'
2014-06-24 17:16:32.266 | ++ /usr/local/bin/pip --version
2014-06-24 17:16:32.336 | Traceback (most recent call last):
2014-06-24 17:16:32.336 |   File "/usr/local/bin/pip", line 5, in <module>
2014-06-24 17:16:32.336 |     from pkg_resources import load_entry_point
2014-06-24 17:16:32.336 |   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2749, in <module>
2014-06-24 17:16:32.336 |     working_set = WorkingSet._build_master()
2014-06-24 17:16:32.337 |   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 446, in _build_master
2014-06-24 17:16:32.337 |     return cls._build_from_requirements(__requires__)
2014-06-24 17:16:32.337 |   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 459, in _build_from_requirements
2014-06-24 17:16:32.337 |     dists = ws.resolve(reqs, Environment())
2014-06-24 17:16:32.337 |   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 628, in resolve
2014-06-24 17:16:32.337 |     raise DistributionNotFound(req)
2014-06-24 17:16:32.337 | pkg_resources.DistributionNotFound: pip==1.4.1
2014-06-24 17:16:32.341 | + PIP_VERSION=
2014-06-24 17:16:32.341 | + echo 'pip: '
2014-06-24 17:16:32.341 | pip:
2014-06-24 17:16:32.341 | + echo '\n\nTrying to install get_pip.py\n\n'
2014-06-24 17:16:32.341 | \n\nTrying to install get_pip.py\n\n
2014-06-24 17:16:32.341 | + uninstall_package python-pip
2014-06-24 17:16:32.341 | + is_ubuntu
2014-06-24 17:16:32.341 | + [[ -z deb ]]
2014-06-24 17:16:32.341 | + '[' deb = deb ']'
2014-06-24 17:16:32.341 | + apt_get purge python-pip
2014-06-24 17:16:32.349 | + sudo DEBIAN_FRONTEND=noninteractive http_proxy= https_proxy= no_proxy= apt-get --option Dpkg::Options::=--force-confold --assume-yes purge python-pip
2014-06-24 17:16:32.388 | Reading package lists...
2014-06-24 17:16:32.650 | Building dependency tree...
2014-06-24 17:16:32.653 | Reading state information...
2014-06-24 17:16:32.856 | Package 'python-pip' is not installed, so not removed
2014-06-24 17:16:32.856 | The following packages were automatically installed and are no longer required:
2014-06-24 17:16:32.856 |   python-colorama python-distlib python-html5lib
2014-06-24 17:16:32.857 | Use 'apt-get autoremove' to remove them.
2014-06-24 17:16:32.910 | 0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
2014-06-24 17:16:32.912 | + install_get_pip
2014-06-24 17:16:32.912 | + [[ ! -r /home/stack/workspace/devstack/files/get-pip.py ]]
2014-06-24 17:16:32.912 | + sudo -E python /home/stack/workspace/devstack/files/get-pip.py
2014-06-24 17:16:33.594 | Requirement already up-to-date: pip in /usr/local/lib/python2.7/dist-packages
2014-06-24 17:16:33.594 | Cleaning up...
2014-06-24 17:16:33.617 | + pip_install -U setuptools
2014-06-24 17:16:33.627 | + sudo PIP_DOWNLOAD_CACHE=/var/cache/pip http_proxy= https_proxy= no_proxy= /usr/local/bin/pip install --build=/tmp/pip-build.LbkRO -U setuptools
2014-06-24 17:16:33.709 | Traceback (most recent call last):
2014-06-24 17:16:33.709 |   File "/usr/local/bin/pip", line 5, in <module>
2014-06-24 17:16:33.709 |     from pkg_resources import load_entry_point
2014-06-24 17:16:33.710 |   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2749, in <module>
2014-06-24 17:16:33.710 |     working_set = WorkingSet._build_master()
2014-06-24 17:16:33.710 |   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 446, in _build_master
2014-06-24 17:16:33.710 |     return cls._build_from_requirements(__requires__)
2014-06-24 17:16:33.710 |   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 459, in _build_from_requirements
2014-06-24 17:16:33.710 |     dists = ws.resolve(reqs, Environment())
2014-06-24 17:16:33.710 |   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 628, in resolve
2014-06-24 17:16:33.710 |     raise DistributionNotFound(req)
2014-06-24 17:16:33.710 | pkg_resources.DistributionNotFound: pip==1.4.1
2014-06-24 17:16:33.716 | ++ err_trap
2014-06-24 17:16:33.716 | ++ local r=1
2014-06-24 17:16:33.716 | stack.sh failed: full log in /opt/stack/logs/stack.sh.log.2014-06-24-121632
2014-06-24 17:16:33.718 | Error on exit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140624/0c128338/attachment.html>


More information about the OpenStack-dev mailing list