Friday, 2015-03-20

*** tsekiyama has joined #openstack-oslo00:00
*** tsekiyam_ has joined #openstack-oslo00:01
*** tsekiyama has quit IRC00:01
*** flwang1 has quit IRC00:01
*** tsekiyam_ has quit IRC00:01
*** tsekiyama has joined #openstack-oslo00:02
*** tsekiyama has quit IRC00:02
*** tsekiyama has joined #openstack-oslo00:03
*** tsekiyama has quit IRC00:03
*** tsekiyama has joined #openstack-oslo00:04
*** tsekiyama has quit IRC00:04
*** tsekiyama has joined #openstack-oslo00:04
*** achanda has quit IRC00:05
*** tsekiyama has quit IRC00:05
*** tsekiyama has joined #openstack-oslo00:05
*** tsekiyama has quit IRC00:06
*** tsekiyama has joined #openstack-oslo00:06
*** tsekiyama has quit IRC00:07
*** tsekiyama has joined #openstack-oslo00:08
*** tsekiyama has quit IRC00:08
*** tsekiyama has joined #openstack-oslo00:08
*** tsekiyama has quit IRC00:09
openstackgerritClint 'SpamapS' Byrum proposed openstack/oslo.messaging: Add a gearman/gearstore/gearhorn driver  https://review.openstack.org/16564600:09
*** tsekiyama has joined #openstack-oslo00:09
*** tsekiyama has quit IRC00:10
*** tsekiyama has joined #openstack-oslo00:10
*** tsekiyama has quit IRC00:11
*** tsekiyama has joined #openstack-oslo00:11
*** tsekiyama has quit IRC00:12
*** tsekiyama has joined #openstack-oslo00:12
openstackgerritJoshua Harlow proposed openstack/taskflow: Use a small coroutine in the conductor to iterate over jobs  https://review.openstack.org/16605100:12
*** tsekiyam_ has joined #openstack-oslo00:13
*** tsekiyama has quit IRC00:13
*** YorikSar has quit IRC00:14
*** tsekiyam_ has quit IRC00:14
*** tsekiyama has joined #openstack-oslo00:14
*** sputnik13 has quit IRC00:16
*** tsekiyam_ has joined #openstack-oslo00:16
*** tsekiyama has quit IRC00:16
*** tsekiyam_ has quit IRC00:17
*** tsekiyama has joined #openstack-oslo00:17
*** _amrith_ is now known as amrith00:17
*** tsekiyama has quit IRC00:17
*** tsekiyama has joined #openstack-oslo00:18
*** tsekiyama has quit IRC00:19
*** tsekiyama has joined #openstack-oslo00:19
*** tsekiyam_ has joined #openstack-oslo00:20
*** tsekiyama has quit IRC00:20
*** tsekiyam_ has quit IRC00:20
*** tsekiyama has joined #openstack-oslo00:21
*** tsekiyama has quit IRC00:21
*** tsekiyama has joined #openstack-oslo00:22
*** tsekiyama has quit IRC00:22
*** tsekiyama has joined #openstack-oslo00:23
*** tsekiyama has quit IRC00:23
*** stevemar has joined #openstack-oslo00:23
*** tsekiyama has joined #openstack-oslo00:24
*** tsekiyama has quit IRC00:25
*** tsekiyam_ has joined #openstack-oslo00:25
*** tsekiyam_ has quit IRC00:25
*** tsekiyama has joined #openstack-oslo00:26
*** tsekiyama has quit IRC00:26
*** tsekiyama has joined #openstack-oslo00:27
*** tsekiyama has quit IRC00:27
*** tsekiyama has joined #openstack-oslo00:27
*** tsekiyama has quit IRC00:28
*** tsekiyam_ has joined #openstack-oslo00:28
*** tsekiyam_ has quit IRC00:29
*** tsekiyama has joined #openstack-oslo00:29
*** tsekiyama has quit IRC00:30
*** tsekiyama has joined #openstack-oslo00:30
*** tsekiyama has quit IRC00:31
*** tsekiyama has joined #openstack-oslo00:31
*** tsekiyama has quit IRC00:32
*** tsekiyama has joined #openstack-oslo00:32
*** tsekiyama has quit IRC00:33
*** tsekiyama has joined #openstack-oslo00:33
*** tsekiyama has quit IRC00:34
*** tsekiyama has joined #openstack-oslo00:34
*** tsekiyama has quit IRC00:34
*** tsekiyama has joined #openstack-oslo00:35
*** tsekiyama has quit IRC00:35
*** tsekiyama has joined #openstack-oslo00:36
*** tsekiyama has quit IRC00:37
*** tsekiyama has joined #openstack-oslo00:37
*** tsekiyama has quit IRC00:37
*** tsekiyama has joined #openstack-oslo00:38
*** tsekiyama has quit IRC00:38
*** tsekiyama has joined #openstack-oslo00:39
*** tsekiyama has quit IRC00:39
*** tsekiyama has joined #openstack-oslo00:40
*** tsekiyama has quit IRC00:40
*** tsekiyama has joined #openstack-oslo00:41
*** tsekiyama has quit IRC00:41
*** tsekiyama has joined #openstack-oslo00:42
*** tsekiyama has quit IRC00:43
*** tsekiyam_ has joined #openstack-oslo00:43
*** tsekiyam_ has quit IRC00:43
*** tsekiyama has joined #openstack-oslo00:44
*** tsekiyama has quit IRC00:44
*** tsekiyama has joined #openstack-oslo00:45
*** tsekiyama has quit IRC00:45
*** tsekiyama has joined #openstack-oslo00:46
*** tsekiyama has quit IRC00:46
*** tsekiyama has joined #openstack-oslo00:46
*** tsekiyama has quit IRC00:47
*** tsekiyama has joined #openstack-oslo00:47
*** tsekiyama has quit IRC00:48
*** tsekiyama has joined #openstack-oslo00:48
*** tsekiyama has quit IRC00:49
*** tsekiyama has joined #openstack-oslo00:49
*** tsekiyama has quit IRC00:50
*** tsekiyama has joined #openstack-oslo00:50
*** tsekiyama has quit IRC00:51
*** tsekiyama has joined #openstack-oslo00:51
*** bknudson has joined #openstack-oslo00:51
*** tsekiyama has quit IRC00:51
*** tsekiyama has joined #openstack-oslo00:52
*** tsekiyama has quit IRC00:53
*** tsekiyama has joined #openstack-oslo00:53
*** tsekiyama has quit IRC00:53
*** tsekiyama has joined #openstack-oslo00:54
*** tsekiyama has quit IRC00:54
*** tsekiyama has joined #openstack-oslo00:55
*** tsekiyam_ has joined #openstack-oslo00:56
*** tsekiyama has quit IRC00:56
*** tsekiyam_ has quit IRC00:56
*** tsekiyama has joined #openstack-oslo00:57
*** tsekiyama has quit IRC00:57
*** tsekiyama has joined #openstack-oslo00:58
*** tsekiyam_ has joined #openstack-oslo00:59
*** tsekiyama has quit IRC00:59
*** sreshetn1 has joined #openstack-oslo01:05
*** spyyy has quit IRC01:07
*** dims has joined #openstack-oslo01:08
*** sreshetn1 has quit IRC01:09
*** prad has quit IRC01:21
*** harlowja_ is now known as harlowja_away01:46
*** yamahata has quit IRC02:11
*** sigmavirus24 is now known as sigmavirus24_awa02:14
*** jamielennox is now known as jamielennox|lunc02:32
*** jamielennox|lunc is now known as jamielennox|food02:32
openstackgerritayoung proposed openstack/oslo.policy: Convert Exceptions to failures.  https://review.openstack.org/16590802:37
*** sputnik13 has joined #openstack-oslo02:45
*** achanda has joined #openstack-oslo02:45
*** BrianShang has quit IRC02:50
*** BrianShang has joined #openstack-oslo02:52
*** amotoki has joined #openstack-oslo02:53
*** sreshetn1 has joined #openstack-oslo02:53
*** greghaynes has quit IRC02:58
*** sreshetn1 has quit IRC02:58
*** jamielennox|food is now known as jamielennox03:01
openstackgerritDavanum Srinivas (dims) proposed openstack/oslo-incubator: Fix TODO - switch functools.wraps to six.wraps  https://review.openstack.org/16608403:03
*** subscope_ has joined #openstack-oslo03:05
*** greghaynes has joined #openstack-oslo03:06
*** amotoki has quit IRC03:11
*** lan has quit IRC03:15
*** jecarey has joined #openstack-oslo03:15
*** dims has quit IRC03:20
*** lan has joined #openstack-oslo03:27
*** tsekiyam_ has quit IRC03:29
*** sputnik13 has quit IRC03:33
*** sputnik13 has joined #openstack-oslo03:37
*** sputnik13 has quit IRC03:44
*** achanda has quit IRC03:49
*** sputnik13 has joined #openstack-oslo03:55
*** achanda has joined #openstack-oslo03:59
*** achanda has quit IRC04:01
*** amotoki has joined #openstack-oslo04:09
*** achanda has joined #openstack-oslo04:12
*** sputnik13 has quit IRC04:15
*** achanda has quit IRC04:15
*** sputnik13 has joined #openstack-oslo04:16
*** dims has joined #openstack-oslo04:25
*** sputnik13 has quit IRC04:27
*** dims has quit IRC04:32
*** sputnik13 has joined #openstack-oslo04:36
*** sreshetn1 has joined #openstack-oslo04:42
*** sputnik13 has quit IRC04:44
*** sputnik13 has joined #openstack-oslo04:46
*** BrianShang_ has joined #openstack-oslo04:46
*** sreshetn1 has quit IRC04:47
*** BrianShang has quit IRC04:49
*** yamahata has joined #openstack-oslo04:57
*** sputnik13 has quit IRC04:59
*** sputnik13 has joined #openstack-oslo05:00
*** amotoki_ has joined #openstack-oslo05:00
*** sigmavirus24_awa is now known as sigmavirus2405:02
*** sputnik13 has quit IRC05:02
*** sputnik13 has joined #openstack-oslo05:03
openstackgerritMasaki Matsushita proposed openstack/oslo-incubator: Disable SSL v2 and v3  https://review.openstack.org/16610105:05
*** rushiagr_away is now known as rushiagr05:07
*** mdbooth has quit IRC05:07
*** achanda has joined #openstack-oslo05:08
*** mdbooth has joined #openstack-oslo05:11
*** mriedem_away has quit IRC05:18
*** mriedem has joined #openstack-oslo05:18
*** mriedem has quit IRC05:18
*** mriedem has joined #openstack-oslo05:18
*** alexpilotti has quit IRC05:35
*** rushiagr is now known as rushiagr_away05:42
*** sreshetn1 has joined #openstack-oslo05:43
*** mdbooth has quit IRC05:45
*** sputnik13 has quit IRC05:46
*** sputnik13 has joined #openstack-oslo05:47
*** sreshetn1 has quit IRC05:48
*** mdbooth has joined #openstack-oslo05:50
*** sputnik13 has quit IRC05:54
*** rushiagr_away is now known as rushiagr05:59
*** sputnik13 has joined #openstack-oslo06:11
*** sputnik13 has quit IRC06:12
*** mdbooth has quit IRC06:17
*** dims has joined #openstack-oslo06:18
*** sreshetn1 has joined #openstack-oslo06:19
*** mdbooth has joined #openstack-oslo06:23
*** dims has quit IRC06:24
*** jamielennox is now known as jamielennox|away06:35
openstackgerritOpenStack Proposal Bot proposed openstack/oslo.db: Imported Translations from Transifex  https://review.openstack.org/16611106:36
*** subscope_ has quit IRC06:42
*** sigmavirus24 is now known as sigmavirus24_awa06:44
*** inc0 has joined #openstack-oslo06:55
*** yamahata has quit IRC06:58
*** yamahata has joined #openstack-oslo06:58
*** rushiagr is now known as rushiagr_away07:16
*** achanda has quit IRC07:17
*** achanda has joined #openstack-oslo07:29
*** shardy has joined #openstack-oslo07:40
*** sheeprine has joined #openstack-oslo07:40
*** rushiagr_away is now known as rushiagr07:46
*** e0ne has joined #openstack-oslo07:51
*** dtantsur|afk is now known as dtantsur08:02
*** dims has joined #openstack-oslo08:09
*** viktors|afk is now known as viktors08:13
*** dulek has joined #openstack-oslo08:15
*** dims has quit IRC08:18
*** e0ne has quit IRC08:19
openstackgerritMehdi Abaakouk proposed openstack/tooz: fix lock concurrency issues with certain drivers  https://review.openstack.org/16464208:20
*** ndipanov has joined #openstack-oslo08:20
*** openstackgerrit has quit IRC08:22
*** jaosorior has joined #openstack-oslo08:22
*** openstackgerrit has joined #openstack-oslo08:22
*** achanda has quit IRC08:23
*** achanda has joined #openstack-oslo08:27
*** boris-42 has quit IRC08:32
*** dtantsur is now known as dtantsur|bbl08:41
*** achanda has quit IRC08:50
*** stevemar has quit IRC08:54
*** andreykurilin_ has joined #openstack-oslo08:58
*** andreykurilin_ has quit IRC09:03
*** andreykurilin_ has joined #openstack-oslo09:04
*** andreykurilin__ has joined #openstack-oslo09:08
*** yamahata has quit IRC09:09
*** andreykurilin_ has quit IRC09:09
*** i159 has joined #openstack-oslo09:12
*** jamielennox|away is now known as jamielennox09:14
openstackgerritMerged openstack/oslo.messaging: Minor improvement  https://review.openstack.org/16527809:17
*** ajo has joined #openstack-oslo09:20
*** andreykurilin__ has quit IRC09:27
*** andreykurilin_ has joined #openstack-oslo09:27
*** exploreshaifali has joined #openstack-oslo09:30
*** sreshetn1 has quit IRC09:32
*** mtreinish has quit IRC09:35
*** mtreinish has joined #openstack-oslo09:36
*** amotoki has quit IRC09:37
*** andreykurilin_ has quit IRC09:43
*** exploreshaifali has quit IRC09:44
*** sreshetn1 has joined #openstack-oslo09:53
*** sreshetn1 has quit IRC10:02
*** sileht has quit IRC10:07
*** e0ne has joined #openstack-oslo10:08
*** dimsum__ has joined #openstack-oslo10:11
*** pblaho__ is now known as pblaho10:15
openstackgerritVipin Balachandran proposed openstack/oslo.vmware: Remove old tests  https://review.openstack.org/16615710:18
*** sileht has joined #openstack-oslo10:22
openstackgerritVipin Balachandran proposed openstack/oslo.vmware: Move exception related tests to new module  https://review.openstack.org/16615910:35
*** spyyy has joined #openstack-oslo10:40
*** YorikSar has joined #openstack-oslo10:47
*** BrianShang_ has quit IRC10:48
*** BrianShang has joined #openstack-oslo10:49
*** e0ne is now known as e0ne_10:55
*** e0ne_ is now known as e0ne10:57
*** rushiagr is now known as rushiagr_away10:58
*** BrianShang has quit IRC11:01
*** BrianShang has joined #openstack-oslo11:02
openstackgerritMehdi Abaakouk proposed openstack/tooz: fix lock concurrency issues with certain drivers  https://review.openstack.org/16464211:02
*** cdent has joined #openstack-oslo11:12
openstackgerritDavanum Srinivas (dims) proposed openstack/oslo-incubator: Fix TODO - switch functools.wraps to six.wraps  https://review.openstack.org/16608411:19
openstackgerritMerged openstack/oslo.messaging: Create a unique transport for each server in the functional tests  https://review.openstack.org/15547611:33
openstackgerritMerged openstack/oslo.messaging: Add pluggability for matchmakers  https://review.openstack.org/16161511:36
dimsum__sileht: ping11:38
dimsum__sileht: regular success code path looks good against stable/junotoo :) (running oslo.messaging trunk against stable/juno) - https://review.openstack.org/#/c/165981/11:38
*** dtantsur|bbl is now known as dtantsur11:41
*** ajo has quit IRC11:42
*** ajo has joined #openstack-oslo11:43
*** ajo has quit IRC11:44
*** ajo has joined #openstack-oslo11:44
openstackgerritVipin Balachandran proposed openstack/oslo.vmware: Fix exception during connection close  https://review.openstack.org/16618111:46
*** exploreshaifali has joined #openstack-oslo11:49
*** e0ne is now known as e0ne_11:49
*** spyyy has quit IRC11:55
*** dulek has quit IRC11:57
*** e0ne_ is now known as e0ne11:59
*** dulek has joined #openstack-oslo12:01
*** inc0_ has joined #openstack-oslo12:02
*** inc0 has quit IRC12:03
*** ihrachyshka has joined #openstack-oslo12:11
silehtdimsum__, it should work on icehouse too (for those that have switch to oslo.msg)12:12
dimsum__i won't try that far :)12:12
*** stpierre has joined #openstack-oslo12:15
*** jaypipes has joined #openstack-oslo12:22
*** gordc has joined #openstack-oslo12:27
*** bknudson has quit IRC12:29
*** inc0_ has quit IRC12:29
*** kgiusti has joined #openstack-oslo12:34
*** e0ne is now known as e0ne_12:41
*** inc0 has joined #openstack-oslo12:43
*** ajo has quit IRC12:43
*** ajo has joined #openstack-oslo12:43
*** e0ne_ is now known as e0ne12:44
*** inc0 has quit IRC12:48
*** inc0_ has joined #openstack-oslo12:48
*** inc0_ has quit IRC12:54
*** bknudson has joined #openstack-oslo12:54
socialjust asking should I change this now or keep it and someone will approve it anyway https://review.openstack.org/#/c/165831/12:59
socialfrankly I don't like checking for : even though the checking for ip is kinda weak12:59
*** ChuckC_ has joined #openstack-oslo13:00
*** ChuckC has quit IRC13:01
*** i159_ has joined #openstack-oslo13:04
*** sreshetn1 has joined #openstack-oslo13:05
*** dulek has quit IRC13:05
*** dulek has joined #openstack-oslo13:05
*** i159 has quit IRC13:05
*** ChuckC_ has quit IRC13:05
*** ihrachyshka has quit IRC13:14
*** ChuckC_ has joined #openstack-oslo13:19
sdaguehmmm... we've really defined config group that's based on a library name - https://review.openstack.org/#/c/162340/6 ?13:23
*** dimsum__ has quit IRC13:27
*** amotoki_ has quit IRC13:35
*** amotoki has joined #openstack-oslo13:35
*** cdent has quit IRC13:36
*** jamielennox is now known as jamielennox|away13:36
*** mtanino has joined #openstack-oslo13:50
*** ihrachyshka has joined #openstack-oslo13:51
*** dimsum__ has joined #openstack-oslo13:51
*** sreshetn1 has quit IRC13:55
*** alexpilotti has joined #openstack-oslo13:56
dimsum__social: there are 3 spots already in oslo_messaging where we use "if ':' in host", so i'd prefer that, will +2A if you can help do that quickly :)13:57
*** sreshetn1 has joined #openstack-oslo13:57
*** jecarey has quit IRC13:58
SpamapSwow.. trying to make an already threaded thing work inside eventlet is zomg weird14:00
dimsum__sdague: at least 4 libraries do it.14:01
*** spyyy has joined #openstack-oslo14:02
*** dansmith is now known as superdan14:03
openstackgerritLukas Bezdicka proposed openstack/oslo.messaging: rabbit: fix ipv6 support  https://review.openstack.org/16583114:05
*** cdent has joined #openstack-oslo14:06
*** sputnik13 has joined #openstack-oslo14:19
*** prad has joined #openstack-oslo14:21
*** e0ne is now known as e0ne_14:26
*** e0ne_ is now known as e0ne14:27
*** mvandijk has joined #openstack-oslo14:30
mvandijkTo change an oslo utils test, do I edit the files in oslo.utils/tests/ or oslo.utils/oslo_utils/tests/ ?14:33
*** dulek has quit IRC14:33
*** prad has quit IRC14:35
dhellmannmvandijk: the files in oslo.utils/tests are verifying that the old import style still work. The copies under oslo_utils use the new import style. So if you're changing behavior, you need to make both copies work. What are you working on?14:35
*** prad has joined #openstack-oslo14:36
mvandijkproposing a proper fix for https://bugs.launchpad.net/oslo.utils/+bug/143365214:37
openstackLaunchpad bug 1433652 in oslo.utils "make the sanitization keys in mask_password dynamic" [Undecided,Opinion] - Assigned to Amrith (amrith)14:37
mvandijki.e. add an optional parameter to mask_password that is a list of keys to mask the values of14:37
mvandijkand a test along with it14:38
dhellmannmvandijk: ok, in that case only the tests under oslo.utils/oslo_utils/tests need to be modified because it's a new feature14:38
mvandijkalright, cheers14:38
dhellmannmvandijk: be forewarned, though, I still think that's a bad idea and I'm not sure the team has agreed on whether to accept it or not. So it's probably worth starting a discussion about that before spending a bunch of time on code.14:38
*** sreshetn1 has quit IRC14:40
mvandijkalright14:40
dhellmannmvandijk: the mailing list is a good place for that discussion14:40
*** i159_ has quit IRC14:41
*** sreshetn1 has joined #openstack-oslo14:45
*** sputnik13 has quit IRC14:45
*** dtantsur has left #openstack-oslo14:53
*** dimsum__ has quit IRC15:01
*** stevemar has joined #openstack-oslo15:02
*** zzzeek has joined #openstack-oslo15:08
*** yamahata has joined #openstack-oslo15:13
*** dimsum__ has joined #openstack-oslo15:14
*** sputnik13 has joined #openstack-oslo15:15
*** dimsum__ has quit IRC15:16
*** yamahata has quit IRC15:17
*** sputnik13 has quit IRC15:18
*** sputnik13 has joined #openstack-oslo15:21
*** jogo is now known as flashgordon15:21
*** openstackgerrit has quit IRC15:21
*** openstackgerrit has joined #openstack-oslo15:22
*** sigmavirus24_awa is now known as sigmavirus2415:22
openstackgerritVictor Stinner proposed openstack/oslo.utils: Add exception_to_unicode() function  https://review.openstack.org/16350715:27
*** sputnik13 has quit IRC15:28
*** sputnik13 has joined #openstack-oslo15:28
*** sputnik13 has quit IRC15:28
haypodhellmann: logging exceptions really makes me crazy :-p15:29
haypodhellmann: i updated https://review.openstack.org/163507 it should take in account your remark15:30
dhellmannhaypo: regarding your second comment, _Message is a subclass of unicode and has a special __new__ method. Have you checked to see if unicode(_Message()) returns another _Message() object?15:33
sigmavirus24stupid question: So I"m trying to get Nova (stable/juno) working on Debian (using a source install) and sslutils inside of Nova causes it to fail because ssl.PROTOCOL_SSLv3 is no longer defined. sslutils currently doesn't have that code anymore. Is it acceptable to sync oslo-incubator to Nova stable/juno? That's the only file using either _SSL_PROTOCOLS or validate_ssl_version so a sync shouldn't break it from that perspective15:33
* sigmavirus24 is looking at other methods in sslutils that nova might be using15:34
dhellmannsigmavirus24: yes, I think we removed it from the incubator but no one every updated nova's stable branch with that fix15:34
dhellmann*ever15:34
sigmavirus24So updates to stable branches are acceptable?15:34
* sigmavirus24 wasn't quite certain15:34
haypodhellmann: exception_to_unicode() expects an exception, do you mean that exc.__unicode__() or exc.__str__() may return a Message object?15:35
dhellmannhaypo: yes15:36
dhellmannhaypo: you said nova is converting the message string to unicode, but I think if you do unicode(_Message()) you get a _Message() -- I need to test that15:37
haypodhellmann: i only checked nova yet, and nova doesn't store the message object, but a unicode string15:37
*** dimsum__ has joined #openstack-oslo15:37
dhellmannhaypo: link?15:37
dhellmannhaypo: remember, _Message is a subclass of unicode15:37
haypo>>> nova.exception.NovaException(nova.i18n._('Instance event failed')).__unicode__()15:37
*** jaypipes is now known as leakypipes15:37
haypou'Instance event failed'15:37
*** ndipanov has quit IRC15:38
haypohum, i'm not sure that i initialized correctly oslo.i18n, because nova.i18n._('hello') returns a unicode object15:38
*** sreshetn1 has quit IRC15:38
dhellmannhaypo: ok, nova's exception class is broken then because it's not supporting lazy translation if it does that15:38
*** ndipanov has joined #openstack-oslo15:39
haypodhellmann: nova.i18n._("text") is supposed to return a Message object15:39
haypo?15:39
*** ChuckC_ is now known as ChuckC15:39
dhellmannhaypo: http://docs.openstack.org/developer/oslo.i18n/usage.html#lazy-translation15:42
haypodhellmann: ah wait, better example with lazy translation enabled: http://pastealacon.com/3709315:42
haypodhellmann: it's ok, exc.args[0] is a Message object15:43
dhellmannhaypo: ok, we need to fix nova's handling of the exception there, but we also need your change to work with a message15:43
haypodhellmann: it's just that exc.__unicode__() converts the Message to unicode15:43
dhellmannI wonder if Message.__unicode__ should just return a Message15:43
dhellmannright, and doing that at that point means the translation is never applied15:43
haypodhellmann: in some places, python really wants a unicode type, not a subtype15:44
dhellmannhaypo: ok?15:44
*** sreshetn1 has joined #openstack-oslo15:44
haypodhellmann: if i understand correctly, the translation is not done when the exception is created, but when the exception is converted to a string15:46
dhellmannhaypo: yes, that's right. And we want the wsgi stack code to handle that, since it knows (a) that it should call translate() and (b) what language setting to pass to translate()15:46
haypodhellmann: to come back to my exception_to_unicode() function, does it look ok? it now calls exc.__unicode__() first15:46
dhellmannhaypo: what exactly is this new function for? because I think it's bypassing the translation stuff, and we don't want that15:47
haypodhellmann: the function ensures that we will never get a unicode error when trying to log an exception15:48
dhellmannhaypo: is it just for logging?15:48
dhellmannand who calls it? where?15:48
haypodhellmann: anywhere where you want to convert an exception to text. usually, it's for logging15:49
dhellmanndo I put that in my application? or is the log library going to do this for me?15:49
haypodhellmann: my starting point is https://bugs.launchpad.net/nova/+bug/1419905 -- a bug in nova with a locale different than en_US when logging an exception15:49
openstackLaunchpad bug 1419905 in OpenStack Compute (nova) "Nova may not start instances when OS is installed with locale not en_US" [Low,Fix released] - Assigned to Davanum Srinivas (DIMS) (dims-v)15:50
dhellmannhaypo: I need a more detailed example, because I think you're trying to solve a problem we have either fixed or you're solving it in a way that breaks some other stuff15:50
dhellmannhaypo: would https://review.openstack.org/#/c/163027/ fix that?15:50
haypodhellmann: the bug is at the left of https://review.openstack.org/#/c/159209/4/nova/virt/libvirt/firewall.py15:51
haypodhellmann: the pattern LOG.debug("...: %s" % (..., exc)) doesn't work15:51
dhellmannhaypo: if that format string to debug() was made a unicode string everything would work fine, no?15:51
haypobut i'm not sure that LOG.debug("...: %(exc)s", {..., 'exc': exc}) works in all cases15:51
dhellmannLOG.debug(u'...', (name, e))15:52
haypodhellmann: logging.critical(u'error: %s', Exception('\xe9'.encode('utf8')) doesn't work15:52
haypodhellmann: IMO the bug is specific to Python 215:52
*** harlowja_at_home has joined #openstack-oslo15:52
haypodhellmann: well, i'm chatting with you to ensure that i understood the problem... maybe i missed something15:53
dhellmannhaypo: yeah, I may be missing a case, too. I know it doesn't work if the format string is ascii and the exception can't be encoded that way. I don't know that the case you list with critical() fails, so I'd have to test that. In any case, what you're proposing will require too many application-level changes to be effective, so I think we need to fix the problem down in oslo.log. If my patch above doesn't work, we need to do more work there.15:54
dhellmann Expecting developers to remember to call this new function isn't going to scale, though. :-/15:54
haypodhellmann: i saw a patch to convert parameters of a lo to unicode15:55
haypodhellmann: it's a good idea, but i'm not sure that it works with exceptions15:56
haypodhellmann: the next step would be to modify the logging wrapper to convert exceptions to unicode using exception_to_unicode()15:56
haypodhellmann: i'm talking about https://review.openstack.org/#/c/163027/15:56
openstackgerritChris Dent proposed openstack/tooz: Use a sentinel connection pool to manage failover  https://review.openstack.org/16629115:57
dhellmannhaypo: why does it not work with exceptions?15:57
haypohum, your patch only changes the formatting string, not parameters15:57
dhellmannyes15:58
haypodhellmann: i'm stuck at logging.critical(u'error: %s', Exception('\xe9'.encode('utf8'))15:58
dhellmannalthough there are some cases where an exception is passed as the formatting string15:58
haypodhellmann: maybe this case never happens in practice?15:58
dhellmannhaypo: can you show me a traceback for that?15:58
dhellmannoh, hang on, you're calling encode there? no, I don't think we would ever want someone to do that15:58
haypodhellmann: see https://review.openstack.org/#/c/163507/1//COMMIT_MSG15:58
dhellmannhaypo: do you have a real case in our code where someone is passing an encoded string as the only message to an exception?15:59
haypodhellmann: '\xe9'.encode('utf8') is just to have a more readable example15:59
openstackgerritJoshua Harlow proposed openstack/taskflow: Ensure docstring on storage properties  https://review.openstack.org/16629215:59
haypodhellmann: in python 2, exception messages are almost always bytes. i'm talking about the stdlib (and most 3rd party modules)15:59
haypodhellmann: I have a meeting. i will try to summarize our discussion and write an email instead :)16:00
*** harlowja_at_home has quit IRC16:00
dhellmannhaypo: yes, thanks, I'm also trying to do something else right now so I'm not giving you my full attention. Sorry if that makes this a frustrating conversation.16:00
dhellmannhaypo: in general, if there is a "correct" way to call the logging functions that avoids this problem without requiring the developer to know about a library function, that's OK and the bug can be considered in the caller. However, if oslo.log needs to handle cases it is not, we need to fix the problem inside the library.16:01
dhellmannhaypo: and if we can fix the bad calls by making the library protect us more, we should also do that16:01
dhellmannhaypo: but we can't realistically expect the app developers to find all log calls with exceptions and add a new wrapper function to them16:01
*** dimsum__ has quit IRC16:02
*** amotoki has quit IRC16:07
*** amotoki has joined #openstack-oslo16:07
haypodhellmann: (no problem)16:10
openstackgerritDoug Hellmann proposed openstack/oslo-incubator: Drop pylint requirement  https://review.openstack.org/16629716:11
*** jecarey has joined #openstack-oslo16:13
openstackgerritDoug Hellmann proposed openstack/oslo.vmware: Move pylint dependency to tox.ini  https://review.openstack.org/16629816:14
*** sigmavirus24 is now known as sigmavirus24_awa16:17
*** kbyrne has quit IRC16:18
*** exploreshaifali has quit IRC16:19
*** sigmavirus24_awa is now known as sigmavirus2416:20
*** dimsum__ has joined #openstack-oslo16:23
*** BrianShang_ has joined #openstack-oslo16:25
*** BrianShang has quit IRC16:28
*** sreshetn1 has quit IRC16:28
*** sabari has quit IRC16:31
*** sabari has joined #openstack-oslo16:33
*** amotoki has quit IRC16:36
*** spyyy has quit IRC16:37
*** andreykurilin_ has joined #openstack-oslo16:42
*** yamahata has joined #openstack-oslo16:43
*** viktors has quit IRC16:43
*** harlowja_away is now known as harlowja_16:51
jungleboyjdhellmann: You around?  Let me know if you have a chance to talk about this:  https://review.openstack.org/#/c/165431/16:51
*** sigmavirus24 is now known as sigmavirus24_awa16:53
*** sreshetn1 has joined #openstack-oslo16:58
*** spyyy has joined #openstack-oslo17:09
*** e0ne has quit IRC17:11
*** achanda has joined #openstack-oslo17:15
*** pblaho has quit IRC17:20
*** openstackgerrit has quit IRC17:21
*** openstackgerrit has joined #openstack-oslo17:22
*** kgiusti has quit IRC17:22
*** sreshetn1 has quit IRC17:24
openstackgerritJoshua Harlow proposed openstack/taskflow: Ensure periodic freshening of the job board contents  https://review.openstack.org/16598917:37
*** sputnik13 has joined #openstack-oslo17:37
*** sreshetn1 has joined #openstack-oslo17:40
*** spyyy has quit IRC17:42
openstackgerritClint 'SpamapS' Byrum proposed openstack/oslo.messaging: Add a gearman/gearstore/gearhorn driver  https://review.openstack.org/16564617:44
openstackgerritJoshua Harlow proposed openstack/taskflow: Ensure we are really setup before being connected  https://review.openstack.org/16632917:45
openstackgerritJoshua Harlow proposed openstack/taskflow: Ensure we are really setup before being connected  https://review.openstack.org/16632917:46
openstackgerritJoshua Harlow proposed openstack/taskflow: Ensure we are really setup before being connected  https://review.openstack.org/16632917:47
*** andreykurilin_ has quit IRC17:54
*** shardy has quit IRC18:01
*** e0ne has joined #openstack-oslo18:05
dhellmannjungleboyj: looking now18:14
jungleboyjdhellmann: Thanks.18:15
dhellmannjungleboyj: one thing I noticed is the list of options is all being reported as though they belong under the default group, but I don't think that's true18:17
dhellmannjungleboyj: for example, the keymgr options should be in the 'keymgr' group, right?18:17
dhellmannjungleboyj: hmm, the thing with the dynamic option registration by drivers is interesting, too. What's the background there? e.g., fc_fabric_names18:20
*** spyyy has joined #openstack-oslo18:21
*** kgiusti has joined #openstack-oslo18:23
dhellmannjungleboyj: I left some comments on the review18:32
*** crc32 has joined #openstack-oslo18:35
*** dougwig has quit IRC18:39
jungleboyjdhellmann: Sorry, got pulled into a meeting.18:47
dhellmannjungleboyj: np, that's what I figured18:47
dhellmannjungleboyj: let me know if my comments make sense :-)18:47
jungleboyjdhellmann: Let me go take a look.  I think you are right.  Some of those options do need to be put into a different section.  You are right.18:48
dhellmannjungleboyj: also the thing about layering the functions, so you don't have one big list of imports there18:49
jungleboyjdhellmann: Some of the FC options are dynamically added depending on other options that are enabled.  Wasn't sure how to deal with that.18:49
dhellmannjungleboyj: if you want your config file to be complete, always add them18:49
dhellmannI'm not sure we intended for options to be defined conditionally like that. maybe not used, but not defining them is an interesting pattern18:49
*** mvandijk has left #openstack-oslo18:49
jungleboyjdhellmann: Yeah, that made me uncomfortable when I found it.  :-)  Anyway, let me look at your comments here.18:51
*** sreshetn2 has joined #openstack-oslo18:51
dhellmannjungleboyj: I'm not sure it's wrong, it's just unexpected :-)18:51
jungleboyjIndeed.18:52
*** sreshetn1 has quit IRC18:52
*** pradk has joined #openstack-oslo18:55
*** pradk has quit IRC18:55
jungleboyjdhellmann: So, your reponses make sense I think.  Take the base_san_opts and put them in the driver file.  Similarly to the way we have cinder/opts.py set up so they don't have to be manually added in cinder/opts.py18:55
jungleboyjdhellmann: You are right that I need to move some of the imported opts to a non-default section.  I cna fix that.18:56
dhellmannjungleboyj: ok, good, I'll watch for an updated draft to review18:56
jungleboyjdhellmann: On the deepcopy() You mean put that around the whole value that is being returned?18:56
*** prad has quit IRC18:56
dhellmannjungleboyj: yeah, or just leave it out. Someone was being paranoid in the docs, and we ended up with that being a pattern18:57
jungleboyjOk, I can fix that.18:57
jungleboyjSo, the bigger question still remains.18:57
dhellmannit's more likely to be important to do that in a lib, where someone might get to the list_opts and do something tricky than with the app18:57
*** e0ne has quit IRC18:57
jungleboyjWinston-D wants me to not create cinder/opts.py .  He thinks we should write a program to dynamically generate it for oslo-config-generator to then use.18:58
*** e0ne has joined #openstack-oslo18:58
dhellmannthat brings you back to the same problem we were trying to solve by moving away from scanning code18:58
jungleboyjHe is concerned that I am putting us back in the state where we are going to have failures in the gate like we had with check_uptodate.py run.18:58
dhellmannsomething has to find all of the options, and it has to emit them all in the right format18:59
*** prad has joined #openstack-oslo18:59
dhellmannI don't follow that18:59
jungleboyj:-)18:59
jungleboyjdhellmann: He is concerned that we will have people not running unit test and pushing up their changes and the gate failing on my hacking check, which really is the whole point of that check.19:00
jungleboyjdhellmann: They don't want the developers to have to do additional work editing cinder/opts.py19:00
jungleboyjdhellmann: He wants me to just automatically go through the code and generate cinder/opts.py when tox -egenconfig is run.19:01
jungleboyjWondering what you think about that.19:01
jungleboyjI explained that it is not consistent with what other projects are doing.19:01
dhellmannyeah, I wouldn't do that.19:02
dhellmannAs you move the list_opt functions lower in the code, you'll find that the duplication of options happens there19:02
ihrachyshkadhellmann, hey. any plans for oslo.messaging releases till the end of Kilo?19:03
ihrachyshkadhellmann, I wonder whether we can get a release with https://review.openstack.org/#/c/163673/ included.19:03
dhellmannIt will be natural to replace calls to register_opts() with explicit variable references to once that call those lower-level functions to get the option lists and groups19:03
dhellmannihrachyshka: did someone backport that to the stable/kilo branch?19:03
ihrachyshkaoh, there is one...19:04
ihrachyshkaok, got it19:04
dhellmannihrachyshka: yeah, we've cut our stable releases for kilo already, so fixes that need to go into the apps need to be backported19:04
jungleboyjdhellmann: Sorry, not following you.19:04
dhellmannihrachyshka: there are several like that for messaging, I meant to poke sileht about it19:04
ihrachyshkadhellmann, I missed that somehow. (probably my brain is leaking these days.) so backport: https://review.openstack.org/#/c/166349/19:04
dhellmannjungleboyj: say you create a little list_opts down in cinder.keymgr. It's going to look like def list_opts(): return [(local_var_defining_group_name, local_var_defining_list_of_opts)]19:05
dhellmannjungleboyj: so then instead of calling register_opts(local_var_defining_list_of_opts, group=local_var_defining_group_name) it would be natural to loop over the return value of list_opts()19:06
dhellmannjungleboyj: so now you're back to only having to edit the list of options in one place19:06
jungleboyjdhellmann: No, what I was thinking was basically writing something like what my hacking check is doing.  It would check every file for register_opts() and dynamically create the cinder/opts.py file.19:07
*** achanda has quit IRC19:07
jungleboyjdhellmann: Oh wait, so you are saying move the list_opts down into each file?19:08
dhellmannjungleboyj: potentially, whatever level makes sense19:08
*** e0ne has quit IRC19:08
jungleboyjdhellmann: Then how do we know where all we need to do list_opts at?19:08
dhellmannthere is no "you should do it this way" answer to your question, so I'm trying to propose alternatives that move you in the direction you want to go.19:08
dhellmannwell, how often do you add whole new modules?19:09
jungleboyjdhellmann: Ah, whenever volume developers add a new driver.19:09
dhellmannI mean, I understand the problem you're trying to solve, I'm just not sure how big of a problem it really is19:10
jungleboyj:-)  Agreed.19:10
*** e0ne has joined #openstack-oslo19:10
dhellmannI sort of thought the drivers issue would be solved with a separate entry point for each driver. That would be an easy check to automate.19:11
dhellmannit would mean you'd have a long list of modules in the generator config, but that's not too big of a deal since you only add the entry when a new module is created19:11
dhellmannthat also has the benefit of clearly indicating in the sample config output which options are coming from the app, and which are coming from the driver19:12
jungleboyjYeah, that would also require adding the list_opts() function to each file.  Correct?19:13
*** exploreshaifali has joined #openstack-oslo19:13
dhellmannyeah, one per driver somewhere19:13
dhellmannfor the rest of the code, I'd stick with one per package probably19:13
jungleboyjThat, however, would make it clearer where the options were coming from, right?19:13
dhellmannright19:14
jungleboyjOk, so that makes sense for the drivers.19:15
jungleboyjWhat do you mean one one per package?19:15
dhellmanncinder.api, cinder.db, cinder.scheduler, etc.19:15
dhellmannotherwise you end up with a million functions19:15
dhellmannwhat I'm worried about is the duplication of the group name setting19:16
openstackgerritMerged openstack/oslo.messaging: rabbit: fix ipv6 support  https://review.openstack.org/16583119:16
jungleboyjGotcha.  Which means for those we are going to have to move those options into one file per package?19:16
dhellmannjungleboyj: let me look more closely at some of the existing option definitions - how many app options don't go in the default group?19:16
jungleboyjdhellmann: Let me look.19:17
*** e0ne has quit IRC19:19
jungleboyjdhellmann: We have [DEFAULT] , a few sections for zonemanager set up.  [database] [keymgr] couple from keystone, few from oslo_messaging and [profiler]19:20
jungleboyjdhellmann: So, really all those others do fall under [DEFAULT]19:20
dhellmannok19:20
dhellmannso that eases my concern about duplicating group names a bit since there aren't a bunch of them19:20
* jungleboyj is starting to wonder if I need to create an L spec for this though.19:21
dhellmannis the other main concern with modifying the list in 2 places? or missing something? or what?19:21
*** achanda has joined #openstack-oslo19:21
jungleboyjdhellmann: The main concern is with developers having to update cinder/opts.py if they add a new option list.19:22
dhellmannok. I don't think there's a realistic way to get around being explicit with adding new things. That's sort of the point with this new approach.19:22
dhellmannso the question is how to make it easy to not forget19:22
dhellmannand that comes down to having fewer lists of options, so new lists aren't needed as often, or to combining the lists in some other way19:23
dhellmannbut if you add a new module, it's going to have to be plumbed in19:23
jungleboyjdhellmann: That was what I tried to communicate.19:24
dhellmannthe benefit is you can do things like generate example sections for options that may only be registered if a device exists (something I think ironic and cinder both wanted)19:24
dhellmannand you can use different namespaces to generate different sample configs for different services, which several projects want to do19:25
dhellmann(nova compute, nova conductor, etc.)19:25
*** sreshetn2 has quit IRC19:25
*** tsekiyama has joined #openstack-oslo19:28
*** tsekiyama has quit IRC19:29
*** tsekiyama_ has joined #openstack-oslo19:30
jungleboyjdhellmann: So, here is what I am thinking:19:30
jungleboyjdhellmann: Feels like this needs to be fleshed out more before being implemented.19:31
*** exploreshaifali has quit IRC19:31
dhellmannjungleboyj: possibly19:31
jungleboyjdhellmann: Think I may try to summarize our discussion to the mailing list and tag nova, cinder and neutron.  Point out what I currently have in place and propose the idea of doing a more /driver /package entry point design.19:32
dhellmannjungleboyj: that seems like a good plan19:33
jungleboyjThis may then need to get moved out to L, but I would rather have that happen and get it right.19:33
jungleboyjLet me go write that note while it is fresh in my head.19:34
*** sreshetn2 has joined #openstack-oslo19:34
*** yamahata has quit IRC19:36
jungleboyjdhellmann: Thanks for being so helpful!19:37
*** yamahata has joined #openstack-oslo19:37
dhellmannjungleboyj: thanks for thinking this through!19:39
jungleboyj:-)  I am learning a lot.  Kind-of fun to blaze the trail.19:39
*** andreykurilin_ has joined #openstack-oslo19:41
*** ihrachyshka has quit IRC19:44
*** andreykurilin_ has quit IRC20:01
openstackgerritDavanum Srinivas (dims) proposed openstack/oslo.concurrency: Remove tools/run_cross_tests.sh from openstack-common.conf  https://review.openstack.org/16635920:03
openstackgerritDavanum Srinivas (dims) proposed openstack/oslo.messaging: Sync with latest oslo-incubator  https://review.openstack.org/16636120:05
*** ChuckC has quit IRC20:05
*** dougwig has joined #openstack-oslo20:13
*** sreshetn2 has quit IRC20:17
*** ndipanov has quit IRC20:23
*** andreykurilin_ has joined #openstack-oslo20:34
openstackgerritAssaf Muller proposed openstack/oslo.messaging: Remove 'UNIQUE_ID is %s' spam  https://review.openstack.org/16637220:38
*** jaosorior has quit IRC20:52
*** spyyy has quit IRC20:55
*** spyyy has joined #openstack-oslo21:13
*** kgiusti has left #openstack-oslo21:32
*** jamielennox|away is now known as jamielennox21:49
*** mriedem has quit IRC21:54
*** gordc has quit IRC21:58
*** jamielennox is now known as jamielennox|away22:05
openstackgerritJoshua Harlow proposed openstack/taskflow: Have conductors be disconnected from builder helper methods  https://review.openstack.org/16639822:14
openstackgerritAssaf Muller proposed openstack/oslo.messaging: Remove 'UNIQUE_ID is %s' logging  https://review.openstack.org/16637222:15
*** amuller has joined #openstack-oslo22:22
amullerdhellmann: new version up for https://review.openstack.org/#/c/166372/22:22
amullerthis time with less venomous phrasing :)22:23
*** prad has quit IRC22:25
*** bknudson has quit IRC22:36
*** mriedem has joined #openstack-oslo22:44
openstackgerritMerged openstack/oslo.concurrency: Remove tools/run_cross_tests.sh from openstack-common.conf  https://review.openstack.org/16635922:54
*** dimsum__ has quit IRC22:58
*** andreykurilin_ has quit IRC22:58
*** dimsum__ has joined #openstack-oslo22:59
*** dimsum__ is now known as dims23:00
*** boris-42 has joined #openstack-oslo23:02
*** mtanino has quit IRC23:08
*** tsekiyam_ has joined #openstack-oslo23:11
*** tsekiyama_ has quit IRC23:15
*** tsekiyam_ has quit IRC23:16
openstackgerritJoshua Harlow proposed openstack/taskflow: Ensure thread-safety of persistence dir backend  https://review.openstack.org/16641723:20
harlowja_dhellmann i think https://review.openstack.org/#/c/166404/ should fix the root cause for your need to make https://review.openstack.org/#/c/166377/23:22
harlowja_fyi23:22
*** achanda has quit IRC23:24
*** achanda has joined #openstack-oslo23:26
*** harlowja_ has quit IRC23:41
*** harlowja has joined #openstack-oslo23:42
openstackgerritMerged openstack/oslo.vmware: Move pylint dependency to tox.ini  https://review.openstack.org/16629823:48

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