Thursday, 2016-12-01

*** catintheroof has joined #openstack-mistral01:05
*** catintheroof has quit IRC01:08
*** donnalezyty_ has quit IRC01:21
*** jamielennox is now known as jamielennox|away01:34
*** catintheroof has joined #openstack-mistral02:24
*** bobh has joined #openstack-mistral02:44
*** jamielennox|away is now known as jamielennox02:54
*** jamielennox is now known as jamielennox|away03:17
*** jamielennox|away is now known as jamielennox03:26
*** catintheroof has quit IRC03:28
*** catintheroof has joined #openstack-mistral03:28
*** catintheroof has quit IRC03:28
*** catintheroof has joined #openstack-mistral03:30
*** catintheroof has quit IRC03:30
*** catintheroof has joined #openstack-mistral03:31
*** catintheroof has quit IRC03:31
*** jamielennox is now known as jamielennox|away03:47
openstackgerritMerged openstack/mistral: Updated from global requirements  https://review.openstack.org/40500804:11
*** Ephur has quit IRC04:13
*** Ephur has joined #openstack-mistral04:13
*** Ephur has quit IRC04:14
*** Ephur has joined #openstack-mistral04:14
*** Ephur has quit IRC04:14
*** Ephur has joined #openstack-mistral04:15
rakhmerovd0ugal, hprekh: hi, please review https://review.openstack.org/#/c/402392/04:15
rakhmerovhparekh: ^04:15
*** Ephur has quit IRC04:15
*** bobh has quit IRC04:16
*** Ephur has joined #openstack-mistral04:16
*** Ephur has quit IRC04:16
*** Ephur has joined #openstack-mistral04:17
*** Ephur has quit IRC04:17
*** Ephur has joined #openstack-mistral04:18
*** Ephur has quit IRC04:18
*** Ephur has joined #openstack-mistral04:19
*** Ephur has quit IRC04:19
*** Ephur has joined #openstack-mistral04:20
*** Ephur has quit IRC04:20
*** Ephur has joined #openstack-mistral04:20
*** Ephur has quit IRC04:21
*** Ephur has joined #openstack-mistral04:21
*** Ephur has quit IRC04:22
*** Ephur has joined #openstack-mistral04:22
*** Ephur has quit IRC04:22
*** Ephur has joined #openstack-mistral04:23
*** Ephur has quit IRC04:23
*** Ephur has joined #openstack-mistral04:24
*** Ephur has quit IRC04:24
*** Ephur has joined #openstack-mistral04:25
*** Ephur has quit IRC04:25
*** Ephur has joined #openstack-mistral04:26
*** Ephur has quit IRC04:26
*** Ephur has joined #openstack-mistral04:27
*** Ephur has joined #openstack-mistral04:27
*** Ephur has quit IRC04:28
*** Ephur has joined #openstack-mistral04:28
*** Ephur has quit IRC04:29
*** Ephur has joined #openstack-mistral04:29
*** Ephur has quit IRC04:29
*** Ephur has joined #openstack-mistral04:30
*** Ephur has quit IRC04:30
*** Ephur has joined #openstack-mistral04:31
*** Ephur has quit IRC04:31
*** Ephur has joined #openstack-mistral04:32
*** Ephur has joined #openstack-mistral04:33
*** Ephur has quit IRC04:33
*** jamielennox|away is now known as jamielennox04:33
*** Ephur has joined #openstack-mistral04:34
*** Ephur has quit IRC04:34
*** Ephur has joined #openstack-mistral04:34
*** Ephur has quit IRC04:35
*** Ephur has joined #openstack-mistral04:35
*** Ephur has quit IRC04:36
*** Ephur has joined #openstack-mistral04:36
*** Ephur has quit IRC04:37
*** Ephur has joined #openstack-mistral04:37
*** Ephur has quit IRC04:37
*** Ephur has joined #openstack-mistral04:38
*** Ephur has quit IRC04:38
*** Ephur has joined #openstack-mistral04:39
*** Ephur has quit IRC04:39
*** Ephur has joined #openstack-mistral04:40
*** Ephur has quit IRC04:40
*** sharatss has quit IRC04:40
*** Ephur has joined #openstack-mistral04:41
*** Ephur has quit IRC04:41
*** Ephur has joined #openstack-mistral04:42
*** Ephur has quit IRC04:42
*** Ephur has joined #openstack-mistral04:42
*** Ephur has quit IRC04:43
*** Ephur has joined #openstack-mistral04:43
*** Ephur has quit IRC04:44
*** Ephur has joined #openstack-mistral04:44
*** Ephur has joined #openstack-mistral04:45
*** Ephur has quit IRC04:45
*** Ephur has joined #openstack-mistral04:46
*** Ephur has quit IRC04:46
*** Ephur has joined #openstack-mistral04:47
*** Ephur has quit IRC04:47
*** Ephur has joined #openstack-mistral04:48
*** Ephur has quit IRC04:48
*** Ephur has joined #openstack-mistral04:49
*** Ephur has quit IRC04:49
*** Ephur has joined #openstack-mistral04:49
*** Ephur has quit IRC04:50
*** Ephur has joined #openstack-mistral04:51
*** Ephur has quit IRC04:51
*** Ephur has joined #openstack-mistral04:51
*** Ephur has quit IRC04:52
*** Ephur has joined #openstack-mistral04:52
*** Ephur has quit IRC04:52
*** Ephur has joined #openstack-mistral04:53
*** Ephur has joined #openstack-mistral04:54
*** Ephur has quit IRC04:54
*** Ephur has joined #openstack-mistral04:55
*** Ephur has quit IRC04:55
*** Ephur has joined #openstack-mistral04:56
*** Ephur has quit IRC04:56
*** Ephur has joined #openstack-mistral04:57
*** Ephur has quit IRC04:57
*** Ephur has joined #openstack-mistral04:58
*** Ephur has quit IRC04:58
*** Ephur has joined #openstack-mistral04:58
*** Ephur has quit IRC04:59
*** Ephur has joined #openstack-mistral04:59
*** Ephur has quit IRC05:00
*** Ephur has joined #openstack-mistral05:00
*** Ephur has quit IRC05:00
*** Ephur has joined #openstack-mistral05:01
*** Ephur has quit IRC05:01
*** Ephur has joined #openstack-mistral05:02
*** Ephur has quit IRC05:02
*** Ephur has joined #openstack-mistral05:03
*** Ephur has quit IRC05:03
*** Ephur has joined #openstack-mistral05:04
*** Ephur has quit IRC05:04
*** Ephur has joined #openstack-mistral05:04
*** Ephur has quit IRC05:05
*** Ephur has joined #openstack-mistral05:06
*** Ephur has joined #openstack-mistral05:06
*** Ephur has quit IRC05:07
*** Ephur has joined #openstack-mistral05:07
*** Ephur has joined #openstack-mistral05:08
*** Ephur has quit IRC05:08
*** Ephur has joined #openstack-mistral05:09
*** Ephur has quit IRC05:09
*** Ephur has joined #openstack-mistral05:10
*** Ephur has quit IRC05:10
*** Ephur has joined #openstack-mistral05:11
*** Ephur has quit IRC05:11
*** Ephur has joined #openstack-mistral05:12
*** Ephur has quit IRC05:12
*** Ephur has joined #openstack-mistral05:13
*** Ephur has quit IRC05:13
*** Ephur has joined #openstack-mistral05:14
*** Ephur has joined #openstack-mistral05:14
*** Ephur has quit IRC05:15
*** Ephur has joined #openstack-mistral05:15
*** Ephur has quit IRC05:15
*** Ephur has joined #openstack-mistral05:16
*** Ephur has quit IRC05:16
*** Ephur has joined #openstack-mistral05:17
*** Ephur has quit IRC05:17
*** Ephur has joined #openstack-mistral05:18
*** Ephur has joined #openstack-mistral05:19
*** Ephur has quit IRC05:19
*** Ephur has joined #openstack-mistral05:20
*** Ephur has quit IRC05:20
*** Ephur has joined #openstack-mistral05:21
*** Ephur has quit IRC05:21
*** Ephur has joined #openstack-mistral05:21
*** Ephur has quit IRC05:22
*** Ephur has joined #openstack-mistral05:22
*** Ephur has quit IRC05:22
*** Ephur has joined #openstack-mistral05:23
*** Ephur has quit IRC05:23
*** Ephur has joined #openstack-mistral05:24
*** Ephur has quit IRC05:24
*** Ephur has joined #openstack-mistral05:25
*** Ephur has quit IRC05:25
*** Ephur has joined #openstack-mistral05:26
*** Ephur has quit IRC05:26
*** Ephur has joined #openstack-mistral05:27
*** Ephur has quit IRC05:27
*** Ephur has joined #openstack-mistral05:28
*** Ephur has quit IRC05:28
*** Ephur has joined #openstack-mistral05:28
*** Ephur has quit IRC05:29
*** Ephur has joined #openstack-mistral05:29
*** Ephur has quit IRC05:30
*** Ephur has joined #openstack-mistral05:30
*** Ephur has quit IRC05:30
*** Ephur has joined #openstack-mistral05:31
*** Ephur has quit IRC05:31
*** Ephur has joined #openstack-mistral05:32
*** Ephur has quit IRC05:32
openstackgerritMerged openstack/mistral: Bump Ironic API version to 1.22 when creating the Ironic client  https://review.openstack.org/40420305:33
*** Ephur has joined #openstack-mistral05:33
*** Ephur has quit IRC05:33
*** Ephur has joined #openstack-mistral05:34
*** Ephur has quit IRC05:34
*** Ephur has joined #openstack-mistral05:35
*** Ephur has quit IRC05:35
*** Ephur has joined #openstack-mistral05:35
*** Ephur has quit IRC05:36
*** Ephur has joined #openstack-mistral05:36
*** Ephur has quit IRC05:37
*** Ephur has joined #openstack-mistral05:37
*** Ephur has quit IRC05:38
*** Ephur has joined #openstack-mistral05:38
*** Ephur has quit IRC05:38
*** Ephur has joined #openstack-mistral05:39
*** Ephur has quit IRC05:39
*** Ephur has joined #openstack-mistral05:40
*** Ephur has quit IRC05:40
*** Ephur has joined #openstack-mistral05:41
*** Ephur has quit IRC05:41
*** Ephur has joined #openstack-mistral05:42
*** Ephur has quit IRC05:42
*** Ephur has joined #openstack-mistral05:43
*** Ephur has quit IRC05:43
*** Ephur has joined #openstack-mistral05:44
*** Ephur has quit IRC05:44
*** Ephur has joined #openstack-mistral05:45
*** Ephur has quit IRC05:45
*** Ephur has joined #openstack-mistral05:45
*** Ephur has quit IRC05:45
*** Ephur has joined #openstack-mistral05:46
*** Ephur has quit IRC05:46
*** Ephur has joined #openstack-mistral05:47
*** Ephur has quit IRC05:47
*** Ephur has joined #openstack-mistral05:48
*** Ephur has quit IRC05:48
*** Ephur has joined #openstack-mistral05:49
*** Ephur has quit IRC05:49
*** Ephur has joined #openstack-mistral05:50
*** Ephur has quit IRC05:50
*** Ephur has joined #openstack-mistral05:51
*** Ephur has quit IRC05:51
*** Ephur has joined #openstack-mistral05:51
*** Ephur has quit IRC05:52
*** Ephur has joined #openstack-mistral05:52
*** Ephur has joined #openstack-mistral05:53
*** Ephur has quit IRC05:53
*** Ephur has joined #openstack-mistral05:54
*** Ephur has quit IRC05:54
*** Ephur has joined #openstack-mistral05:55
*** Ephur has quit IRC05:55
*** janki has joined #openstack-mistral05:56
*** Ephur has joined #openstack-mistral05:56
*** Ephur has quit IRC05:56
*** Ephur has joined #openstack-mistral05:57
*** Ephur has quit IRC05:57
*** Ephur has joined #openstack-mistral05:58
*** Ephur has quit IRC05:58
*** Ephur has joined #openstack-mistral05:58
*** Ephur has quit IRC05:59
*** Ephur has joined #openstack-mistral05:59
*** Ephur has quit IRC06:00
*** Ephur has joined #openstack-mistral06:00
*** Ephur has quit IRC06:00
*** Ephur has joined #openstack-mistral06:01
*** Ephur has joined #openstack-mistral06:02
*** Ephur has quit IRC06:02
*** Ephur has joined #openstack-mistral06:03
*** Ephur has quit IRC06:03
*** Ephur has joined #openstack-mistral06:04
*** Ephur has quit IRC06:04
*** Ephur has joined #openstack-mistral06:05
*** Ephur has quit IRC06:05
*** Ephur has joined #openstack-mistral06:06
*** Ephur has quit IRC06:06
*** Ephur has joined #openstack-mistral06:06
*** Ephur has quit IRC06:07
*** Ephur has joined #openstack-mistral06:07
*** Ephur has quit IRC06:08
*** Ephur has joined #openstack-mistral06:08
*** Ephur has quit IRC06:08
*** Ephur has joined #openstack-mistral06:09
*** Ephur has quit IRC06:09
*** Ephur has joined #openstack-mistral06:10
*** Ephur has quit IRC06:10
*** Ephur has joined #openstack-mistral06:11
*** Ephur has quit IRC06:11
*** Ephur has joined #openstack-mistral06:12
*** Ephur has quit IRC06:12
*** Ephur has joined #openstack-mistral06:12
*** Ephur has quit IRC06:13
*** Ephur has joined #openstack-mistral06:13
*** Ephur has quit IRC06:14
*** Ephur has joined #openstack-mistral06:14
*** Ephur has quit IRC06:15
*** jaosorior has joined #openstack-mistral06:19
*** sharatss has joined #openstack-mistral06:28
*** jaosorior has quit IRC07:09
*** jaosorior has joined #openstack-mistral07:10
d0ugalyay08:08
* d0ugal figured out the regex bug08:08
rakhmerovd0ugal: really?08:12
rakhmerovcan you share? :)08:12
d0ugalrakhmerov: well, I think I did. Just preparing a test08:12
rakhmerovok )08:12
d0ugalI didn't understand the regex when I tried to understand it last time08:12
rakhmerovlooking forward to see a patch )08:12
rakhmerovI didn't too08:13
d0ugalI think the regex is attempting to do != "version"08:13
d0ugalbut it is wrong08:13
rakhmerovhm.. ok08:13
rakhmerovsharatss: can you also review https://review.openstack.org/#/c/402392/ ?08:14
rakhmerovwe just want more reviews because it's a big change08:14
*** dtantsur|afk is now known as dtantsur08:14
rakhmerovI'm also waiting for Hardik but he is not available08:14
d0ugalWe can probably merge it if you want08:15
d0ugaland just react quickly to problems ;)08:15
d0ugalrakhmerov: I think you said that version is copied into each workflow/action in a workbook. Do you know where that happens?08:26
*** akuznetsova has quit IRC08:28
rakhmerovd0ugal: let's do it pls08:29
*** shardy has joined #openstack-mistral08:29
rakhmerovI'm ready to react quickly if something is broken08:29
d0ugalDone08:32
d0ugalSo, in the schema. This is saying "the version property should match the enum" https://github.com/openstack/mistral/blob/master/mistral/workbook/v2/workbook.py#L4408:32
rakhmerovok, thanks08:32
d0ugaland then this is saying, "everything else should match the workflow schema" https://github.com/openstack/mistral/blob/master/mistral/workbook/v2/workbook.py#L4508:32
rakhmerovyes, everything except schema08:33
rakhmerovsorry08:33
rakhmerovexcept version08:33
d0ugal?! in the regex is like a not08:33
rakhmerovhonestly, I don't quite understand the question mark in regexp08:33
d0ugalhowever, the regular expression is wrong as it doesn't match works starting with version08:34
d0ugalrakhmerov: ?! - that is like "not", almost08:34
rakhmerovok08:34
d0ugalso the regex means it should match anything, except words starting with "version"08:34
rakhmerovaaah08:35
rakhmerovI see08:35
d0ugalI think this should be correct. ^(?!(?:version)$)\w+$08:35
d0ugalAfter reading some docs and similar questions online08:35
rakhmerovthen we need to somehow make it ignore 'version' if it's not in the first position08:35
rakhmerovkind of08:35
rakhmerovdid you test it in some regexp tester?08:36
d0ugalrakhmerov: I have been usning: http://pythex.org/08:36
rakhmerovyes, me too :)08:36
d0ugalbut when I put the new regex in the code I get new errors08:38
d0ugalso I guess I am still missing something08:38
*** akuznetsova has joined #openstack-mistral08:38
rakhmerovd0ugal: https://postimg.org/image/p8pjpfymx/08:41
rakhmerovit matches only "direct"08:41
rakhmerovthat follows after "wf_version: type:"08:42
rakhmerovseems like something is still wrong08:42
d0ugalhrm, interesting.08:42
d0ugalI guess I'll keep trying out things.08:42
rakhmerovok, sure08:43
d0ugalI hope that it isn't passed the bull document...08:43
rakhmerovd0ugal: are you sure you understand the meaning of '?!' correctly?08:46
rakhmerovI found this: http://www.regular-expressions.info/lookaround.html08:46
*** jpich has joined #openstack-mistral08:46
rakhmerovit's a lookahead thing08:46
d0ugalhttps://docs.python.org/2/library/re.html#regular-expression-syntax08:47
d0ugalrakhmerov: I decided to opt for the Python docs, because I wasn't sure how similar it would be everywhere08:47
rakhmerovnegative lookahead, yes08:47
rakhmerovwell, as far as I can see this construct is the same08:48
rakhmerovits semantics08:48
d0ugalsure08:48
d0ugalbut the Python docs example seems to match my understanding08:48
d0ugal"For example, Isaac (?!Asimov) will match 'Isaac ' only if it’s not followed by 'Asimov'."08:48
* rakhmerov btw, renat loves Asimov very much08:49
d0ugal... but I am not sure I understand it. I only found out about it today :-D08:49
rakhmerovhm...08:49
rakhmerovthis is hairy08:49
d0ugalyeah, doing this with regex is horrible08:50
d0ugalI am also looking in jsonschema for other options08:50
rakhmerovsecond, let's try to understand it together..08:50
rakhmerovagain, our regexp is08:50
rakhmerov^(?!version)\w+$08:50
rakhmerov?! means matches if it's not followed by 'version'08:51
rakhmerovin combination with ^ how do we treat it?08:52
rakhmerov^ = except08:52
rakhmerovok08:52
d0ugal^ means start of the string08:52
rakhmerovyes, 'except' is for a case like this [^a-b]08:53
d0ugalah08:54
rakhmerovwhich means 'anything except a-b'08:54
d0ugalI didn't know that one08:54
rakhmerovyep08:54
rakhmerovbut outside of [] it's a start of the string, right08:54
rakhmerovnow, what does $ mean?08:54
d0ugalend of the string08:55
rakhmerovyes, right08:55
rakhmerovaah, then I'm confused about it again08:55
rakhmerov^(?!version)\w+$08:55
rakhmerovmay be it should be08:55
rakhmerovno, I don't understand..08:56
d0ugal:)08:56
rakhmerovwhat confuses me is that (?!version) goes before \w+08:56
d0ugalyeah, good point.08:57
rakhmerovbecause in the example with Asimov it's: Isaac (?!Asimov)08:57
rakhmerovwhich means "matches Isaac only if it's folowed by Asimov"08:57
rakhmerovso what we are matching should go before what's in side (?!..)08:58
rakhmerovright?08:58
d0ugalhaha, maybe?08:58
d0ugalI am confused too08:58
rakhmerovso08:59
rakhmerovwhat we need is: match everything till the end of the string that goes after 'version'08:59
rakhmerovright?08:59
rakhmerovwhich is in the beginning08:59
rakhmerovI mean 'version'08:59
d0ugalwhat we need is to match everything that isn't exactly version09:00
rakhmerovwhy doesn't  ^version\w+$  work for us?09:00
d0ugalrakhmerov: because that would match "versiontest"09:00
d0ugalwait09:00
d0ugalumm09:00
rakhmerovyes, sorry09:00
d0ugallet me think09:00
rakhmerovthinking too...09:01
d0ugalwe also need to match strings that don't start with version09:01
rakhmerovwhy is that?09:01
d0ugalbecause workflows don't need need to have version at the start of their name :P09:02
d0ugalrakhmerov: this regex is matching every valid workflow name09:02
d0ugalthe only invalid workflow name is "version"09:02
rakhmerovyes, but why can't we use "version1_wf"?09:02
rakhmerovif version is not in the beginning of the doc that seems to be fine09:03
d0ugalsorry, I'm lost09:03
d0ugalthat name should be fine.09:03
rakhmerov^[\w\W]+$ - that matches everything including 'version'09:03
rakhmerov\W is important, w/o it it doesn't work in the tester09:04
rakhmerovbecause it should be either a char or a whitespace char09:04
rakhmerovnow we need to exclude only 'version'09:04
d0ugalI don't think we allow whitespace at the moment btw09:05
rakhmerovwhy?09:05
rakhmerovwe seem to09:05
d0ugalbecause the current regex doesn't allow it09:05
rakhmerovyes, and this is confusing too...09:05
rakhmerovooh, shoot..09:05
d0ugalyou can use it in a workflow probably, but not a workbook09:05
rakhmerovyeah, I mean may be it works slightly differently in real Python09:06
rakhmerovbut, anyway, we need to allow it, right09:06
d0ugaldo we? I think that should be a different discussion :)09:07
d0ugalWe shouldn't change what is allowed when fixing a specific bug imo09:07
rakhmerovwell, any examples we usually have contain whitespaces09:07
rakhmerov\r, \n09:07
d0ugalthis regex doesn't match the full document09:07
d0ugalit just matches the property09:07
rakhmerovaaah!09:08
rakhmerovright!09:08
rakhmerovok09:08
rakhmerovthen I've been thinking about a different regexp apparently09:09
rakhmerovok, sorry09:09
d0ugalnp09:10
d0ugalA regex to validate just the workflow name against the full document would be very hard :)09:10
rakhmerovthen we need a regexp: any char sequence (number, digit etc) except if it's exactly 'version'09:10
d0ugalYeah09:10
rakhmerovyeah, true09:10
sharatssrakhmerov, reviewd09:10
d0ugalbasically, if this is Python we would be doing; if key == "version": enum else: workflow_schema09:11
rakhmerovsharatss: ok09:11
rakhmerovd0ugal: the issue is that the whole document should be validated with json schema09:11
d0ugalrakhmerov: sure, and I assume it is?09:12
rakhmerovyes09:12
rakhmerovshould be, in base class09:12
rakhmerovI mean that's why we can't really use regular Python constructs09:12
rakhmerovlike 'if'09:12
*** sharatss has quit IRC09:13
rakhmerovyeah, https://github.com/openstack/mistral/blob/master/mistral/workbook/base.py#L18009:13
*** sharatss has joined #openstack-mistral09:13
rakhmerovso we need a regexp09:13
d0ugalyeah, I am just making sure the goal is clear09:14
d0ugalrakhmerov: but I am not sure we do need regex. I am looking at other jsonschema methods - it has quite a lot of things.09:15
d0ugalactually, I might have something that works09:15
rakhmerovok09:15
d0ugaloh dear09:15
d0ugalI think I was looking at this totally wrong.09:15
d0ugalLOL09:16
d0ugalThe problem isn't just the regex09:16
d0ugalit is the "version" regex09:16
d0ugalthe line above is also a regec09:16
d0ugalregex09:16
d0ugalit needs to be ^version&09:16
d0ugalit needs to be ^version$09:16
rakhmerov:))))09:17
d0ugalbecause the regex "version" matches version anywhere.09:17
* d0ugal sighs09:18
d0ugalpatch incoming.09:18
rakhmerovbut wait09:18
rakhmerovI don't understand again09:18
rakhmerov^version$ matches 'version'09:18
rakhmerovno?09:18
d0ugalrakhmerov: yeah, but we want that to match version09:19
d0ugalrakhmerov: because that line sets version to be the enum09:19
d0ugalwe want that line to *only* match version09:19
rakhmerovso what should be the full regexp?09:19
d0ugaland the other one need to match everything *except* version09:19
rakhmerovfor properties09:19
d0ugalrakhmerov: it might be easier if I show you in a sec...09:19
rakhmerovyes, ok09:19
rakhmerovd0ugal: yes, bug "^version$" matches also only 'version'09:22
rakhmerovthat's the thing :)09:22
d0ugalthat is what we want!09:22
d0ugallol09:23
rakhmerovbut we need *except*09:23
rakhmerovno?09:23
d0ugalnot for that line09:23
rakhmerovfor which one?09:23
d0ugalhold on, I explained this poorly.09:23
rakhmerovwe have two regexpt09:23
rakhmerov1. version09:23
d0ugalI am trying to write a detailed comment and commit message... but you keep asking questions :P09:23
rakhmerov2. ^(?!version)\w+$09:23
d0ugalrakhmerov: this line is wrong. https://github.com/openstack/mistral/blob/master/mistral/workbook/v2/workbook.py#L4409:23
rakhmerovd0ugal: ooh, sorry09:23
rakhmerovI'll let you finish your comment :)09:24
d0ugalrakhmerov: that line is a regular expression that matches version in anything09:24
rakhmerovI'm impatient09:24
rakhmerovooh, f..k!09:24
rakhmerovI got it09:24
rakhmerovyes09:24
d0ugalbut there is also a bug in the second regular expression09:25
rakhmerovthis regexp is invalid09:25
rakhmerovyes09:25
rakhmerovit's clear now09:25
d0ugalbecause the second one matches "workflow_version"09:25
d0ugal^ that is wrong09:25
d0ugaljust wait, I am writing it up09:25
d0ugalRushing answers here and confusing things further lol09:25
rakhmerovyes :)09:25
rakhmerovexcuse me09:25
rakhmerovI'll go to a meeting )09:25
d0ugallol09:26
*** dtantsur is now known as dtantsur|bbl09:27
*** sharatss has quit IRC09:43
*** sharatss has joined #openstack-mistral09:43
*** sharatss has quit IRC09:44
*** sharatss has joined #openstack-mistral09:44
*** sharatss has quit IRC09:47
*** sharatss has joined #openstack-mistral09:48
*** _mgershen has quit IRC09:50
*** mgershen has joined #openstack-mistral09:52
*** openstack has joined #openstack-mistral10:04
*** sharatss has joined #openstack-mistral10:04
openstackgerritMichal Gershenzon proposed openstack/python-mistralclient: Filter workflow executions by creating task execution id  https://review.openstack.org/40384410:06
openstackgerritDougal Matthews proposed openstack/mistral: Allow "version" to be within workflow names in workbooks  https://review.openstack.org/40525310:12
*** Ephur has joined #openstack-mistral10:16
*** Ephur has quit IRC10:21
openstackgerritDougal Matthews proposed openstack/mistral: Allow "version" to be within workflow names in workbooks  https://review.openstack.org/40525310:26
*** thrash has quit IRC10:39
*** toure has quit IRC10:39
openstackgerritDougal Matthews proposed openstack/mistral: Allow "version" to be within workflow names in workbooks  https://review.openstack.org/40525310:39
d0ugalrakhmerov: ^10:40
rakhmerovyep10:40
rakhmerovhere10:40
rakhmerovI saw you sent a patch10:40
d0ugalcool10:40
d0ugalI made a few extra improvements as I thought of them10:40
*** thrash has joined #openstack-mistral10:43
*** toure has joined #openstack-mistral10:43
ddejaHi rakhmerov, did you see this? https://bugs.launchpad.net/mistral/+bug/164488110:52
openstackLaunchpad bug 1644881 in Mistral "gate-mistral-devstack-dsvm-kombu-nv job failing" [Medium,Confirmed] - Assigned to Sharat Sharma (sharat-sharma)10:52
ddeja(with my additional comments)10:53
d0ugalddeja: good job. I had spotted that error and had it on my list of things to look into10:55
ddejathe most werid thing is10:55
ddejathat nova/neutron (I checked those 2) don't have this problem10:55
ddejaI'll need to go through their code and see how they avoid this problem10:56
rakhmerovddeja: I saw the bug but not your additional comments10:57
rakhmerovgive me a few10:57
*** janki has quit IRC10:57
ddejawell, there's only one short10:57
ddejaI don't understand why it is only happening on the kombu gate, and not on the regular one10:57
ddejabut I was able to reproduce it on my devstack env using oslo.messaging10:58
rakhmerovok10:58
rakhmerovmy assumption was that something is wrong with how the test itself is designed10:59
rakhmerovsome bad time assumptions etc.10:59
ddejano, the test is totally ok10:59
rakhmerovok10:59
ddejaBUT from what i found in nova code10:59
rakhmerovooh, wait10:59
ddejathey have some hacks so they don't hit this problem11:00
rakhmerovthe issue is this? 15:09:46.598605 and 15:09:4711:00
rakhmerovcreated_at changes somehow?11:00
ddejaso hm, when I have it all figured out, I'll send an email to list - it seems like it's a bug in oslo11:00
ddejarakhmerov: yes11:00
ddejamysql is rounding the time to seconds11:00
rakhmerovor it gets coerced somewhere11:00
rakhmerovor represented in a different format11:00
rakhmerovrouding, haha..11:01
rakhmerovok, I see11:01
ddejaor oslo is doing it somewhere in it's code, I'm not sure11:01
rakhmerovddeja: it seems like we saw this long long ago but nobody ever figured this out11:01
*** janki has joined #openstack-mistral11:01
ddejabasically, created_at is a default field added by oslo.db11:01
rakhmerovyes11:01
rakhmerovright11:01
ddejaand it's default value is lambda: datetime.utcnow()11:02
ddejawhich returns time with microseconds11:02
ddejabut in the db it is stored with microseconds rounded11:02
ddejaup to 1 second11:02
rakhmerovyes11:03
rakhmerovthis gate runs with mysql, right?11:03
ddejayes11:04
openstackgerritDougal Matthews proposed openstack/mistral: Allow "version" to be within workflow names in workbooks  https://review.openstack.org/40525311:05
rakhmerovddeja: maybe it's a known problem, we really need to write to ML11:05
ddejarakhmerov: OK. I'll do it, as soon as I got more knowledge about it11:11
*** jaosorior_lunch is now known as jaosorior11:25
openstackgerritJizhaoxuan proposed openstack/mistral: Change version '1.0' to '2.0'  https://review.openstack.org/40529211:50
*** dprince has joined #openstack-mistral11:56
*** dprince has quit IRC12:11
*** aspiers has quit IRC12:23
*** catintheroof has joined #openstack-mistral12:25
*** aspiers has joined #openstack-mistral12:35
*** dprince has joined #openstack-mistral12:41
openstackgerritGal Margalit proposed openstack/mistral-dashboard: mistral-dashboard: added action executions screens  https://review.openstack.org/40118812:41
*** catintheroof has quit IRC12:48
*** sharatss has quit IRC12:55
*** sharatss has joined #openstack-mistral12:56
*** bobh has joined #openstack-mistral12:57
*** bobh has quit IRC12:57
*** bobh has joined #openstack-mistral12:57
*** jamielennox is now known as jamielennox|away13:00
*** dtantsur|bbl is now known as dtantsur13:04
*** thrash is now known as thrash|appt13:08
*** catintheroof has joined #openstack-mistral13:13
*** catinthe_ has joined #openstack-mistral13:18
*** catintheroof has quit IRC13:19
*** jrist has quit IRC13:25
*** bobh has quit IRC13:27
openstackgerritGal Margalit proposed openstack/mistral-dashboard: mistral-dashboard: added action executions screens  https://review.openstack.org/40118813:31
*** Ephur has joined #openstack-mistral14:18
openstackgerritDougal Matthews proposed openstack/mistral: Allow "version" to be within workflow names in workbooks  https://review.openstack.org/40525314:18
*** jrist has joined #openstack-mistral14:21
*** Ephur has quit IRC14:22
*** thrash|appt is now known as thrash14:25
*** janki has quit IRC14:29
*** bobh has joined #openstack-mistral14:39
*** jaosorior has quit IRC15:09
*** jaosorior has joined #openstack-mistral15:09
*** hrybacki is now known as hrybacki|IAmGE15:49
*** hrybacki|IAmGE is now known as hrybacki|lAmG315:49
*** hrybacki|lAmG3 is now known as hrybacki|l4mG315:51
openstackgerritGal Margalit proposed openstack/mistral-dashboard: mistral-dashboard: added action executions screens  https://review.openstack.org/40118815:56
*** jaosorior has quit IRC16:30
openstackgerritDougal Matthews proposed openstack/mistral: Allow "version" to be within workflow names in workbooks  https://review.openstack.org/40525316:34
d0ugalHow do I enable the profiler in Mistral?16:52
d0ugalhrm, osprofiler. seems it isn't trivial16:55
d0ugalrbrady: it seems we need to learn how to use osprofiler: http://docs.openstack.org/developer/osprofiler/index.html16:55
d0ugalcould be fun16:55
* rbrady adds osprofiler to evening reading16:56
*** jpich has quit IRC17:07
mgershen1d0ugal: Renat once told me how to do it. Its been a while, but I still have some of the steps:17:12
mgershen1a. In the server config add this (3 lines): http://paste.openstack.org/show/591163/17:12
mgershen1b. also best to change logging settings a little bit. under [DEFAULT] add "log_config_append = wf_trace_logging.conf". This is what the file had: http://paste.openstack.org/show/591165/17:12
mgershen1c. and when you run a client command just add “--profile mistral_secret” at the end17:12
mgershen1d. restart mistral17:12
mgershen1You should know that the log is hard to read.17:12
d0ugalmgershen1: great, thanks17:13
d0ugalprofile logs are rarely pretty :)17:14
mgershen1d0ugal: yes, but sometimes there are external tools that can help. I heard when using PyCharm there is some support for profiling.17:16
d0ugaloh, cool17:16
mgershen1let me know if it works :)17:17
d0ugalmgershen1: will do! I might have some time to play with this tomorrow.17:17
mgershen1cool. good luck!17:17
*** dprince has quit IRC17:27
*** rbrady is now known as rbrady-run17:33
*** dtantsur is now known as dtantsur|afk17:40
*** dprince has joined #openstack-mistral17:43
*** chlong has joined #openstack-mistral17:45
*** bobh has quit IRC18:20
*** shardy has quit IRC18:34
*** rbrady-run is now known as rbrady18:36
*** bobh has joined #openstack-mistral18:58
*** bobh has quit IRC19:01
*** bobh has joined #openstack-mistral19:01
*** bobh has quit IRC19:06
*** openstackgerrit has quit IRC19:32
*** openstackgerrit has joined #openstack-mistral19:33
*** openstackgerrit has quit IRC19:36
*** jamielennox|away is now known as jamielennox19:53
*** dprince has quit IRC20:16
*** bobh has joined #openstack-mistral20:28
*** catinthe_ has quit IRC20:34
*** openstack has joined #openstack-mistral20:44
*** toure is now known as toure|gone21:04
*** toure|gone is now known as toure|biab21:04
*** bobh has quit IRC21:38
*** Ephur has joined #openstack-mistral21:44
*** bobh has joined #openstack-mistral21:44
*** jrist has quit IRC21:49
*** bobh has quit IRC21:58
*** thrash is now known as thrash|g0ne22:05
*** DaveTurner has joined #openstack-mistral22:30
*** chlong has quit IRC22:50
*** bobh has joined #openstack-mistral22:59
*** bobh has quit IRC23:03
*** weshay is now known as weshay_pto23:43

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