Wednesday, 2018-05-30

*** csatari_ has joined #openstack-mistral00:05
*** csatari has quit IRC00:05
*** csatari_ is now known as csatari00:05
*** zigo has quit IRC00:06
*** zigo_ has joined #openstack-mistral00:06
*** harlowja has quit IRC01:00
*** thrash is now known as thrash|g0ne02:47
*** harlowja has joined #openstack-mistral03:29
*** harlowja has quit IRC04:14
*** hardikjasani has joined #openstack-mistral04:29
openstackgerritRenat Akhmerov proposed openstack/mistral master: Use yaql_utils.convert_input_data() when creating a child YAQL context  https://review.openstack.org/57071204:40
rakhmerovd0ugal, apetrich: hi, can you please look at https://review.openstack.org/#/c/477816/ and https://review.openstack.org/#/c/570712/ ?04:41
*** rakhmerov has quit IRC04:51
*** igormarnat has quit IRC04:51
*** akuznetsova has quit IRC04:51
openstackgerritRenat Akhmerov proposed openstack/mistral master: Add a test that checks that YAQL engine options work  https://review.openstack.org/57109105:03
*** akuznetsova has joined #openstack-mistral05:15
*** rakhmerov has joined #openstack-mistral05:16
openstackgerritRenat Akhmerov proposed openstack/mistral master: Add a test that checks that YAQL engine options work  https://review.openstack.org/57109105:22
*** igormarnat has joined #openstack-mistral05:25
*** akuznetsova has quit IRC05:58
*** igormarnat has quit IRC05:59
*** rakhmerov has quit IRC05:59
*** akuznetsova has joined #openstack-mistral06:16
*** rakhmerov has joined #openstack-mistral06:19
*** igormarnat has joined #openstack-mistral06:22
*** jtomasek has joined #openstack-mistral06:25
*** jtomasek has quit IRC06:28
*** AlexeyAbashkin has joined #openstack-mistral06:32
apetrichrakhmerov, about I https://review.openstack.org/#/c/477816/  kind of agree with Andras that some options might make the workflow definitions not portable. and I can't see the bug #170057207:12
apetrichrakhmerov, so my question is do we need all of those?07:12
rakhmerovapetrich: the defaults are not broken07:13
rakhmerovbut we already faced a case when a customer wants to apply some options per Mistral installation07:13
rakhmerovbeing completely aware of the consequences07:13
rakhmerovapetrich, d0ugal: do you know what it is? http://logs.openstack.org/12/570712/2/check/tripleo-ci-centos-7-scenario003-multinode-oooq-container/6f15073/job-output.txt.gz#_2018-05-30_06_44_51_85980407:13
*** jaosorior has joined #openstack-mistral07:15
*** apetrich has quit IRC07:21
*** apetrich has joined #openstack-mistral07:23
*** jtomasek has joined #openstack-mistral07:25
*** jtomasek has quit IRC07:31
*** jpich has joined #openstack-mistral07:53
* d0ugal will be here to look soon08:00
rakhmerovapetrich: again, https://review.openstack.org/#/c/477816/ doesn't break compatibility because the default values of these options are still the same. Only people who need a slightly different behaviour will consciously change them08:12
apetrichrakhmerov, yeah I get that but workflows done with that settings in mind are not portable, are they not?08:13
apetrichbtw I'm fine with adding those I just want a bit of a cli output and a log with the settings08:14
rakhmerovmost likely they are but if someone sets a value of one of these options they will probably know what they want08:14
rakhmerovlog?08:15
rakhmerovwhat do you mean?08:15
apetrichjust a LOG.info with those settings. when we instanciate the yaql factory08:17
apetrichso we can look what the settings were when they were running it08:17
rakhmerovapetrich: ok, I can add that08:18
rakhmerovno problem08:18
d0ugalrakhmerov: I find these options weird too08:32
d0ugalI understand limit_iterators and memory_quota08:32
d0ugalbut what is the use-case for the others?08:32
rakhmerovd0ugal: one of our customer found that, for example, <% $.my_params.toSet().difference($.another_set) %> works in YAQL CLI and Yaqluator but doesn't work in Mistral's YAQL08:33
rakhmerovsetting "convert_sets_to_lists" solves this problem08:33
d0ugalInteresting08:33
rakhmerovthat's why I remembered about this patch08:34
d0ugalSo that means it is the default in other places but not in Mistral?08:34
d0ugalrakhmerov: a release note would be also super great :)08:34
rakhmerovthat has been on review for a while now and thought it's totally ok to add these options (with the same defaults)08:34
rakhmerovd0ugal: yes, seems like.08:34
d0ugalIt is strange to me that the YAQL cli changes the defaults.08:34
rakhmerovBut my argument here: we're not breaking anything, the defaults are the same. We just add more flexibility08:35
d0ugalbut that is a good enough reason for me.08:35
d0ugalSure, just making sure I understand the motivation.08:35
rakhmerovd0ugal: I'm still against of changing this option's value by default because it may not be backwards compatible08:35
d0ugalrakhmerov: Agreed, I wouldn't support changing the default either.08:36
rakhmerovbut giving such a possibility for those who know exactly that they need it seems OK to me08:36
d0ugalIt is just surprising to me that our default is different to the other defaults.08:36
rakhmerovd0ugal: sure, agree on 100%08:36
d0ugalSure08:36
rakhmerovyeah, for me too08:36
rakhmerovbut I did investigation last week and it turned to be true08:36
d0ugalSo just a realse note please when you make the other changes :-D08:36
rakhmerovabsolutely, yes08:37
d0ugalIt is useful to know. I often use the YAQL cli to test expressions08:37
d0ugalso now I know I can't fully trust that.08:37
rakhmerovand I'll add logging as well per apetrich's request08:37
d0ugalGreat08:37
apetrichcheers08:40
openstackgerritRenat Akhmerov proposed openstack/mistral master: Add YAQL engine options  https://review.openstack.org/47781608:49
openstackgerritRenat Akhmerov proposed openstack/mistral master: Add a test that checks that YAQL engine options work  https://review.openstack.org/57109108:49
*** Alexey_Abashkin has joined #openstack-mistral08:50
*** Alexey_Abashkin has quit IRC08:51
*** AlexeyAbashkin has quit IRC08:51
*** AlexeyAbashkin has joined #openstack-mistral08:52
pgaxattehi09:04
pgaxatteI see a small problem in the mistralclient that bothers me and I can't seem to find the root cause09:05
pgaxattethe problem is that the workflow create call using the openstack client does not provider the json and shell formats09:06
apetrichpgaxatte, hey. can you give any details?09:06
pgaxattealthough it should and all other create commands behave correctly09:06
pgaxattehere is an example09:06
pgaxatte➜ openstack workflow create --help | grep -A4 '^output formatters:' output formatters:   output formatter options   -f {csv,json,table,value,yaml}, --format {csv,json,table,value,yaml}                         the output format, defaults to table09:07
pgaxattedamn formatting :)09:07
pgaxatte➜ openstack workflow create --help | grep -A4 '^output formatters:'09:07
pgaxatteoutput formatters:09:07
pgaxatte  output formatter options09:07
pgaxatte  -f {csv,json,table,value,yaml}, --format {csv,json,table,value,yaml}09:07
pgaxatte                        the output format, defaults to table09:07
pgaxatteand this is the output for workbook (which has the correct behavior)09:08
pgaxatte➜ openstack workbook create --help | grep -A4 '^output formatters:'09:08
pgaxatteoutput formatters:09:08
pgaxatte  output formatter options09:08
pgaxatte  -f {json,shell,table,value,yaml}, --format {json,shell,table,value,yaml}09:08
pgaxatte                        the output format, defaults to table09:08
pgaxatteI've been browsing through openstackclient, mistralclient, osc_lib, cliff, stevedore code for a day now and I don't see why this happens :)09:09
apetrichpgaxatte, do it in a http://paste.openstack.org09:09
pgaxatteyeah sure sorry :)09:09
apetrichno worries09:10
pgaxattehttp://paste.openstack.org/show/722329/09:10
pgaxattethis seems like a small bug without consequence, EXCEPT if you want to integrate the creation of workflows in puppet-mistral09:11
pgaxattewhich i'm trying to do :D09:12
pgaxatteand it heavily relies on the output formatting of the openstack command09:12
apetrichpgaxatte, you said that it doesn't provide the json and shell format but I only see a the missing output shell. because there's a json option there, isn't it?09:16
pgaxatteoh yeah I had them mixed up09:16
pgaxattei thought json was missing too09:16
pgaxattebut no it's just that csv is there instead of shell09:17
pgaxattean of course puppet uses the shell output....09:17
pgaxattefor all "create" commands09:17
pgaxatteand the "csv" output for list09:17
apetrichmmm09:18
pgaxatteapetrich, here is a reference that defines this behavior: https://github.com/openstack/python-openstackclient/blob/master/doc/source/contributor/humaninterfaceguide.rst09:19
pgaxattespecifically https://github.com/openstack/python-openstackclient/blob/master/doc/source/contributor/humaninterfaceguide.rst#command-output09:20
pgaxattebut it does not state what the create output formats should be09:20
*** jtomasek has joined #openstack-mistral09:24
*** jtomasek has quit IRC09:25
mcdoker181818c09:33
pgaxatteapetrich: any idea where this behavior is defined?09:36
apetrichpgaxatte, thats the odd part. I'm trying to dig that.09:37
*** mcdoker181818 has quit IRC09:37
apetrichand comparing to heatclient because it has some handling when you ask the output to be shell09:38
* apetrich scratches his head09:45
d0ugalpgaxatte, apetrich: I would guess this is the issue...09:50
d0ugalhttps://github.com/openstack/python-mistralclient/blob/master/mistralclient/commands/v2/workbooks.py#L8109:50
d0ugalvs09:50
d0ugalhttps://github.com/openstack/python-mistralclient/blob/master/mistralclient/commands/v2/workflows.py#L11909:50
d0ugalDifferent base classes.09:50
d0ugalMistralLister is probably wrong?09:50
pgaxatteah that seems like a good lead09:51
apetrichalso heatclient has some custom handling here https://github.com/openstack/python-heatclient/blob/master/setup.cfg#L86-L10009:52
d0ugalFunky09:52
pgaxattethe dot formatter could be interesting for the workflows :)09:55
*** zigo_ is now known as zigo09:56
pgaxatted0ugal: in workflows, it uses the cliff modules directly instead of the osc_lib09:57
pgaxatteI'm gonna try to make all this more uniform and see what happens :)09:57
pgaxattethe same problem appears with "action definition create" since the create command uses MistralLister too09:59
d0ugalpgaxatte: cool, let me know if I can help at all :)10:04
*** jaosorior has quit IRC10:14
rakhmerovd0ugal, apetrich: just reminding about http://logs.openstack.org/12/570712/2/check/tripleo-ci-centos-7-scenario003-multinode-oooq-container/0cde120/job-output.txt.gz#_2018-05-30_10_10_33_10914610:15
rakhmerovweird error10:15
rakhmerovand the patch itself doesn't seem to be related to it10:15
rakhmerovwould appreciate if you give some clues..10:15
*** thrash|g0ne is now known as thrash10:15
d0ugalThe real error seems further up10:16
d0ugalhttp://logs.openstack.org/12/570712/2/check/tripleo-ci-centos-7-scenario003-multinode-oooq-container/0cde120/job-output.txt.gz#_2018-05-30_10_03_25_14167810:16
d0ugalLooking for the cause10:17
d0ugalbut I suspect it isn't related.10:18
d0ugalrakhmerov: I would just recheck it I think10:20
rakhmerovdid, twice10:20
d0ugalapetrich: spotted this in the logs - looks like we have a bad action in tripleo-common? http://logs.openstack.org/12/570712/2/check/tripleo-ci-centos-7-scenario003-multinode-oooq-container/0cde120/logs/undercloud/var/log/mistral/mistral-db-manage.log.txt.gz#_2018-05-30_08_39_45_04810:20
*** AlexeyAbashkin has quit IRC10:30
*** AlexeyAbashkin has joined #openstack-mistral10:31
*** jaosorior has joined #openstack-mistral10:31
*** AlexeyAbashkin has quit IRC10:36
rakhmerovd0ugal: so will you investigate that?10:38
d0ugalrakhmerov: I can try10:39
rakhmerovd0ugal: please10:40
d0ugalrakhmerov: http://logs.openstack.org/12/570712/2/check/tripleo-ci-centos-7-scenario003-multinode-oooq-container/0cde120/logs/undercloud/var/log/mistral/engine.log.txt.gz#_2018-05-30_09_03_13_09910:47
d0ugalThe error may be legit10:47
d0ugalrakhmerov: fwiw that is here: https://github.com/openstack/tripleo-common/blob/master/workbooks/messaging.yaml#L12610:50
openstackgerritMerged openstack/mistral-lib master: Switch to using stestr  https://review.openstack.org/56987811:10
*** AlexeyAbashkin has joined #openstack-mistral11:21
*** toure|gone is now known as toure12:26
*** hardikjasani has quit IRC12:28
*** AlexeyAbashkin has quit IRC14:02
*** AlexeyAbashkin has joined #openstack-mistral14:04
*** EmilienM_PTO is now known as EmilienM14:08
openstackgerritKupai József proposed openstack/mistral master: A mechanism to close stuck running action executions  https://review.openstack.org/52708514:31
openstackgerritMerged openstack/mistral master: Add log message to log the stack trace in case failed to send an HTTP request  https://review.openstack.org/57086315:24
rakhmerovd0ugal: ok, what do we do with it?15:28
rakhmerovyou mean it's a problem caused by some problem in Mistral?15:29
rakhmerovtrying to understand :)15:29
d0ugalrakhmerov: It seems like it might be related to your patch?15:29
d0ugalbut I am not sure15:29
openstackgerritMerged openstack/mistral-extra master: Switch to using stestr  https://review.openstack.org/56987915:29
d0ugalThe traceback makes it look related15:29
d0ugaland it has been working fine in other patches...15:30
rakhmerovd0ugal: haah... let me see.15:30
d0ugalthrash: I think I might have something15:32
rakhmerovd0ugal: yes, damn it..15:32
rakhmerovit's caused by the patch, I now see that15:33
rakhmerovd0ugal: the problem is that it was definitely a bug that I fixed15:33
thrashd0ugal: damn, that was quick15:34
rakhmerovok, I'll investigate that15:34
d0ugalthrash: still verifying.15:34
d0ugalthrash: https://github.com/openstack/python-mistralclient/blob/master/mistralclient/utils.py#L80-L8115:34
d0ugalthrash: that is highly suspicious IMO. Any errors? nevermind, just use the path as the contents!15:35
thrashd0ugal: Yeah... So that's masking the actual error!15:35
d0ugalthrash: I believe so15:35
d0ugalthrash: but all I've done so far is re-raise that exception15:36
d0ugalrakhmerov: Maybe there is a bug with the yaml parse YAQL function we added to mistral?15:36
thrashthere's still the underlying problem of why pkg.resource_filename is failing15:36
d0ugalthrash: yup, I'm not done yet :)15:36
rakhmerovd0ugal: yes, maybe. Ok, I'll check that15:37
rakhmerovput it into WIP for now15:37
rakhmerovd0ugal: thanks a lot15:37
d0ugalrakhmerov: You seen the link to the tripleo workflow? It should be easy to replicate that in a test to do something similar15:37
rakhmerovyep15:37
rakhmerovwill do15:37
openstackgerritBrad P. Crochet proposed openstack/mistral master: Switch to using stestr  https://review.openstack.org/56987615:41
d0ugalthrash: incoming16:02
openstackgerritDougal Matthews proposed openstack/python-mistralclient master: Make sure path is absolute  https://review.openstack.org/57124116:02
d0ugal... slower than expected16:02
d0ugalthrash: ^16:02
d0ugalThat fixes one of the tests for me.16:02
d0ugalpy27 was returning a relative path, which failed later16:03
d0ugalUsing a file:// scheme doesn't work with relative paths iiuc16:03
openstackgerritDougal Matthews proposed openstack/python-mistralclient master: Make sure path is absolute  https://review.openstack.org/57124116:13
d0ugalthrash: should be all of them now ^16:13
d0ugalshould I just squash that into your patch?16:13
d0ugalI guess so...16:13
openstackgerritDougal Matthews proposed openstack/python-mistralclient master: Switch to using stestr  https://review.openstack.org/56987516:14
d0ugalthrash: so I assume with stestr eggs or zipped packages are either allowed (or not allowed) now. so then the path is different, which caused the change16:15
d0ugalbut really I am not all that sure16:16
d0ugalAnyway, that'll do for now16:17
* d0ugal wanders off for the day16:17
*** AlexeyAbashkin has quit IRC17:29
*** AlexeyAbashkin has joined #openstack-mistral17:31
*** jpich has quit IRC17:31
thrashd0ugal: odd.17:33
*** AlexeyAbashkin has quit IRC17:36
*** AlexeyAbashkin has joined #openstack-mistral17:57
*** Alexey_Abashkin has joined #openstack-mistral18:00
*** AlexeyAbashkin has quit IRC18:02
*** Alexey_Abashkin is now known as AlexeyAbashkin18:02
*** rbrady is now known as rbrady-afk18:10
*** AlexeyAbashkin has quit IRC18:40
*** harlowja has joined #openstack-mistral21:52
*** thrash is now known as thrash|g0ne23:06
*** toure is now known as toure|gone23:41

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