*** altlogbot_0 has quit IRC | 13:29 | |
*** altlogbot_2 has joined #openstack-qinling | 13:31 | |
*** goldyfruit has joined #openstack-qinling | 16:40 | |
goldyfruit | Yeah, I'm back, got a new laptop | 16:41 |
---|---|---|
*** goldyfruit has quit IRC | 17:30 | |
*** goldyfruit has joined #openstack-qinling | 18:25 | |
*** openstackgerrit has joined #openstack-qinling | 19:11 | |
openstackgerrit | Gaëtan Trellu proposed openstack/python-qinlingclient master: Client support for custom initial number of replicas https://review.opendev.org/586208 | 19:11 |
*** goldyfruit has quit IRC | 19:15 | |
*** goldyfruit has joined #openstack-qinling | 22:05 | |
openstackgerrit | Gaëtan Trellu proposed openstack/python-qinlingclient master: Client support for custom initial number of replicas https://review.opendev.org/586208 | 22:08 |
lxkong | goldyfruit: what's your question of function create/update? | 22:17 |
goldyfruit | lxkong, hey! | 22:18 |
goldyfruit | Happy Monday for you (still Sunday here) | 22:18 |
lxkong | hah, enjoy your Sunday | 22:19 |
goldyfruit | End of the day though :p | 22:19 |
goldyfruit | 6:20pm | 22:19 |
goldyfruit | My question is that all the call I tried to do with curl failed | 22:20 |
goldyfruit | Like if the attachment was not there | 22:20 |
goldyfruit | Using httpie works, CLI works but curl doesn't | 22:20 |
lxkong | have you tried the httpie command i sent to you the other day? | 22:20 |
lxkong | ok | 22:20 |
lxkong | goldyfruit: i will have a test today and send you the command | 22:22 |
goldyfruit | Super ! | 22:25 |
goldyfruit | And then we will have the API documentation! | 22:25 |
goldyfruit | I tried many things like this | 22:34 |
goldyfruit | curl -X POST http://10.128.150.100:7070/v1/functions -H "Content-Type: application/json" -H "X-Auth-Token: gAAAAABc-W" -d '{"code": "{\"source\": \"package\"}", "memory_size": 134217728, "name": "g001", "runtime_id": "cbd9e85f-a1b2-4120-a2c7-57c90809ce7d", "entry": "hello_world.main", "timeout": 10, "cpu": 250, "description": "Function Qinling", "package": @hello_world.zip}' | 22:35 |
goldyfruit | With "package" at different places | 22:35 |
goldyfruit | Into the '{}', outside | 22:35 |
lxkong | `curl -X POST -H "X-Auth-Token: $token" -F name=test-curl -F runtime_id=953db676-a44b-4b15-a85a-63c8d2e00a96 -F code='{"source": "package"}' -F entry=github_test.main -F package=@/home/ubuntu/functions/github_test.zip http://127.0.0.1:7070/v1/functions` | 22:37 |
lxkong | goldyfruit: this works | 22:37 |
lxkong | it's like you are filling a form in the brower | 22:37 |
openstackgerrit | Gaëtan Trellu proposed openstack/python-qinlingclient master: Client support for custom initial number of replicas https://review.opendev.org/586208 | 22:38 |
goldyfruit | Oh!!! I can't use data-binary | 22:38 |
goldyfruit | Got it | 22:38 |
goldyfruit | I'll update the API documentation | 22:39 |
lxkong | goldyfruit: are you following this guide https://docs.openstack.org/doc-contrib-guide/api-guides.html#how-to-document-your-openstack-api-service? | 22:42 |
lxkong | goldyfruit: could you please also add api-ref-jobs to the project job template in .zuul.yaml? | 22:44 |
lxkong | so we could see the rendered doc in that patch | 22:44 |
goldyfruit | Already done: https://review.opendev.org/#/c/664030/ | 22:44 |
goldyfruit | yes I followed this documentation | 22:45 |
goldyfruit | lxkong, | 22:45 |
lxkong | goldyfruit: you don't need to change openstack/project-config | 22:46 |
lxkong | because all the job definitions were moved to the project repo | 22:46 |
lxkong | there is .zuul.yaml file in qinling repo | 22:46 |
goldyfruit | ohh | 22:47 |
goldyfruit | Not sure that I should put it there | 22:48 |
goldyfruit | I compared with Zun project, they don't have it | 22:48 |
lxkong | yeah, i am neither not too sure :-( | 22:49 |
lxkong | you can try to add it to qinling repo, while keep the openstack/project-config change, let's wait for someone to correct us | 22:50 |
goldyfruit | Yep | 22:50 |
openstackgerrit | Gaëtan Trellu proposed openstack/python-qinlingclient master: Client support for custom initial number of replicas https://review.opendev.org/586208 | 22:54 |
*** goldyfruit has quit IRC | 23:18 | |
*** goldyfruit has joined #openstack-qinling | 23:20 | |
openstackgerrit | Gaëtan Trellu proposed openstack/python-qinlingclient master: Client support for custom initial number of replicas https://review.opendev.org/586208 | 23:59 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!