Thursday, 2016-06-02

*** Qiming has quit IRC00:00
*** toddjohn has joined #openstack-mistral00:57
*** cheneydc has joined #openstack-mistral00:59
*** toddjohn has quit IRC01:02
*** Qiming has joined #openstack-mistral01:12
*** vishwanathj has joined #openstack-mistral02:03
*** toddjohn has joined #openstack-mistral02:45
hparekhkong, Yeah OK, sure02:46
konghparekh :-)02:47
*** toddjohn has quit IRC02:50
*** vishwanathj has quit IRC03:01
openstackgerritMerged openstack/mistral: Fail/Success/Pause transition message  https://review.openstack.org/27662503:27
*** stevebaker has quit IRC03:27
*** stevebaker has joined #openstack-mistral03:29
rakhmerovkong: ok03:55
rakhmerovkong: did you make a release?04:00
rakhmerovhparekh: can you please write release notes and docs for your new cool feature (command messages) ?04:01
hparekhrakhmerov, Yes, I am on it. :)04:01
rakhmerovwe generally always need to keep in mind to write docs04:01
rakhmerovok, great04:02
kongrakhmerov: not yet, are there other patches we need to merge before release? besides hparekh's note04:05
konghparekh: when you have done the release not, please ping me, let's merge it asap04:12
hparekhkong, Ok sure04:12
kongI have 10 mins in office, but I will do that when I go back home. we still have time04:12
kongrakhmerov: are you checking?04:13
rakhmerovkong: nothing else from my side04:13
kongrakhmerov: ok04:13
rakhmerovlet's just wait for notes04:13
kongyeah04:13
rakhmerovkong, hparekh: my suggestin is to not wait for docs though, it can be done separately after release04:15
kongrakhmerov: ok, sure, then i do the job now04:17
konghparekh: take your time04:17
kong:-)04:17
rakhmerovkong: no-no, I mean docs only :)04:17
rakhmerovnot notes04:17
konghah04:17
kongsorry misunderstand you04:18
rakhmerovno problem04:18
konghparekh: ok, go ahead, haha04:18
openstackgerrithardik proposed openstack/mistral: Release notes for fail/pause/success transition message  https://review.openstack.org/32419904:19
openstackgerrithardik proposed openstack/mistral: Release notes for fail/pause/success transition message  https://review.openstack.org/32419904:21
hparekhkong, Done04:23
rakhmerovhparekh: can you please fix it a little bit?04:23
rakhmerovI left comments04:23
openstackgerrithardik proposed openstack/mistral: Release notes for fail/pause/success transition message  https://review.openstack.org/32419904:25
rakhmerovhparekh: Hardik, there's a gate failure in your patch for some reason04:37
rakhmerovhttp://logs.openstack.org/99/324199/3/check/gate-mistral-releasenotes/509b4aa/04:37
rakhmerovhparekh: seems like it didn't like ":" in the description because it's a YAQL markup symbol04:38
hparekhrakhmerov, yeah04:39
rakhmerovI guess we just need to use quotes04:39
hparekhI am checking04:39
rakhmerovaround "- fail .... %>"04:39
hparekhrakhmerov, Its not working04:54
rakhmerovquotes?04:54
hparekhyeah04:54
rakhmerovhm...04:55
rakhmerovweird04:55
rakhmerovyou can also do something like:04:56
rakhmerovooh, now04:57
rakhmerovno04:57
rakhmerovwait04:57
rakhmerovsomething like this should work but in case you don't have a list:04:58
rakhmerovtext: >04:58
rakhmerov   My text goes here04:58
rakhmerovI wonder if something like this will work:04:58
rakhmerov- >04:58
rakhmerov  My text goes here04:58
hparekhlet me try05:01
rakhmerovyeah, it works05:02
rakhmerovI made a simple program that does load from YAML like this and this is what I got:05:02
rakhmerov{'features': ['My text goes here with colons like : and dashes like -\n']}05:02
hparekhrakhmerov, my bab, actually tox was unable to get new changes05:08
openstackgerrithardik proposed openstack/mistral: Release notes for fail/pause/success transition message  https://review.openstack.org/32419905:08
hparekhalso I have to remove space before the "transition"05:12
rakhmerovhparekh: what about tox? Don't understand05:16
*** jtomasek has joined #openstack-mistral05:16
hparekhrakhmerov, If change is in my local machine (not committed) then while running tox it cannot get the change I made. I don't understand why ?05:20
rakhmerovhm.. dunno05:21
openstackgerrithardik proposed openstack/mistral: Release notes for fail/pause/success transition message  https://review.openstack.org/32419905:39
*** rbrady has quit IRC05:58
openstackgerritMerged openstack/mistral: Release notes for fail/pause/success transition message  https://review.openstack.org/32419906:17
*** rbrady has joined #openstack-mistral06:38
openstackgerritVenkata Mahesh Jonnalagadda proposed openstack/mistral: mistral actions for designate v1 api's not working  https://review.openstack.org/32424706:55
openstackgerritDougal Matthews proposed openstack/mistral: Use LOG.exception when logging exceptions  https://review.openstack.org/32330807:10
openstackgerritDougal Matthews proposed openstack/mistral: Use LOG.exception when logging exceptions  https://review.openstack.org/32330807:13
*** vishwanathj has joined #openstack-mistral07:15
*** vishwana_ has joined #openstack-mistral07:15
*** vishwanathj has quit IRC07:19
rakhmerovd0ugal: hey, pep8 is failing for some reason07:25
rakhmerovmaybe a line is longer than 8007:25
*** vishwana_ is now known as vishwanathj07:26
openstackgerritDougal Matthews proposed openstack/mistral: Use LOG.exception when logging exceptions  https://review.openstack.org/32330807:28
d0ugalrakhmerov: Oops. Sorry about that! I don't see a pep8 error locally :/ I think that should fix it tho' ^07:29
rakhmerovok )07:29
*** vishwanathj has quit IRC07:34
*** vishwanathj has joined #openstack-mistral08:14
openstackgerritVenkata Mahesh Jonnalagadda proposed openstack/mistral: mistral actions for designate v1 api's not working  https://review.openstack.org/32424708:25
openstackgerritMerged openstack/mistral: Use LOG.exception when logging exceptions  https://review.openstack.org/32330808:32
ddejaHi rakhmerov. I was thinkig a lot about what we would like to introduce into oslo and came up to conclusion that having both 'at least once' and 'at most once' delivery models is not fixing all problems.08:37
ddejaI took a step back and rethink the original problem which is "I want to know if executor died during the action execution"08:38
ddejaand even if o.m. implements at least once delivery model, it doesn't solve of problems08:39
ddejaas an example, let's use nova_boot action08:40
ddejait is obviously idempotent, so we can't use at least once delivery, couse we can end up with two VMs, instead of one08:41
ddejaso we have to use 'at most once' aaaaand we are in our todays situation08:42
ddejaI rethink how o.m. is now processing the message and from our perpective it looks like this: It's sending ACK and then it gives control to our method08:43
ddejaBut what if it could be change to something like that: O.M is getting the message from the queue and it is passing it to our method together with ACK method pointer08:44
ddejaso it would be our method which would decide when it want's to send ACK08:45
ddejait would give as ability to have a flow like this:08:45
ddeja1. engine sends action to do onto queue08:45
ddeja2. executor catches it and DO NOT send ACK at this time08:46
ddeja3. executor sends message telling "This is executor ABC, I'm doing job XYZ"08:46
ddeja4. Then executor sends ACK and start processing of a message; In the same time engine stores in the DB who is executinng action XYZ08:47
ddeja5. After executor ends, it sends result to engine as usual08:47
ddejawhat it would give to mistral?08:48
ddeja1. If executor dies before sending ACK it means that it hasn't started doing any actual logic of a task, so it is safe to reschedule it08:48
ddeja2. If executor dies after sending ACK it means that we have a knowledge what given executor was working on, so we can then decide if we want to fail workflow (task is not idempotent) or we want to reschedule it (task is idempotent)08:49
ddejaSo, two question remains: If you think if such desing is a good idea?08:50
ddejaAnd, of course, if such change would pass be accepted by oslo people08:50
ddejas/change would pass be accepted/would be accepted/08:51
ddejarakhmerov: I didn't send it to mailing list because I thought it may be good to first talk ofline with Joshua about this idea08:52
ddejabut of course I can send it anytime if you guys think it would be a better way08:53
ddejaAny comments? :)08:53
rakhmerovddeja: hi09:13
rakhmerovddeja: honestly, I think it's too complicated and won't solve the problem09:13
rakhmerovwe already tried to come up with something like this but decided not to proceed with it because09:14
rakhmerov1) Your step 3. Same problem here with receiving a message from executor to engine. Engine may not receive it so it won't know who is doing what09:15
rakhmerov2) A number of network hops will be higher, load on a message bus too09:15
rakhmerov3) Engine -> Executor is not the only problematic place because when we send a result back to engine the same may happen09:16
rakhmerov4) Same with Engine -> Engine communications09:16
rakhmerovSo essentially, by this design we are just moving this message delivery problem somewhere else09:17
rakhmerovbut it doesn't disapper09:17
rakhmerovand it won't disappear for fundamental reasons, basically CAP theorem09:18
rakhmerovso I think we shouldn't complicate protocols between components and come up with ideas on how to recover from those failures09:18
rakhmerovas far as nova boot not being idempotent, it's not so huge problem. Oftentimes you can make an idempotent action out of non-idempotent by just implementing a new action which first checks if some resource, for example, exists09:20
rakhmerovwe can make "nova.check_and_boot", for example09:20
rakhmerovso it will be idempotent and safe to run it multiple times09:20
rakhmerovnow, getting to how we can account for recovery09:21
rakhmerovremember we discussed what I call "maintenance mode"09:21
ddejayup09:22
rakhmerovso we could have that maintenance mode to be able to active it if we need to recover from failures, like a number of my executors died and I see that some of my workflows/tasks are stuck in the RUNNING state09:22
rakhmerovI should be able to repair them while being in that mode09:23
rakhmerovsaying, for example, "OK, I know that this action actually needs to run again because I don't see a result in my environment (e.g. VM is not created)"09:23
rakhmerovor "OK, I know that this action has actually completed so I just need to mark it SUCCESS" and continue09:24
rakhmerovthis is more about operational tooling09:24
ddejaOK09:26
ddejabut still I'm thining if the change to give a user ability to decide when he wants to send ACK may be more welcome in oslo...09:26
ddejabecouse with this we could achive 'at least once' without any problems09:27
ddejabut I gues I should just fire it to 'our' mistral + oslo thread on mailing list and see what happens09:29
ddejarakhmerov: and btw, Executor->Engine and Engine->Engine communication can work in 'at least once' model, so we are sure that engine gets the message09:32
ddejait may not solve all the problems, but it would make it less probable09:33
ddejaI agree with a higher load of message point :)09:33
rakhmerovddeja: yes, sure09:47
rakhmerovddeja: Dawid, I'm here mostly for flexibility09:48
rakhmerovI think we need to provide more configurability for users09:48
rakhmerovbecause all this things may heavily depend on use cases09:48
rakhmerovand, for example, if we could really configure delivery model per task it may be good too09:48
*** toddjohn has joined #openstack-mistral09:48
rakhmerovso my point here is: let's not make serious limitations on the design but add more flexibility to tune messaging for those who need to adapt Mistral for certain use cases09:50
rakhmerovand provide means for doing recovery work09:50
d0ugalhttp://docs.openstack.org/developer/pbr/#authors-and-changelog09:52
d0ugalMistral maintains it's own AUTHORS file, wouldn't pbr be easier?09:52
d0ugal(Since pbr is used anyway)09:53
ddejarakhmerov: OK, thanks. So I'm going to write an email about letting user to decide when he/she wants to send ACK and I'm getting back to work on mistral RPC layer :)09:54
*** shadow1234 has quit IRC09:54
rakhmerovd0ugal: ok, will look at it, I wasn't even aware shouldn't be doing it09:55
rakhmerovwell, usually it's autogenerated by pbr anyway, I guess09:55
d0ugalah09:55
rakhmerovwe just maintain .mailmap09:55
d0ugalI wasn't sure, I just spotted AUTHORS changes in 323697 which seemed unrelated to the change09:55
rakhmerovyeah, it gets updated upon any usage of pbr09:56
rakhmerovso sometimes it seems like it's done manually09:56
rakhmerovbut it's not09:56
rakhmerovddeja: yes, thanks man09:56
d0ugalI see, makes sense. I think it is just normall ignored. i.e. https://github.com/openstack/nova/blob/master/.gitignore#L2009:57
*** vishwanathj has quit IRC09:57
*** Qiming has quit IRC09:59
*** vishwanathj has joined #openstack-mistral10:07
*** cheneydc has quit IRC10:07
*** vishwanathj has quit IRC10:21
*** Qiming has joined #openstack-mistral10:56
*** toddjohn has quit IRC11:00
*** toddjohn has joined #openstack-mistral11:20
*** toddjohn has quit IRC11:44
openstackgerritVenkata Mahesh Jonnalagadda proposed openstack/mistral: mistral actions for designate v1 api's not working  https://review.openstack.org/32424711:58
*** rbrady has quit IRC11:59
*** rbrady has joined #openstack-mistral12:00
*** dprince has joined #openstack-mistral12:02
*** bobh has joined #openstack-mistral12:36
*** bobh has quit IRC12:41
openstackgerritVenkata Mahesh Jonnalagadda proposed openstack/mistral: mistral actions for designate v1 api's not working  https://review.openstack.org/32424713:07
openstackgerritRenat Akhmerov proposed openstack/mistral: Refactoring workflow handler  https://review.openstack.org/32369713:24
openstackgerritRenat Akhmerov proposed openstack/mistral: Refactoring workflow handler  https://review.openstack.org/32369713:32
openstackgerritJeff Peeler proposed openstack/mistral: Add missing argument in exception string  https://review.openstack.org/32412013:35
*** tonytan4ever has joined #openstack-mistral13:41
*** venkat has joined #openstack-mistral13:56
venkatHi, I am seeing jenkins job gate-mistral-python34 failed with "mistral.exceptions.DBEntityNotFoundException: Task execution not found [id=c9f316e3-67e5-4e66-bbf5-af30a74cde00]"13:57
venkatany clue here..13:57
venkathttp://logs.openstack.org/47/324247/4/check/gate-mistral-python34/0473098/console.html13:57
*** bobh has joined #openstack-mistral14:13
*** venkat has quit IRC14:32
mgershenmflobo: venkat error reminds me of the one you had (this was your summary: http://paste.openstack.org/show/497848/). Did you came to a conclusion about that issue?14:50
*** rena9067 has joined #openstack-mistral14:52
mflobomgershen, not yet. Cloning master branch it works15:08
mfloboI can reproduce the error using the RPM http://cbs.centos.org/koji/buildinfo?buildID=10492, which comes com tag 2.0.0 in githhub15:09
*** toddjohn has joined #openstack-mistral15:16
mgershenmflobo: I wonder if there is a connection. Anyway, good luck to you :)15:19
*** gyee has joined #openstack-mistral16:08
vgnbkrHi.  Can anyone point me to a doc describing "workflow_input" and "params" for cron-trigger-create?  Otherwise, can someone tell me what the difference is?  Or, point me to the code where they are used.  Thx.16:10
*** Qiming has quit IRC16:11
*** toddjohn has quit IRC16:23
mgershenvgnbkr: are you familiar with creating executions in mistral? execution-create also has these arguments.16:48
vgnbkrI have created executions with execution-create, but just specified workflow_input.  What is "params" for?16:50
vgnbkrmgershen, ^^16:50
vgnbkrIf you happen to have a workflow that uses them that you could share with me, that might do the trick.16:51
mgershenvgnbkr: It is not mandatory. I mostly use it for defining things that are environment related. You can put values in the params json file. One of them can be "env". "env" can be accessed from the workflow using a yaql expression like so: <% env() %>16:53
vgnbkrmgershen, hmm... if you happened to have an example you could share, I'm pretty sure that would do the trick.16:55
mgershenvgnbkr: I happened to open a bug with an example and it is fixed now, so you can use it: https://bugs.launchpad.net/mistral/+bug/156890916:57
openstackLaunchpad bug 1568909 in Mistral "execution of ad-hoc actions based on std.mistral_http always fails" [Medium,Fix released] - Assigned to Renat Akhmerov (rakhmerov)16:57
mgershenvgnbkr: hope this helps, I have to go now17:03
vgnbkrDefinitely helps, a little ways to go, though :-)  Thanks.17:03
vgnbkrmgershen, ^^17:04
*** toddjohn has joined #openstack-mistral17:11
*** toddjohn has quit IRC17:16
*** tonytan4ever has quit IRC17:17
*** gyee has quit IRC17:40
*** tonytan4ever has joined #openstack-mistral17:42
*** toddjohn has joined #openstack-mistral17:42
*** toddjohn has quit IRC17:46
*** toddjohn has joined #openstack-mistral18:17
*** harlowja has quit IRC18:44
*** openstack has joined #openstack-mistral19:41
*** dprince has quit IRC20:08
*** harlowja has joined #openstack-mistral20:24
*** gyee has joined #openstack-mistral20:31
*** tonytan4ever has quit IRC20:41
openstackgerritOpenStack Proposal Bot proposed openstack/mistral-extra: Updated from global requirements  https://review.openstack.org/32483521:06
openstackgerritOpenStack Proposal Bot proposed openstack/python-mistralclient: Updated from global requirements  https://review.openstack.org/32485821:11
*** toddjohn has quit IRC21:24
jpeelerrbrady: i'm sure you're gone for the day, but feel free to comment on https://review.openstack.org/#/c/32489421:54
openstackgerritMerged openstack/mistral-extra: Updated from global requirements  https://review.openstack.org/32483521:57
openstackgerritJeff Peeler proposed openstack/mistral: Add missing argument in exception string  https://review.openstack.org/32412022:03
kongrakhmerov: how about we remove the requirement.txt and test-requirment.txt from mistral-extra repo, it is annoying when we approve the update patches every time.22:12
*** openstackgerrit has quit IRC22:19
*** openstackgerrit has joined #openstack-mistral22:20
*** bobh has quit IRC22:22
openstackgerritLingxian Kong proposed openstack/mistral: Remove AUTHORS file from git tracking  https://review.openstack.org/32490522:28
openstackgerritMerged openstack/mistral: Updated from global requirements  https://review.openstack.org/32483422:30
*** tonytan4ever has joined #openstack-mistral23:06
*** Qiming has joined #openstack-mistral23:09
*** Qiming has quit IRC23:40
*** vishwanathj has joined #openstack-mistral23:49
*** rena9067 has quit IRC23:56

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