Monday, 2016-11-14

*** bobh has joined #openstack-mistral00:36
*** bobh has quit IRC02:21
*** bobh has joined #openstack-mistral03:22
*** bobh has quit IRC03:26
*** rrecio has joined #openstack-mistral04:03
*** rrecio has quit IRC04:13
*** janki has joined #openstack-mistral04:49
*** bobh has joined #openstack-mistral05:23
*** bobh has quit IRC05:28
sharatsshi05:39
*** jaosorior has joined #openstack-mistral06:09
rakhmerovddeja: hi, can you please review https://review.openstack.org/#/c/395696/ ?06:29
*** sharatss has quit IRC06:31
*** sharatss has joined #openstack-mistral06:32
*** jaosorior has quit IRC06:39
*** jaosorior has joined #openstack-mistral06:39
*** AlexeyAbashkin has joined #openstack-mistral06:51
*** AlexeyAbashkin has quit IRC06:57
*** bobh has joined #openstack-mistral07:25
*** jaosorior has quit IRC07:27
*** bobh has quit IRC07:30
*** hparekh has joined #openstack-mistral07:30
openstackgerritSharat Sharma proposed openstack/mistral: Added senlin action pack  https://review.openstack.org/39558707:47
*** jaosorior has joined #openstack-mistral07:55
*** AlexeyAbashkin has joined #openstack-mistral07:56
*** shardy has joined #openstack-mistral07:58
openstackgerrithnyang proposed openstack/mistral-extra: Add clone vm example  https://review.openstack.org/39684008:04
openstackgerritMerged openstack/python-mistralclient: Remove unused scripts in tools  https://review.openstack.org/39554608:08
*** ^Gal^ has joined #openstack-mistral08:14
openstackgerrithnyang proposed openstack/mistral-extra: Add clone vm example  https://review.openstack.org/39684008:19
*** sharatss has quit IRC08:20
*** sharatss has joined #openstack-mistral08:21
ddejarakhmerov: sure, I have a meeting in 5 minutes but after that I'll review this08:26
openstackgerritMerged openstack/mistral: Migrate mistral task_type  https://review.openstack.org/39574208:34
openstackgerritMerged openstack/mistral: Remove unused scripts in tools  https://review.openstack.org/39554708:34
openstackgerritMerged openstack/mistral: Fix missing exception decorators in REST API  https://review.openstack.org/39570508:39
*** d0ugal has joined #openstack-mistral08:43
openstackgerritSharat Sharma proposed openstack/mistral: Added senlin action pack  https://review.openstack.org/39558708:44
*** jpich has joined #openstack-mistral08:48
*** AlexeyAbashkin has quit IRC09:04
openstackgerritSharat Sharma proposed openstack/mistral: Few changes in the doc  https://review.openstack.org/39706709:10
xavierhardyhow does Jinja2 support works in Mistral ?09:18
xavierhardyHi everyone09:18
openstackgerritSharat Sharma proposed openstack/mistral: Added senlin action pack  https://review.openstack.org/39558709:21
*** brunograz1 has joined #openstack-mistral09:34
*** brunograz has quit IRC09:36
d0ugalxavierhardy: Good question. It isn't documented :(09:38
d0ugalxavierhardy: for YAQL, you use <% %>09:39
xavierhardyYes09:39
d0ugalxavierhardy: for jinja2 I think it is just {{ }}09:39
xavierhardyand for Jinja2 {{ }} ?09:39
xavierhardyOK09:39
xavierhardyI've seen in the code that it's possible to export custom functions for both YAQL and Jinja2 at the same time, that's cool09:40
d0ugalYeah, this seems to confirm it: https://github.com/openstack/mistral/blob/master/mistral/expressions/jinja_expression.py#L2909:40
d0ugalYeah, it does seem possible :)09:40
xavierhardywhich one gets called first ?09:41
d0ugalNot sure.09:42
xavierhardyor are they mutually exclusive ?09:42
xavierhardyOK09:42
d0ugalI don't really understand09:42
d0ugalI guess they are mutually exclusive - you either have jinja2 or yaql09:42
d0ugalboth sounds messy :)09:42
xavierhardyno, apparently, you have both at the same time, hence "evaluators" is a plural09:42
xavierhardybut I'm not sure if you can use both in an expression in the same time09:43
d0ugalRight09:43
xavierhardyand what i'm not sure about is the type in Jinja209:43
d0ugalI think you can probably have both in the workflow, but not in the same expression09:43
d0ugalWhat do you mean by type? I didn't know jinja2 had different types :)09:43
xavierhardyJinja2 just outputs string, what if I want to output an integer (and no the stirng of an integer)09:43
d0ugalhm09:43
d0ugalgood question09:43
*** ^Gal^ has quit IRC09:45
d0ugalWe need to be *much* stricter about requiring documentation for features IMO09:47
*** openstackgerrit has quit IRC09:47
*** openstackgerrit has joined #openstack-mistral09:48
xavierhardyyes09:56
openstackgerritSharat Sharma proposed openstack/mistral:  Added pyv8 in requirement.txt in mistral code for bug ID : 1551561  closes-Bug: #1551561  https://review.openstack.org/36934210:00
openstackbug 1551561 in Mistral "pyv8 is not required by mistral but javascipt action is installed by default" [Undecided,In progress] https://launchpad.net/bugs/1551561 - Assigned to Sharat Sharma (sharat-sharma)10:00
openstackgerritIstvan Imre proposed openstack/python-mistralclient: Region name related command line arguments are added  https://review.openstack.org/38640310:07
openstackgerritSharat Sharma proposed openstack/mistral: Added pyv8 in requirement.txt  https://review.openstack.org/36934210:08
openstackgerritMerged openstack/mistral: Fix REST API dangling transactions  https://review.openstack.org/39569610:16
xavierhardyThe line already contains an expression of type 'jinja'. Mixing expression types in a single line is not allowed.10:20
xavierhardyOK, so you can't mix them10:20
xavierhardyCool, that was merged !10:20
ddejaxavierhardy: your welcome ;)10:21
rakhmerovxavierhardy, d0ugal: you're right about the syntax. For jinja it's just {{}}10:35
d0ugalrakhmerov: thanks10:35
rakhmerovyou can use both at the same time10:35
rakhmerovwithin one YAML10:36
rakhmerovbut not within one string10:36
rakhmerovthat's the rule to remember10:36
d0ugalMakes sense :)10:36
rakhmerovas far as types: it should be the same with YAQL and Jinja10:37
xavierhardy?10:37
rakhmerovtype translations happen after parsing and evaluating expressions10:37
xavierhardyJinja2 only produces String10:37
xavierhardy*strings10:37
rakhmerovyes, right10:37
rakhmerovYAQL in many cases too10:37
rakhmerovbut then we convert values with json.loads()10:37
xavierhardy?10:38
xavierhardyis it done ?10:38
rakhmerovassuming that we have JSON-compatible values10:38
rakhmerovyes10:38
xavierhardyOK10:38
rakhmerovif it's not done then this is a bug, but we have a bunch of tests for it10:38
xavierhardyat which point is it done ?10:38
xavierhardyfor the whole string ?10:38
rakhmerovwhat do you mean by point? Place in code?10:39
rakhmerovd0ugal: would you be able to drive a meeting today?10:39
rakhmerovI'm sick today10:39
d0ugalrakhmerov: Sure10:39
xavierhardyyes and no, in the evaluation pipeline?10:39
d0ugalrakhmerov: I wanted to discuss the meeting time today, as it has been a week since I posted that etherpad now and I don't think we are getting any more replies10:40
rakhmerovwell, somewhere in expressions module we have something like "evaluate_recursively()" method where we pass any structure (list, dict or string)10:40
rakhmerovand this structure is inspected and all expressions are evaluated10:41
rakhmerovand get converted with json.loads()10:41
rakhmerovd0ugal: ok, sure10:41
xavierhardyindeed:10:41
xavierhardy{"result": 42}10:41
xavierhardythat was a test of {{ _.status }} with status equals to 4210:41
rakhmerovd0ugal: I'm ok with all times in the range I specified10:41
rakhmerovxavierhardy: and so? I'm not sure I understand what you mean by that10:45
rakhmerovyou still have some concerns?10:45
xavierhardyno, it's fine10:46
*** therve has quit IRC10:46
xavierhardyIt makes sense that YAQL and Jinja2 can't be used in the same string (because else comes the question: "who's first?")10:47
openstackgerritSharat Sharma proposed openstack/mistral: Migrated to the new oslo.db enginefacade  https://review.openstack.org/39712510:47
xavierhardyand it makes sense to use json.loads to check the type of the output10:47
xavierhardythat's really cool10:47
rakhmerovok :)10:47
rakhmerovyeah, it is cool10:47
xavierhardy+ you can actually use any evaluator (as it is now configurable)10:48
rakhmerovxavierhardy: please not that jinja has some cool stuff like {{ if ... }} {{ else }} blocks10:48
rakhmerovwhich is missing in YAQL10:48
xavierhardyyes, and many know how to use Jinja2 but not YAQL (which unfortunately very powerful but lacks documentation)10:48
rakhmerovwith them you can insert blocks if texts based on some conditions10:48
xavierhardy(though it should be fixed soon)10:48
rakhmerovxavierhardy: YAQL's documentation is claimed to be good now (but I still need to check)10:49
xavierhardy\o/10:49
xavierhardyhttp://yaql.readthedocs.io/en/latest/standard_library.html10:49
rakhmerova month or two ago they started documenting all the functions10:49
xavierhardyYes, I know they rejected my Change Request10:50
xavierhardyand actually forked their WIP changes and uploaded them on Git pages10:50
xavierhardy;)10:50
xavierhardyhttps://yaql.github.io/standard_library.html10:50
rakhmerov:)10:50
xavierhardybut now, it is now unnecessary10:50
*** d0ugal has quit IRC10:56
xavierhardycan someone review this please: https://review.openstack.org/#/c/396128/ ? It is also quite an important bug.10:57
rakhmerovok11:00
rakhmerovxavierhardy: why do you delete a transactions in https://review.openstack.org/#/c/396128/2/mistral/services/triggers.py ?11:01
xavierhardybecause I start in higher level if I remember well11:02
xavierhardylet me check11:02
rakhmerovok11:02
xavierhardyyes11:02
xavierhardyhttps://review.openstack.org/#/c/396128/2/mistral/api/controllers/v2/event_trigger.py11:02
xavierhardythe get and delete/update need to be in the same transaction11:03
xavierhardyto avoid race conditions11:03
rakhmerovooh, I see11:03
rakhmerovok11:03
rakhmerovgood11:03
*** d0ugal has joined #openstack-mistral11:05
rakhmerovxavierhardy: done11:05
xavierhardyCool11:05
rakhmerovd0ugal: please take a look too once you have time11:05
d0ugalrakhmerov: at what? Sorry, my connection dropped.11:05
rakhmerovd0ugal: still planning to implement tests for that bug?11:06
xavierhardyhttps://review.openstack.org/#/c/396128/11:06
rakhmerovooh, https://review.openstack.org/#/c/396128/11:06
d0ugalrakhmerov: Which bug?11:06
*** brunograz1 has quit IRC11:06
d0ugaloh, that one.11:06
rakhmerovwhat we did on Thursday-Friday11:06
d0ugalYup11:06
rakhmerovok11:06
rakhmerovwe need to make sure that this is covered11:07
rakhmerovto prevent from regressions11:07
d0ugalRight, I can try adding tests. I need to think about the best way to do that.11:07
xavierhardybtw, shouldn't we merge that on stable/newton ?11:10
d0ugalxavierhardy: Yeah, I was just wondering about backports.11:16
d0ugalrakhmerov: ^11:16
*** AlexeyAbashkin has joined #openstack-mistral11:27
xavierhardywait before merging, lazy loading is used in some of the controllers11:50
xavierhardywe need to check those too11:50
xavierhardyTasksController.get11:50
xavierhardyfor instance11:50
*** brunograz has joined #openstack-mistral11:52
*** sharatss has quit IRC11:56
*** sharatss has joined #openstack-mistral12:03
openstackgerritXavier Hardy proposed openstack/mistral: Fix possible DB race conditions in REST controller  https://review.openstack.org/39612812:05
*** shardy is now known as shardy_lunch12:09
*** mgershen has quit IRC12:12
*** dprince has joined #openstack-mistral12:21
d0ugalrakhmerov: ^ see the update12:21
d0ugalrakhmerov: and backport of one patch: https://review.openstack.org/#/c/397158/12:21
d0ugalI don't think I'll have time to write tests today, I'm not feeling all that great.12:22
d0ugaland my head is too slow to figure out how I would do it12:22
*** catintheroof has joined #openstack-mistral12:24
*** AlexeyAbashkin has quit IRC12:35
*** bobh has joined #openstack-mistral13:00
*** bobh has quit IRC13:00
*** bobh has joined #openstack-mistral13:01
*** hparekh has quit IRC13:06
*** janki has quit IRC13:16
*** janki has joined #openstack-mistral13:21
*** bobh has quit IRC13:28
*** shardy_lunch is now known as shardy13:31
*** AlexeyAbashkin has joined #openstack-mistral13:49
xavierhardyhttps://review.openstack.org/#/c/397199/13:51
xavierhardycherry picking the Dangling transaction fix13:51
xavierhardyThat's my first time cherry picking on Gerrit and OpenStack. I followed this: http://docs.openstack.org/project-team-guide/stable-branches.html . I hope this is fine.13:52
xavierhardy(with conflicts here)13:52
*** sharatss has quit IRC13:59
*** AlexeyAbashkin has quit IRC14:02
*** khamtamtun has joined #openstack-mistral14:04
*** clenimar has joined #openstack-mistral14:04
*** bobh has joined #openstack-mistral14:07
*** khamtamtun has quit IRC14:16
*** rbrady has joined #openstack-mistral14:23
*** khamtamtun has joined #openstack-mistral14:25
*** ^Gal^ has joined #openstack-mistral14:28
*** jaosorior has quit IRC14:39
*** jaosorior has joined #openstack-mistral14:40
*** khamtamtun has quit IRC14:41
*** khamtamtun has joined #openstack-mistral14:42
*** khamtamtun has quit IRC14:43
*** catintheroof has quit IRC14:48
*** catintheroof has joined #openstack-mistral14:51
*** sharatss has joined #openstack-mistral14:51
*** bobh has quit IRC14:54
*** sharatss has quit IRC14:57
*** janki has quit IRC15:09
d0ugalxavierhardy: looks good, just trying to figure out why CI failed.15:09
*** rrecio has joined #openstack-mistral15:12
xavierhardyYes, I am not under the impression that it's linked to the code, but I might be wrong15:16
*** clenimar has quit IRC15:22
*** sharatss has joined #openstack-mistral15:43
*** sharatss has quit IRC15:49
*** sharatss has joined #openstack-mistral15:51
d0ugalMistral meeting in 8 minutes in #openstack-meeting15:52
*** mgershen has joined #openstack-mistral15:54
d0ugalMistral meeting started.16:00
*** thrash has joined #openstack-mistral16:02
*** rrecio has quit IRC16:03
*** rrecio_ has joined #openstack-mistral16:08
*** khamtamtun has joined #openstack-mistral16:23
* d0ugal should probably go a bit more slowly :)16:24
ddejanah, that was OK16:25
sharatssd0ugal: that was cool!16:26
*** sharatss has quit IRC16:41
*** khamtamtun has quit IRC16:43
*** weshay is now known as weshay_brb16:46
*** khamtamtun has joined #openstack-mistral16:49
*** shardy has quit IRC16:51
*** jaosorior has quit IRC17:05
*** jaosorior has joined #openstack-mistral17:08
*** rbrady is now known as rbrady-afk17:08
*** szaher has quit IRC17:21
*** weshay_brb is now known as weshay17:29
*** khamtamtun has quit IRC17:29
*** khamtamtun has joined #openstack-mistral17:29
*** jpich has quit IRC17:36
*** khamtamtun has quit IRC17:40
*** khamtamtun has joined #openstack-mistral17:46
*** jaosorior has quit IRC17:51
*** khamtamtun has quit IRC17:57
*** khamtamtun has joined #openstack-mistral17:57
*** khamtamtun has quit IRC18:07
*** khamtamtun has joined #openstack-mistral18:08
*** mgershen has quit IRC18:18
*** khamtamtun has quit IRC18:18
*** bobh has joined #openstack-mistral18:24
*** khamtamtun has joined #openstack-mistral18:40
*** khamtamtun has quit IRC18:50
*** bobh has quit IRC19:02
*** khamtamtun has joined #openstack-mistral19:06
*** dprince has quit IRC19:22
*** khamtamtun has quit IRC19:26
*** rbrady-afk is now known as rbrady19:27
*** khamtamtun has joined #openstack-mistral19:27
*** thrash is now known as thrash|biab19:57
*** mgershen has joined #openstack-mistral20:17
*** khamtamtun has quit IRC20:27
*** khamtamtun has joined #openstack-mistral20:31
*** thrash|biab is now known as thrash20:38
*** dprince has joined #openstack-mistral20:41
*** khamtamtun has quit IRC20:51
*** khamtamtun has joined #openstack-mistral20:53
*** khamtamtun has quit IRC20:55
*** zaneb has joined #openstack-mistral21:07
*** mgershen has quit IRC21:29
*** mgershen has joined #openstack-mistral23:03
*** dprince has quit IRC23:06
*** mgershen has quit IRC23:09

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