*** larainema has joined #openstack-qinling | 01:57 | |
*** lucadelmonte90 has joined #openstack-qinling | 09:46 | |
lucadelmonte90 | hello, i was wondering if i can get some help from you fine folks,i deployed qinling on my test openstack deploym,ent with kolla, i manager to create a runtime using the one avaible publicly available on dockerhub ( openstackqinling/python3-runtime,openstackqinling/python2-runtime )i created a function following the example provided in this page | 10:08 |
---|---|---|
lucadelmonte90 | https://docs.openstack.org/qinling/latest/user/cookbook_function.html (resize image)But when i try to execute the function i get an error on the qinling-engine logs (2020-03-30 10:13:40.489 29 ERROR qinling.engine.utils JSONDecodeError: Expecting value: line 1 column 1 (char 0)),digging deeper i managed to understand that the sidecar container in | 10:08 |
lucadelmonte90 | the pod fails to download the function ( it gets an error 500 from the api), the error i get on the qinling-api logs is [Mon Mar 30 10:13:40.482808 2020] [:error] [pid 21] [remote 192.168.0.5:8] mod_wsgi (pid=21): Exception occurred processing WSGI script '/var/www/cgi-bin/qinling/wsgi.py'.[Mon Mar 30 10:13:40.482951 2020] [:error] [pid 21] [remote | 10:08 |
lucadelmonte90 | 192.168.0.5:8] TypeError: expected byte string object for header value, value of type unicode foundWhat am i missing? The sidecar connects fine to the qinling api, maybe is a bug in the kolla container serving the qinling-api? | 10:08 |
lxkong | lucadelmonte90: could you please use http://paste.openstack.org/ for logs? | 10:10 |
lucadelmonte90 | yes sry | 10:11 |
lucadelmonte90 | https://pastebin.com/mE8Svx0d | 10:13 |
lxkong | lucadelmonte90: problem looks like being caused by python 3 incompatible code | 10:14 |
lxkong | i'm afraid qinling is not fully tested in python 3 environment | 10:15 |
lucadelmonte90 | yeah that's what i thought, the kolla container is using apache+mod_wsgi to serve the apis | 10:16 |
lucadelmonte90 | and i just checked it uses the python3 version of mod_wsgi | 10:17 |
lxkong | well, the issue may happen in different components, maybe inside the container, or mod_wsgi, or qinling-api | 10:18 |
lucadelmonte90 | i thought it was in the qinling-api side of things since the sidecar talks with the apis via HTTP, i;m going to dig a bit deeper then | 10:22 |
lxkong | lucadelmonte90: probably | 10:23 |
lxkong | lucadelmonte90: may i know what's your purpose of testing Qinling? PoC or just experiment? | 10:24 |
lucadelmonte90 | i work for a ISP we are testing/PoCing openstack in general | 10:25 |
lxkong | lucadelmonte90: ok, i see, thanks | 10:25 |
lucadelmonte90 | and we wanted to try out the FaaS side of openstack | 10:25 |
lxkong | lucadelmonte90: to be honest, qinling is not mature enough to run production-ready workload, i am the only maintainer but don't have much time for feature request. I am maintaining this project because probably some point in the future, we may have to implement FaaS in our cloud. At the same time, I want to keep this project alive in case there are other people (like you) also interested in the service | 10:28 |
lxkong | so we could do something together | 10:28 |
lxkong | so my job in Qinling for now is to keep the CI green :-) | 10:28 |
lucadelmonte90 | :) | 10:29 |
lucadelmonte90 | we also would like to implement faas to our cloud, we are investigating and studyng some options, but since we are probably use openstack in the future for the compute/vm side of things having a Faas integrated would be nice | 10:32 |
lxkong | lucadelmonte90: agree | 10:33 |
lucadelmonte90 | out of curiosity, why do say it is not production ready, being new to the FaaS world, what is it missing? | 10:34 |
lxkong | programming language support, monitoring, performance, etc. | 10:35 |
lucadelmonte90 | i see, if i can ask, you said implement faas in you own cloud, which cloud? | 10:38 |
lxkong | openstack based public cloud in new zealand | 10:46 |
*** lucadelmonte90 has quit IRC | 12:29 | |
*** lucadelmonte90 has joined #openstack-qinling | 12:39 | |
*** irclogbot_1 has quit IRC | 13:13 | |
*** irclogbot_3 has joined #openstack-qinling | 13:18 | |
lucadelmonte90 | lxkong hello again, i fixed it. it was a problem of mod_wsgi, i fixed it ensuring the value inside "pecan.response.headers['Content-Disposition']" in qinling/api/controllers/v1/function.py is of type bytes instead of unicode | 15:22 |
lucadelmonte90 | thanks for the help :) | 15:22 |
openstackgerrit | Andreas Jaeger proposed openstack/qinling-dashboard master: Update to hacking 3.0 https://review.opendev.org/715987 | 15:43 |
*** lucadelmonte90 has quit IRC | 19:32 | |
*** larainema has quit IRC | 19:41 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!