发起问题
0

openstack-glance-registry start failed

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

散手小子 图像

按照教程: http://docs.openstack.org/icehouse/install-guide/install/yum/content/glance-install.html (http://docs.openstack.org/icehouse/in...) 安装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
0

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

Henry Lv 图像

To fix the issue.

  1. Go to this link(http://docs.openstack.org/developer/keystone/_modules/keystone/openstack/common/gettextutils.html) and copy the modified ‘gettextutils.py’ file.
    1. Take a backup of the existing gettextutils.py file as below cp /usr/lib/python2.6/site-packages/glance/openstack/common/gettextutils.py /usr/lib/python2.6/site-packages/glance/openstack/common/gettextutils.py.bak
  2. Replace the file ‘gettextutils.py‘ 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 gettextutils.py script in step 1. For example, the copied file contained some characters such as ‘[docs]‘. To fix the issue, open ‘gettextutils.py‘, 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/__init__.py", 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/__init__.py 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: http://techglimpse.com/openstack-installation-errors-solutions/ (http://techglimpse.com/openstack-inst...)

edit flag offensive delete link 更多

你的回答

Please start posting anonymously - your entry will be published after you log in or create a new account.

开始回答

提问工具

1 follower

统计

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

已查看: 452 次

最后更新: Mar 12 '15