Hi, We hit nasty situation where _() was removed from DEBUG level logging and there is exception included like following: msg = "Forbidden upload attempt: %s" % e This caused gettextutils raising UnicodeError: 2014-06-26 18:16:24.221 | File "glance/openstack/common/gettextutils.py", line 333, in __str__ 2014-06-26 18:16:24.222 | raise UnicodeError(msg) 2014-06-26 18:16:24.222 | UnicodeError: Message objects do not support str() because they may contain non-ascii characters. Please use unicode() or translate() instead. (For Example http://logs.openstack.org/63/102863/1/check/gate-glance-python27/6ad16a3/console.html#_2014-06-26_15_57_12_262)
As discussed with mriedm, jecarey and dhellmann on #openstack-oslo this can be avoided by specifying the message being unicode like: msg = u"Forbidden upload attempt: %s" % e For us in Glance it caused bunch of gating issues, so hopefully this helps the rest of the projects avoiding same, or at least tackling it bit faster. - Erno (jokke_) Kuvaja
_______________________________________________ OpenStack-dev mailing list OpenStack-dev@lists.openstack.org http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev