Thursday, 2018-07-12

kei-ichiHi, I have a few questions about function creation, especially about parameter dependency, for designing Horizon plugin.01:08
kei-ichiQuestion 1:01:08
kei-ichiFrom help message of `openstack function create` , I guess there are following dependency.01:08
kei-ichiIn case you specify `package` as a `--code-type` value:01:08
kei-ichi  You can use --file or --package to specify acutual file or package which funciton is written.01:08
kei-ichiIn case you specify `swift`  as a `--code-type` value:01:08
kei-ichi  You can use --container and --object to specify Swift Object, so both (--container/---object) are required.01:08
kei-ichiIn case you specify `image` as a `--code-type` value:01:08
kei-ichi  You can use --image.01:08
kei-ichi01:08
kei-ichiIs my understanding correct ?01:08
kei-ichiQuestion 2:01:08
kei-ichiIn case you specify `image` , what does this mean ?01:08
kei-ichiIs this mean Docker image path same as runtime creation ?01:08
*** huntxu has joined #openstack-qinling01:12
*** caoyuan has joined #openstack-qinling01:16
kei-ichiSorry...  my understanding might be incorrect.01:40
kei-ichiI alredy have created function according to Qinling documentation, and at that case I did not specify --code-type parameter..01:40
kei-ichiAre there no dependency ?01:40
kei-ichiI'll read https://docs.openstack.org/qinling/latest/user/cookbook_function.html#create-python-function-with-libraries-in-a-package again. thanks o/01:40
*** blkart has quit IRC01:57
*** blkart has joined #openstack-qinling01:57
lxkongkei-ichi: hi, you are right for question 1.02:01
*** blkart has quit IRC02:01
lxkongfor Q2, the image is a docker image that contains user's functions and its potential dependencies02:02
lxkongwe have limited support for image type function now02:02
kei-ichilxkong : I got it, thanks ! o/02:02
lxkongin CLI, you don't need to specify `--code-type` if you already specify `--file` or `--package`02:03
kei-ichiAbout question 2, image parameter should be specified like openstackqinling/python-runtime (same as tutorial) ?02:04
lxkongbut you know, it's CLI params, sometimes user may specify --file and --container at the same time, in this case, speciying `--code-type` helps02:04
lxkongkei-ichi: yeah, just like how you specify image when you run container in docker02:05
kei-ichiOK, I got it. (about image parameter)02:05
kei-ichiWhat will occur if user specify --file and --container witjout --code-type? Qinling validate those kind of request and return error status ?02:06
kei-ichis/witjout/without/02:06
lxkongthe priority: package --> swift --> image02:07
kei-ichiunderstood o/02:07
lxkongkei-ichi: maybe we should add more help message for the CLI params02:07
kei-ichithat sounds nice ;)02:09
*** blkart has joined #openstack-qinling02:10
lxkonghuntxu: i think we could remove the `--code-type` param when creating function02:11
lxkongit could be deduced by other params given02:12
lxkonghuntxu: what do you think?02:12
huntxulxkong: I'd agree, in fact I seldom use that param02:12
lxkongme neither :-) from the client code, it's really not needed02:13
lxkongi will submit a patch02:13
openstackgerritLingxian Kong proposed openstack/python-qinlingclient master: Remove --code-type for function creation CLI  https://review.openstack.org/58193302:20
*** yuxin_ has quit IRC02:20
*** yuxin_ has joined #openstack-qinling02:21
lxkonghuntxu: btw, please review https://review.openstack.org/#/c/581569/, i think part of your work related could be included there02:24
huntxuok, will do02:25
lxkongthanks02:25
*** caoyuan has quit IRC02:27
openstackgerritHunt Xu proposed openstack/qinling master: Add a preliminary structure for admin security guide  https://review.openstack.org/58156902:29
openstackgerritMerged openstack/qinling master: Add a preliminary structure for admin security guide  https://review.openstack.org/58156902:52
larainemalxkong, huntxu, have you faced this problem when run tempest tests?03:06
larainemaTypeError: the JSON object must be str, not 'bytes'03:06
huntxularainema: I haven't seen that error, do you run tempest with python3?03:07
larainemayes03:07
huntxularainema: does it happen on your newly added tests, or the existing ones?03:08
larainemaon the existing tests03:09
*** caoyuan has joined #openstack-qinling03:11
huntxularainema: I guess our test codes are still not compatible with python 303:11
huntxularainema: if possible, try python2 instead03:12
*** caoyuan_ has joined #openstack-qinling03:12
larainemahuntxu, thanks, I am trying on python203:13
openstackgerritLingxian Kong proposed openstack/python-qinlingclient master: Remove --code-type for function creation CLI  https://review.openstack.org/58193303:14
lxkonghuntxu: is it easy to add python3 support for tempest tests?03:15
lxkongi thought we already supported but maybe not03:15
*** caoyuan has quit IRC03:16
huntxulxkong: I guess that won't be a tough task, I'll try to take it down, btw thanks for the info larainema03:17
larainemahuntxu, np03:18
huntxulxkong: openstack zuul uses python2 to run tempest as well, but we should support python3 if possible03:18
lxkonghuntxu: yeah i am wondering it's as easy as adding some config in the zuul config?03:19
huntxulxkong: another zuul job to run tempest with Python3?03:22
lxkongdon't know, we need to take a look at how other projects do03:23
lxkongzuul is like a blackbox to me :-(03:23
larainemahuntxu, python2 works with other errors on my side03:24
larainematenacity.RetryError: RetryError, have you met this error?03:24
huntxularainema: no, looks like something failed after several retries03:25
larainemai thought it's something wrong in my configuration03:26
larainemai will check it, thanks03:26
openstackgerritHunt Xu proposed openstack/python-qinlingclient master: Remove --code-type for function creation CLI  https://review.openstack.org/58193303:29
*** caoyuan_ has quit IRC03:40
openstackgerritLingxian Kong proposed openstack/python-qinlingclient master: Remove --code-type for function creation CLI  https://review.openstack.org/58193303:50
*** caoyuan has joined #openstack-qinling03:56
*** caoyuan has quit IRC04:04
*** caoyuan has joined #openstack-qinling04:04
openstackgerritHunt Xu proposed openstack/qinling master: [DNM] make tempest work with python3  https://review.openstack.org/58194704:13
lxkonghuntxu: hah, you found it04:13
huntxulxkong: not sure that's the right way, just a try04:14
openstackgerritMerged openstack/python-qinlingclient master: Remove --code-type for function creation CLI  https://review.openstack.org/58193304:15
openstackgerritHunt Xu proposed openstack/qinling master: [DNM] make tempest work with python3  https://review.openstack.org/58194704:16
*** caoyuan has quit IRC07:15
*** caoyuan has joined #openstack-qinling07:16
*** caoyuan has quit IRC07:25
huntxularainema: the json.loads() error is solved by python 3.6, there is a upstream issue about this https://bugs.python.org/issue17909 and https://bugs.python.org/issue1097607:25
*** caoyuan has joined #openstack-qinling07:42
*** caoyuan has quit IRC07:46
*** caoyuan has joined #openstack-qinling07:56
*** caoyuan has quit IRC08:01
openstackgerritHunt Xu proposed openstack/qinling master: python2-runtime: limit cglimit listen on localhost only  https://review.openstack.org/58208308:09
*** caoyuan has joined #openstack-qinling08:29
*** caoyuan has quit IRC08:38
*** caoyuan has joined #openstack-qinling09:07
openstackgerritVu Cong Tuan proposed openstack/python-qinlingclient master: Switch to stestr  https://review.openstack.org/58211509:11
*** caoyuan has quit IRC09:14
*** caoyuan has joined #openstack-qinling09:16
*** caoyuan has quit IRC10:22
openstackgerritHunt Xu proposed openstack/qinling master: periodics: fix service of function version 0 not expiring issue  https://review.openstack.org/58213510:33
*** caoyuan has joined #openstack-qinling11:12
*** huntxu has quit IRC11:13
openstackgerritHunt Xu proposed openstack/qinling master: [DNM] make tempest work with python3  https://review.openstack.org/58194711:13
*** caoyuan has quit IRC11:16
openstackgerritVu Cong Tuan proposed openstack/python-qinlingclient master: Switch to stestr  https://review.openstack.org/58211511:18
*** caoyuan has joined #openstack-qinling12:44
*** caoyuan has quit IRC17:01

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