Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Cannot start docker-registry at PackStacked CONTROLLER node.

Hello. I'm bumped at error while installing docker-registry to the PackStacked(Icehouse) environment. Though I successfuly installed docker-registry to the vanilla CentOS environment.

here's docker-registry startup log from PackStacked environment.

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/gunicorn/arbiter.py", line 495, in spawn_worker
    worker.init_process()
  File "/usr/lib/python2.6/site-packages/gunicorn/workers/ggevent.py", line 165, in init_process
    super(GeventWorker, self).init_process()
  File "/usr/lib/python2.6/site-packages/gunicorn/workers/base.py", line 106, in init_process
    self.wsgi = self.app.wsgi()
  File "/usr/lib/python2.6/site-packages/gunicorn/app/base.py", line 114, in wsgi
    self.callable = self.load()
  File "/usr/lib/python2.6/site-packages/gunicorn/app/wsgiapp.py", line 62, in load
    return self.load_wsgiapp()
  File "/usr/lib/python2.6/site-packages/gunicorn/app/wsgiapp.py", line 49, in load_wsgiapp
    return util.import_app(self.app_uri)
  File "/usr/lib/python2.6/site-packages/gunicorn/util.py", line 354, in import_app
    __import__(module)
  File "/usr/lib/python2.6/site-packages/docker-registry/wsgi.py", line 11, in <module>
    import registry
  File "/usr/lib/python2.6/site-packages/docker-registry/registry/__init__.py", line 6, in <module>
    from .images import *
  File "/usr/lib/python2.6/site-packages/docker-registry/registry/images.py", line 18, in <module>
    import layers
  File "/usr/lib/python2.6/site-packages/docker-registry/lib/layers.py", line 4, in <module>
    import backports.lzma as lzma
ImportError: No module named lzma

Anybody successfuly installed and booted docker-registry at PackStacked environment?

Thanks for advance.

Cannot start docker-registry at PackStacked CONTROLLER node.

Hello. I'm bumped at error while installing docker-registry to the PackStacked(Icehouse) environment. Though I successfuly installed docker-registry to the vanilla CentOS environment.

here's docker-registry startup log from PackStacked environment.

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/gunicorn/arbiter.py", line 495, in spawn_worker
    worker.init_process()
  File "/usr/lib/python2.6/site-packages/gunicorn/workers/ggevent.py", line 165, in init_process
    super(GeventWorker, self).init_process()
  File "/usr/lib/python2.6/site-packages/gunicorn/workers/base.py", line 106, in init_process
    self.wsgi = self.app.wsgi()
  File "/usr/lib/python2.6/site-packages/gunicorn/app/base.py", line 114, in wsgi
    self.callable = self.load()
  File "/usr/lib/python2.6/site-packages/gunicorn/app/wsgiapp.py", line 62, in load
    return self.load_wsgiapp()
  File "/usr/lib/python2.6/site-packages/gunicorn/app/wsgiapp.py", line 49, in load_wsgiapp
    return util.import_app(self.app_uri)
  File "/usr/lib/python2.6/site-packages/gunicorn/util.py", line 354, in import_app
    __import__(module)
  File "/usr/lib/python2.6/site-packages/docker-registry/wsgi.py", line 11, in <module>
    import registry
  File "/usr/lib/python2.6/site-packages/docker-registry/registry/__init__.py", line 6, in <module>
    from .images import *
  File "/usr/lib/python2.6/site-packages/docker-registry/registry/images.py", line 18, in <module>
    import layers
  File "/usr/lib/python2.6/site-packages/docker-registry/lib/layers.py", line 4, in <module>
    import backports.lzma as lzma
ImportError: No module named lzma

Anybody successfuly installed and booted docker-registry at PackStacked environment?

Thanks for advance.


I investigated this error further and found some clue. (thanks sgordon)
You need python-backports package for docker-registry, but this package from rdo-release repository lacks some files.
I think that's why importing fails.

python-backports.x86_64.1.0-4.el6 from openstack-icehouse (FAILS)

/usr/lib/python2.6/site-packages/backports
/usr/lib/python2.6/site-packages/backports/__init__.py
/usr/lib/python2.6/site-packages/backports/__init__.pyc
/usr/lib/python2.6/site-packages/backports/__init__.pyo

python-backports.x86_64.1.0-3.el6 from EPEL6 (SUCCEEDS)

/usr/lib/python2.6/site-packages/backports
/usr/lib/python2.6/site-packages/backports/__init__.py
/usr/lib/python2.6/site-packages/backports/__init__.pyc
/usr/lib/python2.6/site-packages/backports/__init__.pyo
/usr/lib64/python2.6/site-packages/backports
/usr/lib64/python2.6/site-packages/backports/__init__.py
/usr/lib64/python2.6/site-packages/backports/__init__.pyc
/usr/lib64/python2.6/site-packages/backports/__init__.py

I think docker-registry code tries to look into /usr/lib64/python2.6/site-packages.
Maybe tinkering python-PATH solves it. I'll report result later.