Re: [openstack-dev] [Sahara] Can't upload jar file to Job Binaries from Horizon

2015-06-03 Thread Nikita Konovalov
Hi,

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 
https://review.openstack.org/#/c/183514/ 
 it’s in review progress now.

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.

Best Regards,
Nikita Konovalov
Mirantis, Inc

> On May 7, 2015, at 12:29 , Li, Chen  wrote:
> 
> Hi sahara,
>  
> I have a fresh installed devstack environment.
>  
> I try to upload sahara/etc/edp-examples/edp-pig/trim-spaces/udf.jar to Job 
> binaries (store in internal database) but failed.
> 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)”. (https://bugs.launchpad.net/sahara/+bug/1452116)
>  
> I checked everywhere I know, but can’t find any clue why this happen because 
> this used to work.
>  
> There is message in locale/sahara.pot:
> msgid "Job binary internal data must be a string of length greater 
> than zero"
> Is this means I can’t upload “jar” file to Job binary because Job binary 
> internal data must be a string ???
>  
> Anything I have missed ???
>  
> Looking forward to your reply!
>  
> Thanks.
> -chen
>  
>  
>  
>  
> __
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] [Sahara] Can't upload jar file to Job Binaries from Horizon

2015-05-07 Thread Li, Chen
Hi sahara,

I have a fresh installed devstack environment.

I try to upload sahara/etc/edp-examples/edp-pig/trim-spaces/udf.jar to Job 
binaries (store in internal database) but failed.
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)". 
(https://bugs.launchpad.net/sahara/+bug/1452116)

I checked everywhere I know, but can't find any clue why this happen because 
this used to work.

There is message in locale/sahara.pot:
msgid "Job binary internal data must be a string of length greater than 
zero"
Is this means I can't upload "jar" file to Job binary because Job binary 
internal data must be a string ???

Anything I have missed ???

Looking forward to your reply!

Thanks.
-chen




__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev