Thursday, 2017-09-21

*** bobh has joined #openstack-mistral00:06
*** zhurong has joined #openstack-mistral00:30
*** openstackgerrit has quit IRC00:41
*** bobh has quit IRC01:43
*** mattybrennan has quit IRC01:55
*** mattybrennan has joined #openstack-mistral01:56
*** dougshelley66 has quit IRC01:57
*** bobh has joined #openstack-mistral02:13
*** bobh has quit IRC02:25
*** gkadam-away is now known as gkadam02:55
*** jrist has joined #openstack-mistral04:30
niraj_singhd0ugal:The issue is solved now. thanks :)04:56
*** jtomasek has joined #openstack-mistral05:29
d0ugalniraj_singh: great, what was wrong?06:20
rakhmerovhi, any volunteers for this very cool BP? https://blueprints.launchpad.net/mistral/+spec/mistral-run-workflow-from-execution06:39
rakhmerovtoure_biab: may be you?06:40
rakhmerovapetrich: or you?06:40
*** jpich has joined #openstack-mistral06:58
d0ugalrakhmerov: so basically restart an exection?07:14
rakhmerovnot exactly07:14
d0ugalor copy an execution maybe is better07:14
rakhmerovcopy07:15
rakhmerovyes07:15
rakhmerovthe idea is that I don't want to pass all the params again, I don't want to remember them etc.07:15
rakhmerovall is already there in some of the existing executions07:15
*** ChanServ sets mode: +o openstack07:16
d0ugalright, makes sense07:16
rakhmerovd0ugal: I'm just debugging something now and stumbled on it. I know that I'd like to start an execution which has the exact same input, params (and env) as one of the existing07:17
d0ugalyup, I think I would only use it when debugging07:17
rakhmerovbut I don't even have the input file because somebody else started this workflow07:17
rakhmerovand I don't know where to find it07:17
rakhmerovd0ugal: mostly yes, debugging07:17
rakhmerovagree07:17
rakhmerovbut it's convenience07:17
rakhmerovd0ugal: do you know if we still have a requirement to import modules only?07:20
rakhmerovtrying to find it..07:20
d0ugalrakhmerov: I think it is still a hacking rule, but it was never very good at detecting it07:21
rakhmerovyeah07:21
d0ugalbut we don't have to follow it :)07:21
rakhmerovyes, found it: https://docs.openstack.org/hacking/latest/user/hacking.html#imports07:21
rakhmerovok07:22
d0ugalIt is actually one of the checks I never really liked.07:22
rakhmerovme too07:22
d0ugalI would prefer a check that banned importing and aliasing to one or two letters :P07:22
*** jtomasek has quit IRC07:23
rakhmerov:))07:23
*** jtomasek has joined #openstack-mistral07:25
rakhmerovd0ugal: is the word "superfluous" commonly used in regular English? :)07:25
rakhmerovI'm just reviewing a patch and found it07:26
rakhmerovI thought it's a little fancy )07:26
d0ugalrakhmerov: I don't think it is that common07:26
d0ugalbut everyone should know what it means07:26
rakhmerovok07:26
d0ugalI have seen it more commonly from non-native speakers, so I wonder if there is a word in a language that translates to it (and is a closer match than unnecessary etc)07:27
rakhmerovredundant?07:28
d0ugalthat also works too07:28
d0ugalbut that isn't what I mean :)07:28
d0ugalI think I explained it badly.07:28
rakhmerovooh07:28
d0ugalI don't know how to explain it haha07:29
rakhmerovso "superfluous" is not exactly the same as "redundant" and "unnecessary"?07:29
d0ugalNo, they are essentially the same07:29
d0ugalso, yes, my example doesn't really make sense07:29
rakhmerovmaybe then superfluous is kind of a slang or something?07:29
d0ugalno, it is a legit word :)07:30
d0ugalI have never thought so much about superfluous before!07:30
d0ugalhttp://wikidiff.com/unnecessary/superfluous07:31
d0ugalrakhmerov: that explains what I wanted to say quite well07:31
rakhmerovlet me see..07:31
d0ugal"As adjectives the difference between unnecessary and superfluous is that unnecessary is not needed or necessary while superfluous is in excess of what is required or sufficient."07:31
rakhmerovooooh!07:32
rakhmerovI think I got it07:32
rakhmerovok07:32
rakhmerovit's probably closer to extra07:32
rakhmerovmore than sufficient07:32
d0ugalright07:33
rakhmerovok07:33
rakhmerovyou know, now I think that this word (superfluous) actually better reflects the semantics in the code )07:34
d0ugallol07:34
rakhmerovyeah, I'll delete my comment07:34
d0ugalI look forward to seeing it used more07:34
d0ugalbut don't use superfluous superfluously ;)07:35
*** zhurong has quit IRC07:35
rakhmerovhaha :)07:35
rakhmerovI won't07:35
rakhmerovin fact, I think I've never used it07:35
rakhmerovalthough knew what it means (more or less)07:35
*** gkadam has quit IRC07:54
*** zhurong has joined #openstack-mistral07:55
d0ugalrakhmerov: do you have a list of values you would expect to be in the execution context?08:08
d0ugaljust those that you used in your test patch?08:08
rakhmerovd0ugal: yes, just a second08:13
rakhmerovit's in the cod08:13
rakhmerovcode08:13
d0ugalokay, I have all of those08:13
d0ugalI guess we can add more later if we need them08:13
rakhmerovooh, ok08:13
rakhmerovyes08:13
rakhmerovyou're working on it now?08:14
d0ugalrakhmerov: yes08:14
rakhmerovawesome08:14
rakhmerovI'm here, ping me if needed08:14
d0ugalwill do thanks, there should be some initial patches up soon08:14
rakhmerovgreat08:15
d0ugalrakhmerov: btw I am on vacation next week.08:28
rakhmerovok, good to know08:28
rakhmerovthanks08:28
d0ugalrakhmerov: so if I get this started but don't finish, feel free to update it08:28
rakhmerovsure08:28
d0ugalI'm not sure if you need it urgently08:28
d0ugalI'll also try and find somebody to cover for me.08:29
rakhmerovwell, so.. On one hand it's not so urgent. On the other hand, it's a important thing that we didn't account for when designing mistral-lib. So it's better to fix it sooner08:30
*** shardy has joined #openstack-mistral08:30
d0ugalYup, agree08:30
rakhmerovwe found it by trying to create an ad-hoc action on top of std.mistral_http and it didn't work08:30
*** openstackgerrit has joined #openstack-mistral08:30
openstackgerritAndrea Visnyei proposed openstack/mistral master: Mistral install guide  https://review.openstack.org/47649908:30
rakhmerov"action_context" parameter was missing08:30
rakhmerovand when I looked at it closely I realized that we had this design problem08:31
d0ugalSure, I just wasn't sure if it was blocking you08:32
rakhmerovnot in the next couple of weeks08:32
d0ugalcool08:32
rakhmerovyes08:32
d0ugalrakhmerov: do you know where I can easily get the execution context? (workflow id and name etc)08:33
*** csatari_ has joined #openstack-mistral08:33
rakhmerovyou mean at what point?08:33
rakhmerovin the code08:33
d0ugalbecause I guess I need it around here: https://github.com/openstack/mistral/blob/master/mistral/executors/default_executor.py#L10908:33
rakhmerovooh, the only way is to prepare it on the engine side and send over RPC to executor08:34
openstackgerritDougal Matthews proposed openstack/mistral-lib master: Add a representation of the ActionContext in mistral-lib  https://review.openstack.org/50605808:34
d0ugalrakhmerov: okay, so I need to add it to the run_action call?08:35
rakhmerovon executor side it's not accessible if not sent from engine08:35
rakhmerovyes, I guess so08:35
rakhmerovin one form or another08:35
rakhmerovI'd look if we can reuse rpc_ctx param08:35
rakhmerovdon't remember what it is exactly now08:35
rakhmerovwhether it's just an auth context (MistralContext) or something else RPC specific08:36
d0ugalhmm, I can't find where it comes from.08:40
d0ugalbrb08:41
rakhmerovd0ugal: yeah, it's a little tricky.. Let me try to find it.08:41
rakhmerovok08:41
*** csatari_ has quit IRC08:42
rakhmerovd0ugal: as a clue, you can look at https://github.com/openstack/mistral/blob/master/mistral/context.py#L200 and see where this method is called within oslo.messaging08:46
rakhmerovwhen we initialize RPC we give this RpcContextSerializer to oslo.messaging08:46
rakhmerovhttps://github.com/openstack/mistral/blob/master/mistral/rpc/oslo/oslo_server.py#L5208:47
rakhmerovwe also call it here: https://github.com/openstack/mistral/blob/master/mistral/services/scheduler.py#L6508:48
rakhmerovin this case it's just our MistralContext08:48
rakhmerovbut not sure what it is in case when o.m calls it08:49
rakhmerovmaybe it's just easier to debug it and see08:49
*** gkadam has joined #openstack-mistral09:01
d0ugalright, thanks09:03
d0ugalI'll keep digging09:03
d0ugalI do need to go out shortly for a haircut, but I'll continue when I get back.09:03
d0ugalthansk09:03
rakhmerovhaha :) ok09:05
*** shardy is now known as shardy_afk09:05
*** zhurong has quit IRC09:55
rakhmerovd0ugal: have you ever used RetryDecorator from oslo_service.loopingcall ?10:03
*** zhurong has joined #openstack-mistral10:11
*** jkilpatr has quit IRC10:38
openstackgerritKupai József proposed openstack/mistral master: Removed NOT IN query from expiration policy.  https://review.openstack.org/49672110:46
d0ugalrakhmerov: no, I hadn't even seen it before.10:47
rakhmerovok, I believe I found a problem with it..10:47
d0ugaloh? are we using it?10:47
rakhmerovfiling a bug10:47
rakhmerovyes10:47
rakhmerovI wrote @db_utils.retry_on_deadlock decorator based on it10:47
d0ugalah10:47
rakhmerovto retry transactional methods on DB deadlocks (thanks to mysql)10:48
rakhmerovand it doesn't work as I expected10:48
d0ugalWhat does it do wrong?10:48
rakhmerovok, so10:48
d0ugalI can just read the bug once you submit if that is easier :)10:49
rakhmerovyeah, ok )10:49
rakhmerovd0ugal: https://bugs.launchpad.net/oslo.service/+bug/171863511:01
openstackLaunchpad bug 1718635 in oslo.service "loopingcall.RetryDecorator doesn't drop _retry_count on successful invocation of a decorated method" [Undecided,New]11:01
openstackgerritzhangyangyang proposed openstack/mistral-lib master: Cleanup test-requirements  https://review.openstack.org/50611311:01
rakhmerovd0ugal: again, I'm not sure. Maybe it's by design11:02
openstackgerritzhangyangyang proposed openstack/mistral-extra master: Cleanup test-requirements  https://review.openstack.org/50611511:02
rakhmerovbut it's quite surprising to me11:02
rakhmerovor maybe I don't use it properly (???)11:03
d0ugalrakhmerov: ooft, that does sound like a bug to me.11:04
rakhmerovyeah )11:04
rakhmerovI wonder in how many places it's used now )11:04
rakhmerovI'm writing an email to ML now so that they check11:04
d0ugalrakhmerov: it looks like nova uses it.11:06
rakhmerov:)11:06
d0ugalOnly us and nova I think11:06
d0ugalhttp://codesearch.openstack.org/?q=RetryDecorator&i=nope&files=&repos=11:06
rakhmerovwhere?11:06
d0ugalThe others are unrelated or it finds their own classes with the same name11:06
d0ugalhttp://git.openstack.org/cgit/openstack/nova/tree/nova/virt/disk/mount/api.py11:06
d0ugalhttp://git.openstack.org/cgit/openstack/nova/tree/nova/virt/libvirt/guest.py11:06
rakhmerovyep11:07
*** jkilpatr has joined #openstack-mistral11:10
*** gkadam has quit IRC11:21
*** thrash|g0ne is now known as thrash11:26
*** dprince has joined #openstack-mistral11:30
*** fultonj has quit IRC11:33
*** fultonj has joined #openstack-mistral11:34
*** shardy_afk is now known as shardy11:35
*** fultonj has quit IRC11:40
*** fultonj has joined #openstack-mistral11:40
*** zhurong has quit IRC11:51
*** chlong has joined #openstack-mistral11:52
*** gkadam has joined #openstack-mistral12:06
*** bobh has joined #openstack-mistral12:26
d0ugalrakhmerov: are you still around?12:28
*** catintheroof has joined #openstack-mistral12:41
rakhmerovd0ugal: yes, but not for too long12:45
rakhmerovplease write, I'll reply later when I can12:46
d0ugalrakhmerov: I have failed to figure out how to get the execution context values12:51
d0ugalrakhmerov: so I was going to see if you had any more pointers.12:51
rakhmerovok, let me ping you later12:54
*** gkadam has quit IRC12:58
d0ugalrakhmerov: thanks12:58
*** gkadam has joined #openstack-mistral12:59
*** toure_biab is now known as toure13:01
*** gkadam has quit IRC13:02
*** d0ugal has quit IRC13:02
*** gkadam has joined #openstack-mistral13:02
*** d0ugal has joined #openstack-mistral13:03
*** weshay is now known as weshay_bbiab13:30
openstackgerritOpenStack Proposal Bot proposed openstack/mistral master: Updated from global requirements  https://review.openstack.org/50616813:30
openstackgerritDougal Matthews proposed openstack/mistral-lib master: Add a representation of the ActionContext in mistral-lib  https://review.openstack.org/50605813:44
openstackgerritDougal Matthews proposed openstack/mistral master: WIP: Testing ad-hoc asynchronous actions  https://review.openstack.org/50550813:54
openstackgerritDougal Matthews proposed openstack/mistral master: [WIP] Pass the new ActionContext to mistral-lib  https://review.openstack.org/50618513:54
tourerakhmerov good morning / evening for you :) so would there be any security risks for that spec13:55
tourehttps://blueprints.launchpad.net/mistral/+spec/mistral-run-workflow-from-execution13:56
d0ugaltoure: what security risk are you thinking of?13:56
toured0ugal what if there are secrets in the workflow for a tenant?13:57
toureI guess keystone would prevent that violation13:58
d0ugaltoure: sure, you should only be able to "copy" a workflow you have permissions for13:58
d0ugals/workflow/execution/13:58
toured0ugal yeah, just trying to think of other use cases other than debugging13:58
*** yangyapeng has joined #openstack-mistral13:59
toured0ugal but this one should be pretty straight forward to implement13:59
d0ugalaye13:59
d0ugalcopy workflow name and inputs from existing execution, start new execution14:00
d0ugalI'm honestly not sure I think it is worth it :014:00
d0ugal:)14:00
d0ugalI'd just script it14:00
d0ugalbut it is a nice and easy thing to do, so why not.14:00
toureyeah it feels a little forced14:00
toure:)14:01
d0ugalthe action doesn't really fit into REST terms14:01
d0ugalbecause it is essentially a GET and a POST14:01
d0ugalhttps://stackoverflow.com/questions/18755220/what-is-the-restful-way-to-represent-a-resource-clone-operation-in-the-url14:02
tourethis would have to implement a service helper to search and re-run the execution14:03
d0ugalYeah14:04
tourewell it's not like I don't know that side of house by now :)14:04
d0ugalcool, so you can knock this out for us today? :-D14:05
tourealmost :)14:05
tourelet me see if I can put something together for tomorrow14:05
toure:)14:05
tourebut I think I could hack something together for tomorrow14:06
d0ugalhaha, mostly14:06
d0ugalhaha, mostly joking :)14:06
toure:) hehe14:06
toureit would give me something to else to work on that isn't WEA14:06
tourewhich is all consuming14:07
d0ugalheh14:08
d0ugalneed any help with that?14:08
tourepossibly in regards to serializing data in a way pecan can consume it... rakhmerov suggested a polymorphic resource class which is fine, it is just trying to get pecan to understand it14:11
tourewhich I think I can have sqlalchemy serialize the results as json14:12
toured0ugal http://blog.mmast.net/sqlalchemy-serialize-json14:14
d0ugaltoure: I don't think Pecan has any specific support for polymorphic resources.14:15
toured0ugal it doesn't14:15
toure:)14:15
d0ugaltoure: sure, it is easy to convert a result into JSON, but that kinda skips the rest layer14:15
d0ugalwe also support XML, not that I think anyone uses it.14:15
tourehrmm14:16
d0ugal(or we did support xml at one point, I have not looked in some time)14:17
d0ugaltoure: I suspect if you want to do it the Pecan way, you will need to create a custom resource class14:19
d0ugaltoure: but I guess that is what rakhmerov didn't like14:19
d0ugaltoure: maybe you could programatically create it based on the others, rather than duplicating the details.14:19
toured0ugal that is what I will need a hand with14:21
toured0ugal brb14:21
d0ugalk14:21
*** bobh has quit IRC14:25
*** openstackgerrit has quit IRC14:33
*** openstackgerrit has joined #openstack-mistral14:34
openstackgerritDougal Matthews proposed openstack/mistral master: [WIP] Pass the new ActionContext to mistral-lib  https://review.openstack.org/50618514:34
openstackgerritDougal Matthews proposed openstack/mistral master: WIP: Testing ad-hoc asynchronous actions  https://review.openstack.org/50550814:34
*** thrash is now known as thrash|biab14:41
*** thrash|biab is now known as thrash15:16
*** bobh has joined #openstack-mistral15:26
*** bobh has quit IRC15:30
*** bobh has joined #openstack-mistral15:36
openstackgerritDougal Matthews proposed openstack/mistral master: Add actions for the ironic virtual network interface commands  https://review.openstack.org/50626415:40
d0ugalshardy: ^ we are probably going to need/want this.15:40
openstackgerritDougal Matthews proposed openstack/mistral master: Add the Ironic wait_for_provision_state action  https://review.openstack.org/50626815:45
*** thrash is now known as thrash|biab15:48
*** weshay_bbiab is now known as weshay16:07
shardyd0ugal: ack, nice thanks for looking into this :)16:33
d0ugalshardy: np, I left a bunch of comments on the review after each update16:35
openstackgerritMerged openstack/mistral master: Removed NOT IN query from expiration policy.  https://review.openstack.org/49672116:38
*** jtomasek has quit IRC16:49
*** jtomasek has joined #openstack-mistral16:50
*** thrash|biab is now known as thrash16:58
*** jpich has quit IRC17:01
openstackgerritMerged openstack/mistral master: Updated from global requirements  https://review.openstack.org/50616817:22
*** thrash is now known as thrash|biab18:36
mattybrennanWill an executor keep doing what it was doing if it gets a TERM signal?18:45
*** toure is now known as toure_biab18:56
mattybrennanI have a kubernetes deployment with a few executors and an engine. I did an update to roll out a new docker image. it seems like the executor image went away without finishing its work18:56
*** thrash|biab is now known as thrash19:06
*** weshay is now known as weshay_bbiab19:50
*** jkilpatr has quit IRC20:47
*** jkilpatr has joined #openstack-mistral21:04
*** catintheroof has quit IRC21:07
*** dprince has quit IRC21:42
*** zhenguo has quit IRC21:45
*** zhenguo has joined #openstack-mistral22:01
*** thrash is now known as thrash|g0ne22:06
*** bobh has quit IRC22:23
*** bobh has joined #openstack-mistral23:24
*** bobh has quit IRC23:24

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