Thursday, 2018-04-19

*** edmondsw has joined #openstack-oslo00:16
*** edmondsw has quit IRC00:23
*** edmondsw has joined #openstack-oslo00:24
*** edmondsw has quit IRC00:28
*** edmondsw has joined #openstack-oslo00:29
*** edmondsw has quit IRC00:32
*** edmondsw has joined #openstack-oslo00:32
*** edmondsw has quit IRC00:37
*** dave-mccowan has joined #openstack-oslo01:37
*** AlexeyAbashkin has joined #openstack-oslo01:39
*** AlexeyAbashkin has quit IRC01:43
*** dstanek_ is now known as dstanek01:56
*** salv-orl_ has joined #openstack-oslo01:59
*** salv-orlando has quit IRC02:02
*** salv-orl_ has quit IRC02:11
*** gcb has joined #openstack-oslo02:13
*** salv-orlando has joined #openstack-oslo02:13
*** salv-orlando has quit IRC02:20
openstackgerritTovin Seven proposed openstack/osprofiler master: Add lower-constraints job  https://review.openstack.org/56113402:21
*** salv-orlando has joined #openstack-oslo02:22
*** harlowja_ has quit IRC02:53
*** toabctl has quit IRC03:00
*** harlowja has joined #openstack-oslo03:22
*** nicolasbock has quit IRC03:34
*** pbourke has quit IRC04:07
*** pbourke has joined #openstack-oslo04:08
*** bobh has joined #openstack-oslo04:17
*** hoonetorg has quit IRC04:27
*** bobh has quit IRC04:36
*** hoonetorg has joined #openstack-oslo04:41
*** harlowja has quit IRC04:52
*** links has joined #openstack-oslo05:18
*** e0ne has joined #openstack-oslo05:27
*** larainema has quit IRC05:34
*** toabctl has joined #openstack-oslo06:04
*** pcaruana has joined #openstack-oslo06:21
*** dims has quit IRC06:54
*** dims has joined #openstack-oslo06:56
*** dims has quit IRC07:01
*** dims has joined #openstack-oslo07:02
*** namnh has joined #openstack-oslo07:05
*** tenobreg has joined #openstack-oslo07:05
*** tellesnobrega has quit IRC07:09
*** tesseract has joined #openstack-oslo07:10
*** shardy has joined #openstack-oslo07:10
openstackgerritwangxiyuan proposed openstack/oslo.limit master: [WIP] Init repo  https://review.openstack.org/55674407:21
*** salv-orlando has quit IRC07:23
*** salv-orlando has joined #openstack-oslo07:24
*** AlexeyAbashkin has joined #openstack-oslo07:26
*** salv-orlando has quit IRC07:28
*** dmellado has joined #openstack-oslo07:32
*** rcernin has quit IRC07:33
*** salv-orlando has joined #openstack-oslo07:37
*** pcaruana has quit IRC07:45
*** pcaruana has joined #openstack-oslo07:46
*** salv-orlando has quit IRC08:00
*** salv-orlando has joined #openstack-oslo08:01
*** salv-orlando has quit IRC08:05
*** lucas-afk is now known as lucasagomes08:11
*** larainema has joined #openstack-oslo08:19
openstackgerritNam Nguyen Hoai proposed openstack/oslo.config master: Handle config mapping changes  https://review.openstack.org/52631408:39
openstackgerritNam Nguyen Hoai proposed openstack/oslo.config master: Handle config mapping changes  https://review.openstack.org/52631408:41
openstackgerritTovin Seven proposed openstack/osprofiler master: [WiP] OSprofiler with OpenTracing compatible  https://review.openstack.org/48001808:52
*** salv-orlando has joined #openstack-oslo08:58
namnhbnemec, dhellmann: I've just update a new patch on [1]. Please take a look at it for me. Thanks [1] https://review.openstack.org/#/c/52631408:58
openstackgerritNam Nguyen Hoai proposed openstack/oslo.config master: Handle config mapping changes  https://review.openstack.org/52631409:09
*** salv-orl_ has joined #openstack-oslo09:43
*** salv-orlando has quit IRC09:47
*** msimonin has joined #openstack-oslo09:53
*** msimonin has quit IRC09:54
*** msimonin has joined #openstack-oslo09:57
*** namnh has quit IRC10:05
*** sambetts|afk is now known as sambetts10:09
*** nicolasbock has joined #openstack-oslo10:57
*** ansmith has quit IRC11:13
*** msimonin1 has joined #openstack-oslo11:13
*** msimonin has quit IRC11:16
*** lucasagomes is now known as lucas-hungry11:35
*** mugsie has quit IRC11:42
*** mugsie has joined #openstack-oslo11:42
*** mugsie has quit IRC11:42
*** mugsie has joined #openstack-oslo11:42
*** Guest4072 has quit IRC12:07
*** yassine has joined #openstack-oslo12:07
*** yassine is now known as Guest5845812:08
*** yamamoto_ has quit IRC12:21
*** raildo has joined #openstack-oslo12:22
*** yamamoto has joined #openstack-oslo12:27
*** lucas-hungry is now known as lucasagomes12:33
*** AlexeyAbashkin has quit IRC12:34
*** rmascena has joined #openstack-oslo12:36
*** AlexeyAbashkin has joined #openstack-oslo12:36
*** edmondsw has joined #openstack-oslo12:38
*** raildo has quit IRC12:38
*** e0ne has quit IRC12:40
*** ansmith has joined #openstack-oslo12:47
*** e0ne has joined #openstack-oslo12:59
*** kgiusti has joined #openstack-oslo13:01
msimonin1kgiusti ansmith we're coming13:05
*** msimonin1 has quit IRC13:05
kgiustimsimonin1: np13:05
*** spilla has joined #openstack-oslo13:09
*** e0ne_ has joined #openstack-oslo13:17
*** tenobreg has left #openstack-oslo13:20
*** e0ne has quit IRC13:20
*** AlexeyAbashkin has quit IRC13:23
*** AlexeyAbashkin has joined #openstack-oslo13:25
*** salv-orl_ has quit IRC13:27
*** AlexeyAbashkin has quit IRC13:52
*** AlexeyAbashkin has joined #openstack-oslo13:57
*** janzian has joined #openstack-oslo14:03
*** nicolasbock has quit IRC14:10
*** bobh has joined #openstack-oslo14:14
*** AlexeyAbashkin has quit IRC14:23
*** AlexeyAbashkin has joined #openstack-oslo14:25
*** moguimar has joined #openstack-oslo14:30
moguimarguys, I have noticed that it is possible to register options after calling the conf like conf(sys.argv[1:])14:31
moguimarand then retrieve the option value right after without another call to the conf14:32
moguimarbut if the option has `required=True`, it doesn't raises RequiredOptError14:33
*** AlexeyAbashkin has quit IRC14:40
*** AlexeyAbashkin has joined #openstack-oslo14:42
stephenfinmoguimar: https://bugs.launchpad.net/oslo.config/+bug/173579014:44
openstackLaunchpad bug 1735790 in oslo.config "Required opts don't raise exceptions" [Undecided,New]14:44
stephenfinLooks like the same issue. Not sure what the resolution will be14:44
*** salv-orlando has joined #openstack-oslo14:51
*** AlexeyAbashkin has quit IRC14:54
*** AlexeyAbashkin has joined #openstack-oslo14:56
*** AlexeyAbashkin has quit IRC15:04
*** yikun_ has quit IRC15:07
*** AlexeyAbashkin has joined #openstack-oslo15:08
*** yikun_ has joined #openstack-oslo15:08
moguimarthanks stephenfin15:12
moguimarthat is the same behavior I'm seeing here15:12
*** yamamoto has quit IRC15:13
*** yamamoto has joined #openstack-oslo15:14
moguimarthe other issue I'm having is when I try to register the same opt twice, the first atempt returns True and the following ones returns False15:16
moguimarbut when the option is an URIOpt I get an Exception instead15:16
moguimarand it doesn't even makes sense15:17
moguimarAttributeError: 'URI' object has no attribute 'value'15:17
*** yamamoto has quit IRC15:19
dhellmannmoguimar : the return value for register_opt() is based on whether the option has been seen before (True means it is new, False means it is not new)15:31
dhellmannI would have to see a traceback for the other issue; that sounds like it might be a bug.15:31
*** yamamoto has joined #openstack-oslo15:34
moguimardhellmann: https://pastebin.com/bD6MK6MC15:41
dhellmannmoguimar : one thing that may not be clear is that we expect each Opt instance to be kept and reused -- some state is stored in that object15:42
dhellmannat least for situations where you expect to re-register the same option15:42
dhellmannthat's what's triggering this error, although it's a bug in the URIOpt I think15:43
dhellmannthe registration code is trying to figure out if two options are the same, and the comparison expects to look at the value of the option, but this option instance doesn't have a value yet15:44
dhellmanneither because it doesn't have a default and it's not set in the config file, or because URIOpt doesn't initialize self.value properly15:44
moguimarit also breaks after loading the confs15:46
moguimarwith the same traceback15:46
dhellmannyeah, so it sounds like an issue with the URIOpt15:46
dhellmannlet me look at that code...15:46
dhellmannoh, interesting, that's a particular thing in the URIType15:48
dhellmannnot just the general Opt15:48
*** janzian has quit IRC15:49
moguimarclass URI(ConfigType)15:49
moguimarit doesn't sets self.value before __call)__()15:50
moguimarit doesn't sets self.value before __call__()*15:50
dhellmannaha15:50
moguimarit should at least initialize it in the __init__15:50
dhellmannOpt._vars_for_cmp is including the type and the type hasn't been initialized yet for that option15:51
dhellmannI'm not sure the type needs to use the value in its comparison15:51
dhellmannthe other types do not15:52
moguimarIn [5]: conf.register_opt(cfg.URIOpt('uri', schemes=["http", "https"]),15:52
moguimar   ...:                              cfg.OptGroup(group_name))15:52
dhellmannand the "type" is "URI" not a specific URL15:52
moguimarOut[5]: True15:52
moguimarIn [6]: conf.register_opt(cfg.URIOpt('uri', schemes=["http", "https"]),15:52
moguimar   ...:                              cfg.OptGroup(group_name))15:52
moguimarOut[6]: False15:52
moguimary15:52
moguimarit stops breaking after setting self.value = None15:52
moguimarin the init15:52
dhellmannI think we want to remove self.value completely from the URIType15:52
dhellmannsorry, URI class15:53
dhellmannthe way it is implemented now makes no sense15:53
dhellmannit's like saying the types of 5 and 10 are different because 5 and 10 are different15:53
dhellmannor that the types of 2 lists with different contents are different, even though they are both lists15:53
moguimaranother weird thing in the same file15:54
moguimarHostAddress extends object15:54
moguimarwhile everyone else extends ConfigType15:54
*** AlexeyAbashkin has quit IRC15:55
dhellmannhmm, that's odd15:55
dhellmannyou could propose a separate patch to fix that15:56
dhellmannI'm looking at the uri thing to make sure changing it won't change any other expected behaviors15:56
dhellmannit doesn't seem so15:56
*** AlexeyAbashkin has joined #openstack-oslo15:56
openstackgerritDoug Hellmann proposed openstack/oslo.config master: ignore URI value when comparing types for equality  https://review.openstack.org/56272415:57
moguimarbut following the other classes15:58
dhellmannmoguimar : can you try this change out and let me know if it fixes your issue ^^15:58
moguimarURI should compare max_length and schemes in the __eq__, not value15:58
dhellmannthe tests pass for me15:58
moguimarsure dhellmann15:58
dhellmannoh, yeah, that's a good point15:58
moguimardhellmann: let me know when you update the patch with max_length and schemes16:00
dhellmannyeah, working on that16:01
dhellmannthose are optional so it's not trivial16:01
*** links has quit IRC16:01
dhellmannalthough I guess it could be16:01
*** nicolasbock has joined #openstack-oslo16:02
moguimarother optional stuff are also checked in the other types16:02
*** pcaruana has quit IRC16:03
*** janzian has joined #openstack-oslo16:04
openstackgerritDoug Hellmann proposed openstack/oslo.config master: fix URI type equality comparison  https://review.openstack.org/56272416:06
dhellmannmoguimar : ^^16:06
dhellmannmoguimar : it's time for lunch, so I'll be back in a little bit16:09
moguimarit is 18:00 here16:10
moguimarBrno-cz16:11
*** AlexeyAbashkin has quit IRC16:11
*** AlexeyAbashkin has joined #openstack-oslo16:14
moguimar1516:35
openstackgerritMoisés Guimarães de Medeiros proposed openstack/oslo.config master: ConfigurationSource base class  https://review.openstack.org/55938916:37
*** lucasagomes is now known as lucas-afk16:40
*** bobh has quit IRC16:54
openstackgerritMoisés Guimarães de Medeiros proposed openstack/oslo.config master: ConfigurationSource base class  https://review.openstack.org/55938916:56
openstackgerritMoisés Guimarães de Medeiros proposed openstack/oslo.config master: Create INI file ConfigurationSourceDriver.  https://review.openstack.org/56274616:56
*** AlexeyAbashkin has quit IRC16:57
*** Guest58458 has quit IRC16:59
*** Guest58458 has joined #openstack-oslo17:03
*** pblaho has quit IRC17:06
*** e0ne has joined #openstack-oslo17:12
*** bobh has joined #openstack-oslo17:13
*** e0ne_ has quit IRC17:15
*** yamamoto has quit IRC17:20
*** shardy has quit IRC17:35
*** sambetts is now known as sambetts|afk17:52
*** e0ne has quit IRC17:54
openstackgerritDoug Hellmann proposed openstack/oslo.config master: fix URI type equality comparison  https://review.openstack.org/56272418:10
*** Guest58458 has quit IRC18:11
*** yamamoto has joined #openstack-oslo18:20
*** yikun__ has joined #openstack-oslo18:25
*** Guest58458 has joined #openstack-oslo18:27
*** yikun_ has quit IRC18:28
*** yamamoto has quit IRC18:30
*** e0ne has joined #openstack-oslo18:47
*** AlexeyAbashkin has joined #openstack-oslo18:49
*** tesseract has quit IRC18:55
*** AlexeyAbashkin has quit IRC18:59
openstackgerritSamuel Pilla proposed openstack/oslo.config master: ConfigurationSource base class  https://review.openstack.org/55938919:48
*** harlowja has joined #openstack-oslo20:03
*** e0ne has quit IRC20:07
*** e0ne has joined #openstack-oslo20:19
*** kgiusti has left #openstack-oslo20:31
*** ansmith has quit IRC20:42
*** e0ne has quit IRC21:10
*** spilla has quit IRC21:19
*** rmascena has quit IRC21:20
*** ansmith has joined #openstack-oslo21:30
*** janzian has quit IRC21:39
*** yamamoto has joined #openstack-oslo21:49
*** bobh has quit IRC22:02
*** rcernin has joined #openstack-oslo22:30
*** edmondsw has quit IRC22:49
*** edmondsw has joined #openstack-oslo22:49
*** edmondsw has quit IRC22:53
*** Guest58458 has quit IRC23:05
*** salv-orlando has quit IRC23:13
*** salv-orlando has joined #openstack-oslo23:13

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