Tuesday, 2016-12-20

*** catintheroof has quit IRC00:29
*** chlong has quit IRC00:59
*** weshay_relocatin is now known as weshay01:12
kong_rakhmerov, ddeja, d0ugal, need your review for openstack context suppport in workflow: https://review.openstack.org/#/c/407240/01:40
kong_we need this capability for internal operation, thanks01:41
*** mgershen1 has joined #openstack-mistral01:50
*** mgershen has quit IRC01:52
*** bobh has joined #openstack-mistral03:01
*** thrash is now known as thrash|g0ne03:07
*** jamielennox is now known as jamielennox|away03:08
*** sharatss has quit IRC03:11
*** sharatss has joined #openstack-mistral03:11
*** jamielennox|away is now known as jamielennox03:22
rakhmerovkong_, hparekh, ddeja: guys, I replied to your comments in https://review.openstack.org/#/c/410211/505:16
rakhmerovpls take a look05:16
rakhmerovkong_: reviewing your patch..05:16
openstackgerritMerged openstack/mistral-dashboard: Fix docs-gate for mistral-dashboard  https://review.openstack.org/41236205:23
*** bobh has quit IRC05:40
*** bobh has joined #openstack-mistral05:57
*** jaosorior has joined #openstack-mistral05:57
openstackgerritSharat Sharma proposed openstack/mistral-dashboard: Added links to DSL docs in create/update views  https://review.openstack.org/41177006:06
openstackgerritRenat Akhmerov proposed openstack/mistral: Small adjustments in WithItemsTask  https://review.openstack.org/41276106:13
rakhmerovkong_: I reviewed your patch, left a couple of important comments.06:14
*** sharatss has quit IRC06:28
*** sharatss has joined #openstack-mistral06:29
openstackgerritMerged openstack/mistral-dashboard: Changed "Task Details" to "Task Execution Details"  https://review.openstack.org/41063106:33
*** jaosorior has quit IRC06:41
*** jaosorior has joined #openstack-mistral06:42
openstackgerritMerged openstack/mistral: Exclude .tox folder from coverage report  https://review.openstack.org/41113707:16
*** Ravikiran_K has joined #openstack-mistral07:23
*** jamielennox is now known as jamielennox|away07:28
*** Ravikiran_K has quit IRC07:44
openstackgerritDougal Matthews proposed openstack/mistral: Use LOG.exception when adding an OpenStack action fails  https://review.openstack.org/41243007:56
*** shardy has joined #openstack-mistral08:17
openstackgerrityunfeng zhou proposed openstack/mistral-dashboard: add CONTRIBUTING.rst  https://review.openstack.org/41286508:19
openstackgerrityunfeng zhou proposed openstack/mistral-specs: add CONTRIBUTING.rst  https://review.openstack.org/41286608:21
*** ^Gal^ has joined #openstack-mistral08:30
rakhmerovd0ugal: hi Dougal, do you think we can close https://bugs.launchpad.net/mistral/+bug/1645295 ?08:34
openstackLaunchpad bug 1645295 in Mistral "Custom actions can cause database errors if they pass the result class objects" [Critical,In progress] - Assigned to Dougal Matthews (d0ugal)08:34
rakhmerovseems like it's been addressed08:34
rakhmerovcan you check pls?08:34
d0ugalrakhmerov: it hasn't been addressed.08:35
rakhmerovreally?08:35
rakhmerovI sent a patch that handles serialization errors08:35
rakhmerovI thought it should fix it08:35
d0ugalrakhmerov: that was a different problem, I think08:35
rakhmerovok08:35
d0ugalbut I am not sure - did you add a test case to cover this scenario?08:35
d0ugalbut sure, I can check at some point unless you want to08:36
rakhmerovI didn't08:36
d0ugalok, so we should at least add a test for this I think.08:36
rakhmerovI am working on a different stuff08:36
rakhmerovyes, true08:36
rakhmerovok, I won't close it08:36
d0ugalThanks08:36
rakhmerovI'm just reviewing all the tickets now08:37
*** jaosorior has quit IRC08:41
*** jaosorior has joined #openstack-mistral08:43
*** jpich has joined #openstack-mistral08:54
openstackgerritRenat Akhmerov proposed openstack/mistral: Small adjustments in WithItemsTask  https://review.openstack.org/41276108:57
ddejarakhmerov: Hi, I replied to your comment in https://review.openstack.org/#/c/410211/509:01
rakhmerovhi09:02
rakhmerovbut it's less effective09:02
rakhmerovwhen you do list(iterator_kind_of_thing) it has to iterate through all items09:02
rakhmerovright?09:02
rakhmerovddeja: ^\09:02
ddejayes09:02
rakhmerovwhereas we need only one, the first one09:03
ddejahm09:03
rakhmerovI know it looks slightly weird09:03
rakhmerov:)09:03
rakhmerovI was surprised that it doesn't allow access by inde09:04
rakhmerovx09:04
ddejaI'm sure there must be a better way to achive this09:04
rakhmerovI didn't find it09:04
rakhmerovseriously09:04
ddejathis is so confusing09:04
rakhmerovspent 10-15 mins digging in what this structure has (dict_values)09:04
rakhmerovI know09:04
rakhmerovwelcome to Python :)09:04
d0ugalnext?09:05
* rakhmerov renat didn't mean to offend those who loves python09:05
rakhmerovd0ugal: what about next?09:05
d0ugalrakhmerov: it will get you the first (next) item from an iterator09:05
d0ugalunfortunately it is something that changed in Python 3, so supporting both is a bit ugly :(09:07
rakhmerovd0ugal: what's the full syntax?09:08
rakhmerovit doesn't have method 'next'09:08
d0ugalnext(with_items_values.values())09:08
d0ugalpython 3 ^09:08
d0ugalsix.next(iter(with_items_values.values()))09:09
d0ugalThat should work in 2 and 309:09
rakhmerov:)09:09
rakhmerovddeja, d0ugal: it doesn't look much better to me :)09:10
rakhmerovbut ok09:10
d0ugalIndeed, it doesn't09:10
rakhmerovI hate using six09:10
rakhmerovhonestly09:10
d0ugalit would be better if we only supported python 309:10
d0ugalpython 2 would be09:10
d0ugalnext(iter(with_items_values.values()))09:10
d0ugaloops09:10
rakhmerovd0ugal: it would be better if python supported backwards compatibility09:10
rakhmerovIMO09:10
d0ugaliter(with_items_values.values()).next()09:10
d0ugalrakhmerov: yeah, please make that happen ;)09:11
rakhmerov:)09:11
rakhmerov iter(d.values()).next()09:11
rakhmerovTraceback (most recent call last):09:11
rakhmerov  File "<stdin>", line 1, in <module>09:11
rakhmerovAttributeError: 'dict_valueiterator' object has no attribute 'next'09:11
ddejarakhmerov, d0ugal, yup, I found out the same with _gryf09:11
ddejabut hm, it is also not looking nice :/09:12
rakhmerovyep09:12
d0ugalddeja: _gryf?09:13
ddejamy teammate, Renat knows him from previous summits ;)09:13
rakhmerovddeja, d0ugal: this also doesn't work, any other ideas?09:13
d0ugalaha09:13
ddejad0ugal: and Python guru ;)09:13
rakhmerovyes, I do09:13
rakhmerovd0ugal has seen him too in Barcelona09:13
d0ugalrakhmerov: you didn't use what I suggested09:13
d0ugalrakhmerov: you need six.next09:13
d0ugalnext is a global function in python 3 and an iterator function in python 209:14
rakhmerovok, let me try with six, I tried your last one09:14
d0ugalsix.next(iter(d.values())09:14
d0ugalsorry, I shouldn't have given examples in 2 and 3 :-D09:14
rakhmerovTypeError: 'list' object cannot be interpreted as an integer09:17
d0ugallol09:17
d0ugallet me get an example09:17
rakhmerovalso doesn't work09:17
d0ugalYou need to show me what code you are using09:17
d0ugalbecause it does work :)09:18
d0ugalrakhmerov: http://paste.openstack.org/show/592877/09:18
d0ugalbut maybe I am not understanding the problem09:19
rakhmerovd0ugal: in what python did you do this?09:19
d0ugalrakhmerov: 2.7 and 3.509:20
rakhmerovwait a sec, may be I made a mistake somewhere09:20
d0ugalWill the dictionary ever be empty?09:22
rakhmerovyeah, I made a mistake09:22
rakhmerovsorry09:22
rakhmerovI needed to ad [0] at the end since I have a list in place of your 109:22
d0ugalaha09:23
rakhmerovok, let me change that and rerun all the tests09:24
rakhmerovhah!!09:24
rakhmerovooh, np09:24
rakhmerovsorry )09:24
rakhmerovddeja, d0ugal, kong_: ok, please review again09:32
rakhmerovnow it's really better (thanks to d0ugal)09:33
ddejarakhmerov: great :D09:35
rakhmerov:)09:35
ddejarakhmerov: one question thou09:36
rakhmerov нуы09:37
ddejadid you tested if it works when with_items_values is empty09:37
rakhmerovyes09:37
rakhmerovthere's a test for that, yes09:37
rakhmerovlet me check just in case09:37
* ddeja should learn russian, it shouldn't be this hard ;)09:37
rakhmerov:))09:37
rakhmerovsorry, I just didn't switch my lang09:37
rakhmerovwhen I was typing "yes"09:38
ddejarakhmerov: sure, no problem09:38
rakhmerovddeja: yes, I checked09:39
rakhmerovthere's such test09:39
rakhmerovtest_with_items_empty_list09:39
ddejaI just cannot read cyrillic, wheareas my parents, as an example, they can. I was thinking that I should also learn if I'd like to go east for vacation one year :)09:39
ddejarakhmerov: OK, thanks :)09:39
rakhmerovddeja: come to visit where I leave :)09:40
rakhmerovit's fun here now09:40
rakhmerov-30 C is not so rare temperature ;)09:40
rakhmerovwhere I live09:40
ddejarakhmerov: :o09:40
d0ugalwow09:41
ddejaI'd rather get my +509:41
rakhmerovright now is warm, only -1009:41
d0ugal1C here now09:41
ddejawell, it sometimes drops to -20, but it's only a few days in a winter09:41
rakhmerovusually Jan is very tough09:41
d0ugalddeja: Where are you?09:41
rakhmerovit goes down to -4509:41
d0ugallol09:41
* d0ugal should never complain about the cold in here09:42
ddejad0ugal: Gdańsk, Poland, at the seacoast of Baltic sea09:42
rakhmerov:))09:42
d0ugalddeja: oh, cool :)09:42
rakhmerovI'd like to go there one day09:42
ddejad0ugal: and you? ;)09:42
d0ugalddeja: Glasgow, Scotland09:42
rakhmerovnever been to Poland09:42
rakhmerovand Scotland too :)09:42
d0ugalYeah, I would like to visit Poland09:43
ddejarakhmerov: that would be great!09:43
d0ugaland Russia, but maybe not when it is -45 ;)09:43
rakhmerovd0ugal: summer is nice here09:43
rakhmerovup to +3509:43
rakhmerovand it's a dry climate here09:43
rakhmerovwhich is good09:43
d0ugalwow, that is a big change09:44
rakhmerovbut, you know, you need to be more specific when you say "Russia" :)09:44
rakhmerovit's big09:44
d0ugalhaha, indeed09:44
rakhmerovin Moscow it's usually warm any time09:44
d0ugalI don't know it well enough to be more specific ;)09:44
rakhmerovyeah, ok09:44
d0ugalbut Moscow always seemed interesting09:44
rakhmerovI live in Western Siberia09:44
rakhmerovwhich is considered a tough climate area09:45
ddejad0ugal: the closest is the Kaliningrad09:45
d0ugalThe weather here it between 0 and 20 almost all year09:45
ddejabut I'm not sure how russian is that area :)09:45
rakhmerovyeah, I went to Kaliningrad a few years ago09:45
d0ugalwe never really get that cold or that warm :(09:45
ddejaoh, so you were really close09:45
rakhmerovpretty nice place (at least what's left after all the bombings)09:45
ddejaa lot of people from that city come to Gdańsk for shopping09:45
rakhmerovddeja: yes, I visited Baltic Sea also, yes09:46
rakhmerovI know, yep :)09:46
rakhmerovfor them it's very easy for some reason09:46
ddejasince you don't need visas to get there :)09:46
rakhmerovthey don't need even visa AFAIK09:46
rakhmerovright09:46
ddejayes09:46
ddejabut not to all Poland09:46
rakhmerovit's kind of like "special economic zone"09:46
ddejaonly some states09:46
openstackgerritGal Margalit proposed openstack/mistral-dashboard: Workflow list - added missing fields  https://review.openstack.org/41251709:47
*** Ravikiran_K has joined #openstack-mistral09:53
*** ist has quit IRC09:58
rakhmerovddeja: http://logs.openstack.org/11/410211/6/check/gate-mistral-devstack-dsvm-kombu-nv/3500a9c/logs/testr_results.html.gz10:26
rakhmerovsomething wrong with neutron and keystone plugins?10:26
ddejarakhmerov: looking10:27
rakhmerovok10:27
rakhmerovI didn't look carefully, just noticed10:28
ddejarakhmerov: I need to see the full mistral log10:29
rakhmerovsure10:29
ddejabut it's strange10:29
ddejasince the error message suggests simultanous read's of something10:29
ddejabut kombu driver is one-thread as for now...10:30
ddejasignle-thread*10:30
ddejarakhmerov: I'll take a look once jenkins end all tests10:31
rakhmerovok, np10:31
rakhmerovonce you're comfortable..10:32
*** mgershen1 has quit IRC10:40
*** mgershen has joined #openstack-mistral10:43
rakhmerovkong_: here?10:51
*** Ravikiran_K has quit IRC10:56
openstackgerritSharat Sharma proposed openstack/mistral-dashboard: Added links to DSL docs in create/update views  https://review.openstack.org/41177010:57
*** mgershen has quit IRC11:03
*** mgershen has joined #openstack-mistral11:34
*** thrash|g0ne is now known as thrash11:37
openstackgerritMerged openstack/mistral: Refactor and improve 'with-items' algorithms  https://review.openstack.org/41021111:38
*** ist has joined #openstack-mistral11:43
*** Ravikiran_K has joined #openstack-mistral12:06
*** ist has quit IRC12:09
*** shardy is now known as shardy_lunch12:11
*** mgershen has quit IRC12:18
openstackgerritGal Margalit proposed openstack/mistral-dashboard: Workflow list - added missing fields  https://review.openstack.org/41251712:24
*** mgershen has joined #openstack-mistral12:25
openstackgerritJeremy Liu proposed openstack/python-mistralclient: Keystone v3 needs extra parameters  https://review.openstack.org/40967512:27
d0ugalrakhmerov: I thought of a better solution :)12:30
d0ugal{'a': []}.popitem()12:31
*** dprince has joined #openstack-mistral12:35
*** catintheroof has joined #openstack-mistral12:37
*** chlong has joined #openstack-mistral12:53
*** shardy_lunch is now known as shardy12:55
_gryfd0ugal, rakhmerov, simply a = {'a': [1,2,3]}; len(a[next(iter(a))]) should do in both py2 and py3 if we don't want to modify that dictionary13:30
d0ugal_gryf: Why is that better than popitem()?13:31
d0ugaloh, I guess beacuse it modifies13:32
_gryfyup13:32
d0ugalhonestly, I prefer next(iter(a.values()))13:34
d0ugalbut *shrug*13:34
_gryfyeah13:34
_gryfin a case where dictionary is reasonably small13:34
_gryfthat can make it13:35
ddeja_gryf: that particular dictionary may be quite big13:35
d0ugalit would have to be huge for that to be an issue13:35
_gryfso getting the first item is all we need i guess13:36
d0ugalSee openstack-dev "[openstack-dev] [all][python3] use of six.iteritems()"13:37
d0ugal^ a recent discussion about perf of dict items/iteritems13:38
* _gryf is reading13:38
_gryfso the rough conclusion was to not use (or overuse) six.iteritems13:45
_gryfi tend to agree, especially i didn't use six.iteritems in my sample :)13:46
d0ugalIndeed13:53
*** catinthe_ has joined #openstack-mistral14:06
*** catintheroof has quit IRC14:08
*** chlong has quit IRC14:16
*** jaosorior has quit IRC14:48
*** bobh has quit IRC15:01
*** dprince has quit IRC15:31
*** harlowja has joined #openstack-mistral15:49
*** pradk has joined #openstack-mistral15:51
*** chlong has joined #openstack-mistral15:53
openstackgerritOpenStack Proposal Bot proposed openstack/mistral-dashboard: Updated from global requirements  https://review.openstack.org/41314915:59
*** chlong has quit IRC16:01
openstackgerritGal Margalit proposed openstack/mistral-dashboard: Fixed: Dashboard: "Run action" functionality doesn't work  https://review.openstack.org/41315216:02
*** chlong has joined #openstack-mistral16:16
*** bobh has joined #openstack-mistral16:23
*** chlong has quit IRC16:28
*** ^Gal^ has quit IRC16:33
*** ^Gal^_ has joined #openstack-mistral16:33
*** ^Gal^_ is now known as ^Gal^16:33
*** bobh has quit IRC16:34
*** catintheroof has joined #openstack-mistral16:39
*** ^Gal^ has quit IRC16:42
*** catinthe_ has quit IRC16:42
*** harlowja has quit IRC16:42
*** chlong has joined #openstack-mistral16:42
*** jpich has quit IRC16:50
*** Ravikiran_K has quit IRC17:21
*** bobh has joined #openstack-mistral17:25
*** dprince has joined #openstack-mistral17:46
*** bobh has quit IRC17:49
*** harlowja has joined #openstack-mistral17:53
*** bobh has joined #openstack-mistral17:59
*** catinthe_ has joined #openstack-mistral18:03
*** catintheroof has quit IRC18:06
*** mgershen has quit IRC18:33
*** bobh has quit IRC18:39
*** bobh has joined #openstack-mistral18:41
*** chlong has quit IRC18:56
*** shardy has quit IRC19:03
*** bobh has quit IRC19:09
*** chlong has joined #openstack-mistral19:13
*** harlowja has quit IRC19:35
*** catintheroof has joined #openstack-mistral19:37
*** catinthe_ has quit IRC19:40
*** weshay is now known as weshay_relocate19:44
kong_rakhmerov: hi, i was not here last night. please feel free to leave message to me19:59
kong_rakhmerov, ddeja, i saw your comments for openstack context stuff, thanks for that. i will reconsider the implementation today.20:01
*** clenimar has quit IRC20:12
*** chlong has quit IRC20:15
*** chlong has joined #openstack-mistral20:27
*** ist has joined #openstack-mistral20:29
*** weshay_relocate is now known as weshay20:32
*** ist has quit IRC20:40
*** jamielennox|away is now known as jamielennox20:44
*** catintheroof has quit IRC20:47
*** shardy has joined #openstack-mistral21:20
*** weshay is now known as weshay_afk21:33
*** chlong has quit IRC21:46
*** dprince has quit IRC21:48
*** shardy has quit IRC22:02
*** chlong has joined #openstack-mistral22:57
*** pradk has quit IRC23:29

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