[Openstack] Glance Unit Test failing due to version conflict

Su Zhang westlifezs at gmail.com
Tue Aug 11 21:22:18 UTC 2015


Hello,

I hit an exception while running glance unit test. It worked well
previously (one week ago) and I guess this is because a version conflict
came up recently. Could anyone give me some suggestions regarding the
following issue?

Successfully installed Babel-2.0 Jinja2-2.8 Mako-1.0.1 MarkupSafe-0.23
MySQL-python-1.2.5 Paste-2.0.2 PasteDeploy-1.5.2 PrettyTable-0.7.2
PyYAML-3.11 Pygments-2.0.2 Routes-2.2 SQLAlchemy-0.9.10 Tempita-0.5.2
WSME-0.7.0 WebOb-1.4.1 aioeventlet-0.4 alembic-0.7.7 amqp-1.4.6
anyjson-0.3.3 argparse-1.2.1 cffi-1.1.2 coverage-3.7.1 cryptography-0.9.3
decorator-4.0.2 discover-0.4.0 docutils-0.12 elasticsearch-1.6.0
enum34-1.0.4 eventlet-0.17.4 extras-0.0.3 fixtures-1.3.1 flake8-2.2.4
funcsigs-0.4 functools32-3.2.3.post2 futures-3.0.3 glance-store-0.4.0
greenlet-0.4.7 hacking-0.10.2 httplib2-0.9.1 idna-2.0 ipaddress-1.0.14
iso8601-0.1.10 jsonschema-2.5.1 keystonemiddleware-1.5.2 kombu-3.0.26
linecache2-1.0.0 mccabe-0.2.1 mock-1.3.0 mox3-0.9.0 msgpack-python-0.4.6
netaddr-0.7.15 netifaces-0.10.4 networkx-1.10 ordereddict-1.1
oslo.concurrency-1.8.2 oslo.config-1.9.3 oslo.context-0.2.0 oslo.db-1.7.2
oslo.i18n-1.5.0 oslo.log-1.0.0 oslo.messaging-1.8.3 oslo.middleware-1.0.0
oslo.policy-0.3.2 oslo.serialization-1.4.0 oslo.utils-1.4.0
oslo.vmware-0.11.2 oslosphinx-2.5.0 oslotest-1.5.2 osprofiler-0.3.0
pbr-0.11.0 pep8-1.5.7 posix-ipc-1.0.0 psutil-1.2.1 psycopg2-2.6.1
pyOpenSSL-0.15.1 pyasn1-0.1.8 pycadf-0.8.0 pycparser-2.14 pycrypto-2.6.1
pyflakes-0.8.1 pysendfile-2.0.0 python-cinderclient-1.3.1
python-keystoneclient-1.3.2 python-mimeparse-0.1.4 python-subunit-1.1.0
python-swiftclient-2.4.0 pytz-2015.4 qpid-python-0.26 repoze.lru-0.6
requests-2.7.0 retrying-1.3.3 semantic-version-2.4.2 simplegeneric-0.8.1
simplejson-3.8.0 six-1.9.0 sphinx-1.2.3 sqlalchemy-migrate-0.9.7
sqlparse-0.1.16 stevedore-1.3.0 suds-0.4 taskflow-0.7.1
testrepository-0.0.20 testresources-0.2.7 testscenarios-0.5.0
testtools-1.8.0 traceback2-1.4.0 trollius-2.0 unittest2-1.1.0
urllib3-1.10.4 xattr-0.7.8
warning: no files found matching 'AUTHORS'
warning: no files found matching 'ChangeLog'
warning: no previously-included files matching '*.pyc' found anywhere in
distribution
warning: no files found matching 'ChangeLog'
warning: no files found matching 'builddeb.sh'
warning: no files found matching 'AUTHORS'
warning: no files found matching 'run_tests.py'
warning: no files found matching 'ChangeLog'
ERROR:root:Error parsing
Traceback (most recent call last):
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/pbr/core.py",
line 109, in pbr
    attrs = util.cfg_to_args(path)
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/pbr/util.py",
line 245, in cfg_to_args
    kwargs = setup_cfg_to_setup_kwargs(config)
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/pbr/util.py",
line 364, in setup_cfg_to_setup_kwargs
    cmd = cls(dist)
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/__init__.py",
line 124, in __init__
    _Command.__init__(self,dist)
  File "/usr/lib/python2.7/distutils/cmd.py", line 59, in __init__
    raise TypeError, "dist must be a Distribution instance"
TypeError: dist must be a Distribution instance
Traceback (most recent call last):
  File "setup.py", line 30, in <module>
    pbr=True)
  File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/command/develop.py",
line 32, in run
    self.install_for_development()
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/command/develop.py",
line 132, in install_for_development
    self.process_distribution(None, self.dist, not self.no_deps)
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py",
line 709, in process_distribution
    [requirement], self.local_index, self.easy_install
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/pkg_resources/__init__.py",
line 836, in resolve
    dist = best[req.key] = env.best_match(req, ws, installer)
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/pkg_resources/__init__.py",
line 1081, in best_match
    return self.obtain(req, installer)
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/pkg_resources/__init__.py",
line 1093, in obtain
    return installer(requirement)
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py",
line 629, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py",
line 659, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py",
line 842, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py",
line 1070, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py",
line 1056, in run_setup
    run_setup(setup_script, args)
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/sandbox.py",
line 240, in run_setup
    raise
  File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
    self.gen.throw(type, value, traceback)
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/sandbox.py",
line 193, in setup_context
    yield
  File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
    self.gen.throw(type, value, traceback)
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/sandbox.py",
line 152, in save_modules
    yield saved
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/sandbox.py",
line 126, in __exit__
    self._saved = UnpickleableException.dump(type, exc)
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/sandbox.py",
line 110, in dump
    return cls.dump(cls, cls(repr(exc)))
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/sandbox.py",
line 110, in dump
    return cls.dump(cls, cls(repr(exc)))
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/sandbox.py",
line 110, in dump
    return cls.dump(cls, cls(repr(exc)))
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/sandbox.py",
line 110, in dump
    return cls.dump(cls, cls(repr(exc)))
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/sandbox.py",
line 110, in dump
    return cls.dump(cls, cls(repr(exc)))
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/sandbox.py",
line 110, in dump
    return cls.dump(cls, cls(repr(exc)))
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/sandbox.py",
line 110, in dump
    return cls.dump(cls, cls(repr(exc)))
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/sandbox.py",
line 110, in dump
    return cls.dump(cls, cls(repr(exc)))
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/sandbox.py",
line 110, in dump
    return cls.dump(cls, cls(repr(exc)))
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/sandbox.py",
line 110, in dump
    return cls.dump(cls, cls(repr(exc)))
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/sandbox.py",
line 110, in dump
    return cls.dump(cls, cls(repr(exc)))
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/sandbox.py",
line 110, in dump
    return cls.dump(cls, cls(repr(exc)))
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/sandbox.py",
line 110, in dump
    return cls.dump(cls, cls(repr(exc)))
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/sandbox.py",
line 110, in dump
    return cls.dump(cls, cls(repr(exc)))
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/sandbox.py",
line 110, in dump
    return cls.dump(cls, cls(repr(exc)))
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/sandbox.py",
line 110, in dump
    return cls.dump(cls, cls(repr(exc)))
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/sandbox.py",
line 110, in dump
    return cls.dump(cls, cls(repr(exc)))
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/sandbox.py",
line 110, in dump
    return cls.dump(cls, cls(repr(exc)))
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/sandbox.py",
line 110, in dump
    return cls.dump(cls, cls(repr(exc)))
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/sandbox.py",
line 110, in dump
    return cls.dump(cls, cls(repr(exc)))
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/sandbox.py",
line 110, in dump
    return cls.dump(cls, cls(repr(exc)))
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/sandbox.py",
line 110, in dump
    return cls.dump(cls, cls(repr(exc)))
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/sandbox.py",
line 110, in dump
    return cls.dump(cls, cls(repr(exc)))
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/sandbox.py",
line 110, in dump
    return cls.dump(cls, cls(repr(exc)))
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/sandbox.py",
line 110, in dump
    return cls.dump(cls, cls(repr(exc)))
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/sandbox.py",
line 110, in dump
    return cls.dump(cls, cls(repr(exc)))
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/sandbox.py",
line 110, in dump
    return cls.dump(cls, cls(repr(exc)))
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/sandbox.py",
line 110, in dump
    return cls.dump(cls, cls(repr(exc)))
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/sandbox.py",
line 110, in dump
    return cls.dump(cls, cls(repr(exc)))
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/sandbox.py",
line 110, in dump
    return cls.dump(cls, cls(repr(exc)))
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/sandbox.py",
line 110, in dump
    return cls.dump(cls, cls(repr(exc)))
  File
"/opt/stack/glance/.venv/local/lib/python2.7/site-packages/setuptools/sandbox.py",
line 110, in dump
    return cls.dump(cls, cls(repr(exc)))
MemoryError
Command "/opt/stack/glance/.venv/bin/python setup.py develop" failed.
running develop
running egg_info
writing requirements to glance.egg-info/requires.txt
writing glance.egg-info/PKG-INFO
writing top-level names to glance.egg-info/top_level.txt
writing dependency_links to glance.egg-info/dependency_links.txt
writing entry points to glance.egg-info/entry_points.txt
writing pbr to glance.egg-info/pbr.json
[pbr] Processing SOURCES.txt
[pbr] In git context, generating filelist from git
reading manifest template 'MANIFEST.in'
writing manifest file 'glance.egg-info/SOURCES.txt'
running build_ext
Creating
/opt/stack/glance/.venv/lib/python2.7/site-packages/glance.egg-link (link
to .)
Adding glance 2015.1.0.0rc2 to easy-install.pth file
Installing glance-scrubber script to /opt/stack/glance/.venv/bin
Installing glance-cache-pruner script to /opt/stack/glance/.venv/bin
Installing glance-cache-cleaner script to /opt/stack/glance/.venv/bin
Installing glance-index script to /opt/stack/glance/.venv/bin
Installing glance-api script to /opt/stack/glance/.venv/bin
Installing glance-search script to /opt/stack/glance/.venv/bin
Installing glance-cache-prefetcher script to /opt/stack/glance/.venv/bin
Installing glance-replicator script to /opt/stack/glance/.venv/bin
Installing glance-cache-manage script to /opt/stack/glance/.venv/bin
Installing glance-manage script to /opt/stack/glance/.venv/bin
Installing glance-control script to /opt/stack/glance/.venv/bin
Installing glance-registry script to /opt/stack/glance/.venv/bin

Installed /opt/stack/glance
Processing dependencies for glance==2015.1.0.0rc2
Searching for fixtures<1.3.0,>=0.3.14
Reading https://pypi.python.org/simple/fixtures/
Reading https://launchpad.net/python-fixtures
Best match: fixtures 1.2.0
Downloading
https://pypi.python.org/packages/source/f/fixtures/fixtures-1.2.0.tar.gz#md5=9ab03b218bd1f05906b22ed5e78259cd
Processing fixtures-1.2.0.tar.gz
Writing /tmp/easy_install-fuvXte/fixtures-1.2.0/setup.cfg
Running fixtures-1.2.0/setup.py -q bdist_egg --dist-dir
/tmp/easy_install-fuvXte/fixtures-1.2.0/egg-dist-tmp-2brSYg

su at ubuntu:/opt/stack/glance$


Thanks,


-- 
Su Zhang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20150811/caece218/attachment.html>


More information about the Openstack mailing list