unable to start openstack-glance-registry service(Unicode Error) [closed]

asked 2014-12-06 06:49:55 -0500

remya gravatar image

updated 2014-12-06 10:15:40 -0500

dbaxps gravatar image

As per the answer in the thread https://ask.openstack.org/en/question... , I updated rdo-release-icehouse-3.noarch to rdo-release-icehouse-4.noarch. OS: Oracle Linux 6.4 Glance version : openstack-glance-2014.1.3-2.el6.noarch I'm still getting the same errors when starting glance-registry service:

sh -x /etc/init.d/openstack-glance-registry start 
+ runuser -s /bin/bash glance -c 'ulimit -S -c 0 >/dev/null 2>&1 ; /usr/share/glance/daemon_notify.sh /usr/bin/glance-registry /var/run/glance/glance-registry.pid /var/log/glance/openstack-glance-registry-startup.log 60' 
+ '[' 1 -eq 0 ']' + failure 'openstack-glance-registry-startup.log 60 startup' 
+ local rc=1 + '[' color '!=' verbose -a -z '' ']' 
+ echo_failure + '[' color = color ']' 
+ echo -en '\033[60G' + echo -n '[' [+ '[' color = color ']' + echo -en '\033[0;31m' + echo -n FAILED FAILED+ '[' color = color ']' + echo -en '\033[0;39m' In the logs /var/log/glance/registry.log, I see this:

2014-12-06 04:15:58.881 5928 TRACE glance Traceback (most recent call last): 2014-12-06 04:15:58.881 5928 TRACE glance File "/usr/bin/glance-registry", line 10, in <module> 2014-12-06 04:15:58.881 5928 TRACE glance sys.exit(main()) 2014-12-06 04:15:58.881 5928 TRACE glance File "/usr/lib/python2.6/site-packages/glance/cmd/registry.py", line 56, in main 2014-12-06 04:15:58.881 5928 TRACE glance sys.exit("ERROR: %s" % e) 2014-12-06 04:15:58.881 5928 TRACE glance File "/usr/lib/python2.6/site-packages/glance/openstack/common/gettextutils.py", line 309, in __str__ 2014-12-06 04:15:58.881 5928 TRACE glance raise UnicodeError(msg) 2014-12-06 04:15:58.881 5928 TRACE glance UnicodeError: Message objects do not support str() because they may contain non-ascii characters. Please use unicode() or translate() instead. 2014-12-06 04:15:58.881 5928 TRACE glance

Permission of files under /etc/glance:

[root@controller ~]# ls -l /etc/glance/ total 52 -rw-r----- 1 root glance 24103 Dec 5 23:50 glance-api.conf -rw-r----- 1 root root 7042 Oct 10 07:08 glance-cache.conf -rw-r----- 1 root glance 6290 Dec 5 23:51 glance-registry.conf -rw-r----- 1 root root 1843 Oct 10 07:08 glance-scrubber.conf -rw-r----- 1 glance glance 611 Oct 2 16:13 policy.json -rw-r----- 1 root root 1259 Oct 2 16:13 schema-image.json

[root@controller ~]# ls -l /var/log/glance/openstack-glance-registry-startup.log -rw-r--r-- 1 glance glance 0 Dec 6 04:15 /var/log/glance/openstack-glance-registry-startup.log

I'm new to openstack. Could someone please help?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by rbowen
close date 2015-06-17 15:35:41.389138

Comments

Might be 6.4 issue. RDO IceHouse 4 works on CentOS 6.5. Please, run :-

# rpm -qa | grep oslo

My concern is python-oslo-i18n noarch rpm it should be on the system

dbaxps gravatar imagedbaxps ( 2014-12-06 11:00:06 -0500 )edit

@dbaxps Thanks for the pointer. I cannot find this package python-oslo-i18n in 6.4 :( :(

remya gravatar imageremya ( 2014-12-07 11:45:30 -0500 )edit

I would suggest you create VM CentOS 6.5 ( via KVM&&Libvirt on Oracle Linux 6.4). Perform RDO IceHouse4 packstack --allinone install on this VM.

1. Make sure RDO IceHouse4 works on CentOS 6.5 VM ( 4 GB RAM, 2 VCPUS is enough for test)
dbaxps gravatar imagedbaxps ( 2014-12-07 11:53:17 -0500 )edit
dbaxps gravatar imagedbaxps ( 2014-12-07 12:05:01 -0500 )edit

@dbaxps: Thank you ! I'll try your recommendation.

remya gravatar imageremya ( 2014-12-08 00:02:43 -0500 )edit