Wednesday, 2017-06-28

*** bobh has joined #openstack-mistral00:03
*** bobh has quit IRC00:28
*** bobh has joined #openstack-mistral00:31
*** bobh has quit IRC00:50
*** bobh has joined #openstack-mistral01:20
*** bobh has quit IRC01:45
*** warface has quit IRC01:49
*** bobh has joined #openstack-mistral01:52
*** bobh has quit IRC02:24
*** bobh has joined #openstack-mistral02:27
*** bobh has quit IRC02:43
*** bobh has joined #openstack-mistral02:46
*** bobh has quit IRC03:08
*** warface has joined #openstack-mistral03:38
*** warface is now known as Guest104703:38
*** Guest1047 has quit IRC03:39
*** Kevin_Zheng has quit IRC03:59
openstackgerritRenat Akhmerov proposed openstack/mistral master: Revert "Remove 'sphinxcontrib.autohttp.flask' from sphinx config"  https://review.openstack.org/47158504:17
rakhmerovwarface: nope, I don't remember why. I guess it was considered the most popular platform, that's it (although it might be worth asking the guy who did it originally)04:24
*** livelace has joined #openstack-mistral04:32
openstackgerritSharat Sharma proposed openstack/python-mistralclient master: Set the default value of --limit parameter  https://review.openstack.org/47611004:36
openstackgerritRenat Akhmerov proposed openstack/python-mistralclient master: Set the default value of --limit parameter  https://review.openstack.org/47611004:43
*** mattybrennan has quit IRC05:25
*** mattybrennan has joined #openstack-mistral05:30
*** sharatss has joined #openstack-mistral05:43
sharatssrakhmerov, d0ugal hi05:44
sharatsshttps://review.openstack.org/#/c/458515/ everytime i recheck this a different case fails05:44
sharatssany idea how to solve this?05:44
openstackgerritMerged openstack/python-mistralclient master: Updated from global requirements  https://review.openstack.org/47808106:00
rakhmerovsharatss: what tests usually fail?06:09
sharatssrakhmerov, either this http://logs.openstack.org/15/458515/25/check/gate-python-mistralclient-devstack-dsvm-ubuntu-xenial/7f10a48/console.html#_2017-06-27_11_47_07_88278906:10
sharatssor same in workflow06:10
rakhmerovdo you have any theories why they fail?06:13
rakhmerovconcurrent problems?06:13
*** sharatss_ has joined #openstack-mistral06:13
*** sharatss has quit IRC06:14
*** sharatss has joined #openstack-mistral06:17
rakhmerovdid you try to investigate?06:17
*** sharat has joined #openstack-mistral06:20
*** sharatss_ has quit IRC06:20
*** sharatss_ has joined #openstack-mistral06:22
*** sharatss has quit IRC06:22
*** sharat has quit IRC06:24
*** sharatss_ has quit IRC06:36
*** warface has joined #openstack-mistral06:38
openstackgerritMike Fedosin proposed openstack/mistral master: Use recommended function to setup auth middleware in devstack  https://review.openstack.org/47379606:49
*** sharatss has joined #openstack-mistral06:57
*** warface_ has joined #openstack-mistral07:06
d0ugalsharatss: I'll try and take a look shortly07:11
sharatssd0ugal, thanks07:30
*** shardy has joined #openstack-mistral07:33
*** jpich has joined #openstack-mistral07:35
thervesharatss, You rebased on top of https://review.openstack.org/#/c/458515/ ?07:51
therveThose new tests are not correct07:53
therveYou have 25 patch sets and about 38 builds, and 3 succeeded, that's not a recipe for success07:58
*** dtantsur|afk is now known as dtantsur08:09
*** warface has quit IRC08:23
*** warface has joined #openstack-mistral08:23
*** warface is now known as Guest6091308:24
*** Guest60913 has quit IRC08:24
*** sharatss has quit IRC09:04
*** abhishekk has joined #openstack-mistral09:22
abhishekkhi, I have written one custom action but while executing the workflow I am getting error, run() takes exactly 1 argument (2 given)09:23
abhishekkany idea?09:23
abhishekkthis is my action and yaml file, http://paste.openstack.org/show/613891/09:24
therverun takes 2 arguments09:41
abhishekkself and context right?09:42
therveYeah09:42
abhishekkeven passing context I am facing same error :(09:42
therveProbably not09:42
abhishekklet me check once again09:43
therveI'm don't understand what you're trying to do. Your action doesn't actually do anything.09:43
abhishekktherve: Problem resolved, I was restarting only engine service and not executor09:47
abhishekkthank you09:47
therveYou're welcome.09:47
abhishekkI am writing custom action for evauation instances09:47
abhishekkI am new to mistral, just evaluating it for understanding09:48
therveOK :). You shouldn't need to write any python code for that, though.09:50
*** jtomasek has quit IRC09:52
*** jtomasek has joined #openstack-mistral09:53
*** jpich has quit IRC09:56
*** jpich has joined #openstack-mistral09:58
*** jtomasek has quit IRC09:59
*** jtomasek has joined #openstack-mistral09:59
*** jkilpatr has quit IRC10:00
abhishekktherve: i need to do some customization to standard nova actions10:13
abhishekktherve: how I can access output of one task to other task, for example I am returning instance_list from my FilterVmAction and I am using filtered_vms: <% $.instance_list %> which is giving YAQLExpression error10:14
*** warface has joined #openstack-mistral10:17
*** warface has quit IRC10:22
*** warface has joined #openstack-mistral10:27
*** warface is now known as Guest7985010:27
*** Guest79850 has quit IRC10:29
warface_rakhmerov: ok, thanks. I might have to change the docker image, if it works out well, will update you guys.10:53
*** jkilpatr has joined #openstack-mistral10:58
rakhmerovok11:02
*** dtantsur is now known as dtantsur|lunch11:15
*** jkilpatr has quit IRC11:41
therveabhishekk, Using "publish" in general11:46
abhishekktherve: done, thank you11:47
*** jkilpatr has joined #openstack-mistral12:01
openstackgerritAndras Kovi proposed openstack/mistral master: Add cron name/id to workflow execution description  https://review.openstack.org/45838412:08
*** jkilpatr has quit IRC12:11
*** jkilpatr has joined #openstack-mistral12:12
*** chlong_ has quit IRC12:15
*** jkilpatr has quit IRC12:28
*** dprince has joined #openstack-mistral12:39
*** dtantsur|lunch is now known as dtantsur12:42
*** thrash|g0ne is now known as thrash12:45
*** toure is now known as toure|brb13:23
*** bobh has joined #openstack-mistral13:31
*** toure|brb is now known as toure13:33
*** chlong_ has joined #openstack-mistral13:34
*** zhurong_ has joined #openstack-mistral13:38
*** jaosorior has quit IRC14:05
*** jaosorior has joined #openstack-mistral14:08
fultonji have a question about the expected data structure that a mistral action should return14:54
fultonji have seen this pattern14:54
fultonjhttp://paste.openstack.org/show/613939/14:54
fultonj^ is this arbitrary or is there a convention?14:54
fultonjrbrady: d0ugal ^ ?14:54
d0ugalfultonj: it should, ideally, return a Result class.14:55
fultonjmore context at https://review.openstack.org/#/c/477541/5/tripleo_common/actions/files.py14:55
d0ugalhttps://github.com/openstack/mistral-lib/blob/master/mistral_lib/actions/types.py#L2114:55
d0ugalfultonj: if error is passed to that class, Mistral consider the action to have errored and will propogate that14:56
*** gfidente has joined #openstack-mistral14:56
d0ugalotherwise data can be passed to be used by following workflow tasks14:56
d0ugalI have never used the cancel input, but I believe that is a way for the aciton to terminate the workflow if needed.14:56
d0ugalfultonj: Yeah, so that patch will need to be updated to use mistral-lib :)14:56
d0ugalfultonj: https://github.com/openstack/tripleo-common/commit/a30bb5bca200b35cd1400c2b970477c7c549394414:57
d0ugalit is trivial to migrate14:57
d0ugalfultonj: I don't think the stderr/stdout is very useful - I'm not quite sure where that pattern started (maybe in the validations code?)14:58
d0ugalbut I would probably remove it tbh14:58
fultonjd0ugal: thanks14:59
fultonjhttps://github.com/openstack/tripleo-common/blob/master/tripleo_common/actions/validations.py#L57-L8114:59
d0ugalbecause I see you already use data and error - that is everything Mistral wants14:59
fultonji aw that example and picked it up wanted to check14:59
d0ugalright14:59
fultonjthank you i will look more into the above15:00
d0ugalfultonj: I think it only makes sense when you want to return both but don't want to fail the action. i.e. here: https://github.com/openstack/tripleo-common/blob/master/tripleo_common/actions/validations.py#L124-L12515:00
d0ugalThey pass both as "data"15:00
*** zhurong_ has quit IRC15:03
fultonjok15:04
fultonji thought it was something people would always expect15:04
fultonjbut i could just go with msg15:04
fultonji think i'll just switch everything to mistral_workflow_utils.Result objects15:05
gfidentefultonj d0ugal yeah I find confusing having an outer error and a stderr in data15:05
d0ugalfultonj: but mistral_lib.actions.Result :)15:06
d0ugalfultonj: one you rebase that patch, it will fail, as I just removed mistral from the requirements.txt15:06
gfidented0ugal so about that restart15:12
gfidentenow from the python console I can import a module like tripleo_common.actions.plan15:13
gfidentebut api.log says no module named tripleo_common.actions.plan15:13
gfidenteI know it is me15:14
gfidentebut what am I missing?15:14
d0ugalgfidente: one sec15:14
d0ugalgfidente: just in a ad-hoc meeting15:16
gfidentesure15:16
gfidenteno worries and thanks in advance15:16
*** rbrady has quit IRC15:18
*** rbrady has joined #openstack-mistral15:20
*** rbrady has quit IRC15:20
*** rbrady has joined #openstack-mistral15:20
*** fultonj has quit IRC15:28
*** fultonj has joined #openstack-mistral15:30
* fultonj was disconnected15:33
fultonjfollowing up...15:34
fultonjfrom mistral_lib import actions15:34
fultonjmsg = "you're foo isn't bar'ing"15:34
fultonjreturn actions.Result(error={"msg": msg})15:34
fultonjmsg = "you're foo is bar'ing"15:34
fultonjreturn actions.Result(data={"msg": msg})15:34
fultonjd0ugal: is ^ this OK?15:34
d0ugalgfidente: back15:34
d0ugalfultonj: that looks good - but why not just pass a string and remove msg?15:34
d0ugalI would only pass a dict if you have other meta data you want to include15:35
gfidented0ugal forget about it15:35
fultonjd0ugal: so whether or not it's nested depends on the situation?15:35
gfidented0ugal done15:35
fultonjd0ugal: there are cases where i do want to pass info in my task, e.g. "path" => "/foo/bar"15:35
fultonjso i thought being consistent would be nice, even if you get a one key->value deep dict15:36
d0ugalfultonj: true, I am not really against msg - just thinking "out loud"15:36
*** jkilpatr has joined #openstack-mistral15:37
fultonjd0ugal: ok, it's not religion for me so i'm flexible :)15:37
d0ugalfultonj: Stick with what you have and then you can add more keys15:37
fultonjtrying to learn the conventions used for mistral'ers15:37
d0ugalit is more flexible15:37
d0ugalchanging from "message" to {"msg":"message"} laster would be painful15:38
d0ugalfultonj: I think we are still establishing conventions in tripleo :)15:38
fultonj"which was the style back in pike" --Grandpa Simpson15:38
fultonjthanks15:38
fultonjone more question on context15:39
d0ugalsure15:41
fultonjsorry about the lag15:52
fultonjmy unit test isn't using it but i think it should...15:53
fultonjhttps://review.openstack.org/#/c/477541/5/tripleo_common/tests/actions/test_files.p15:53
fultonjhttps://review.openstack.org/#/c/477541/5/tripleo_common/tests/actions/test_files.py15:53
fultonjvia the decorator i wish patch into the behavior or os.path.exists to have it just say "yeah, it's there" to my class15:54
fultonjso i seem to be getting by without the magic mock object15:54
fultonjother examples pass the magic mock context object however15:55
fultonjbecause their code uses context15:55
fultonjmistral = self.get_workflow_client(context)15:55
fultonjfor example15:56
fultonjif my action works without it and if my code fits my description (in my head at least) do you think i am missing anything15:56
fultonj?15:56
fultonjd0ugal: ^ (sorry /me was distracted for 10 minuntes)15:57
fultonji.e. i think i can drop "self.ctx = mock.MagicMock()" from my unit test16:01
*** warface_ has quit IRC16:05
*** rbrady has quit IRC16:18
*** rbrady has joined #openstack-mistral16:30
*** rbrady has quit IRC16:30
*** rbrady has joined #openstack-mistral16:30
*** jpich has quit IRC16:39
*** dprince has quit IRC16:40
*** jkilpatr has quit IRC16:50
d0ugalfultonj: sorry, I got distracted and hit the end of my day17:07
* d0ugal reads up17:07
fultonjhi d0ugal np17:07
d0ugalfultonj: I'm not sure what is wrong, if you post the code I can always take a look tomorrow17:08
d0ugalsorry, just passing my now17:08
fultonjd0ugal: ok, now worries17:08
fultonji will just ask in the review17:08
fultonjno worries (i mean)17:08
d0ugalcheers17:09
*** gfidente is now known as gfidente|afk17:11
*** dtantsur is now known as dtantsur|afk17:16
thrashd0ugal: you around?17:33
*** dprince has joined #openstack-mistral17:58
*** shardy has quit IRC18:02
*** bobh has quit IRC18:03
*** thrash is now known as thrash|brb18:07
*** jkilpatr has joined #openstack-mistral18:09
d0ugalthrash|brb: ish18:31
*** gfidente|afk is now known as gfidente19:04
*** livelace has quit IRC19:46
*** thrash|brb is now known as thrash20:16
*** dprince has quit IRC20:57
*** chlong_ has quit IRC22:18
*** bobh has joined #openstack-mistral22:24
*** toure is now known as toure|gone22:30
*** bobh has quit IRC22:31
*** bobh has joined #openstack-mistral23:40
*** bobh has quit IRC23:43
openstackgerritToure Dunnon proposed openstack/mistral master: Workflow Error Analysis  https://review.openstack.org/45544723:46

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