Wednesday, 2017-03-01

*** rbux has joined #openstack-mistral00:21
*** rbux has quit IRC00:26
*** rbux has joined #openstack-mistral00:27
*** jamielennox is now known as jamielennox|away00:36
*** jamielennox|away is now known as jamielennox00:44
*** thrash is now known as thrash|g0ne01:56
*** rbux has quit IRC02:16
*** rbrady has joined #openstack-mistral02:17
*** rbrady has quit IRC02:17
*** rbrady has joined #openstack-mistral02:17
*** gongysh has joined #openstack-mistral02:33
*** zhurong has joined #openstack-mistral03:03
*** zhurong has quit IRC03:13
openstackgerritRyan Brady proposed openstack/mistral-lib master: Adds minimum common shared code for custom actions API  https://review.openstack.org/41141203:19
*** sharatss has joined #openstack-mistral05:06
*** sharat has joined #openstack-mistral06:00
*** sharatss has quit IRC06:00
*** ist has joined #openstack-mistral06:44
*** sharat is now known as sharatss07:04
*** jaosorior has joined #openstack-mistral07:09
openstackgerritMerged openstack/python-mistralclient master: Updated from global requirements  https://review.openstack.org/43935707:15
openstackgerritMerged openstack/mistral master: Updated from global requirements  https://review.openstack.org/43773107:17
openstackgerritMerged openstack/mistral master: Update Dockerfile to use Xenial  https://review.openstack.org/43793907:18
openstackgerritMerged openstack/mistral master: Force Python 2 for documentation builds  https://review.openstack.org/43543707:18
*** sharatss has quit IRC07:55
*** sharatss has joined #openstack-mistral07:56
*** sharatss has quit IRC08:02
*** sharatss has joined #openstack-mistral08:03
*** jtomasek has quit IRC08:10
*** jtomasek has joined #openstack-mistral08:12
*** shardy has joined #openstack-mistral08:19
d0ugalCan Mistral actions accept **kwargs?09:02
d0ugalI 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-mistral09:09
ddejad0ugal: I think they do09:24
d0ugalddeja: 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 IRC09:30
*** vishwanathj has joined #openstack-mistral09:31
*** sharat has joined #openstack-mistral09:39
*** sharatss has quit IRC09:39
*** sharat has quit IRC10:11
*** sharatss has joined #openstack-mistral10:12
*** gongysh has quit IRC10:17
*** sharatss has quit IRC10:22
*** tuan_ has joined #openstack-mistral11:08
*** thrash|g0ne is now known as thrash11:20
*** jkilpatr has quit IRC11:40
*** jkilpatr has joined #openstack-mistral12:13
openstackgerritBrad P. Crochet proposed openstack/mistral-extra master: Set up mistral-extra with the ability to run unit tests  https://review.openstack.org/43705812:13
*** sharatss has joined #openstack-mistral12:15
d0ugalthrash: In your YAQL adventures, have you came across a way to batch a list?12:16
d0ugalthrash: i.e. batching by 3: [1,2,3,4,5,6,7] becomes [[1,2,3],[4,5,6],[7]]12:17
thrashd0ugal: hmmm... no. Nothing that rings a bell.12:19
d0ugal'UUID'.repeat(10).enumerate().sliceWhere($[0] mod 4 = 0)12:19
d0ugalThat is the closest I have managed :)12:20
d0ugalhttp://paste.openstack.org/show/600932/12:20
thrashthat's quite impressive.12:20
*** shardy is now known as shardy_lunch12:20
d0ugalhaha, in a bad way :)12:20
thrashbut not quite doing what you want.12:20
d0ugalnope12:20
d0ugalI guess I might write a custom YAQL function!12:21
thrashsweet!12:21
d0ugalthrash: actually, I could just use jinja212:24
d0ugalhttp://jinja.pocoo.org/docs/2.9/templates/#batch12:24
d0ugalbut 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 YAQL12:31
d0ugaltuan_: yeah, makes sense. I much prefer jinja2, it's a shame we (tripleo) started down the yaql route.12:32
d0ugalThere is no jinja2 documentation or jinja2 tests in Mistral :(12:33
d0ugalTrying to guess how to use it.12:33
tuan_we Nokia will demonstrate it in this summer summit12:33
tuan_for the topic of Mistral performance12:33
d0ugaltuan_: oh, cool12:33
tuan_however, do you know the reason behind that why Jinja2 is better than YAQL12:34
tuan_?12:34
d0ugaltuan_: no?12:34
tuan_both of them are written in Python12:34
d0ugalwell, I think the syntax is nicer and more people know it12:34
d0ugaland it is far more mature :)12:34
tuan_:d, but these above reasons do not make the better performance12:35
d0ugalhaha, indeed12:35
d0ugalI think the performance is better because it is "compiled" into native Python code.12:35
d0ugaltuan_: are you familiar with using jinja2?12:37
tuan_yeah, i used to do it in ansible12:37
d0ugaltuan_: does line 366 look correct? https://review.openstack.org/#/c/439568/1/workbooks/baremetal.yaml12:37
tuan_let me see12:38
d0ugalI am not sure how you access the workflow variables but I think it is with the underscore from reading code12:38
tuan_but both of them are written in pure Python12:38
d0ugalI am going to test it anyway, so no worries if you don't know :)12:38
tuan_why jinja is better than yaql12:38
tuan_haizz12:38
tuan_well, tripleO12:39
tuan_some companies in my country have plan to deploy openstack with tripleO and they ask me about that12:39
d0ugalheh :) they should come and ask in #tripleo12:40
tuan_even Nokia is now using it too12:40
d0ugalcool12:40
d0ugaland 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 that12:46
tuan_even in ansible using jinja2, i have not used underscore before12:47
tuan_if you test it and it runs then i need to update my knowledge about this underscore thinggy12:47
tuan_:D12:47
d0ugaltuan_: Okay, no problem. I shall find out soon :-D12:47
d0ugaltuan_: In YAQL you use $ to access the context, I think in Jinja2 it is _12:48
d0ugalhttps://docs.openstack.org/developer/mistral/dsl/dsl_v2.html?#attributes12:48
d0ugalIt is actually mentioned in the docs here too12:48
d0ugal"Dictionary of actual input parameters (expression context) is referenced as ‘$.’ in YAQL and as ‘_.’ in Jinja"12:48
tuan_okay12:49
tuan_:D12:49
tuan_my bad12:50
tuan_it is designed for mistral12:50
openstackgerritBrad P. Crochet proposed openstack/mistral-extra master: Set up mistral-extra with the ability to run unit tests  https://review.openstack.org/43705813:15
*** shardy_lunch is now known as shardy13:21
*** fultonj has joined #openstack-mistral13:22
*** thrash is now known as thrash|dr13:47
*** zhurong has joined #openstack-mistral14:01
*** ist has quit IRC14:13
*** zhurong has quit IRC14:19
*** zhurong has joined #openstack-mistral14:22
openstackgerritRyan Brady proposed openstack/mistral-lib master: Adds minimum common shared code for custom actions API  https://review.openstack.org/41141214:23
*** tuan_ has quit IRC14:24
*** dprince has joined #openstack-mistral14:26
*** tuan_ has joined #openstack-mistral14:29
*** tuan_ has quit IRC14:44
*** tuan has joined #openstack-mistral14:46
*** sharatss has quit IRC15:05
*** thrash|dr is now known as thrash15:06
*** jaosorior has quit IRC15:12
*** chlong has joined #openstack-mistral15:22
*** chlong has quit IRC15:27
*** chlong has joined #openstack-mistral15:28
*** jistr is now known as jistr|biab15:29
*** zhurong has quit IRC15:31
*** chlong has quit IRC15:32
*** ist has joined #openstack-mistral15:32
*** chlong has joined #openstack-mistral15:36
*** chlong has quit IRC15:41
*** ist has quit IRC15:42
*** chlong has joined #openstack-mistral15:52
*** jistr|biab is now known as jistr15:56
*** dprince has quit IRC16:13
*** dnalezyt has joined #openstack-mistral16:47
*** tuan has quit IRC17:09
*** tuan has joined #openstack-mistral17:12
*** rbrady has quit IRC17:21
d0ugalrakhmerov: What do you call the $ in YAQL?17:23
d0ugalis it the context for that expression?17:24
d0ugalThe YAQL documentation calls it "current context" - I'll use that.17:25
*** dprince has joined #openstack-mistral17:27
*** ist has joined #openstack-mistral17:28
*** rbrady has joined #openstack-mistral17:30
*** rbrady has quit IRC17:30
*** rbrady has joined #openstack-mistral17:30
*** sharat has joined #openstack-mistral17:51
*** jpich has quit IRC18:00
*** dprince has quit IRC18:22
*** tuan has quit IRC18:33
*** harlowja has quit IRC18:43
*** harlowja has joined #openstack-mistral18:46
openstackgerritMichal Gershenzon proposed openstack/mistral master: Update docs for tasks function  https://review.openstack.org/43309618:55
*** dprince has joined #openstack-mistral19:03
*** shardy has quit IRC19:09
*** sharat has quit IRC19:29
*** chlong_ has joined #openstack-mistral20:01
*** chlong has quit IRC20:01
*** openstackgerrit has quit IRC20:03
*** chlong_ has quit IRC20:08
*** harlowja has quit IRC20:08
*** chlong_ has joined #openstack-mistral20:20
*** jrist has quit IRC20:29
*** jkilpatr has quit IRC20:30
*** jkilpatr has joined #openstack-mistral20:34
*** chlong_ has quit IRC20:36
*** jrist has joined #openstack-mistral20:42
*** chlong_ has joined #openstack-mistral20:50
*** harlowja has joined #openstack-mistral21:01
*** harlowja has quit IRC21:01
*** harlowja has joined #openstack-mistral21:01
*** catintheroof has joined #openstack-mistral21:08
*** catintheroof has quit IRC21:10
*** catintheroof has joined #openstack-mistral21:10
*** dprince has quit IRC21:15
*** jkilpatr has quit IRC21:20
*** jkilpatr has joined #openstack-mistral21:22
*** dprince has joined #openstack-mistral21:22
*** dprince has quit IRC21:26
*** jkilpatr has quit IRC21:30
*** jkilpatr has joined #openstack-mistral21:43
*** chlong_ has quit IRC23:08
*** catintheroof has quit IRC23:29
*** jkilpatr has quit IRC23:33
*** Guest27057 is now known as zigo23:57

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