openstack-glance-registry start failed

提问于 2015-03-12 04:58:42 -0600

散手小子 图像

按照教程: ( 安装openstack icehouse版本,在启动glance-registry时报错,无法启动,具体如下: [root@controller bin]# service openstack-glance-registry start Starting openstack-glance-registry: [FAILED] [root@controller bin]# more /var/log/glance/openstack-glance-registry-startup.log 2015-03-12 17:53:41.511 4124 CRITICAL glance [-] UnicodeError: Message objects do not support str() because they may contain non-asc ii characters. Please use unicode() or translate() instead. 请问哪位碰到过同样的问题?或者知道怎么解决?


edit retag flag offensive close merge delete

回答 2015-03-25 23:40:41 -0600

Henry Lv 图像

To fix the issue.

  1. Go to this link( and copy the modified ‘’ file.
    1. Take a backup of the existing file as below cp /usr/lib/python2.6/site-packages/glance/openstack/common/ /usr/lib/python2.6/site-packages/glance/openstack/common/
  2. Replace the file ‘‘ with the one copied from step 1.
    1. Start the glance-registry service as below: $ service openstack-glance-registry start Note: If the above command fails with a syntax error, then probably you copied some unwanted characters while copying the modified script in step 1. For example, the copied file contained some characters such as ‘[docs]‘. To fix the issue, open ‘‘, search and remove those unwanted characters. Save the file and start the glance-registry service again.

In case, if the service failed to start, then lookout for the fresh error message in the log file. # tailf /var/log/glance/openstack-glance-registry-startup.log Traceback (most recent call last): File "/usr/bin/glance-registry", line 6, in <module> from glance.cmd.registry import main File "/usr/lib/python2.6/site-packages/glance/cmd/", line 17, in <module> gettextutils.install('glance', lazy=True) TypeError: install() got an unexpected keyword argument 'lazy' To fix the above error: $vim /usr/lib/python2.6/site-packages/glance/cmd/ and lookout for the function ‘ gettextutils.install(‘glance’, lazy=True)‘ and replace it with the below one: gettextutils.install('glance') save the file and try starting the glance-registry service.

More information, please refer to: (

edit flag offensive delete link 更多


1 follower


已提问: 2015-03-12 04:58:42 -0600

已查看: 573 次

最后更新: Mar 12 '15