api services need better error handling on startup

Bug #1369440 reported by Pavlo Shchelokovskyy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
In Progress
Undecided
Unassigned

Bug Description

Recently when deploying Heat on CentOS 6 (Python 2.6) we got following errors for all api services due to missing config files:

2014-09-12 09:59:27.461 2383 CRITICAL heat [-] UnicodeError: Message objects do not support str() because they may contain non-ascii characters. Please use unicode() or translate() instead.
2014-09-12 09:59:27.461 2383 TRACE heat Traceback (most recent call last):
2014-09-12 09:59:27.461 2383 TRACE heat File "/usr/bin/heat-api", line 64, in <module>
2014-09-12 09:59:27.461 2383 TRACE heat sys.exit("ERROR: %s" % e)
2014-09-12 09:59:27.461 2383 TRACE heat File "/usr/lib/python2.6/site-packages/heat/openstack/common/gettextutils.py", line 333, in __str__
2014-09-12 09:59:27.461 2383 TRACE heat raise UnicodeError(msg)
2014-09-12 09:59:27.461 2383 TRACE heat UnicodeError: Message objects do not support str() because they may contain non-ascii characters. Please use unicode() or translate() instead.

The actual error in fact was

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

but was masked by the traceback above.

Looks like we should "sixify" error handling in heat-api-* scripts to better present errors to deployers.

Changed in heat:
assignee: nobody → Pavlo Shchelokovskyy (pshchelo)
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/121473

Changed in heat:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on heat (master)

Change abandoned by Pavlo Shchelokovskyy (<email address hidden>) on branch: master
Review: https://review.openstack.org/121473
Reason: yep, is a dupe

Changed in heat:
assignee: Pavlo Shchelokovskyy (pshchelo) → nobody
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.