glance-api can't start in non-English env

Bug #1218903 reported by Feilong Wang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Undecided
Feilong Wang

Bug Description

In non-English env, the start of glance-api will fail with below error:

2013-08-30 04:31:40.830 22137 DEBUG glance.store.base [-] [(')十十十十一構ソチ‐ Store sheepdog could not be configured correctly. Reason: [(')>十十一構ソチ‐ Error in store configuration: Unexpected error while running command.
Command: collie
Exit code: 127
Stdout: ''
Stderr: '/bin/sh: collie: \xe3\x82\xb3\xe3\x83\x9e\xe3\x83\xb3\xe3\x83\x89\xe3\x81\x8c\xe8\xa6\x8b\xe3\x81\xa4\xe3\x81\x8b\xe3\x82\x8a\xe3\x81\xbe\xe3\x81\x9b\xe3\x82\x93\n']] _exception_to_str /usr/lib/python2.6/site-packages/glance/store/base.py:41
2013-08-30 04:31:40.831 22137 CRITICAL glance [-] 'ascii' codec can't decode byte 0xe5 in position 4: ordinal not in range(128)
2013-08-30 04:31:40.831 22137 TRACE glance Traceback (most recent call last):
2013-08-30 04:31:40.831 22137 TRACE glance File "/usr/bin/glance-api", line 10, in <module>
2013-08-30 04:31:40.831 22137 TRACE glance sys.exit(main())
2013-08-30 04:31:40.831 22137 TRACE glance File "/usr/lib/python2.6/site-packages/glance/cmd/api.py", line 57, in main
2013-08-30 04:31:40.831 22137 TRACE glance glance.store.create_stores()
2013-08-30 04:31:40.831 22137 TRACE glance File "/usr/lib/python2.6/site-packages/glance/store/__init__.py", line 165, in create_stores
2013-08-30 04:31:40.831 22137 TRACE glance store_instance = store_cls()
2013-08-30 04:31:40.831 22137 TRACE glance File "/usr/lib/python2.6/site-packages/glance/store/base.py", line 65, in __init__
2013-08-30 04:31:40.831 22137 TRACE glance "Disabling add method.") % _exception_to_str(e))
2013-08-30 04:31:40.831 22137 TRACE glance UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 4: ordinal not in range(128)
2013-08-30 04:31:40.831 22137 TRACE glance

Seems it's injected by patch https://review.openstack.org/#/c/37421

Feilong Wang (flwang)
Changed in glance:
assignee: nobody → Fei Long Wang (flwang)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (master)

Fix proposed to branch: master
Review: https://review.openstack.org/44478

Changed in glance:
status: New → In Progress
Revision history for this message
Feilong Wang (flwang) wrote :
Revision history for this message
Feilong Wang (flwang) wrote :

Mark this bug as "Fix committed" since 44490 has been merged.

Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
milestone: none → havana-rc1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in glance:
milestone: havana-rc1 → 2013.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.