glance [-] 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)

Asked by Valeriy Saharov

I tried to install the Devstack on Ubuntu 12.04.2 minimal according to instructions on http://devstack.org/guides/single-vm.html.
After ./stack.sh command I got a following error:
.........................
Starting Glance
+ start_glance
+ screen_it g-reg 'cd /opt/stack/glance; /usr/local/bin/glance-registry --config-file=/etc/glance/glance-registry.conf'
+ SCREEN_NAME=stack
+ SERVICE_DIR=/opt/stack/status
++ trueorfalse True True
++ local default=True
++ local testval=True
++ [[ -z True ]]
++ [[ 0 no false False FALSE =~ True ]]
++ [[ 1 yes true True TRUE =~ True ]]
++ echo True
++ return
+ USE_SCREEN=True
+ is_service_enabled g-reg
+ services=g-reg
+ for service in '${services}'
+ [[ ,g-api,g-reg,key,n-api,n-crt,n-obj,n-cpu,n-net,n-cond,cinder,c-sch,c-api,c-vol,n-sch,n-novnc,n-xvnc,n-cauth,horizon,rabbit,tempest,mysql, =~ ,g-reg, ]]
+ return 0
+ screen_rc g-reg 'cd /opt/stack/glance; /usr/local/bin/glance-registry --config-file=/etc/glance/glance-registry.conf'
+ SCREEN_NAME=stack
+ SCREENRC=/opt/stack/devstack/stack-screenrc
+ [[ ! -e /opt/stack/devstack/stack-screenrc ]]
+ grep g-reg /opt/stack/devstack/stack-screenrc
++ echo -ne '\015'
+ NL=$'\r'
+ echo 'screen -t g-reg bash'
+ echo 'stuff "cd /opt/stack/glance; /usr/local/bin/glance-registry --config-file=/etc/glance/glance-registry.conf
"'
+ [[ True = \T\r\u\e ]]
+ screen -S stack -X screen -t g-reg
+ [[ -n '' ]]
+ sleep 1.5
++ echo -ne '\015'
+ NL=$'\r'
+ screen -S stack -p g-reg -X stuff 'cd /opt/stack/glance; /usr/local/bin/glance-registry --config-file=/etc/glance/glance-registry.conf || touch "/opt/stack/status/stack/g-reg.failure"
'
+ screen_it g-api 'cd /opt/stack/glance; /usr/local/bin/glance-api --config-file=/etc/glance/glance-api.conf'
+ SCREEN_NAME=stack
+ SERVICE_DIR=/opt/stack/status
++ trueorfalse True True
++ local default=True
++ local testval=True
++ [[ -z True ]]
++ [[ 0 no false False FALSE =~ True ]]
++ [[ 1 yes true True TRUE =~ True ]]
++ echo True
++ return
+ USE_SCREEN=True
+ is_service_enabled g-api
+ services=g-api
+ for service in '${services}'
+ [[ ,g-api,g-reg,key,n-api,n-crt,n-obj,n-cpu,n-net,n-cond,cinder,c-sch,c-api,c-vol,n-sch,n-novnc,n-xvnc,n-cauth,horizon,rabbit,tempest,mysql, =~ ,g-api, ]]
+ return 0
+ screen_rc g-api 'cd /opt/stack/glance; /usr/local/bin/glance-api --config-file=/etc/glance/glance-api.conf'
+ SCREEN_NAME=stack
+ SCREENRC=/opt/stack/devstack/stack-screenrc
+ [[ ! -e /opt/stack/devstack/stack-screenrc ]]
+ grep g-api /opt/stack/devstack/stack-screenrc
++ echo -ne '\015'
+ NL=$'\r'
+ echo 'screen -t g-api bash'
+ echo 'stuff "cd /opt/stack/glance; /usr/local/bin/glance-api --config-file=/etc/glance/glance-api.conf
"'
+ [[ True = \T\r\u\e ]]
+ screen -S stack -X screen -t g-api
+ [[ -n '' ]]
+ sleep 1.5
++ echo -ne '\015'
+ NL=$'\r'
+ screen -S stack -p g-api -X stuff 'cd /opt/stack/glance; /usr/local/bin/glance-api --config-file=/etc/glance/glance-api.conf || touch "/opt/stack/status/stack/g-api.failure"
'
+ echo 'Waiting for g-api (10.0.2.15:9292) to start...'
Waiting for g-api (10.0.2.15:9292) to start...
+ timeout 60 sh -c 'while ! http_proxy= wget -q -O- http://10.0.2.15:9292; do sleep 1; done'
+ die 191 'g-api did not start'
+ local exitcode=0
+ set +o xtrace
[Call Trace]
stack.sh:1183:start_glance
/opt/stack/devstack/lib/glance:191:die
[ERROR] /opt/stack/devstack/lib/glance:191 g-api did not start
root@devstack:~/devstack#

After that, I tried manually launch glance-api:
root@devstack:~# cd /devstack/opt/stack/glance
root@devstack:/opt/stack/glance# /usr/local/bin/glance-api --config-file=/etc/glance/glance-api.conf
013-08-14 09:55:19.720 2097 DEBUG glance.store [-] Attempting to import store glance.store.filesystem.Store _get_store_class /opt/stack/glance/glance/store/__init__.py:144
2013-08-14 09:55:19.749 2097 DEBUG glance.store [-] Registering store <class 'glance.store.filesystem.Store'> with schemes ('file', 'filesystem') create_stores /opt/stack/glance/glance/store/__init__.py:174
2013-08-14 09:55:19.750 2097 DEBUG glance.store.base [-] Late loading location class glance.store.filesystem.StoreLocation get_store_location_class /opt/stack/glance/glance/store/base.py:82
2013-08-14 09:55:19.753 2097 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:86
2013-08-14 09:55:19.754 2097 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:86
2013-08-14 09:55:19.759 2097 DEBUG glance.store [-] Attempting to import store glance.store.http.Store _get_store_class /opt/stack/glance/glance/store/__init__.py:144
2013-08-14 09:55:19.762 2097 DEBUG glance.store [-] Registering store <class 'glance.store.http.Store'> with schemes ('http', 'https') create_stores /opt/stack/glance/glance/store/__init__.py:174
2013-08-14 09:55:19.762 2097 DEBUG glance.store.base [-] Late loading location class glance.store.http.StoreLocation get_store_location_class /opt/stack/glance/glance/store/base.py:82
2013-08-14 09:55:19.762 2097 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:86
2013-08-14 09:55:19.762 2097 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:86
2013-08-14 09:55:19.763 2097 DEBUG glance.store [-] Attempting to import store glance.store.rbd.Store _get_store_class /opt/stack/glance/glance/store/__init__.py:144
2013-08-14 09:55:19.765 2097 DEBUG glance.store [-] Registering store <class 'glance.store.rbd.Store'> with schemes ('rbd',) create_stores /opt/stack/glance/glance/store/__init__.py:174
2013-08-14 09:55:19.771 2097 DEBUG glance.store.base [-] Late loading location class glance.store.rbd.StoreLocation get_store_location_class /opt/stack/glance/glance/store/base.py:82
2013-08-14 09:55:19.771 2097 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:86
2013-08-14 09:55:19.771 2097 DEBUG glance.store [-] Attempting to import store glance.store.s3.Store _get_store_class /opt/stack/glance/glance/store/__init__.py:144
2013-08-14 09:55:19.774 2097 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:174
2013-08-14 09:55:19.774 2097 DEBUG glance.store.base [-] Late loading location class glance.store.s3.StoreLocation get_store_location_class /opt/stack/glance/glance/store/base.py:82
2013-08-14 09:55:19.774 2097 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:86
2013-08-14 09:55:19.774 2097 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:86
2013-08-14 09:55:19.774 2097 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:86
2013-08-14 09:55:19.774 2097 DEBUG glance.store [-] Attempting to import store glance.store.swift.Store _get_store_class /opt/stack/glance/glance/store/__init__.py:144
2013-08-14 09:55:19.938 2097 DEBUG glance.store [-] Registering store <function Store at 0x1ea48c0> with schemes ('swift+https', 'swift', 'swift+http') create_stores /opt/stack/glance/glance/store/__init__.py:174
2013-08-14 09:55:19.943 2097 DEBUG glance.store.base [-] Late loading location class glance.store.swift.StoreLocation get_store_location_class /opt/stack/glance/glance/store/base.py:82
2013-08-14 09:55:19.943 2097 DEBUG glance.store.location [-] Registering scheme swift+https with {'store_class': <function Store at 0x1ea48c0>, 'location_class': <class 'glance.store.swift.StoreLocation'>} register_scheme_map /opt/stack/glance/glance/store/location.py:86
2013-08-14 09:55:19.943 2097 DEBUG glance.store.location [-] Registering scheme swift+http with {'store_class': <function Store at 0x1ea48c0>, 'location_class': <class 'glance.store.swift.StoreLocation'>} register_scheme_map /opt/stack/glance/glance/store/location.py:86
2013-08-14 09:55:19.943 2097 DEBUG glance.store.location [-] Registering scheme swift with {'store_class': <function Store at 0x1ea48c0>, 'location_class': <class 'glance.store.swift.StoreLocation'>} register_scheme_map /opt/stack/glance/glance/store/location.py:86
2013-08-14 09:55:19.943 2097 DEBUG glance.store [-] Attempting to import store glance.store.sheepdog.Store _get_store_class /opt/stack/glance/glance/store/__init__.py:144
2013-08-14 09:55:19.961 2097 DEBUG glance.openstack.common.processutils [-] Running cmd (subprocess): collie execute /opt/stack/glance/glance/openstack/common/processutils.py:142
2013-08-14 09:55:19.997 2097 DEBUG glance.openstack.common.processutils [-] Result was 127 execute /opt/stack/glance/glance/openstack/common/processutils.py:167
2013-08-14 09:55:20.001 2097 ERROR glance.store.sheepdog [-] Error in store configuration: Unexpected error while running command.
Command: collie
Exit code: 127
Stdout: ''
Stderr: '/bin/sh: 1: collie: not found\n'
2013-08-14 09:55:20.005 2097 CRITICAL glance [-] 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)
root@devstack:/opt/stack/glance#

How it can be fixed?

Question information

Language:
English Edit question
Status:
Answered
For:
devstack Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Alexander Markevych (hummermania) said :
#1

I have some error.
First I install the Ubuntu pacckage sheepdog:
 sudo apt-get install sheepdog

But after that script crash on cinder store. List store types located /opt/stack/glance/glance/store/__init__.py on the line 45

    cfg.ListOpt('known_stores',
                default=[
                    'glance.store.filesystem.Store',
                    'glance.store.http.Store',
                    'glance.store.rbd.Store',
                    'glance.store.s3.Store',
                    'glance.store.swift.Store',
                    'glance.store.sheepdog.Store',
                   # 'glance.store.cinder.Store',
I commented the cinder store - and script start normally. I think that in the system not found some package like a "sheepdog", for example python-cinderclient. But if install it - error show again.

Revision history for this message
thesues (deanraccoon) said :
#3

I have met same issue.

Can you help with this problem?

Provide an answer of your own, or ask Valeriy Saharov for more information if necessary.

To post a message you must log in.