Friday, 2018-06-22

openstackgerritRenat Akhmerov proposed openstack/mistral master: Add info about source execution to a workflow execution description  https://review.openstack.org/57734805:24
rakhmerovapetrich: hi, it was very fast ^ :)05:34
rakhmerovthanks!05:35
apetrichrakhmerov, I was just starting the day :)05:35
rakhmerovgood timing then! )05:35
apetrichI'm a bit more productive before the kids wake up05:35
rakhmerovhaha )05:35
rakhmerovwatch the worldcup? )05:35
rakhmerovI didn't sleep a lot today because I watched Arg - Cro05:36
rakhmerovit was from 1 till 3 am05:36
*** AlexeyAbashkin has joined #openstack-mistral05:54
*** hardikjasani has joined #openstack-mistral05:57
rakhmerovapetrich: the patch is failing, trying to understand why..05:58
*** AlexeyAbashkin has quit IRC06:13
apetrichrakhmerov, commented on the tox error that I got here06:20
rakhmerovok06:21
rakhmerovyeah, it was just a different test that failed06:21
rakhmerovfixed it06:21
rakhmerovnot sure why the low-constraint Job failed though06:21
openstackgerritRenat Akhmerov proposed openstack/mistral master: Add info about source execution to a workflow execution description  https://review.openstack.org/57734806:22
apetrichrakhmerov, works for me.06:30
*** AlexeyAbashkin has joined #openstack-mistral07:10
*** jistr|off is now known as jistr07:34
d0ugal_Morning!08:03
*** d0ugal_ has quit IRC08:03
*** d0ugal has joined #openstack-mistral08:04
d0ugal#startmeeting mistral08:05
openstackMeeting started Fri Jun 22 08:05:03 2018 UTC and is due to finish in 60 minutes.  The chair is d0ugal. Information about MeetBot at http://wiki.debian.org/MeetBot.08:05
openstackUseful Commands: #action #agreed #help #info #idea #link #topic #startvote.08:05
*** openstack changes topic to " (Meeting topic: mistral)"08:05
openstackThe meeting name has been set to 'mistral'08:05
d0ugalHappy Friday everyone! It is office hour time.08:05
d0ugalhttps://etherpad.openstack.org/p/mistral-office-hours08:05
d0ugalPING rakhmerov, apetrich, bobh, mcdoker18181808:05
apetricho/08:05
apetrichmorning08:05
d0ugalNo untriaged bugs again, good job!08:06
*** shardy has joined #openstack-mistral08:08
hardikjasaniHey08:08
d0ugalHey hardikjasani08:09
hardikjasaniWhat do guys think about https://blueprints.launchpad.net/mistral/+spec/mistral-namespace-for-actions-workbooks ?08:09
* d0ugal reads08:09
d0ugalhardikjasani: Makes sense. I'm not sure how it would work for actions? (unless you mean adhoc only?)08:11
hardikjasaniYes, it is for ad-hoc actions.08:11
hardikjasaniI will clarify08:11
d0ugalThanks08:11
d0ugalI have never really found a use for ad-hoc actions :)08:12
rakhmerovd0ugal: here08:13
d0ugalHey08:14
rakhmerovd0ugal: we just talked to hardikjasani recently I told him that blueprints need to be approved for a cycle/milestone officially08:14
d0ugalRight08:15
rakhmerovotherwise we can create an implementation and then find that core members are against the idea of the change08:15
d0ugalhardikjasani: is this something you hope to do for Rocky-3?08:16
hardikjasaniWhat is the date for Rocky-3?08:16
d0ugalWhich is around the end of July08:16
d0ugalJul 23 - Jul 2708:16
hardikjasaniYes, I have been working on it already.08:16
d0ugalcool08:16
d0ugalThen I am okay with is being part of that milestone - unless anyone has objections.08:17
rakhmerovd0ugal: +108:17
*** AlexeyAbashkin has quit IRC08:29
*** josecastroleon has quit IRC08:30
openstackgerritDougal Matthews proposed openstack/mistral master: [WIP] Experimental work adding a Zaqar event publisher  https://review.openstack.org/54766608:32
d0ugalrakhmerov: if you have a moment, I have a question about how to finish that patch ^08:32
d0ugalor the question can be for anyone really :-D08:33
rakhmerovyes08:33
rakhmerovok08:33
d0ugalI think I almost have it working, but I can't figure out how to finish this bit08:33
d0ugalhttps://review.openstack.org/#/c/547666/5/mistral/engine/workflows.py08:33
d0ugalSee the TODO08:33
d0ugalFor my Zaqar publisher to work it needs the Mistral context to create a Zaqar client - I think I was able to pass it everywhere else08:34
d0ugalbut not there, yet08:34
d0ugalI have to admit being a bit confused by the mistral context at times and when it is available.08:35
d0ugaland I also feel like there are multiple different contextes, so I maybe have the wrong thing in some places.08:35
rakhmerovd0ugal: yeah.. so08:39
d0ugal:)08:39
rakhmerov:)08:39
rakhmerovin mistral-lib we recently added Context splitted in turn into "security" and "context"08:40
rakhmerovad the notification mechanism is missing something similar08:40
d0ugalRight08:40
rakhmerovwe were aware of that (Winson's debt actually) and Winson was going to add it08:41
d0ugalyeah, I gave up and thought I would try to add it myself08:41
rakhmerovhe said that it wasn't quite clear for him how exactly this context should have been used so that's why we also wanted to make another publisher implementation and see what we need there08:41
rakhmerovyep08:42
rakhmerovso 1) we definitely need to add it08:42
rakhmerovbut 2) not sure if we need to make it the same thing as in mistral-lib08:42
d0ugalRight08:42
rakhmerovbecause that context is for actions08:42
rakhmerovwith all the consequences..08:43
d0ugalYeah, that feels quite different to me08:43
rakhmerovaction authors won't have to have a dependency on mistral repo08:43
rakhmerovd0ugal: yeah, to me too08:43
d0ugalSo eventually we should try and do a similar thing for publishers? So that you just need to depend on mistral-lib and write against that?08:44
d0ugalbut initially I'd like to just figure out the plumbing to make it work08:44
rakhmerovthe commonality is that publishers are also a pluggable thing08:44
rakhmerovyeah... thinking..08:45
d0ugalIMO the publisher work is mostly uselss at the moment :(08:45
rakhmerovI'm just thinking whether a publisher author should know about mistral-lib (or mistral)08:45
rakhmerovd0ugal: yes, that bit is obviously missing08:45
d0ugalrakhmerov: I think ideally a publisher should know about mistral-lib only08:46
d0ugalbut I think it is too late in rocky to refactor it to use mistral-lib08:46
rakhmerovd0ugal: you know, I'm actually not sure..08:47
rakhmerovbecause the base class for publishers is in mistral now08:47
rakhmerovif we want to have a dependency to mistral-lib only we need to move the base class to mistral-lib too08:47
d0ugaland make a mistral-lib release08:47
rakhmerovhm.. yeah08:48
rakhmerovbut I don't know really.. it sounds a little complicated08:49
d0ugalYup :)08:49
rakhmerovmaybe we just need to leave it in mistral08:49
rakhmerovbecause we already have lots of pluggable things in "mistral"08:49
rakhmerovlike Executor08:49
d0ugalIndeed08:49
rakhmerovexpression evaluator08:49
rakhmerovetc08:49
rakhmerovdo we need to move them all to mistral-lib?08:50
rakhmerovI don't think so08:50
rakhmerovnot yet at least )08:50
d0ugalI think we should move some of them to mistral-lib08:50
rakhmerovmay be08:50
d0ugalHowever, I think we should keep the notifier in mistral now, it makes it easier to iterate it and update it08:51
rakhmerovbut then particular implementations I think should be moved somewhere else, no?08:51
d0ugalThen we can maybe move it to mistral-lib is we think it makes sense and it is stable.08:51
rakhmerovyes08:51
rakhmerovok, agree08:51
rakhmerovbut to me it sees legitimate to still use Context from mistral-lib when calling "publish" method08:51
d0ugalThen the Zaqar publisher should probably move to mistral-extra :)08:51
rakhmerovwhat do you think?08:51
rakhmerovd0ugal: yeah :)08:52
d0ugalSure, I am happy to use the mistral-lib context - it keeps it consistent.08:52
rakhmerovyeah, I think some of the "core and stable" implementations can stay in mistral but some can move to extra08:52
rakhmerovok08:52
d0ugalHowever, I have no idea how to get that context at every point we call .publish()08:52
rakhmerovwell, we need to look at the chain call from the engine to this method08:53
rakhmerovas I remember, it goes through something else (Notifier?)08:53
d0ugalYup08:53
rakhmerovthe "execution" part is available in the engine08:53
rakhmerovthe security part can be also taken through auth.context()08:54
rakhmerovfrom mistral import context as auth_ctx08:55
rakhmerovseems like for "execution" part it'd be nice to have a thread local variable may be08:56
d0ugalhttps://github.com/openstack/mistral/blob/fc7877ec5269a932b1c1d05a1ab17d615af9931b/mistral/context.py#L26008:56
rakhmerovsimilar to the security context08:56
rakhmerovyes!08:56
d0ugalI forgot I added that method.08:57
rakhmerov:)08:57
rakhmerovd0ugal: it'd be good to finish this notification thing in R-308:58
d0ugalrakhmerov: Yeah, I really want to.08:58
rakhmerovI know people who are interested in it08:58
rakhmerovyep08:58
d0ugalI want TripleO to use it with Zaqar :)08:58
rakhmerovgood to know, ok08:58
d0ugaland I guess it would be useful for the UI you have also08:59
rakhmerovyes, exactly )08:59
d0ugalrakhmerov: so you would add a execution context to that file like with the security context?08:59
d0ugalIt is unfotunate that the security context is just called context in most places.09:00
d0ugalThe name context is lacking context ;)09:00
rakhmerov:)) haha09:00
rakhmerovyeah..09:01
d0ugal#endmeeting09:01
*** openstack changes topic to " (Meeting topic: test)"09:01
openstackMeeting ended Fri Jun 22 09:01:14 2018 UTC.  Information about MeetBot at http://wiki.debian.org/MeetBot . (v 0.1.4)09:01
openstackMinutes:        http://eavesdrop.openstack.org/meetings/mistral/2018/mistral.2018-06-22-08.05.html09:01
openstackMinutes (text): http://eavesdrop.openstack.org/meetings/mistral/2018/mistral.2018-06-22-08.05.txt09:01
openstackLog:            http://eavesdrop.openstack.org/meetings/mistral/2018/mistral.2018-06-22-08.05.log.html09:01
rakhmerovhm..09:01
d0ugal^ stopping the bot because we are at time, but I am not going anywhere.09:01
rakhmerovdunno, may be just explicitly passing the "execution" part of it is OK for now09:02
therved0ugal: One thing that occurred to me for that Zaqar publisher: checking performance would be important09:02
d0ugalThat does make it a bit easier.09:02
rakhmerovnot sure how hard it is to maintain a thread local actually copy of it09:02
d0ugaltherve: Good point. It wouldn't be enabled by default but I'll try and test that.09:03
rakhmerovbecause if we decide to maintain a thread local object we'll have to update it everytime when we go on processing another execution object (e.g. a task or an action)09:03
therved0ugal: We have a somewhat similar mechanism in heat, and I couldn't enable it because of performance09:03
d0ugalrakhmerov: good point, we should avoid that.09:03
rakhmerovtherve: any details on what was the bottleneck/main problem?09:04
therverakhmerov: Well, 1k http requests added09:04
d0ugalooft :)09:04
therveThat's roughly the number of events when you deploy a tripleo heat stack09:04
rakhmerovaha09:05
rakhmerovI see09:05
d0ugalI think we typically have less events, but maybe we can add a way to configure which events are published09:05
therveI guess you may not have as many :)09:05
*** josecastroleon has joined #openstack-mistral09:05
rakhmerovd0ugal: yes, indeed we need this flexibility. Not sure though if we have it already09:05
rakhmerovfor example, can we configure (in the config) that we're not interested in events about actions?09:06
d0ugalrakhmerov: I don't think we do yet09:06
rakhmerovbut only about workflows and tasks09:06
rakhmerovaah...09:06
rakhmerovwe spent so much time in Denver to push this through..09:06
rakhmerovBob was pushing it hard09:06
rakhmerovso that we could do that09:07
d0ugalI'll open a bug for this09:07
rakhmerovok09:07
d0ugaltherve: btw, I was thinking about your idea to publish events to a queue named after the workflow09:08
therved0ugal: Well, I mentioned a configurable name, but that works too :)09:08
d0ugaltherve: I think that could be difficult to use - take the tripleo-ui case, it doesn't know which workflows were started (if it was another user/client)09:08
d0ugaltherve: oh, right, it should at least be configurable09:08
d0ugalI thought you had more in mind - ignore that then.09:09
d0ugalI just hadn't gotten to that bit yet.09:09
therved0ugal: Yeah pre-determined names are annoying09:09
d0ugal+109:09
therveI thought about having a workflow parameter, but you talked about subworkflows09:10
d0ugalYeah, it gets tricky. I'll experiment with names once I get it sort of working.09:13
d0ugalrakhmerov: btw it looks like we don't have any action events - only workflows and tasks.09:13
d0ugalhttps://github.com/openstack/mistral/blob/master/mistral/notifiers/notification_events.py09:14
*** shardy has quit IRC09:16
rakhmerovahh..09:17
*** shardy has joined #openstack-mistral09:17
*** AlexeyAbashkin has joined #openstack-mistral09:36
*** d0ugal has quit IRC09:55
*** d0ugal has joined #openstack-mistral09:56
openstackgerritMerged openstack/mistral master: Amend the spelling error of a word  https://review.openstack.org/57604509:57
*** hardikjasani has quit IRC11:17
*** AlexeyAbashkin has quit IRC11:57
*** AlexeyAbashkin has joined #openstack-mistral12:11
*** toure|gone is now known as toure12:20
*** mmethot has quit IRC12:47
*** mmethot has joined #openstack-mistral13:17
*** jistr is now known as jistr|mtg13:20
*** mfedosin has quit IRC13:20
*** jistr|mtg is now known as jistr13:37
*** jistr is now known as jistr|mtg13:43
openstackgerritStephen Finucane proposed openstack/mistral master: Autogenerate configuration documentation  https://review.openstack.org/57715713:52
*** josecastroleon has quit IRC14:01
*** josecastroleon has joined #openstack-mistral14:02
*** jistr|mtg is now known as jistr14:09
*** mfedosin has joined #openstack-mistral14:45
*** jistr is now known as jistr|afk15:30
*** jistr|afk is now known as jistr15:32
*** jistr is now known as jistr|off15:50
*** josecastroleon has quit IRC15:56
*** rbrady is now known as rbrady-afk16:21
*** bobh has joined #openstack-mistral16:22
*** bobh has quit IRC16:28
*** AlexeyAbashkin has quit IRC18:44
*** cmurphy is now known as cmurphy_vacation19:31
*** mmethot has quit IRC19:55
*** mmethot has joined #openstack-mistral20:27
*** AlexeyAbashkin has joined #openstack-mistral21:02
*** AlexeyAbashkin has quit IRC21:11
*** toure is now known as toure|gone21:25
*** weshay_PTO has quit IRC22:57
*** weshay has joined #openstack-mistral22:57

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