Wednesday, 2017-01-25

*** shardy has quit IRC00:01
*** bobh has joined #openstack-mistral00:51
*** bobh has quit IRC00:51
*** bobh has joined #openstack-mistral00:51
*** bobh has quit IRC00:51
*** bobh has joined #openstack-mistral01:37
*** bobh has quit IRC01:57
*** bobh has joined #openstack-mistral02:14
*** thrash is now known as thrash|g0ne03:33
*** bobh has quit IRC04:25
*** jamielennox is now known as jamielennox|away05:06
*** gongysh has joined #openstack-mistral05:18
d0ugalrakhmerov: hey07:46
rakhmerovhi07:49
d0ugalrakhmerov: I have a workflow style question if you have a moment :)07:49
rakhmerovyes07:50
rakhmerovsure07:50
d0ugalIn the TripleO workflows we are repeating these two tasks in every workflow. https://github.com/openstack/tripleo-common/blob/master/workbooks/plan_management.yaml#L290-L30507:50
d0ugalCan you think of a better way?07:50
d0ugalI guess I could shorten it a bit with a sub-workflow call or an ad-hoc action, but it probably wouldn't be that much better...07:50
rakhmerovok, let me see07:51
d0ugalI might try the ad-hoc action.07:51
d0ugalso far I count that we have it copy and pasted 29 times!07:52
d0ugalso updating it has become painful07:52
d0ugal(30 times actually, just updated my git clone)07:53
rakhmerovhm..07:54
rakhmerovyeah, an ad-hoc could probably help07:54
rakhmerovexcept I'm not sure what you'll be doing with fail_workflow07:55
rakhmerovooh, btw07:55
rakhmerovwould it be better to do "on-success: - fail: <% ... %>" ?07:55
rakhmerovif your goal is to fail the whole workflow then there's a special command for that07:56
rakhmerov'fail'07:56
d0ugalrakhmerov: !!07:56
d0ugalI did not know about that07:56
d0ugalThat is the goal indeed07:56
d0ugalrakhmerov: so, when our workflow has an error we want it to send a zaqar message. However, that means the final task is a success - this means that sub-workflow executions don't error well for the parent workflow.07:56
rakhmerovthere are reserved words in Mistral that we call "engine commands": succeed, fail, pause, noop07:57
d0ugalawesome. that will help a bunch - then I can remove the extra task.07:57
rakhmerovnot sure what you said :)07:57
d0ugalhaha, sorry, it is confusing.07:57
d0ugalrakhmerov: so, Workflow A has a task that fails, the on-error triggers another task that sends a zaqar message.07:58
rakhmerovyeah, re-read, kind of makes sense07:58
d0ugalThat workflow then doesn't look like it failed.07:58
rakhmerovyep07:58
rakhmerovuse 'fail'07:58
d0ugalso if Workblow B calls Workflow A, then it doesn't know if it failed or not07:58
d0ugalyup, I will update to use that :)07:58
d0ugalAre these special words in the docs?07:58
rakhmerovalso, you may want to look at task-defaults07:58
rakhmerovnot sure whether you use them or not07:58
d0ugaltask-defaults?! haha is that in the docs?07:59
d0ugalI should have asked about this before :)07:59
rakhmerovfor example, if you need to have exact same handling in every workflow task you can define this handling once in task-defaults section under the workflow itself07:59
rakhmerovit's in docs, yes07:59
rakhmerovyou can do, for example07:59
rakhmerovwf:07:59
rakhmerov  task-defaults:07:59
rakhmerov    on-error: fail08:00
d0ugalright08:00
d0ugalhmm, I am not sure if that would help - I will try.08:01
d0ugalrakhmerov: is "fail" implemented as a task that is included in every workflow?08:02
rakhmerovwoow, f...ck08:08
rakhmerovd0ugal: 'task-defaults' is in docs but these engine commands seem to be not08:08
rakhmerovgosh..08:08
rakhmerovI'll create a BP08:08
d0ugalrakhmerov: I found it in an example, but can't see it otherwise08:08
rakhmerovyes08:08
d0ugalhttp://docs.openstack.org/developer/mistral/dsl/dsl_v2.html#id108:08
rakhmerovyes, but it's not explained well anywhere08:09
rakhmerovso, answering your questions08:09
rakhmerovthese commands are not implemented as tasks08:09
rakhmerovthey are just direct instructions for engine08:09
d0ugalok, cool08:10
rakhmerovwhat to do with a workflow execution08:10
d0ugaland they are called "engine commands"?08:10
rakhmerovessentially all of them are just intended to change a workflow execution state08:10
rakhmerovyes08:10
d0ugalI am trying to figure out what to write in my commit message :)08:10
rakhmerovyes08:10
rakhmerovengine commands08:10
d0ugalthanks!08:10
rakhmerovwe'll write docs for them asap08:10
rakhmerovit's a very cool feature08:11
d0ugalI can probably do that, if you tell me what all the commands are and check what I write is correct :)08:11
rakhmerovthat would be awesome08:13
rakhmerovgive me a few min..08:13
d0ugalIs it accurate to say that it can be used anywhere you can call a task?08:15
rakhmerovin on-xxx handlers08:15
rakhmerovyes08:15
rakhmerovhttps://blueprints.launchpad.net/mistral/+spec/mistral-engine-commands-docs08:15
d0ugalThanks08:16
rakhmerovd0ugal: you can take a look at the tests for them in order to learn more https://github.com/openstack/mistral/blob/master/mistral/tests/unit/engine/test_commands.py08:17
d0ugalThanks, added a link to that in the whiteboard.08:17
rakhmerovyep08:18
* rakhmerov needs to review all our docs asap..08:19
*** shardy has joined #openstack-mistral08:19
d0ugalThis made me happy :) https://review.openstack.org/#/c/425047/08:19
d0ugalIt would be nice if ad-hoc actions allowed you to include non-input parameters (like timeout and retry)08:29
d0ugalrakhmerov: the ad-hoc action doesn't really save that much, I only added it and updated it in one place: https://review.openstack.org/#/c/425056/1/workbooks/baremetal.yaml08:40
d0ugalI think a sub-workflow call would be better, but a little strange :)08:41
d0ugalsub-workflows are a bit better... https://review.openstack.org/#/c/425060/08:47
*** jpich has joined #openstack-mistral08:55
rakhmerovd0ugal: retry and timeout are properties of tasks, not actions09:35
rakhmerovthey don't really fit into their concept09:35
d0ugaltrue09:35
d0ugalmaybe I want an ad-hoc task :)09:35
d0ugalor a re-usable task anyway09:35
rakhmerov:)09:35
rakhmerovit may come to workflow inheritance again09:36
d0ugalyeah09:36
d0ugalit does :)09:36
rakhmerovwhere we could define certain tasks in a parent workflow and reuse them09:36
d0ugalI am trying to think of a simpler way than full inheritance09:36
rakhmerovhttps://review.openstack.org/#/c/425047/2/workbooks/baremetal.yaml looks nice, yes :)09:36
rakhmerovd0ugal: I'm open to suggestions, if you have good ideas please share09:37
rakhmerovsharatss: hi, were you able to test Congress actions?09:39
*** openstackgerrit has quit IRC10:17
ddejarakhmerov: Hi, I was asked on another channel why this got closed? https://blueprints.launchpad.net/mistral/+spec/mistral-ha10:31
ddejaas 'obsolete'?10:31
rakhmerovit just doesn't make a lot of sense in this form10:31
rakhmerovand it was created initially as an informational thing10:32
rakhmerovin fact, it breaks down to a number of more concrete blueprints that we need to work on10:32
rakhmerovso, it was more an intention than a real blueprint that could be assigned to one person10:33
*** jpich has quit IRC10:35
ddejaOK, thanks :)10:36
*** tuan_ has joined #openstack-mistral10:54
tuan_hey guys11:01
tuan_when i run tox with mistral master11:01
tuan_it fails with error of test-requirements not installed11:02
tuan_the error also shows out the problem of md5 hashing of pbr11:02
tuan_does anyone have this problem before?11:02
*** thrash|g0ne is now known as thrash11:06
ddejatuan_: 2 things: 1) do you have connection to the internet on the machine that you are using for running tox? 2) did you try to remove .tox directory and re-run tests?11:07
ddejait usually helps with errors with some-package-name not installed11:07
tuan_ddeja: Hi,11:09
tuan_#1: Yeap i have, pip runs well11:09
tuan_#2: I deleted .tox multiple times11:10
tuan_hmm, i have not seen this problem before11:10
tuan_let me run again now11:10
tuan_it fails again11:20
tuan_Cloning https://git.openstack.org/openstack/requirements (to master) to ./.tox/pep8/src/requirements11:21
tuan_error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.11:21
tuan_here is the error11:21
*** d0ugal has quit IRC12:10
tuan_ddeja: more error12:11
tuan_distutils.errors.DistutilsError: md5 validation failed for pbr-1.10.0.tar.gz; possible download problem?12:11
tuan_i also upgraded pip12:12
tuan_version of 9.0.112:12
tuan_hmm12:12
*** d0ugal has joined #openstack-mistral12:19
*** shardy is now known as shardy_lunch12:20
*** catintheroof has joined #openstack-mistral12:28
tuan_hi guys,12:44
tuan_what about the cacert in mistral12:44
tuan_it mistral does not provide\12:44
d0ugalYou could try removing this line locally: https://github.com/openstack/mistral/blob/master/tox.ini#L812:44
tuan_how we can parse this cacert to another project of openstack like nova, heat12:44
*** bobh has joined #openstack-mistral13:01
*** bobh has quit IRC13:01
*** bobh has joined #openstack-mistral13:01
tuan_i myself think that it is a bug of mistral without providing cacert13:02
*** shardy_lunch is now known as shardy13:26
*** bobh has quit IRC13:36
*** bobh has joined #openstack-mistral14:11
*** dprince has joined #openstack-mistral14:21
*** bobh has quit IRC14:31
*** openstackgerrit has joined #openstack-mistral14:45
openstackgerritluong tuan proposed openstack/mistral: Deleting the expired execution in chunk  https://review.openstack.org/42462114:45
*** rbrady is now known as rbrady-brb14:52
*** catinthe_ has joined #openstack-mistral15:00
*** catintheroof has quit IRC15:02
*** thrash is now known as thrash|biab15:05
*** jaosorior has joined #openstack-mistral15:10
openstackgerritDawid Deja proposed openstack/mistral: Refactor rpc configuration loading  https://review.openstack.org/42417115:12
openstackgerritDawid Deja proposed openstack/mistral: Add support for Rabbit HA  https://review.openstack.org/42522915:12
*** thrash|biab is now known as thrash15:26
*** tuan_ has quit IRC15:28
*** bobh has joined #openstack-mistral15:32
*** bobh has quit IRC15:37
*** catintheroof has joined #openstack-mistral15:43
*** catinthe_ has quit IRC15:46
*** toure|biab is now known as toure16:05
*** gongysh has quit IRC16:07
*** bobh has joined #openstack-mistral16:33
*** rbrady-brb is now known as rbrady16:34
*** AlexeyAbashkin has quit IRC16:35
*** bobh has quit IRC16:38
*** jaosorior has quit IRC17:22
*** jaosorior has joined #openstack-mistral17:32
*** bobh has joined #openstack-mistral17:34
*** bobh has quit IRC17:38
*** dprince has quit IRC17:53
*** catinthe_ has joined #openstack-mistral18:33
*** bobh has joined #openstack-mistral18:34
*** catintheroof has quit IRC18:35
*** bobh has quit IRC18:39
*** dprince has joined #openstack-mistral18:41
*** sharatss has quit IRC18:49
*** sharatss has joined #openstack-mistral18:49
*** shardy is now known as shardy_afk19:01
*** FL1SK has quit IRC19:01
*** jaosorior has quit IRC19:21
*** dprince has quit IRC19:48
*** dprince has joined #openstack-mistral19:49
*** jaosorior has joined #openstack-mistral20:12
*** jaosorior has quit IRC20:17
*** jaosorior has joined #openstack-mistral20:24
*** catinthe_ has quit IRC20:27
*** dougshelley66 has quit IRC20:38
*** dougshelley66 has joined #openstack-mistral20:45
*** jamielennox|away has quit IRC20:46
*** dprince has quit IRC20:48
*** dprince has joined #openstack-mistral20:48
openstackgerritMerged openstack/mistral: External OpenStack action mapping file support added  https://review.openstack.org/41876120:50
openstackgerritMerged openstack/mistral: Enforce style check for assertIsNone  https://review.openstack.org/42040520:50
*** jamielennox|away has joined #openstack-mistral20:56
*** jamielennox|away is now known as jamielennox20:56
*** FL1SK has joined #openstack-mistral21:01
*** shardy_afk has quit IRC21:03
*** shardy_afk has joined #openstack-mistral21:05
*** shardy_afk is now known as shardy21:07
*** dprince has quit IRC21:23
*** jaosorior has quit IRC21:31
*** shardy has quit IRC21:45
*** rbrady is now known as rbrady-afk22:08
*** catintheroof has joined #openstack-mistral23:00
openstackgerritOpenStack Proposal Bot proposed openstack/mistral: Updated from global requirements  https://review.openstack.org/42461723:23
*** catintheroof has quit IRC23:58
*** catintheroof has joined #openstack-mistral23:59

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