Monday, 2020-03-30

*** larainema has joined #openstack-qinling01:57
*** lucadelmonte90 has joined #openstack-qinling09:46
lucadelmonte90hello, 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 page10:08
lucadelmonte90https://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 in10:08
lucadelmonte90the 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] [remote10:08
lucadelmonte90192.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
lxkonglucadelmonte90: could you please use http://paste.openstack.org/ for logs?10:10
lucadelmonte90yes sry10:11
lucadelmonte90https://pastebin.com/mE8Svx0d10:13
lxkonglucadelmonte90: problem looks like being caused by python 3 incompatible code10:14
lxkongi'm afraid qinling is not fully tested in python 3 environment10:15
lucadelmonte90yeah that's what i thought, the kolla container is using apache+mod_wsgi to serve the apis10:16
lucadelmonte90and i just checked it uses the python3 version of mod_wsgi10:17
lxkongwell, the issue may happen in different components, maybe inside the container, or mod_wsgi, or qinling-api10:18
lucadelmonte90i 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 then10:22
lxkonglucadelmonte90: probably10:23
lxkonglucadelmonte90: may i know what's your purpose of testing Qinling? PoC or just experiment?10:24
lucadelmonte90i work  for a ISP we are testing/PoCing openstack in general10:25
lxkonglucadelmonte90: ok, i see, thanks10:25
lucadelmonte90and we wanted to try out the FaaS side of openstack10:25
lxkonglucadelmonte90: 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 service10:28
lxkongso we could do something together10:28
lxkongso my job in Qinling for now is to keep the CI green :-)10:28
lucadelmonte90:)10:29
lucadelmonte90we 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 nice10:32
lxkonglucadelmonte90: agree10:33
lucadelmonte90out of curiosity, why do say it is not production ready, being new to the FaaS world, what is it missing?10:34
lxkongprogramming language support, monitoring, performance, etc.10:35
lucadelmonte90i see, if i can ask, you said implement faas in you own cloud, which cloud?10:38
lxkongopenstack based public cloud in new zealand10:46
*** lucadelmonte90 has quit IRC12:29
*** lucadelmonte90 has joined #openstack-qinling12:39
*** irclogbot_1 has quit IRC13:13
*** irclogbot_3 has joined #openstack-qinling13:18
lucadelmonte90lxkong 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 unicode15:22
lucadelmonte90thanks for the help :)15:22
openstackgerritAndreas Jaeger proposed openstack/qinling-dashboard master: Update to hacking 3.0  https://review.opendev.org/71598715:43
*** lucadelmonte90 has quit IRC19:32
*** larainema has quit IRC19:41

Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!