<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">This issues was introduced when python-sahara client moved to using keystone-client sessions. The keystone client has debug logs enabled and tries to log all requests and responses. So when uploading a job binary the request body has a binary content which is not printable from python’s perspective. I’ve submitted a change to keystone-client <a href="https://review.openstack.org/#/c/183514/" class="">https://review.openstack.org/#/c/183514/</a> it’s in review progress now.</div><div class=""><br class=""></div><div class="">If you need a fast workaround you can disable debug logging of keystone client. Or you can use Sahara’s feature of storing job binaries in Swift containers.</div><div class=""><br class=""><div class="">
<div class=""><span style="color: rgb(34, 34, 34); font-family: arial; font-size: small; background-color: rgb(255, 255, 255);" class="">Best Regards,</span><br style="color: rgb(34, 34, 34); font-family: arial; font-size: small; background-color: rgb(255, 255, 255);" class=""><span style="color: rgb(34, 34, 34); font-family: arial; font-size: small; background-color: rgb(255, 255, 255);" class="">Nikita Konovalov</span><br style="color: rgb(34, 34, 34); font-family: arial; font-size: small; background-color: rgb(255, 255, 255);" class=""><div style="color: rgb(34, 34, 34); font-family: arial; font-size: small; background-color: rgb(255, 255, 255);" class="">Mirantis, Inc</div></div>

</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On May 7, 2015, at 12:29 , Li, Chen <<a href="mailto:chen.li@intel.com" class="">chen.li@intel.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">

<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" class="">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)" class="">
<style class=""><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->

<div lang="EN-US" link="blue" vlink="purple" class="">
<div class="WordSection1"><p class="MsoNormal">Hi sahara,<o:p class=""></o:p></p><p class="MsoNormal"><o:p class=""> </o:p></p><p class="MsoNormal">I have a fresh installed devstack environment.<o:p class=""></o:p></p><p class="MsoNormal"><o:p class=""> </o:p></p><p class="MsoNormal">I try to upload sahara/etc/edp-examples/edp-pig/trim-spaces/udf.jar to Job binaries (store in internal database) but failed.<o:p class=""></o:p></p><p class="MsoNormal">I get error in horizon_error.log, which complains “UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 14: ordinal not in range(128)”. (<a href="https://bugs.launchpad.net/sahara/+bug/1452116" class="">https://bugs.launchpad.net/sahara/+bug/1452116</a>)<o:p class=""></o:p></p><p class="MsoNormal"><o:p class=""> </o:p></p><p class="MsoNormal">I checked everywhere I know, but can’t find any clue why this happen because this used to work.<o:p class=""></o:p></p><p class="MsoNormal"><o:p class=""> </o:p></p><p class="MsoNormal">There is message in locale/sahara.pot:<o:p class=""></o:p></p><p class="MsoNormal">        msgid "Job binary internal data must be a string of length greater than zero"<o:p class=""></o:p></p><p class="MsoNormal">Is this means I can’t upload “jar” file to Job binary because Job binary internal data must be a string ???<o:p class=""></o:p></p><p class="MsoNormal"><o:p class=""> </o:p></p><p class="MsoNormal">Anything I have missed ???<o:p class=""></o:p></p><p class="MsoNormal"><o:p class=""> </o:p></p><p class="MsoNormal">Looking forward to your reply!<o:p class=""></o:p></p><p class="MsoNormal"><o:p class=""> </o:p></p><p class="MsoNormal">Thanks.<o:p class=""></o:p></p><p class="MsoNormal">-chen<o:p class=""></o:p></p><p class="MsoNormal"><o:p class=""></o:p></p><p class="MsoNormal"><o:p class=""> </o:p></p><p class="MsoNormal"><o:p class=""> </o:p></p><p class="MsoNormal"><o:p class=""> </o:p></p><p class="MsoNormal"><o:p class=""> </o:p></p>
</div>
</div>

__________________________________________________________________________<br class="">OpenStack Development Mailing List (not for usage questions)<br class="">Unsubscribe: <a href="mailto:OpenStack-dev-request@lists.openstack.org" class="">OpenStack-dev-request@lists.openstack.org</a>?subject:unsubscribe<br class=""><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" class="">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br class=""></div></blockquote></div><br class=""></div></body></html>