Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Error during Kilo installation: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-L_8SF4/positional

Am trying to install devstack kilo branch on ubuntu 14.04. I am running ubuntu 14.04 from live usb.

I get the following error. After each failure I have tried a couple of things and then run unstack.sh and clean.sh and tried to reinstall. But nothing works. Please help.

.
.
.
.
ip install --upgrade 'keystonemiddleware>=4.2.0,!=4.5.0'
2016-10-11 10:53:33.956 | Collecting keystonemiddleware!=4.5.0,>=4.2.0
2016-10-11 10:53:34.405 | /usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
2016-10-11 10:53:34.405 |   InsecurePlatformWarning
2016-10-11 10:53:35.020 |   Using cached keystonemiddleware-4.10.0-py2.py3-none-any.whl
2016-10-11 10:53:35.044 | Collecting WebOb>=1.2.3 (from keystonemiddleware!=4.5.0,>=4.2.0)
2016-10-11 10:53:35.116 |   Using cached WebOb-1.6.1-py2.py3-none-any.whl
2016-10-11 10:53:35.134 | Collecting oslo.context>=2.9.0 (from keystonemiddleware!=4.5.0,>=4.2.0)
2016-10-11 10:53:35.169 |   Using cached oslo.context-2.9.0-py2.py3-none-any.whl
2016-10-11 10:53:35.188 | Collecting oslo.i18n>=2.1.0 (from keystonemiddleware!=4.5.0,>=4.2.0)
2016-10-11 10:53:35.239 |   Using cached oslo.i18n-3.9.0-py2.py3-none-any.whl
2016-10-11 10:53:35.257 | Collecting oslo.serialization>=1.10.0 (from keystonemiddleware!=4.5.0,>=4.2.0)
2016-10-11 10:53:35.300 |   Using cached oslo.serialization-2.13.0-py2.py3-none-any.whl
2016-10-11 10:53:35.318 | Collecting positional>=1.1.1 (from keystonemiddleware!=4.5.0,>=4.2.0)
2016-10-11 10:53:35.345 |   Using cached positional-1.1.1.tar.gz
2016-10-11 10:53:36.122 |     Complete output from command python setup.py egg_info:
2016-10-11 10:53:36.122 |     install_dir .
2016-10-11 10:53:36.122 |     Traceback (most recent call last):
2016-10-11 10:53:36.122 |       File "<string>", line 20, in <module>
2016-10-11 10:53:36.122 |       File "/tmp/pip-build-L_8SF4/positional/setup.py", line 26, in <module>
2016-10-11 10:53:36.122 |         pbr=True)
2016-10-11 10:53:36.122 |       File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
2016-10-11 10:53:36.122 |         _setup_distribution = dist = klass(attrs)
2016-10-11 10:53:36.122 |       File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.14-py2.7.egg/setuptools/dist.py", line 221, in __init__
2016-10-11 10:53:36.122 |         self.fetch_build_eggs(attrs.pop('setup_requires'))
2016-10-11 10:53:36.122 |       File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.14-py2.7.egg/setuptools/dist.py", line 245, in fetch_build_eggs
2016-10-11 10:53:36.122 |         parse_requirements(requires), installer=self.fetch_build_egg
2016-10-11 10:53:36.122 |       File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.14-py2.7.egg/pkg_resources.py", line 544, in resolve
2016-10-11 10:53:36.122 |         dist = best[req.key] = env.best_match(req, self, installer)
2016-10-11 10:53:36.122 |       File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.14-py2.7.egg/pkg_resources.py", line 786, in best_match
2016-10-11 10:53:36.122 |         return self.obtain(req, installer) # try and download/install
2016-10-11 10:53:36.122 |       File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.14-py2.7.egg/pkg_resources.py", line 798, in obtain
2016-10-11 10:53:36.122 |         return installer(requirement)
2016-10-11 10:53:36.122 |       File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.14-py2.7.egg/setuptools/dist.py", line 293, in fetch_build_egg
2016-10-11 10:53:36.122 |         return cmd.easy_install(req)
2016-10-11 10:53:36.122 |       File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.14-py2.7.egg/setuptools/command/easy_install.py", line 582, in easy_install
2016-10-11 10:53:36.122 |         return self.install_item(spec, dist.location, tmpdir, deps)
2016-10-11 10:53:36.122 |       File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.14-py2.7.egg/setuptools/command/easy_install.py", line 612, in install_item
2016-10-11 10:53:36.122 |         dists = self.install_eggs(spec, download, tmpdir)
2016-10-11 10:53:36.122 |       File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.14-py2.7.egg/setuptools/command/easy_install.py", line 802, in install_eggs
2016-10-11 10:53:36.123 |         return self.build_and_install(setup_script, setup_base)
2016-10-11 10:53:36.123 |       File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.14-py2.7.egg/setuptools/command/easy_install.py", line 1079, in build_and_install
2016-10-11 10:53:36.123 |         self.run_setup(setup_script, setup_base, args)
2016-10-11 10:53:36.123 |       File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.14-py2.7.egg/setuptools/command/easy_install.py", line 1068, in run_setup
2016-10-11 10:53:36.123 |         run_setup(setup_script, args)
2016-10-11 10:53:36.123 |       File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.14-py2.7.egg/setuptools/sandbox.py", line 29, in run_setup
2016-10-11 10:53:36.123 |         lambda: execfile(
2016-10-11 10:53:36.123 |       File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.14-py2.7.egg/setuptools/sandbox.py", line 70, in run
2016-10-11 10:53:36.123 |         return func()
2016-10-11 10:53:36.123 |       File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.14-py2.7.egg/setuptools/sandbox.py", line 31, in <lambda>
2016-10-11 10:53:36.123 |         {'__file__':setup_script, '__name__':'__main__'}
2016-10-11 10:53:36.123 |       File "setup.py", line 22, in <module>
2016-10-11 10:53:36.123 |         pass
2016-10-11 10:53:36.123 |       File "/tmp/easy_install-GYqmX6/pbr-1.10.0/pbr/util.py", line 264, in cfg_to_args
2016-10-11 10:53:36.123 |       File "/tmp/easy_install-GYqmX6/pbr-1.10.0/pbr/util.py", line 573, in wrap_commands
2016-10-11 10:53:36.123 |       File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.14-py2.7.egg/pkg_resources.py", line 1954, in load
2016-10-11 10:53:36.123 |         entry = __import__(self.module_name, globals(),globals(), ['__name__'])
2016-10-11 10:53:36.123 |       File "/usr/local/lib/python2.7/dist-packages/testrepository/setuptools_command.py", line 33, in <module>
2016-10-11 10:53:36.123 |         from testrepository import commands
2016-10-11 10:53:36.123 |       File "/usr/local/lib/python2.7/dist-packages/testrepository/commands/__init__.py", line 40, in <module>
2016-10-11 10:53:36.123 |         import subunit
2016-10-11 10:53:36.123 |       File "/usr/local/lib/python2.7/dist-packages/subunit/__init__.py", line 130, in <module>
2016-10-11 10:53:36.123 |         from testtools import content, content_type, ExtendedToOriginalDecorator
2016-10-11 10:53:36.123 |       File "/usr/local/lib/python2.7/dist-packages/testtools/__init__.py", line 128, in <module>
2016-10-11 10:53:36.123 |         __version__ = _version.semantic_version().version_tuple()
2016-10-11 10:53:36.123 |       File "/tmp/easy_install-GYqmX6/pbr-1.10.0/pbr/version.py", line 460, in semantic_version
2016-10-11 10:53:36.123 |       File "/tmp/easy_install-GYqmX6/pbr-1.10.0/pbr/version.py", line 447, in _get_version_from_pkg_resources
2016-10-11 10:53:36.123 |       File "/tmp/easy_install-GYqmX6/pbr-1.10.0/pbr/packaging.py", line 725, in get_version
2016-10-11 10:53:36.123 |     Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. Are you sure that git is installed?
2016-10-11 10:53:36.123 |     
2016-10-11 10:53:36.123 |     ----------------------------------------
2016-10-11 10:53:36.125 | Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-L_8SF4/positional
2016-10-11 10:53:36.282 | You are using pip version 7.1.2, however version 8.1.2 is available.
2016-10-11 10:53:36.282 | You should consider upgrading via the 'pip install --upgrade pip' command.
2016-10-11 10:53:36.299 | + exit_trap
2016-10-11 10:53:36.299 | + local r=1
2016-10-11 10:53:36.300 | ++ jobs -p
2016-10-11 10:53:36.300 | + jobs=
2016-10-11 10:53:36.300 | + [[ -n '' ]]
2016-10-11 10:53:36.300 | + kill_spinner
2016-10-11 10:53:36.300 | + '[' '!' -z '' ']'
2016-10-11 10:53:36.300 | + [[ 1 -ne 0 ]]
2016-10-11 10:53:36.300 | + echo 'Error on exit'
2016-10-11 10:53:36.300 | Error on exit
2016-10-11 10:53:36.300 | + generate-subunit 1476183137 79 fail
2016-10-11 10:53:36.949 | Traceback (most recent call last):
2016-10-11 10:53:36.949 |   File "/usr/local/bin/generate-subunit", line 7, in <module>
2016-10-11 10:53:36.949 |     from os_testr.generate_subunit import main
2016-10-11 10:53:36.949 |   File "/usr/local/lib/python2.7/dist-packages/os_testr/generate_subunit.py", line 21, in <module>
2016-10-11 10:53:36.950 |     import subunit
2016-10-11 10:53:36.950 |   File "/usr/local/lib/python2.7/dist-packages/subunit/__init__.py", line 130, in <module>
2016-10-11 10:53:36.950 |     from testtools import content, content_type, ExtendedToOriginalDecorator
2016-10-11 10:53:36.950 | ImportError: cannot import name content

I have upgrade pip to 8.1.2 but it seems from logs that installation procedure downgrades pip to 7.1.2 again, and then strangely enough complains about the version it installed.

.
.
.
Using cached pip-7.1.2-py2.py3-none-any.whl
2016-10-11 10:52:29.141 | Installing collected packages: pip
2016-10-11 10:52:29.141 |   Found existing installation: pip 8.1.2
2016-10-11 10:52:29.170 |     Uninstalling pip-8.1.2:
2016-10-11 10:52:29.547 |       Successfully uninstalled pip-8.1.2
2016-10-11 10:52:30.078 | Successfully installed pip-7.1.2
2016-10-11 10:52:30.252 | You are using pip version 7.1.2, however version 8.1.2 is available.
2016-10-11 10:52:30.252 | You should consider upgrading via the 'pip install --upgrade pip' command.
2016-10-11 10:52:30.271 | + [[ -n '' ]]
2016-10-11 10:52:30.271 | + pip_install -U setuptools
2016-10-11 10:52:30.424 | + sudo -H http_proxy= https_proxy= no_proxy= PIP_FIND_LINKS=file:///opt/stack/.wheelhouse /usr/local/bin/pip install --upgrade -U setuptools
2016-10-11 10:52:30.750 | /usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
2016-10-11 10:52:30.750 |   InsecurePlatformWarning
2016-10-11 10:52:31.123 | Requirement already up-to-date: setuptools in /usr/local/lib/python2.7/dist-packages
2016-10-11 10:52:34.486 | You are using pip version 7.1.2, however version 8.1.2 is available.
2016-10-11 10:52:34.486 | You should consider upgrading via the 'pip install --upgrade pip' command.
2016-10-11 10:52:34.506 | + local 'test_req=-U setuptools/test-requirements.txt'

And here are the contents of my local.conf file I use

[[local|localrc]]
ADMIN_PASSWORD=secret
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
SERVICE_TOKEN=secret
RECLONE=no

# public interface eth0 will be added to ovs br-ex. eth0 loses its ip, br-ex gets the ip.
# if the process is not finished correctly, host is left ssh unconnectable.
PUBLIC_INTERFACE=eth0

FLAT_INTERFACE=eth0
FIXED_RANGE=192.168.120.0/24
NETWORK_GATEWAY=192.168.120.1
FLOATING_RANGE=10.12.181.224/27
PUBLIC_NETWORK_GATEWAY=150.132.106.91
HOST_IP=150.132.106.91

# misc
API_RATE_LIMIT=False
LIBS_FROM_GIT=python-openstackclient

# log
DEBUG=True
VERBOSE=True
DEST=/opt/stack
LOGFILE=$DEST/logs/stack.sh.log
SCREEN_LOGDIR=$DEST/logs/screen

SYSLOG=False
LOG_COLOR=False
LOGDAYS=7

# If don't set ENABLED_SERVICES, devstack will install its default set of services
ENABLED_SERVICES=key,dstat,rabbit,mysql,tempest

# keystone
KEYSTONE_CATALOG_BACKEND=sql

# enable ceph
enable_service ceph
CEPH_LOOPBACK_DISK_SIZE=10G
CEPH_CONF=/etc/ceph/ceph.conf
CEPH_REPLICAS=3
GLANCE_CEPH_USER=glance
GLANCE_CEPH_POOL=glance
CINDER_DRIVER=ceph
CINDER_CEPH_USER=cinder
CINDER_CEPH_POOL=cinder
CINDER_CEPH_UUID=65B06887-B0EA-427F-B8BD-829AC2E18FF6
CINDER_BAK_CEPH_POOL=cinder_bak
CINDER_BAK_CEPH_USER=cind_bak
CINDER_ENABLED_BACKENDS=ceph,lvm
NOVA_CEPH_POOL=nova

# adjust scheduler to balance VMs (followed devstack official doc, but nova doesn't actually have this SimpleScheduler)
#SCHEDULER=nova.scheduler.simple.SimpleScheduler

# enable nova
enable_service n-api
enable_service n-sch
enable_service n-cond
enable_service n-api-meta
enable_service n-novnc
enable_service n-crt
enable_service n-net
enable_service n-cauth

# enable glance
enable_service g-api
enable_service g-reg

# enable swift (I find no way to just install s-proxy on controller node)
enable_service swift3
enable_service s-proxy s-object s-container s-account
SWIFT_HASH=E75834B828A54832B8AF2294FD8F5C5D
SWIFT_REPLICAS=3
SWIFT_DATA_DIR=$DEST/data/swift

# cinder
enable_service c-api
enable_service c-sch
enable_service c-bak

VOLUME_GROUP="stack-volumes"
VOLUME_NAME_PREFIX="volume-"
VOLUME_BACKING_FILE_SIZE=10250M

# enable neutron
enable_service q-svc

# VLAN configuration
Q_PLUGIN=ml2
ENABLE_TENANT_VLANS=True

# GRE tunnel configuration
Q_PLUGIN=ml2
ENABLE_TENANT_TUNNELS=True

# VXLAN tunnel configuration
Q_PLUGIN=ml2
Q_ML2_TENANT_NETWORK_TYPE=vxlan

# enable ceilometer
enable_service ceilometer-acentral
enable_service ceilometer-collector
enable_service ceilometer-alarm-singleton
enable_service ceilometer-alarm-notifier
enable_service ceilometer-alarm-evaluator
enable_service ceilometer-api
CEILOMETER_BACKEND=mongodb

# enable heat
enable_service heat
enable_service h-api
enable_service h-api-cfn
enable_service h-api-cw
enable_service h-eng

# enable horizon
enable_service horizon