Wednesday, 2016-06-08

*** toddjohn has joined #openstack-mistral00:00
*** toddjohn has quit IRC00:04
*** cheneydc has joined #openstack-mistral00:58
*** toddjohn has joined #openstack-mistral01:48
*** toddjohn has quit IRC01:52
*** tonytan4ever has joined #openstack-mistral02:11
*** openstackgerrit has quit IRC02:47
*** openstackgerrit has joined #openstack-mistral02:48
*** gyee has quit IRC02:50
*** toddjohn has joined #openstack-mistral03:36
*** toddjohn has quit IRC03:40
*** bobh has joined #openstack-mistral03:57
*** tonytan_brb has joined #openstack-mistral04:07
*** bobh has quit IRC04:07
*** tonytan4ever has quit IRC04:08
*** tonytan_brb has quit IRC04:36
openstackgerritRenat Akhmerov proposed openstack/mistral: Add a test that verifies an old bug with join  https://review.openstack.org/32681904:47
*** vishwanathj has joined #openstack-mistral04:51
*** tonytan4ever has joined #openstack-mistral05:03
openstackgerritRenat Akhmerov proposed openstack/mistral: Add explicit preconditions for methods of Action, Task and Workflow  https://review.openstack.org/32682305:07
*** tonytan4ever has quit IRC05:09
*** bobh has joined #openstack-mistral05:21
*** toddjohn has joined #openstack-mistral05:24
*** bobh has quit IRC05:24
*** toddjohn has quit IRC05:29
*** tonytan4ever has joined #openstack-mistral05:33
*** tonytan4ever has quit IRC05:38
*** jtomasek has quit IRC06:01
*** mflobo has left #openstack-mistral06:13
*** mflobo has joined #openstack-mistral06:14
*** vishwanathj has quit IRC06:36
*** vishwanathj has joined #openstack-mistral06:36
openstackgerritMarcos Fermín Lobo proposed openstack/mistral: Add Magnum actions  https://review.openstack.org/32646106:45
*** jpeeler has quit IRC06:47
*** openstackgerrit has quit IRC06:48
*** openstackgerrit has joined #openstack-mistral06:48
*** jpeeler has joined #openstack-mistral06:55
*** toddjohn has joined #openstack-mistral07:12
*** toddjohn has quit IRC07:17
*** shardy has joined #openstack-mistral07:39
*** openstackgerrit has quit IRC07:48
*** openstackgerrit has joined #openstack-mistral07:48
openstackgerritMarcos Fermín Lobo proposed openstack/mistral: Add Magnum actions  https://review.openstack.org/32646107:53
*** toddjohn has joined #openstack-mistral07:57
*** rbrady has quit IRC07:58
d0ugalrakhmerov: I just replied to rbrady on the spec, but I didn't08:08
d0ugalrakhmerov: I just replied to rbrady on the spec, but I didn't notice you had replied also08:09
d0ugal... hopefully my comment clears it up08:09
rakhmerovthat's ok )08:09
rakhmerovyeah, I see08:09
rakhmerovI agree with your comment08:10
d0ugalcool :)08:10
rakhmerovhonestly, this repo is kind of abandoned08:10
rakhmerovalmost08:10
d0ugalI thought that might be the case08:10
rakhmerovbut I think in this context it could be useful, we could just revisit it and get into needed shape08:10
d0ugal+108:10
d0ugalMaybe we can delete code that is old and not relevant when reusing it08:11
rakhmerovyes08:11
d0ugalI don't think eventlet is even used despite being in the requirements btw08:11
rakhmerovright )08:11
rakhmerovyeah, well, we could leave examples in there but create individual requirements.txt inside each one of them, if needed08:12
rakhmerovso that examples will live their own life08:12
rakhmerovd0ugal: btw, can you please look at my comments in https://review.openstack.org/#/c/326823/ ?08:12
rakhmerovd0ugal: I think it's my fault because the commit message may not be too clear08:13
rakhmerovbut ddeja changed his opinion after my explanations :)08:13
d0ugalrakhmerov: Yeah, I am just thinking about it :)08:13
d0ugalrakhmerov: I guess I'm fine with it, I just can't think of a case when it would ever help. It would be interesting to have an example.08:14
d0ugalbut I assume you know better than me :)08:14
rakhmerovd0ugal: I realize that it's not so common thing in Openstack08:14
rakhmerovd0ugal: ooh, let me explain then..08:14
rakhmerovit's basically useful for debugging08:14
*** vishwanathj has quit IRC08:14
_gryfrakhmerov, I dont think assert statement is the best way to achieve what you are aiming there08:15
rakhmerovI lately came across a couple of situations when the program stack went far deep where a crash occurred08:15
rakhmerovbut the reason was that some basic precondition was broken up the stack08:15
_gryfrakhmerov, esp. if operaotors would run python with -O/-OO08:15
rakhmerovand it just takes a lot of time to localize such problems08:15
d0ugalI've never know anyone to use -O/-OO :)08:16
_gryfd0ugal, ok, fair enough08:16
d0ugalbut I still find it a bit strange08:16
d0ugal... and I assume some people must use it.08:16
_gryfbut still, i;d rather use apropriate decorator, than assert08:16
rakhmerov_gryf, d0ugal: well, honestly, I don't know why it looks confusing to you. It's a pretty typical thing. The general term is "contract-based programming"08:17
rakhmerov_gryf: decorator is a good point08:17
_gryfit is not confusing - it's just not reliable from my point of view08:18
rakhmerovI think we can come up with a number decorators for purposes like this08:18
d0ugalI think for me, when given the choice of an assert or raising a specific error, why use assert? :)08:18
_gryfassuming, that someone *may* run mistral with python -OO, this might break the program flow08:18
rakhmerov_gryf: why not reliable? Even if it occurs in production (without -O) the deployer will know that it's not a misconfiguration but rather a program logic issue08:19
rakhmerovd0ugal: because it's really lightweight08:19
ddejarakhmerov: decorator is also what I;ve suggested in my first comment (after talk with _gryf ;)08:19
rakhmerovit's targeted mostly people who already know the code and add a little bit more to better understand, for example, what invariants exist around objects we're working with08:20
rakhmerovetc08:20
_gryfrakhmerov, right, of course, but if for some reason operator will run services with optimizations, it will not see any assertion errors and program will go on08:20
ddejabut still I think assert would be fine if it is intended to use for debug; raising an error would also be OK08:20
_gryfsince asser statements will be literally removed from the code by optimization08:20
rakhmerov_gryf: agree, ideally all such errors must be eliminated during debugging and testing08:21
_gryfrakhmerov, ideally ;)08:21
rakhmerovok, I don't want to be too insistive on that. If you think this is wrong I can abandon the patch08:22
rakhmerovI just did it because it really saved my time during debugging08:22
d0ugalIt is probably better to have the check than not have it08:22
rakhmerovyep08:22
d0ugalI guess if it proves to be confusing more context can be added in the form of another error later08:22
d0ugalso08:22
* d0ugal shrugs08:22
d0ugal+108:22
rakhmerovmoving forward, let's have decorators for this08:22
rakhmerov:))08:23
_gryfrakhmerov, I'm cool with that, although some comments like TODO might be useful if such tests will finally artive some day :)08:23
d0ugalit's unfortunate that it can't be handled in the base class.08:23
d0ugalwell, it can, but not with the current code I don't think.08:23
rakhmerovright08:23
rakhmerovd0ugal: I just assigned a simple bug to you08:29
rakhmerovhttps://bugs.launchpad.net/mistral/+bug/156854108:30
openstackLaunchpad bug 1568541 in Mistral "action-update API on non existing action - creates action instead of returning 404" [Medium,New] - Assigned to Dougal Matthews (d0ugal)08:30
d0ugalrakhmerov: cool, that does some easy :) I should have some time to take a look today08:31
rakhmerovd0ugal: where are you located?08:31
d0ugalrakhmerov: Glasgow, Scotland08:31
rakhmerovooh, I see08:31
rakhmerovnot too far08:31
rakhmerovcomparing to US08:31
d0ugalhaha, indeed :)08:32
d0ugalrakhmerov: Where are you?08:34
rakhmerovRussia, Barnaul08:35
d0ugalI think you mentioned in the meeting but I forgot!08:35
rakhmerovit's a siberian city08:35
d0ugaloh, cool08:35
d0ugalNot somewhere I had heard of :)08:35
rakhmerovyeah, I'm the only openstacker in the city )08:35
d0ugalhah08:35
rakhmerovit's close to Novosibirsk which is pretty famous08:35
d0ugalI don't know of any others in Glasgow, there are a few in Scotland however.08:35
_gryfrakhmerov, Barnaul? don't you lived in Saratov?08:36
rakhmerovfor math, nuclear physics and biotech08:36
rakhmerov_gryf: nope08:36
rakhmerov:)08:36
rakhmerovI always was a remote Mirantis employee08:36
_gryfso I've got wrong information than08:36
rakhmerovjust often went to business trips08:36
*** dmk0202 has joined #openstack-mistral08:37
_gryfso Mirantis have thier offices in Saratov, right?08:37
rakhmerovyes08:40
rakhmerovMoscow and Saratov in Russia08:40
rakhmerovKharkiv in Ukraine08:40
rakhmerovand other countries: Poland, France, US08:41
_gryfrakhmerov, I see :)08:48
*** openstackgerrit has quit IRC08:48
*** openstackgerrit has joined #openstack-mistral08:48
*** vishwanathj has joined #openstack-mistral08:55
*** rbrady has joined #openstack-mistral09:56
*** cheneydc has quit IRC09:56
openstackgerritRenat Akhmerov proposed openstack/mistral: Removing redundant wf_ex_id parameter for rerun across the code  https://review.openstack.org/32696309:59
*** toddjohn has quit IRC10:06
*** toddjohn has joined #openstack-mistral10:07
*** vishwanathj has quit IRC10:08
*** toddjohn has quit IRC10:11
*** rbrady is now known as rbrady-afk10:32
*** d0ugal has quit IRC10:59
*** d0ugal has joined #openstack-mistral11:01
*** rbrady-afk has quit IRC11:08
*** d0ugal has quit IRC11:09
*** toddjohn has joined #openstack-mistral11:23
*** toddjohn has quit IRC11:28
*** d0ugal has joined #openstack-mistral11:33
openstackgerritMerged openstack/mistral: Add a test that verifies an old bug with join  https://review.openstack.org/32681912:05
*** dprince has joined #openstack-mistral12:15
*** toddjohn has joined #openstack-mistral12:17
openstackgerritMarcos Fermín Lobo proposed openstack/mistral: Allow to use both name and id to access action definitions  https://review.openstack.org/32589412:19
*** toddjohn has quit IRC12:22
*** rbrady has joined #openstack-mistral12:23
*** rbrady has quit IRC12:31
*** vishwanathj has joined #openstack-mistral12:41
*** rbrady has joined #openstack-mistral12:44
*** rbrady has quit IRC13:14
*** bobh has joined #openstack-mistral13:29
*** bobh has quit IRC13:41
openstackgerritMarcos Fermín Lobo proposed openstack/mistral: Allow to use both name and id to access action definitions  https://review.openstack.org/32589414:22
*** tonytan4ever has joined #openstack-mistral14:34
*** renato_r has joined #openstack-mistral15:00
*** tonytan4ever has quit IRC15:03
*** tonytan4ever has joined #openstack-mistral15:09
*** dprince has quit IRC15:13
*** dmk0202 has quit IRC15:29
*** chlong has quit IRC15:58
*** gyee has joined #openstack-mistral16:15
*** d0ugal has quit IRC16:33
*** dprince has joined #openstack-mistral16:41
*** d0ugal has joined #openstack-mistral16:50
*** tonytan4ever has quit IRC17:04
*** vishwanathj has quit IRC17:11
*** KriSstaL has joined #openstack-mistral17:21
*** dprince has quit IRC17:22
*** dprince has joined #openstack-mistral17:23
*** tonytan4ever has joined #openstack-mistral17:23
*** KriSstaL has left #openstack-mistral17:23
*** mgershen has quit IRC18:34
*** jtomasek has joined #openstack-mistral19:01
*** toddjohn has joined #openstack-mistral19:06
*** harlowja has quit IRC19:12
*** harlowja has joined #openstack-mistral19:15
*** mgershen has joined #openstack-mistral19:19
*** gyee has quit IRC19:40
*** openstackgerrit has quit IRC20:48
*** openstackgerrit has joined #openstack-mistral20:48
*** gyee has joined #openstack-mistral20:55
*** toddjohn_ has joined #openstack-mistral20:55
*** toddjohn has quit IRC20:59
*** chlong has joined #openstack-mistral21:06
*** toddjohn_ has quit IRC21:18
*** toddjohn has joined #openstack-mistral21:18
*** toddjohn has quit IRC21:24
*** tonytan4ever has quit IRC21:31
*** dprince has quit IRC22:01
*** renato_r has quit IRC23:33

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