*** rbux has joined #openstack-mistral | 00:21 | |
*** rbux has quit IRC | 00:26 | |
*** rbux has joined #openstack-mistral | 00:27 | |
*** jamielennox is now known as jamielennox|away | 00:36 | |
*** jamielennox|away is now known as jamielennox | 00:44 | |
*** thrash is now known as thrash|g0ne | 01:56 | |
*** rbux has quit IRC | 02:16 | |
*** rbrady has joined #openstack-mistral | 02:17 | |
*** rbrady has quit IRC | 02:17 | |
*** rbrady has joined #openstack-mistral | 02:17 | |
*** gongysh has joined #openstack-mistral | 02:33 | |
*** zhurong has joined #openstack-mistral | 03:03 | |
*** zhurong has quit IRC | 03:13 | |
openstackgerrit | Ryan Brady proposed openstack/mistral-lib master: Adds minimum common shared code for custom actions API https://review.openstack.org/411412 | 03:19 |
---|---|---|
*** sharatss has joined #openstack-mistral | 05:06 | |
*** sharat has joined #openstack-mistral | 06:00 | |
*** sharatss has quit IRC | 06:00 | |
*** ist has joined #openstack-mistral | 06:44 | |
*** sharat is now known as sharatss | 07:04 | |
*** jaosorior has joined #openstack-mistral | 07:09 | |
openstackgerrit | Merged openstack/python-mistralclient master: Updated from global requirements https://review.openstack.org/439357 | 07:15 |
openstackgerrit | Merged openstack/mistral master: Updated from global requirements https://review.openstack.org/437731 | 07:17 |
openstackgerrit | Merged openstack/mistral master: Update Dockerfile to use Xenial https://review.openstack.org/437939 | 07:18 |
openstackgerrit | Merged openstack/mistral master: Force Python 2 for documentation builds https://review.openstack.org/435437 | 07:18 |
*** sharatss has quit IRC | 07:55 | |
*** sharatss has joined #openstack-mistral | 07:56 | |
*** sharatss has quit IRC | 08:02 | |
*** sharatss has joined #openstack-mistral | 08:03 | |
*** jtomasek has quit IRC | 08:10 | |
*** jtomasek has joined #openstack-mistral | 08:12 | |
*** shardy has joined #openstack-mistral | 08:19 | |
d0ugal | Can Mistral actions accept **kwargs? | 09:02 |
d0ugal | I am going to test this now, but maybe somebody knows and can reply more quickly and save me time :) | 09:02 |
*** jpich has joined #openstack-mistral | 09:09 | |
ddeja | d0ugal: I think they do | 09:24 |
d0ugal | ddeja: great, thanks - I think so too but it seems I managed to break my Mistral dev env, so not quite managed to test yet :) | 09:25 |
*** vishwanathj has quit IRC | 09:30 | |
*** vishwanathj has joined #openstack-mistral | 09:31 | |
*** sharat has joined #openstack-mistral | 09:39 | |
*** sharatss has quit IRC | 09:39 | |
*** sharat has quit IRC | 10:11 | |
*** sharatss has joined #openstack-mistral | 10:12 | |
*** gongysh has quit IRC | 10:17 | |
*** sharatss has quit IRC | 10:22 | |
*** tuan_ has joined #openstack-mistral | 11:08 | |
*** thrash|g0ne is now known as thrash | 11:20 | |
*** jkilpatr has quit IRC | 11:40 | |
*** jkilpatr has joined #openstack-mistral | 12:13 | |
openstackgerrit | Brad P. Crochet proposed openstack/mistral-extra master: Set up mistral-extra with the ability to run unit tests https://review.openstack.org/437058 | 12:13 |
*** sharatss has joined #openstack-mistral | 12:15 | |
d0ugal | thrash: In your YAQL adventures, have you came across a way to batch a list? | 12:16 |
d0ugal | thrash: i.e. batching by 3: [1,2,3,4,5,6,7] becomes [[1,2,3],[4,5,6],[7]] | 12:17 |
thrash | d0ugal: hmmm... no. Nothing that rings a bell. | 12:19 |
d0ugal | 'UUID'.repeat(10).enumerate().sliceWhere($[0] mod 4 = 0) | 12:19 |
d0ugal | That is the closest I have managed :) | 12:20 |
d0ugal | http://paste.openstack.org/show/600932/ | 12:20 |
thrash | that's quite impressive. | 12:20 |
*** shardy is now known as shardy_lunch | 12:20 | |
d0ugal | haha, in a bad way :) | 12:20 |
thrash | but not quite doing what you want. | 12:20 |
d0ugal | nope | 12:20 |
d0ugal | I guess I might write a custom YAQL function! | 12:21 |
thrash | sweet! | 12:21 |
d0ugal | thrash: actually, I could just use jinja2 | 12:24 |
d0ugal | http://jinja.pocoo.org/docs/2.9/templates/#batch | 12:24 |
d0ugal | but having YAQL and jinja2 in the same workflow is a bit nasty... | 12:24 |
tuan_ | d0ugal: Yeap, and the performance of using jinja2 is significantly better than YAQL | 12:31 |
d0ugal | tuan_: yeah, makes sense. I much prefer jinja2, it's a shame we (tripleo) started down the yaql route. | 12:32 |
d0ugal | There is no jinja2 documentation or jinja2 tests in Mistral :( | 12:33 |
d0ugal | Trying to guess how to use it. | 12:33 |
tuan_ | we Nokia will demonstrate it in this summer summit | 12:33 |
tuan_ | for the topic of Mistral performance | 12:33 |
d0ugal | tuan_: oh, cool | 12:33 |
tuan_ | however, do you know the reason behind that why Jinja2 is better than YAQL | 12:34 |
tuan_ | ? | 12:34 |
d0ugal | tuan_: no? | 12:34 |
tuan_ | both of them are written in Python | 12:34 |
d0ugal | well, I think the syntax is nicer and more people know it | 12:34 |
d0ugal | and it is far more mature :) | 12:34 |
tuan_ | :d, but these above reasons do not make the better performance | 12:35 |
d0ugal | haha, indeed | 12:35 |
d0ugal | I think the performance is better because it is "compiled" into native Python code. | 12:35 |
d0ugal | tuan_: are you familiar with using jinja2? | 12:37 |
tuan_ | yeah, i used to do it in ansible | 12:37 |
d0ugal | tuan_: does line 366 look correct? https://review.openstack.org/#/c/439568/1/workbooks/baremetal.yaml | 12:37 |
tuan_ | let me see | 12:38 |
d0ugal | I am not sure how you access the workflow variables but I think it is with the underscore from reading code | 12:38 |
tuan_ | but both of them are written in pure Python | 12:38 |
d0ugal | I am going to test it anyway, so no worries if you don't know :) | 12:38 |
tuan_ | why jinja is better than yaql | 12:38 |
tuan_ | haizz | 12:38 |
tuan_ | well, tripleO | 12:39 |
tuan_ | some companies in my country have plan to deploy openstack with tripleO and they ask me about that | 12:39 |
d0ugal | heh :) they should come and ask in #tripleo | 12:40 |
tuan_ | even Nokia is now using it too | 12:40 |
d0ugal | cool | 12:40 |
d0ugal | and tripleo uses Mistral, so it goes in full circle :) | 12:40 |
tuan_ | d0ugal: sorry dOugal, if you mean about undercore in your patch then i did not test with that | 12:46 |
tuan_ | even in ansible using jinja2, i have not used underscore before | 12:47 |
tuan_ | if you test it and it runs then i need to update my knowledge about this underscore thinggy | 12:47 |
tuan_ | :D | 12:47 |
d0ugal | tuan_: Okay, no problem. I shall find out soon :-D | 12:47 |
d0ugal | tuan_: In YAQL you use $ to access the context, I think in Jinja2 it is _ | 12:48 |
d0ugal | https://docs.openstack.org/developer/mistral/dsl/dsl_v2.html?#attributes | 12:48 |
d0ugal | It is actually mentioned in the docs here too | 12:48 |
d0ugal | "Dictionary of actual input parameters (expression context) is referenced as ‘$.’ in YAQL and as ‘_.’ in Jinja" | 12:48 |
tuan_ | okay | 12:49 |
tuan_ | :D | 12:49 |
tuan_ | my bad | 12:50 |
tuan_ | it is designed for mistral | 12:50 |
openstackgerrit | Brad P. Crochet proposed openstack/mistral-extra master: Set up mistral-extra with the ability to run unit tests https://review.openstack.org/437058 | 13:15 |
*** shardy_lunch is now known as shardy | 13:21 | |
*** fultonj has joined #openstack-mistral | 13:22 | |
*** thrash is now known as thrash|dr | 13:47 | |
*** zhurong has joined #openstack-mistral | 14:01 | |
*** ist has quit IRC | 14:13 | |
*** zhurong has quit IRC | 14:19 | |
*** zhurong has joined #openstack-mistral | 14:22 | |
openstackgerrit | Ryan Brady proposed openstack/mistral-lib master: Adds minimum common shared code for custom actions API https://review.openstack.org/411412 | 14:23 |
*** tuan_ has quit IRC | 14:24 | |
*** dprince has joined #openstack-mistral | 14:26 | |
*** tuan_ has joined #openstack-mistral | 14:29 | |
*** tuan_ has quit IRC | 14:44 | |
*** tuan has joined #openstack-mistral | 14:46 | |
*** sharatss has quit IRC | 15:05 | |
*** thrash|dr is now known as thrash | 15:06 | |
*** jaosorior has quit IRC | 15:12 | |
*** chlong has joined #openstack-mistral | 15:22 | |
*** chlong has quit IRC | 15:27 | |
*** chlong has joined #openstack-mistral | 15:28 | |
*** jistr is now known as jistr|biab | 15:29 | |
*** zhurong has quit IRC | 15:31 | |
*** chlong has quit IRC | 15:32 | |
*** ist has joined #openstack-mistral | 15:32 | |
*** chlong has joined #openstack-mistral | 15:36 | |
*** chlong has quit IRC | 15:41 | |
*** ist has quit IRC | 15:42 | |
*** chlong has joined #openstack-mistral | 15:52 | |
*** jistr|biab is now known as jistr | 15:56 | |
*** dprince has quit IRC | 16:13 | |
*** dnalezyt has joined #openstack-mistral | 16:47 | |
*** tuan has quit IRC | 17:09 | |
*** tuan has joined #openstack-mistral | 17:12 | |
*** rbrady has quit IRC | 17:21 | |
d0ugal | rakhmerov: What do you call the $ in YAQL? | 17:23 |
d0ugal | is it the context for that expression? | 17:24 |
d0ugal | The YAQL documentation calls it "current context" - I'll use that. | 17:25 |
*** dprince has joined #openstack-mistral | 17:27 | |
*** ist has joined #openstack-mistral | 17:28 | |
*** rbrady has joined #openstack-mistral | 17:30 | |
*** rbrady has quit IRC | 17:30 | |
*** rbrady has joined #openstack-mistral | 17:30 | |
*** sharat has joined #openstack-mistral | 17:51 | |
*** jpich has quit IRC | 18:00 | |
*** dprince has quit IRC | 18:22 | |
*** tuan has quit IRC | 18:33 | |
*** harlowja has quit IRC | 18:43 | |
*** harlowja has joined #openstack-mistral | 18:46 | |
openstackgerrit | Michal Gershenzon proposed openstack/mistral master: Update docs for tasks function https://review.openstack.org/433096 | 18:55 |
*** dprince has joined #openstack-mistral | 19:03 | |
*** shardy has quit IRC | 19:09 | |
*** sharat has quit IRC | 19:29 | |
*** chlong_ has joined #openstack-mistral | 20:01 | |
*** chlong has quit IRC | 20:01 | |
*** openstackgerrit has quit IRC | 20:03 | |
*** chlong_ has quit IRC | 20:08 | |
*** harlowja has quit IRC | 20:08 | |
*** chlong_ has joined #openstack-mistral | 20:20 | |
*** jrist has quit IRC | 20:29 | |
*** jkilpatr has quit IRC | 20:30 | |
*** jkilpatr has joined #openstack-mistral | 20:34 | |
*** chlong_ has quit IRC | 20:36 | |
*** jrist has joined #openstack-mistral | 20:42 | |
*** chlong_ has joined #openstack-mistral | 20:50 | |
*** harlowja has joined #openstack-mistral | 21:01 | |
*** harlowja has quit IRC | 21:01 | |
*** harlowja has joined #openstack-mistral | 21:01 | |
*** catintheroof has joined #openstack-mistral | 21:08 | |
*** catintheroof has quit IRC | 21:10 | |
*** catintheroof has joined #openstack-mistral | 21:10 | |
*** dprince has quit IRC | 21:15 | |
*** jkilpatr has quit IRC | 21:20 | |
*** jkilpatr has joined #openstack-mistral | 21:22 | |
*** dprince has joined #openstack-mistral | 21:22 | |
*** dprince has quit IRC | 21:26 | |
*** jkilpatr has quit IRC | 21:30 | |
*** jkilpatr has joined #openstack-mistral | 21:43 | |
*** chlong_ has quit IRC | 23:08 | |
*** catintheroof has quit IRC | 23:29 | |
*** jkilpatr has quit IRC | 23:33 | |
*** Guest27057 is now known as zigo | 23:57 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!