Friday, 2016-08-26

*** brian_price has quit IRC00:07
*** jistr has quit IRC00:27
*** tonytan4ever has quit IRC00:28
*** gyee has quit IRC00:28
*** jistr has joined #openstack-mistral00:30
*** Ephur has joined #openstack-mistral00:46
*** cheneydc has joined #openstack-mistral01:05
*** chlong has joined #openstack-mistral01:18
*** Ephur has quit IRC01:29
*** tonytan4ever has joined #openstack-mistral01:35
*** tonytan4ever has quit IRC01:40
*** cheneydc has quit IRC02:04
*** rakhmerov has quit IRC02:55
*** rakhmerov has joined #openstack-mistral03:04
*** chlong has quit IRC03:37
*** chlong has joined #openstack-mistral04:10
*** janki has joined #openstack-mistral04:20
*** achatterjee has joined #openstack-mistral04:22
*** jaosorior has joined #openstack-mistral04:46
*** tonytan4ever has joined #openstack-mistral04:52
*** tonytan4ever has quit IRC04:57
*** chlong has quit IRC05:21
jaosoriorHey guys06:00
jaosorioranybody around yet?06:00
*** evgenyl has quit IRC06:20
*** evgenyl has joined #openstack-mistral06:22
*** shardy has joined #openstack-mistral06:23
*** vishwanathj has joined #openstack-mistral06:43
*** jaosorior is now known as jaosorior_brb07:22
*** jpich has joined #openstack-mistral07:47
*** mflobo has joined #openstack-mistral07:59
mfloboGood morning08:00
*** openstackgerrit has quit IRC08:18
*** openstackgerrit has joined #openstack-mistral08:18
jtomasekd0ugal or anyone: Hi, do you know how to make the workflow into ERROR state?08:23
jtomasekd0ugal: in run_validation workflow here https://review.openstack.org/#/c/353899/5/workbooks/validations.yaml we need to make the workflow exection state ERROR when the validation fails08:24
ddejajtomasek: Hi, you can use std.fail08:25
d0ugaljtomasek: Isn't it more important for the messages to say failed? Why does it matter about the status of the workflow?08:26
jtomasekd0ugal: because of this: https://review.openstack.org/#/c/352207/1/mistral/api/controllers/v2/execution.py08:26
jtomasekd0ugal: list of executions doesn't include the 'output' any more08:26
jtomasek:/08:26
jtomasekd0ugal: so when we have a list of validations executions, we need to figure out it's status. only possibility now is to use workflow state to track it08:27
jtomasekd0ugal: otherwise we'd have to make a separate request for every validation execution to get the output included in the list08:28
d0ugaljtomasek: hmm, is this just for workflows rather than action executions? or do you have the same problem there08:28
d0ugaljtomasek: I ask because some action executions fail intentionally :)08:29
d0ugaljtomasek: but yeah, otherwise calling the std.fail action would do the job08:29
jtomasekd0ugal: not sure about action executions, but validations use workflows, running a validation is a workflow, so we need to get a result of validation through workflow exectuions08:30
d0ugalright08:30
d0ugaljtomasek: I am not sure how we fit std.fail into that workflow tho' - looking.08:31
jtomasekyeah, an example would be nice08:31
d0ugaljtomasek: Myabe this: on-complete: [send_message, std.fail]08:31
d0ugaljtomasek: I need to test it tho'08:31
d0ugaljtomasek: That would be on line 3908:31
d0ugaljtomasek: Testing, give me a few mins.08:32
jtomasekd0ugal, ddeja: thanks!08:32
jtomasekthat action should also provide a way to set state_info, right, we could make use of that too08:32
d0ugaljtomasek: hmm, maybe - I'll look into that too :)08:33
d0ugaljtomasek: okay, that isn't correct. I think it will be a bit more complicated.08:35
d0ugalI really wish tast inheritance was a thing... :)08:36
d0ugalWe end up duplicating tons08:36
*** vishwanathj has quit IRC08:36
*** vishwanathj has joined #openstack-mistral08:37
jtomasekd0ugal: so in general, we need to make the workflow work exactly as it does now, just to set it's state to something different then SUCCESS:)08:38
d0ugaljtomasek: Yup, got an example for ya08:38
d0ugaljtomasek: on-success calls tasks in the workflow, not actions.08:39
*** mandre has joined #openstack-mistral08:39
d0ugaljtomasek: so you need to create a task for it to call the std.fail action08:39
d0ugaljtomasek: like this: http://paste.openstack.org/show/563815/08:39
jtomasekI see08:39
d0ugaljtomasek: (I just used another workflow I had handy - so that diff wont match up)08:39
d0ugaljtomasek: This is why inheritance would be nice, we could end up with a fail task on every workflow eventually :/08:40
d0ugal(that and the Zaqar task we copy-pasta everywhere)08:40
jtomasekyeah08:40
jtomasekd0ugal: can I use it like this? http://paste.openstack.org/show/563816/08:42
d0ugaljtomasek: Line 15? Yeah, that looks good.08:44
jtomasekd0ugal: ok, thanks, I'll give it a try08:44
d0ugalhrm, std.fail isn't in the docs - I'll have to add that.08:44
d0ugaljtomasek: Let me know if you have any issues08:45
d0ugaljtomasek: What did you mean before about state_info btw?08:46
openstackgerritDougal Matthews proposed openstack/mistral: Add a note to the documentation about std.fail  https://review.openstack.org/36098708:50
*** tonytan4ever has joined #openstack-mistral08:54
jtomasekd0ugal: each execution has state_info http://docs.openstack.org/developer/mistral/developer/webapi/v2.html#get--v2-executions this is used to provide explanation on why execution failed08:55
*** vishwanathj has quit IRC08:56
*** vishwanathj has joined #openstack-mistral08:57
*** tonytan4ever has quit IRC08:58
*** jaosorior_brb is now known as jaosorior08:59
d0ugaljtomasek: ah, I don't know how to set that.09:00
d0ugaljtomasek: with std.fail I suspect you might get this message which isn't that useful https://github.com/openstack/mistral/blob/master/mistral/actions/std_actions.py#L9609:01
brunograz_Hi ddeja, i have a workaround for this issue which worked for us. Here at this line we put a condition verifying if "is_trust_scoped" is in the auth context. If so we create a new admin client using the credentials in the configuration file and execute the method get_token_data09:02
brunograz_https://github.com/icclab/mistral/blob/master/mistral/utils/openstack/keystone.py#L7409:02
d0ugaljtomasek: Maybe we need to create a tripleo.fail that does a bit more.09:02
brunograz_it will look like - cli = client_for_admin(CONF.keystone_authtoken.admin_user).tokens.get_token_data(token, include_catalog=True)09:02
ddejabrunograz_: oooh I see09:03
ddejaoh, I think I know how to fix it properly09:03
ddejalet my try it09:04
jtomasekd0ugal: hmm, the solution does not work, because the output does not get through. -> the output of workflow execution which is state ERROR is { result: null }09:04
jtomasekd0ugal: this is not good:/09:06
d0ugaljtomasek: damn. So I guess the run_validation action needs to do it09:06
jtomasekd0ugal: any idea how?:)09:07
d0ugaljtomasek: They can fail the workflow with a message, we do that here already: https://github.com/openstack/tripleo-common/blob/master/tripleo_common/actions/baremetal.py#L57-L609:07
* janki is away: will be back09:07
* janki is back (gone 00:00:13)09:08
jtomasekd0ugal: I wonder if the result is the same... when workflow fails, then it's execution won't store any output09:09
d0ugaljtomasek: hmm, I'm not sure.09:10
jtomasekd0ugal: hm, as I think about it, it would be preferable if the workflow succeeded. As the workflow actually succeeds to run but the validation fails. which is fine from the workflow standpoint09:11
d0ugalheh, yeah, that confused me initially :)09:11
jtomasekd0ugal: and we might use state_info to carry the validation result status09:11
jtomasekto resolve the problem of not having the 'output' available09:11
d0ugalRight09:12
jtomasekif we know how to set the state_info09:12
d0ugaljtomasek: I don't know :-D09:12
ddejabrunograz_: are you aware, that this workaround is a security issue? All of the user can perform their actions as mistral user09:16
brunograz_ddeja: I was not aware of that, I will paste the snippet with the changes I did so you can have a look.09:19
brunograz_ddeja: here you go - http://pastebin.com/7wdWSNL909:20
jtomasekrakhmerov: Hi, is it possible to set the execution state_info from the workflow or it's action?09:21
ddejabrunograz_: with this change all of the actions will be run as mistral user09:21
ddejawith it's permissions09:22
ddejaand they should be run as a user that created the trigger09:23
brunograz_ddeja: correct if I'm wrong but this method is only returning endpoints and not a client or credentials.09:24
*** mflobo has quit IRC09:24
brunograz_ddeja: the client is created in the class who called this method - in my case NovaActions in action/opentack/actions.py09:25
ddejawait a second..09:26
brunograz_ddeja: link - https://github.com/openstack/mistral/blob/master/mistral/actions/openstack/actions.py#L6109:26
ddejabrunograz_: well, OK, it is only for getting the endpoint09:30
ddejaso it shouldn't be a problem09:31
brunograz_ddeja: that's cool :) - I'm not sure of mistral internals so wanted to make sure that this workaround is not affecting anything else.09:35
ddejabrunograz_: I'm not 100% sure if it's not affecting anything else, but from a quick look into the code it does not09:36
ddejaI've just asked on the keystone channgel how to use trust properly, so that I can fix it09:36
openstackgerritDougal Matthews proposed openstack/mistral: Add a note to the documentation about std.fail  https://review.openstack.org/36098709:45
*** brunograz_ has quit IRC09:48
*** brunograz has joined #openstack-mistral09:48
*** vishwanathj has quit IRC10:06
*** vishwanathj has joined #openstack-mistral10:07
openstackgerritShaik Apsar proposed openstack/mistral: Fix for 'Cannot authenticate without an auth_url'  https://review.openstack.org/36106910:37
*** janki has quit IRC10:43
*** janki has joined #openstack-mistral10:44
*** vishwanathj has quit IRC10:53
*** vishwanathj has joined #openstack-mistral10:54
*** shardy is now known as shardy_lunch11:13
openstackgerritShaik Apsar proposed openstack/mistral: Fix for 'Cannot authenticate without an auth_url'  https://review.openstack.org/36106911:27
*** nmakhotkin has joined #openstack-mistral11:32
*** vishwanathj has quit IRC11:48
*** vishwanathj has joined #openstack-mistral11:49
*** jaosorior has quit IRC11:53
*** jaosorior has joined #openstack-mistral11:54
*** tonytan4ever has joined #openstack-mistral11:55
*** tonytan4ever has quit IRC12:00
openstackgerritShaik Apsar proposed openstack/mistral: Fix for 'Cannot authenticate without an auth_url'  https://review.openstack.org/36106912:05
*** tonytan4ever has joined #openstack-mistral12:09
*** shardy_lunch is now known as shardy12:11
*** mflobo has joined #openstack-mistral12:12
*** dprince has joined #openstack-mistral12:23
jtomasekd0ugal: I've been digging into state_info a bit. Here is the workflow state handling https://github.com/openstack/mistral/blob/4bdda3b6eddb2aae0b939b493d94b46f5060b423/mistral/engine/workflows.py#L30112:43
jtomasekd0ugal: set_state function sets the state and state_info12:44
jtomasekd0ugal: it sets state_info to msg, I think we just need to figure out where the msg is coming from12:44
jtomasekd0ugal:  https://github.com/openstack/mistral/blob/4bdda3b6eddb2aae0b939b493d94b46f5060b423/mistral/engine/workflows.py#L29712:45
*** janki has quit IRC12:50
d0ugaljtomasek: Sorry, will get back to you about this shortly13:07
d0ugaljtomasek: Juggling conversations.13:07
jtomasekd0ugal: hm, so no message is passed when _succeed_workflow is called, so state_info can't get set when workflow succeeds...13:26
d0ugaljtomasek: it is when it is called here: https://github.com/openstack/mistral/blob/4bdda3b6eddb2aae0b939b493d94b46f5060b423/mistral/engine/workflows.py#L11213:32
d0ugaljtomasek: so stop seems to do what you want, but I have no idea where you can call that from?13:33
jtomasekd0ugal: https://github.com/openstack/mistral/blob/641232feb288dd06b34257bdc52d3807771d847c/mistral/api/controllers/v2/execution.py#L14913:41
jtomasekd0ugal: it is used to stop or cancel workflow execution via api call13:42
jtomasekd0ugal: only viable solution seems to me to add optional parameter to executions listing api call which will include output for each execution13:43
d0ugaljtomasek: Do you have the link to the patch that removed it handy?13:43
jtomasekd0ugal: this one actually adds it to get execution https://review.openstack.org/#/c/352207/1/mistral/api/controllers/v2/execution.py13:44
*** nmakhotkin has quit IRC13:44
jtomasekd0ugal: https://review.openstack.org/#/c/350183/ or https://review.openstack.org/#/c/347172/13:45
jtomasek?13:45
d0ugaljtomasek: hmm, okay.13:50
d0ugaljtomasek: trying to figure out what I can do here to help13:50
jtomasekd0ugal: thanks13:50
d0ugaljtomasek: Which API endpoint is missing it?13:50
jtomasekGET v2/executions13:50
d0ugaljtomasek: I can look into putting a patch together next week - not sure how that fits in with deadlines etc.13:50
d0ugaljtomasek: ah, I see - so that one adds it to individual, you want it for them all.13:51
jtomasekd0ugal: this is something that would not affect tripleo-common, it is called directly by GUI13:51
jtomasekd0ugal: yes13:51
jtomasekd0ugal: oh, we would have to update mistral package though probably, but anyway having it sooner is much better than delaying it13:52
d0ugaljtomasek: Okay, I can manage that I think. Not totally sure it will be wanted, but we shall see :)13:52
jtomasekd0ugal: it should be probably parametrized, such as when some parameters is sent with GET v2/executions, then include output. otherwise not13:53
d0ugaljtomasek: yup, makes sense.13:53
d0ugaljtomasek: would you mind making a mistral bug and sending me the link?14:02
d0ugalor just assign it to me14:02
jtomasekd0ugal: ok14:03
*** janki has joined #openstack-mistral14:09
*** mflobo has quit IRC14:14
*** szaher has quit IRC14:28
jtomasekd0ugal: https://bugs.launchpad.net/mistral/+bug/161735114:30
openstackLaunchpad bug 1617351 in Mistral "No output in executions listing" [Undecided,New]14:30
*** dprince has quit IRC14:30
d0ugaljtomasek: Great, thanks.14:30
*** dprince has joined #openstack-mistral14:31
*** chlong has joined #openstack-mistral14:32
openstackgerritAndreas Jaeger proposed openstack/mistral-lib: Cleanup tox.ini, enable constraints  https://review.openstack.org/36126514:48
*** mflobo has joined #openstack-mistral14:56
*** rrecio has joined #openstack-mistral14:57
*** rrecio_ has joined #openstack-mistral14:58
*** tonytan4ever has quit IRC15:01
*** jistr is now known as jistr|call15:01
*** rrecio has quit IRC15:01
*** tonytan4ever has joined #openstack-mistral15:01
*** dprince has quit IRC15:07
*** dprince has joined #openstack-mistral15:07
*** dprince has quit IRC15:08
*** dprince has joined #openstack-mistral15:08
*** brian_price has joined #openstack-mistral15:09
openstackgerritDawid Deja proposed openstack/mistral: Enable changing of rpc driver from devstack  https://review.openstack.org/36128715:09
*** jistr|call is now known as jistr15:12
ddejakong, akuznetsova, rakhmerov - I propose adding a new gate for devstack that would test the kombu driver, take a look https://review.openstack.org/#/c/361307/15:27
*** mflobo has quit IRC15:27
*** mflobo has joined #openstack-mistral15:41
*** jaosorior has quit IRC15:58
*** chlong has quit IRC16:07
*** mflobo has quit IRC16:18
*** chlong has joined #openstack-mistral16:19
*** jpich has quit IRC16:40
*** chlong has quit IRC17:02
*** janki has quit IRC17:34
*** vishwanathj has quit IRC17:38
*** vishwanathj has joined #openstack-mistral17:39
*** rrecio_ has quit IRC18:02
*** rrecio has joined #openstack-mistral18:05
*** rbrady has quit IRC18:12
*** rbrady has joined #openstack-mistral18:12
*** rbrady has quit IRC18:18
*** rbrady has joined #openstack-mistral18:19
*** dprince has quit IRC18:26
*** shardy has quit IRC18:33
*** brian_price has quit IRC18:56
*** vishwanathj has quit IRC18:56
*** vishwanathj has joined #openstack-mistral18:57
*** Ephur has joined #openstack-mistral19:07
*** vishwanathj has quit IRC19:34
*** vishwanathj has joined #openstack-mistral19:35
*** mflobo has joined #openstack-mistral19:37
*** vishwanathj has quit IRC19:37
*** vishwanathj has joined #openstack-mistral19:38
*** mflobo has left #openstack-mistral19:41
*** dprince has joined #openstack-mistral19:43
*** tonytan_brb has joined #openstack-mistral20:13
*** tonytan4ever has quit IRC20:16
*** dprince has quit IRC20:57
*** clenimar has quit IRC21:01
*** vishwanathj has quit IRC21:22
*** vishwanathj has joined #openstack-mistral21:23
*** Ephur has quit IRC21:26
*** vishwanathj has quit IRC21:48
*** vishwanathj has joined #openstack-mistral21:49
*** vishwanathj has quit IRC22:14
*** vishwanathj has joined #openstack-mistral22:15
*** vishwanathj has quit IRC22:22
*** vishwanathj has joined #openstack-mistral22:23
*** vishwanathj has quit IRC22:35
*** vishwanathj has joined #openstack-mistral22:36
*** rrecio has quit IRC22:42
*** rrecio has joined #openstack-mistral22:58
*** rrecio has quit IRC23:09
*** vishwanathj has quit IRC23:40
*** vishwanathj has joined #openstack-mistral23:41

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