← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1202098] Re: glance-api failed to startup caused by UnicodeEncodeError in non-English environment

 

** Changed in: glance
       Status: Fix Committed => 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/1202098

Title:
  glance-api failed to startup caused by UnicodeEncodeError in non-
  English environment

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

Bug description:
  root@ubuntu:~/devstack# screen -x stack
  There are screens on:
      4195.stack    (2013年07月17日 08时11分11秒)    (Dead ???)
      3733.stack    (2013年07月17日 08时11分11秒)    (Dead ???)
  Remove dead screens with 'screen -wipe'.
  There is no screen to be attached matching stack.

  root@ubuntu:~/devstack# cat /var/log/glance/api.log
  2013-07-17 11:26:10.880 14137 ERROR glance.store.sheepdog [-] 储存配置错误:Unexpected error while running command.
  Command: collie
  Exit code: 127
  Stdout: ''
  Stderr: '/bin/sh: 1: collie: not found\n'
  2013-07-17 11:26:10.881 14137 CRITICAL glance [-] 'ascii' codec can't encode characters in position 0-7: ordinal not in range(128)
  2013-07-17 14:08:33.500 14993 DEBUG glance.store [-] Attempting to import store glance.store.filesystem.Store _get_store_class /opt/stack/glance/glance/store/__init__.py:143
  2013-07-17 14:08:33.501 14993 DEBUG glance.store [-] Registering store <class 'glance.store.filesystem.Store'> with schemes ('file', 'filesystem') create_stores /opt/stack/glance/glance/store/__init__.py:173
  2013-07-17 14:08:33.507 14993 DEBUG glance.store.base [-] Late loading location class glance.store.filesystem.StoreLocation get_store_location_class /opt/stack/glance/glance/store/base.py:68
  2013-07-17 14:08:33.507 14993 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 /opt/stack/glance/glance/store/location.py:85
  2013-07-17 14:08:33.507 14993 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 /opt/stack/glance/glance/store/location.py:85
  2013-07-17 14:08:33.507 14993 DEBUG glance.store [-] Attempting to import store glance.store.http.Store _get_store_class /opt/stack/glance/glance/store/__init__.py:143
  2013-07-17 14:08:33.508 14993 DEBUG glance.store [-] Registering store <class 'glance.store.http.Store'> with schemes ('http', 'https') create_stores /opt/stack/glance/glance/store/__init__.py:173
  2013-07-17 14:08:33.508 14993 DEBUG glance.store.base [-] Late loading location class glance.store.http.StoreLocation get_store_location_class /opt/stack/glance/glance/store/base.py:68
  2013-07-17 14:08:33.508 14993 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 /opt/stack/glance/glance/store/location.py:85
  2013-07-17 14:08:33.509 14993 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 /opt/stack/glance/glance/store/location.py:85
  2013-07-17 14:08:33.509 14993 DEBUG glance.store [-] Attempting to import store glance.store.rbd.Store _get_store_class /opt/stack/glance/glance/store/__init__.py:143
  2013-07-17 14:08:33.510 14993 DEBUG glance.store [-] Registering store <class 'glance.store.rbd.Store'> with schemes ('rbd',) create_stores /opt/stack/glance/glance/store/__init__.py:173
  2013-07-17 14:08:33.514 14993 DEBUG glance.store.base [-] Late loading location class glance.store.rbd.StoreLocation get_store_location_class /opt/stack/glance/glance/store/base.py:68
  2013-07-17 14:08:33.514 14993 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 /opt/stack/glance/glance/store/location.py:85
  2013-07-17 14:08:33.515 14993 DEBUG glance.store [-] Attempting to import store glance.store.s3.Store _get_store_class /opt/stack/glance/glance/store/__init__.py:143
  2013-07-17 14:08:33.515 14993 DEBUG glance.store [-] Registering store <class 'glance.store.s3.Store'> with schemes ('s3', 's3+http', 's3+https') create_stores /opt/stack/glance/glance/store/__init__.py:173
  2013-07-17 14:08:33.516 14993 DEBUG glance.store.base [-] Late loading location class glance.store.s3.StoreLocation get_store_location_class /opt/stack/glance/glance/store/base.py:68
  2013-07-17 14:08:33.516 14993 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 /opt/stack/glance/glance/store/location.py:85
  2013-07-17 14:08:33.517 14993 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 /opt/stack/glance/glance/store/location.py:85
  2013-07-17 14:08:33.518 14993 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 /opt/stack/glance/glance/store/location.py:85
  2013-07-17 14:08:33.518 14993 DEBUG glance.store [-] Attempting to import store glance.store.swift.Store _get_store_class /opt/stack/glance/glance/store/__init__.py:143
  2013-07-17 14:08:33.564 14993 DEBUG glance.store [-] Registering store <function Store at 0xa8e8cdc> with schemes ('swift+https', 'swift', 'swift+http') create_stores /opt/stack/glance/glance/store/__init__.py:173
  2013-07-17 14:08:33.564 14993 DEBUG glance.store.base [-] Late loading location class glance.store.swift.StoreLocation get_store_location_class /opt/stack/glance/glance/store/base.py:68
  2013-07-17 14:08:33.565 14993 DEBUG glance.store.location [-] Registering scheme swift+https with {'store_class': <function Store at 0xa8e8cdc>, 'location_class': <class 'glance.store.swift.StoreLocation'>} register_scheme_map /opt/stack/glance/glance/store/location.py:85
  2013-07-17 14:08:33.565 14993 DEBUG glance.store.location [-] Registering scheme swift+http with {'store_class': <function Store at 0xa8e8cdc>, 'location_class': <class 'glance.store.swift.StoreLocation'>} register_scheme_map /opt/stack/glance/glance/store/location.py:85
  2013-07-17 14:08:33.565 14993 DEBUG glance.store.location [-] Registering scheme swift with {'store_class': <function Store at 0xa8e8cdc>, 'location_class': <class 'glance.store.swift.StoreLocation'>} register_scheme_map /opt/stack/glance/glance/store/location.py:85
  2013-07-17 14:08:33.566 14993 DEBUG glance.store [-] Attempting to import store glance.store.sheepdog.Store _get_store_class /opt/stack/glance/glance/store/__init__.py:143
  2013-07-17 14:08:33.576 14993 DEBUG glance.openstack.common.processutils [-] Running cmd (subprocess): collie execute /opt/stack/glance/glance/openstack/common/processutils.py:142
  2013-07-17 14:08:33.593 14993 DEBUG glance.openstack.common.processutils [-] Result was 127 execute /opt/stack/glance/glance/openstack/common/processutils.py:167
  2013-07-17 14:08:33.594 14993 ERROR glance.store.sheepdog [-] 储存配置错误:Unexpected error while running command.
  Command: collie
  Exit code: 127
  Stdout: ''
  Stderr: '/bin/sh: 1: collie: not found\n'
  2013-07-17 14:08:33.595 14993 CRITICAL glance [-] 'ascii' codec can't encode characters in position 0-7: ordinal not in range(128)
  2013-07-17 14:08:33.595 14993 TRACE glance Traceback (most recent call last):
  2013-07-17 14:08:33.595 14993 TRACE glance   File "/usr/local/bin/glance-api", line 9, in <module>
  2013-07-17 14:08:33.595 14993 TRACE glance     load_entry_point('glance==2013.2.a112.g99f6dda', 'console_scripts', 'glance-api')()
  2013-07-17 14:08:33.595 14993 TRACE glance   File "/opt/stack/glance/glance/cmd/api.py", line 57, in main
  2013-07-17 14:08:33.595 14993 TRACE glance     glance.store.create_stores()
  2013-07-17 14:08:33.595 14993 TRACE glance   File "/opt/stack/glance/glance/store/__init__.py", line 164, in create_stores
  2013-07-17 14:08:33.595 14993 TRACE glance     store_instance = store_cls()
  2013-07-17 14:08:33.595 14993 TRACE glance   File "/opt/stack/glance/glance/store/base.py", line 44, in __init__
  2013-07-17 14:08:33.595 14993 TRACE glance     "Disabling add method." % e)
  2013-07-17 14:08:33.595 14993 TRACE glance UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-7: ordinal not in range(128)
  2013-07-17 14:08:33.595 14993 TRACE glance

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