Unexpected error when start heat-api service

Bug #1364018 reported by Sergey Kraynev
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Undecided
Sergey Kraynev

Bug Description

If you try to launch heat-api with some incorrect environment you may get such error:

skr@ubuntu:~/heat$ ./bin/heat-api

.....

2014-09-01 09:39:18.223 CRITICAL heat [-] UnicodeError: Message objects do not support str() because they may contain non-ascii characters. Please use unicode() or translate() instead.

2014-09-01 09:39:18.223 TRACE heat Traceback (most recent call last):
2014-09-01 09:39:18.223 TRACE heat File "./bin/heat-api", line 64, in <module>
2014-09-01 09:39:18.223 TRACE heat sys.exit("ERROR: %s" % e)
2014-09-01 09:39:18.223 TRACE heat File "/home/skr/heat/heat/openstack/common/gettextutils.py", line 333, in __str__
2014-09-01 09:39:18.223 TRACE heat raise UnicodeError(msg)
2014-09-01 09:39:18.223 TRACE heat UnicodeError: Message objects do not support str() because they may contain non-ascii characters. Please use unicode() or translate() instead.
2014-09-01 09:39:18.223 TRACE heat

The correct Error message should be displayed anyway.

Correct Error message if to add translating:

skr@ubuntu:~/heat$ ./bin/heat-api

...

ERROR: Unable to load heat-api from configuration file /etc/heat/api-paste.ini.
Got: ImportError('No module named keystonemiddleware.auth_token',)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (master)

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

Changed in heat:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

Reviewed: https://review.openstack.org/118168
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=8faef30895d5b3550d50672fc454acc37992008a
Submitter: Jenkins
Branch: master

commit 8faef30895d5b3550d50672fc454acc37992008a
Author: Sergey Kraynev <email address hidden>
Date: Mon Sep 1 09:57:12 2014 -0400

    Improve error handling in api files

    Change-Id: Ib9dccf5641d72aa5d16ad3179d0df030c7664fa6
    Closes-Bug: #1364018

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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