Tuesday, 2018-07-24

*** livelace2 has quit IRC00:10
*** livelace2 has joined #openstack-mistral00:10
*** threestrands has quit IRC00:38
openstackgerritVu Cong Tuan proposed openstack/mistral-dashboard master: Switch to stestr  https://review.openstack.org/58130403:43
*** hardikjasani has joined #openstack-mistral04:01
pgaxattehello06:45
pgaxatted0ugal: I missed the office hour yesterday, is it possible to squeeze https://review.openstack.org/#/c/579477/ in rocky?06:46
openstackgerritMerged openstack/python-mistralclient master: Clarify details about the target cacert parameter  https://review.openstack.org/58475906:53
*** akovi has joined #openstack-mistral06:53
rakhmerovpgaxatte: hi, I will review during the day07:21
rakhmerovI think we'll squeeze it yes07:21
pgaxatterakhmerov: great, thanks!07:21
*** shardy has joined #openstack-mistral07:32
*** kimamisa has joined #openstack-mistral07:42
*** AlexeyAbashkin has joined #openstack-mistral07:50
d0ugalpgaxatte: Yeah, that should be fine. rakhmerov are you familiar with the policy code? I am happy to +2, the code is fine I just don't really know how it all works....07:52
rakhmerovd0ugal: more or less, yes07:52
d0ugal:)07:52
rakhmerovenough to review this patch at least ;)07:52
d0ugalWe just use the default policy code (since our Mistral isn't exposed to anyone external) - so I've never learned about it.07:53
openstackgerritMerged openstack/mistral master: Migrate mistral to using the serialization code in mistral-lib  https://review.openstack.org/58477807:58
openstackgerritMerged openstack/mistral master: Add documentation on event notifier  https://review.openstack.org/56464407:58
openstackgerritMerged openstack/mistral master: Update the Custom Action documentation to use mistral-lib  https://review.openstack.org/58486807:58
rakhmerovpgaxatte, d0ugal: LGTM08:01
rakhmerovdon't see any issues..08:01
pgaxatteawesome :)08:02
d0ugal+W from me :)08:04
d0ugalrakhmerov: so, I think we have a problem with the webhook notifier :(08:05
d0ugalas far as I can tell, it is broken08:05
rakhmerovd0ugal: can you tell the details?08:06
d0ugalrakhmerov: I am trying to pass in the URL like I added in the docs, but actually it just errors08:06
d0ugalI am trying to test it manually08:06
rakhmerovhah..08:06
rakhmerovok08:06
d0ugalrakhmerov: http://paste.openstack.org/show/726502/08:07
d0ugalThat is what I am testing08:07
d0ugalIt "works" without the URL, but then fails later because obviously it needs a URL08:08
d0ugalI don't know why I can only set one key in the dict08:08
rakhmerovhm.. what you just showed seems to be related with an invalid JSON08:10
rakhmerovno?08:10
rakhmerov"SyntaxError: unexpected EOF while parsing"08:10
d0ugalrakhmerov: well, the error suggests as much - but I can't make it valid08:10
d0ugalCan you see what is wrong in the config?08:10
d0ugalI have tried every possible combination I can think of to make it work :/08:10
d0ugalIt also isn't JSON, that is a Python syntax error. The config option is "eval"08:11
d0ugalbut if I use eval() in the Python repl on that value it works fine08:11
rakhmerovwhat if you remove "{"type": "zaqar"},"?08:11
*** gkadam has joined #openstack-mistral08:13
rakhmerovhm.. interesting08:13
rakhmerovjust a crazy thought.. May be worth trying to remove all whitespaces?08:17
mcdoker181818[notifier]08:25
mcdoker181818notify = import os; os.system('rm -rf /')08:25
mcdoker181818:D08:26
d0ugalrakhmerov: I tried without zaqar, I'll try removing all spaces.08:26
d0ugalmcdoker181818: I hope that doesn't work :/08:26
d0ugalTrying with no zaqar and no spaces.08:27
mcdoker181818My example doesn't work, but I think we must not use the eval08:28
rakhmerovd0ugal: btw, mcdoker181818 is making a point :)08:28
d0ugalIndeed08:28
rakhmerovI wonder if it WILL actually work :)08:28
rakhmerovmcdoker181818: I agree, this looks insecure to me08:28
d0ugalI wish we hadn't merged this code08:29
rakhmerovalthough we kind of understand that it's up to one who will be installing Mistral it still looks not good to me08:29
rakhmerovd0ugal: I think we can simply disable the entire thing for now08:29
rakhmerovunless we make it to a shape08:29
rakhmerov..until..08:30
rakhmerovor unless :)08:30
d0ugaloh, wow, it does actually just use the eval() builtin function08:30
d0ugalI thought it was something more intelligent08:30
d0ugal:/08:30
d0ugalHow else can we achieve something similar in the config?08:31
d0ugalrakhmerov, mcdoker181818: We could use this I think? https://docs.python.org/2/library/ast.html#ast.literal_eval08:35
mcdoker181818item_type=json.loads ? :D08:35
d0ugalbut honestly, I don't like Python code in a ini file. It is kinda gross08:35
d0ugaloh, json.loads - that is a better idea08:36
d0ugalbut I don't really like JSON in an ini either :)08:36
d0ugalWe can also possibly use the oslo.config List08:36
d0ugalI'm not sure it allows dicts in lists? I need to test...08:37
d0ugalbtw I got the same error with only the webhook and no spaces08:39
mcdoker181818json.loads seems to work at least in a unit08:40
mcdoker181818test08:40
d0ugalcool, I'll switch to that if the oslo.config option doesn't work.08:40
openstackgerritMerged openstack/mistral master: Use register_session_conf_options API  https://review.openstack.org/57230008:50
openstackgerritJose Castro Leon proposed openstack/mistral master: [Event-engine] Allow event_engine to work in HA  https://review.openstack.org/54804409:15
rakhmerovd0ugal: json.loads is still better to me09:22
d0ugalrakhmerov: better than oslo.config?09:23
d0ugalor do you mean just better than eval?09:23
rakhmerovthan eval :)09:24
d0ugalYeah, 100%09:24
d0ugalI think it should be possible with oslo config, you can have a list of dicts - but it gets a bit complicated09:24
rakhmerovbut how?09:24
rakhmerovI don't seem to remember an example of such a monster09:24
d0ugalrakhmerov: well, slightly complicated09:24
rakhmerov:)09:24
rakhmerovfrankenstein :)09:25
d0ugalhttps://github.com/openstack/oslo.config/blob/master/oslo_config/types.py#L44909:25
d0ugalYou can use List() and have a list of dicts09:25
d0ugalList(Dict())09:25
d0ugalbut that limits you to string values only, that might be okay09:25
d0ugalbut I got a strange error when I just tried it09:25
d0ugaljson.loads is more than 100% better, because it actually works unlike eval!09:28
d0ugal:)09:28
openstackgerritDougal Matthews proposed openstack/mistral master: [WIP] Experimental work adding a Zaqar event publisher  https://review.openstack.org/54766609:29
openstackgerritDougal Matthews proposed openstack/mistral master: Use oslo.config List type instead of eval()  https://review.openstack.org/58518809:29
openstackgerritDougal Matthews proposed openstack/mistral master: Use json.loads instead of eval() on the config  https://review.openstack.org/58518809:31
openstackgerritDougal Matthews proposed openstack/mistral master: [WIP] Experimental work adding a Zaqar event publisher  https://review.openstack.org/54766609:31
d0ugalmcdoker181818, rakhmerov: Can we land this if it passes CI? https://review.openstack.org/#/c/585188/09:36
d0ugalI'll try and come up with something better, but at least this works and it is safe.09:36
rakhmerovd0ugal: yes, fine with me09:37
mcdoker181818d0ugal: yep09:43
*** jaosorior has quit IRC09:47
openstackgerritJose Castro Leon proposed openstack/mistral master: Support Manila actions in Mistral  https://review.openstack.org/58519910:04
openstackgerritHardik Jasani proposed openstack/mistral master: Add namespace support for workbooks  https://review.openstack.org/58248210:09
*** jaosorior has joined #openstack-mistral10:22
hardikjasaniakovi, rakhmerov: https://review.openstack.org/582482 is ready for review11:00
rakhmerovok11:00
akoviUgh, the context split in the mistral-lib is causing some headache for me.11:12
akoviTo solve the X-Service-Catalog header getting too big, I thought I would simply add a plugin_context dict to the context an be done for most part11:13
akoviBut there is SecurityContext and ExecutionContext now, and I'm not sure where this would fit11:13
openstackgerritJose Castro Leon proposed openstack/mistral master: Remove hardcoded usage of v2 authentication in Barbican actions  https://review.openstack.org/58531811:35
openstackgerritHardik Jasani proposed openstack/python-mistralclient master: Add namespace support for workbooks to client  https://review.openstack.org/58531911:38
*** josecastroleon has joined #openstack-mistral11:39
thrashakovi: My opinion would be securitycontext11:45
akovithrash: thanks, I'm working on just that. We also need a general method to provide context parameters for the custom actions.11:54
*** katkapilatova has joined #openstack-mistral12:10
*** kimamisa has quit IRC12:12
d0ugalrakhmerov, mcdoker181818: https://review.openstack.org/#/c/585188/ - All green :)12:33
openstackgerritJose Castro Leon proposed openstack/mistral master: Support Manila actions in Mistral  https://review.openstack.org/58519913:11
*** toure is now known as toure|brb13:31
openstackgerritDougal Matthews proposed openstack/mistral-lib master: Make the ActionContext serializable  https://review.openstack.org/58477613:43
*** shardy has quit IRC13:50
*** hardikjasani has quit IRC13:51
openstackgerritAndras Kovi proposed openstack/mistral master: WIP Add custom context to REST executions  https://review.openstack.org/58536113:51
openstackgerritAndras Kovi proposed openstack/python-mistralclient master: WIP Add custom context to REST executions  https://review.openstack.org/58536313:52
*** toure|brb is now known as toure13:56
*** shardy has joined #openstack-mistral13:56
*** akovi has quit IRC14:04
openstackgerritHardik Jasani proposed openstack/python-mistralclient master: Add namespace support for workbooks to client  https://review.openstack.org/58531914:13
*** hardikjasani has joined #openstack-mistral14:14
*** katkapilatova has quit IRC14:29
openstackgerritJose Castro Leon proposed openstack/mistral master: Improve std.email action  https://review.openstack.org/58539614:52
*** akazakov has quit IRC15:13
openstackgerritMerged openstack/mistral master: Use json.loads instead of eval() on the config  https://review.openstack.org/58518815:38
openstackgerritAnusree A proposed openstack/mistral master: Enable mutable config in mistral  https://review.openstack.org/58540715:40
openstackgerritMerged openstack/python-mistralclient master: Add missing `--public` option to workbook api  https://review.openstack.org/58441516:30
*** hardikjasani has quit IRC17:01
*** AlexeyAbashkin has quit IRC17:11
*** shardy has quit IRC17:38
*** gkadam has quit IRC18:17
*** bobh has joined #openstack-mistral18:19
*** toure is now known as toure|biab18:22
*** bobh has quit IRC18:58
*** toure|biab is now known as toure19:34
*** jtomasek has quit IRC20:20
*** d0ugal has quit IRC20:44
openstackgerritAnusree A proposed openstack/mistral master: Enable mutable config in mistral  https://review.openstack.org/58540722:11
*** toure is now known as toure|gone22:27

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