← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1206326] Re: glance-api start failed and raise UnicodeEncodeError

 

this has been fixed at some point of time.

** Changed in: glance
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1206326

Title:
  glance-api start failed and raise UnicodeEncodeError

Status in OpenStack Image Registry and Delivery Service (Glance):
  Fix Released

Bug description:
  glance-api.conf is default
  system locale: LANG=zh_CN.UTF-8

  step:
  1、clone source code from github:  git clone https://github.com/openstack/glance
  2、install venv: python tools/install_venv.py
  3、active venv:  source .venv/bin/active
  4、start glance-api:  glance-api  --config-file ./etc/glance-api.conf --debug

  glance-api start failed and output  "CRITICAL glance [-] 'ascii' codec
  can't encode characters in position 0-7: ordinal not in range(128)"

  detail output:

  2013-07-30 09:58:17.983 4321 DEBUG glance.store [-] Attempting to import store glance.store.filesystem.Store _get_store_class /home/developer/code/gitcode/openstack/glance/.venv/local/lib/python2.7/site-packages/glance-2013.2.a32.g0484ca2-py2.7.egg/glance/store/__init__.py:144
  2013-07-30 09:58:18.013 4321 DEBUG glance.store [-] Registering store <class 'glance.store.filesystem.Store'> with schemes ('file', 'filesystem') create_stores /home/developer/code/gitcode/openstack/glance/.venv/local/lib/python2.7/site-packages/glance-2013.2.a32.g0484ca2-py2.7.egg/glance/store/__init__.py:174
  2013-07-30 09:58:18.013 4321 DEBUG glance.store.base [-] Late loading location class glance.store.filesystem.StoreLocation get_store_location_class /home/developer/code/gitcode/openstack/glance/.venv/local/lib/python2.7/site-packages/glance-2013.2.a32.g0484ca2-py2.7.egg/glance/store/base.py:68
  2013-07-30 09:58:18.013 4321 DEBUG glance.store.location [-] Registering scheme file with {'store_class': <class 'glance.store.filesystem.Store'>, 'location_class': <class 'glance.store.filesystem.StoreLocation'>} register_scheme_map /home/developer/code/gitcode/openstack/glance/.venv/local/lib/python2.7/site-packages/glance-2013.2.a32.g0484ca2-py2.7.egg/glance/store/location.py:86
  2013-07-30 09:58:18.013 4321 DEBUG glance.store.location [-] Registering scheme filesystem with {'store_class': <class 'glance.store.filesystem.Store'>, 'location_class': <class 'glance.store.filesystem.StoreLocation'>} register_scheme_map /home/developer/code/gitcode/openstack/glance/.venv/local/lib/python2.7/site-packages/glance-2013.2.a32.g0484ca2-py2.7.egg/glance/store/location.py:86
  2013-07-30 09:58:18.013 4321 DEBUG glance.store [-] Attempting to import store glance.store.http.Store _get_store_class /home/developer/code/gitcode/openstack/glance/.venv/local/lib/python2.7/site-packages/glance-2013.2.a32.g0484ca2-py2.7.egg/glance/store/__init__.py:144
  2013-07-30 09:58:18.014 4321 DEBUG glance.store [-] Registering store <class 'glance.store.http.Store'> with schemes ('http', 'https') create_stores /home/developer/code/gitcode/openstack/glance/.venv/local/lib/python2.7/site-packages/glance-2013.2.a32.g0484ca2-py2.7.egg/glance/store/__init__.py:174
  2013-07-30 09:58:18.015 4321 DEBUG glance.store.base [-] Late loading location class glance.store.http.StoreLocation get_store_location_class /home/developer/code/gitcode/openstack/glance/.venv/local/lib/python2.7/site-packages/glance-2013.2.a32.g0484ca2-py2.7.egg/glance/store/base.py:68
  2013-07-30 09:58:18.015 4321 DEBUG glance.store.location [-] Registering scheme http with {'store_class': <class 'glance.store.http.Store'>, 'location_class': <class 'glance.store.http.StoreLocation'>} register_scheme_map /home/developer/code/gitcode/openstack/glance/.venv/local/lib/python2.7/site-packages/glance-2013.2.a32.g0484ca2-py2.7.egg/glance/store/location.py:86
  2013-07-30 09:58:18.015 4321 DEBUG glance.store.location [-] Registering scheme https with {'store_class': <class 'glance.store.http.Store'>, 'location_class': <class 'glance.store.http.StoreLocation'>} register_scheme_map /home/developer/code/gitcode/openstack/glance/.venv/local/lib/python2.7/site-packages/glance-2013.2.a32.g0484ca2-py2.7.egg/glance/store/location.py:86
  2013-07-30 09:58:18.015 4321 DEBUG glance.store [-] Attempting to import store glance.store.rbd.Store _get_store_class /home/developer/code/gitcode/openstack/glance/.venv/local/lib/python2.7/site-packages/glance-2013.2.a32.g0484ca2-py2.7.egg/glance/store/__init__.py:144
  2013-07-30 09:58:18.016 4321 DEBUG glance.store [-] Registering store <class 'glance.store.rbd.Store'> with schemes ('rbd',) create_stores /home/developer/code/gitcode/openstack/glance/.venv/local/lib/python2.7/site-packages/glance-2013.2.a32.g0484ca2-py2.7.egg/glance/store/__init__.py:174
  2013-07-30 09:58:18.017 4321 DEBUG glance.store.base [-] Late loading location class glance.store.rbd.StoreLocation get_store_location_class /home/developer/code/gitcode/openstack/glance/.venv/local/lib/python2.7/site-packages/glance-2013.2.a32.g0484ca2-py2.7.egg/glance/store/base.py:68
  2013-07-30 09:58:18.034 4321 DEBUG glance.store.location [-] Registering scheme rbd with {'store_class': <class 'glance.store.rbd.Store'>, 'location_class': <class 'glance.store.rbd.StoreLocation'>} register_scheme_map /home/developer/code/gitcode/openstack/glance/.venv/local/lib/python2.7/site-packages/glance-2013.2.a32.g0484ca2-py2.7.egg/glance/store/location.py:86
  2013-07-30 09:58:18.034 4321 DEBUG glance.store [-] Attempting to import store glance.store.s3.Store _get_store_class /home/developer/code/gitcode/openstack/glance/.venv/local/lib/python2.7/site-packages/glance-2013.2.a32.g0484ca2-py2.7.egg/glance/store/__init__.py:144
  2013-07-30 09:58:18.036 4321 DEBUG glance.store [-] Registering store <class 'glance.store.s3.Store'> with schemes ('s3', 's3+http', 's3+https') create_stores /home/developer/code/gitcode/openstack/glance/.venv/local/lib/python2.7/site-packages/glance-2013.2.a32.g0484ca2-py2.7.egg/glance/store/__init__.py:174
  2013-07-30 09:58:18.038 4321 DEBUG glance.store.base [-] Late loading location class glance.store.s3.StoreLocation get_store_location_class /home/developer/code/gitcode/openstack/glance/.venv/local/lib/python2.7/site-packages/glance-2013.2.a32.g0484ca2-py2.7.egg/glance/store/base.py:68
  2013-07-30 09:58:18.038 4321 DEBUG glance.store.location [-] Registering scheme s3 with {'store_class': <class 'glance.store.s3.Store'>, 'location_class': <class 'glance.store.s3.StoreLocation'>} register_scheme_map /home/developer/code/gitcode/openstack/glance/.venv/local/lib/python2.7/site-packages/glance-2013.2.a32.g0484ca2-py2.7.egg/glance/store/location.py:86
  2013-07-30 09:58:18.038 4321 DEBUG glance.store.location [-] Registering scheme s3+http with {'store_class': <class 'glance.store.s3.Store'>, 'location_class': <class 'glance.store.s3.StoreLocation'>} register_scheme_map /home/developer/code/gitcode/openstack/glance/.venv/local/lib/python2.7/site-packages/glance-2013.2.a32.g0484ca2-py2.7.egg/glance/store/location.py:86
  2013-07-30 09:58:18.038 4321 DEBUG glance.store.location [-] Registering scheme s3+https with {'store_class': <class 'glance.store.s3.Store'>, 'location_class': <class 'glance.store.s3.StoreLocation'>} register_scheme_map /home/developer/code/gitcode/openstack/glance/.venv/local/lib/python2.7/site-packages/glance-2013.2.a32.g0484ca2-py2.7.egg/glance/store/location.py:86
  2013-07-30 09:58:18.038 4321 DEBUG glance.store [-] Attempting to import store glance.store.swift.Store _get_store_class /home/developer/code/gitcode/openstack/glance/.venv/local/lib/python2.7/site-packages/glance-2013.2.a32.g0484ca2-py2.7.egg/glance/store/__init__.py:144
  2013-07-30 09:58:18.117 4321 DEBUG glance.store [-] Registering store <function Store at 0x2c8f2a8> with schemes ('swift+https', 'swift', 'swift+http') create_stores /home/developer/code/gitcode/openstack/glance/.venv/local/lib/python2.7/site-packages/glance-2013.2.a32.g0484ca2-py2.7.egg/glance/store/__init__.py:174
  2013-07-30 09:58:18.117 4321 DEBUG glance.store.base [-] Late loading location class glance.store.swift.StoreLocation get_store_location_class /home/developer/code/gitcode/openstack/glance/.venv/local/lib/python2.7/site-packages/glance-2013.2.a32.g0484ca2-py2.7.egg/glance/store/base.py:68
  2013-07-30 09:58:18.118 4321 DEBUG glance.store.location [-] Registering scheme swift+https with {'store_class': <function Store at 0x2c8f2a8>, 'location_class': <class 'glance.store.swift.StoreLocation'>} register_scheme_map /home/developer/code/gitcode/openstack/glance/.venv/local/lib/python2.7/site-packages/glance-2013.2.a32.g0484ca2-py2.7.egg/glance/store/location.py:86
  2013-07-30 09:58:18.118 4321 DEBUG glance.store.location [-] Registering scheme swift+http with {'store_class': <function Store at 0x2c8f2a8>, 'location_class': <class 'glance.store.swift.StoreLocation'>} register_scheme_map /home/developer/code/gitcode/openstack/glance/.venv/local/lib/python2.7/site-packages/glance-2013.2.a32.g0484ca2-py2.7.egg/glance/store/location.py:86
  2013-07-30 09:58:18.118 4321 DEBUG glance.store.location [-] Registering scheme swift with {'store_class': <function Store at 0x2c8f2a8>, 'location_class': <class 'glance.store.swift.StoreLocation'>} register_scheme_map /home/developer/code/gitcode/openstack/glance/.venv/local/lib/python2.7/site-packages/glance-2013.2.a32.g0484ca2-py2.7.egg/glance/store/location.py:86
  2013-07-30 09:58:18.118 4321 DEBUG glance.store [-] Attempting to import store glance.store.sheepdog.Store _get_store_class /home/developer/code/gitcode/openstack/glance/.venv/local/lib/python2.7/site-packages/glance-2013.2.a32.g0484ca2-py2.7.egg/glance/store/__init__.py:144
  2013-07-30 09:58:18.170 4321 DEBUG glance.openstack.common.processutils [-] Running cmd (subprocess): collie execute /home/developer/code/gitcode/openstack/glance/.venv/local/lib/python2.7/site-packages/glance-2013.2.a32.g0484ca2-py2.7.egg/glance/openstack/common/processutils.py:142
  2013-07-30 09:58:18.192 4321 DEBUG glance.store [-] Registering store <class 'glance.store.sheepdog.Store'> with schemes ('sheepdog',) create_stores /home/developer/code/gitcode/openstack/glance/.venv/local/lib/python2.7/site-packages/glance-2013.2.a32.g0484ca2-py2.7.egg/glance/store/__init__.py:174
  2013-07-30 09:58:18.193 4321 DEBUG glance.store.base [-] Late loading location class glance.store.sheepdog.StoreLocation get_store_location_class /home/developer/code/gitcode/openstack/glance/.venv/local/lib/python2.7/site-packages/glance-2013.2.a32.g0484ca2-py2.7.egg/glance/store/base.py:68
  2013-07-30 09:58:18.194 4321 DEBUG glance.store.location [-] Registering scheme sheepdog with {'store_class': <class 'glance.store.sheepdog.Store'>, 'location_class': <class 'glance.store.sheepdog.StoreLocation'>} register_scheme_map /home/developer/code/gitcode/openstack/glance/.venv/local/lib/python2.7/site-packages/glance-2013.2.a32.g0484ca2-py2.7.egg/glance/store/location.py:86
  2013-07-30 09:58:18.194 4321 DEBUG glance.store [-] Attempting to import store glance.store.cinder.Store _get_store_class /home/developer/code/gitcode/openstack/glance/.venv/local/lib/python2.7/site-packages/glance-2013.2.a32.g0484ca2-py2.7.egg/glance/store/__init__.py:144
  2013-07-30 09:58:18.346 4321 CRITICAL glance [-] 'ascii' codec can't encode characters in position 0-7: ordinal not in range(128)

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1206326/+subscriptions