Monday, 2017-04-24

*** purplerbot has quit IRC00:34
*** purplerbot has joined #openstack-oslo00:34
*** tovin07 has joined #openstack-oslo00:48
*** zhangguoqing has joined #openstack-oslo00:58
*** ansmith has quit IRC01:05
*** Nakato has quit IRC01:14
*** jamielennox is now known as jamielennox|away01:33
*** yamamoto has quit IRC01:33
*** yamamoto has joined #openstack-oslo01:33
*** amotoki has quit IRC01:36
*** jamielennox|away is now known as jamielennox01:44
*** Nakato has joined #openstack-oslo01:56
*** dimtruck is now known as zz_dimtruck02:02
*** zz_dimtruck is now known as dimtruck02:02
*** yamamoto has quit IRC02:03
*** kiseok7 has joined #openstack-oslo02:05
*** dimtruck is now known as zz_dimtruck02:12
*** nicolasbock has quit IRC02:21
*** yamamoto has joined #openstack-oslo02:28
*** yamamoto has quit IRC02:50
*** yamamoto has joined #openstack-oslo02:53
*** yamamoto has quit IRC03:04
*** salv-orlando has joined #openstack-oslo03:07
*** salv-orlando has quit IRC03:12
*** tovin07_ has joined #openstack-oslo03:27
*** dave-mccowan has quit IRC03:37
*** shyama has joined #openstack-oslo03:51
*** Dinesh_Bhor has joined #openstack-oslo04:06
*** yamamoto has joined #openstack-oslo04:07
*** salv-orlando has joined #openstack-oslo04:08
*** salv-orlando has quit IRC04:13
*** oomichi has quit IRC04:46
*** salv-orlando has joined #openstack-oslo04:57
*** gcb has joined #openstack-oslo05:13
*** shyama has quit IRC06:03
*** shyama has joined #openstack-oslo06:03
*** Dinesh_Bhor has quit IRC06:13
*** Dinesh_Bhor has joined #openstack-oslo06:27
*** shardy has joined #openstack-oslo06:42
*** salv-orlando has quit IRC06:50
*** syjulian has quit IRC07:23
*** pcaruana has joined #openstack-oslo07:24
*** syjulian has joined #openstack-oslo07:24
*** lpetrut has joined #openstack-oslo07:26
*** shardy has quit IRC07:28
*** jaosorior has joined #openstack-oslo07:33
*** shardy has joined #openstack-oslo07:40
*** rcernin has joined #openstack-oslo07:43
*** lpetrut has quit IRC07:43
*** d0ugal has joined #openstack-oslo07:50
*** d0ugal has quit IRC07:50
*** d0ugal has joined #openstack-oslo07:50
*** salv-orlando has joined #openstack-oslo07:58
*** zzzeek has quit IRC08:00
*** zzzeek has joined #openstack-oslo08:00
*** lpetrut has joined #openstack-oslo08:12
*** amotoki has joined #openstack-oslo08:18
*** oanson has quit IRC08:23
*** rcernin has quit IRC08:23
*** oanson has joined #openstack-oslo08:24
*** yassine has joined #openstack-oslo08:25
*** yassine is now known as Guest5576208:25
*** e0ne has joined #openstack-oslo08:26
*** cdent has joined #openstack-oslo08:35
*** lpetrut has quit IRC09:24
*** pooja_jadhav has joined #openstack-oslo09:41
*** Guest55762 has quit IRC09:45
*** sambetts|afk is now known as sambetts09:47
*** salv-orl_ has joined #openstack-oslo09:49
*** salv-orlando has quit IRC09:52
*** Guest55762 has joined #openstack-oslo10:02
*** nicolasbock has joined #openstack-oslo10:06
*** tovin07_ has quit IRC10:18
*** Guest55762 has quit IRC10:25
*** oanson has quit IRC10:37
*** oanson has joined #openstack-oslo10:37
*** sdague has joined #openstack-oslo10:38
*** lucasagomes is now known as lucas-hungry11:06
*** dave-mccowan has joined #openstack-oslo11:09
*** salv-orl_ has quit IRC11:15
*** oanson has quit IRC11:28
*** oanson has joined #openstack-oslo11:29
*** Guest70675 is now known as rook11:33
*** gordc has joined #openstack-oslo11:33
openstackgerritChangBo Guo(gcb) proposed openstack/oslo.tools master: Add Oslo review dashboard config files  https://review.openstack.org/45924711:36
*** lpetrut has joined #openstack-oslo11:38
*** lpetrut_ has joined #openstack-oslo11:48
*** nkrinner has joined #openstack-oslo11:59
*** salv-orlando has joined #openstack-oslo12:00
*** lpetrut_ has quit IRC12:01
*** lpetrut_ has joined #openstack-oslo12:03
*** lpetrut_ has quit IRC12:03
*** lpetrut_ has joined #openstack-oslo12:03
*** nkrinner has quit IRC12:07
*** yassine has joined #openstack-oslo12:09
*** yassine is now known as Guest3189012:09
*** lucas-hungry is now known as lucasagomes12:11
*** lpetrut_ has quit IRC12:19
*** lpetrut_ has joined #openstack-oslo12:19
*** ansmith has joined #openstack-oslo12:31
*** salv-orlando has quit IRC12:47
*** cdent has quit IRC12:47
*** kgiusti has joined #openstack-oslo12:48
*** cdent has joined #openstack-oslo12:53
*** lpetrut_ has quit IRC12:54
*** lpetrut has quit IRC12:57
*** boden has joined #openstack-oslo12:58
*** ihrachys has joined #openstack-oslo13:02
*** jerrygb has joined #openstack-oslo13:02
openstackgerritChangBo Guo(gcb) proposed openstack/mox3 master: Python 3.5 is added  https://review.openstack.org/44247713:07
openstackgerritChangBo Guo(gcb) proposed openstack/oslo.tools master: Add Oslo review dashboard config files  https://review.openstack.org/45924713:24
*** amotoki has quit IRC13:27
*** lpetrut has joined #openstack-oslo13:28
*** lpetrut has quit IRC13:34
openstackgerritAndy Smith proposed openstack/oslo.messaging master: Add get_rpc_transport call  https://review.openstack.org/45419413:37
*** hongbin has joined #openstack-oslo13:41
*** d0ugal_ has joined #openstack-oslo13:46
*** superdan is now known as dansmith13:47
*** d0ugal has quit IRC13:48
gcbweekly meeting in 5 minutes at #openstack-meeting-313:54
*** d0ugal_ has quit IRC13:55
*** eck`gone is now known as eck`13:58
*** d0ugal has joined #openstack-oslo13:59
*** d0ugal has quit IRC14:01
*** zz_dimtruck is now known as dimtruck14:15
*** beekneemech is now known as bnemec14:20
*** amotoki has joined #openstack-oslo14:28
*** d0ugal has joined #openstack-oslo14:32
*** amotoki has quit IRC14:33
*** zhangguoqing has quit IRC14:34
*** lpetrut has joined #openstack-oslo14:35
*** yamahata_ has joined #openstack-oslo14:43
*** lpetrut has quit IRC14:57
*** salv-orlando has joined #openstack-oslo15:02
openstackgerritChangBo Guo(gcb) proposed openstack/oslo.cache master: Remove unused/duplicated logging import  https://review.openstack.org/43527115:18
*** david-lyle has joined #openstack-oslo15:29
*** gcb has quit IRC15:37
openstackgerritDoug Hellmann proposed openstack/oslo.log master: add the line number to log messages  https://review.openstack.org/45935215:41
*** salv-orl_ has joined #openstack-oslo15:49
*** shyama has quit IRC15:51
*** shyama has joined #openstack-oslo15:51
*** salv-orlando has quit IRC15:52
*** amotoki has joined #openstack-oslo15:56
*** e0ne has quit IRC16:11
*** jerrygb has quit IRC16:16
*** Guest31890 has quit IRC16:21
*** lucasagomes is now known as lucas-afk16:24
*** efried has quit IRC16:25
*** salv-orl_ has quit IRC16:26
openstackgerritMerged openstack/mox3 master: Python 3.5 is added  https://review.openstack.org/44247716:30
*** jerrygb has joined #openstack-oslo16:33
*** jaosorior is now known as jaosorior_away16:59
*** ansmith has quit IRC17:04
*** shyama has quit IRC17:05
*** e0ne has joined #openstack-oslo17:13
*** shyama has joined #openstack-oslo17:14
*** ihrachys has quit IRC17:15
*** jdandrea has quit IRC17:16
*** ihrachys has joined #openstack-oslo17:17
*** ansmith has joined #openstack-oslo17:19
*** yamahata_ has quit IRC17:20
*** ihrachys_ has joined #openstack-oslo17:26
*** ihrachys has quit IRC17:27
*** salv-orlando has joined #openstack-oslo17:38
*** cdent has quit IRC17:52
*** amotoki has quit IRC17:54
openstackgerritDoug Hellmann proposed openstack/oslo.log master: add the line number to log messages  https://review.openstack.org/45935217:55
*** yamahata_ has joined #openstack-oslo17:56
*** jdandrea has joined #openstack-oslo18:07
*** ansmith has quit IRC18:08
*** ansmith has joined #openstack-oslo18:19
*** cdent has joined #openstack-oslo18:39
openstackgerritDoug Hellmann proposed openstack/oslo.log master: add the line number to log messages  https://review.openstack.org/45935218:42
openstackgerritDoug Hellmann proposed openstack/oslo.log master: add exception summaries to the main log line  https://review.openstack.org/45942418:42
openstackgerritDoug Hellmann proposed openstack/oslo.log master: add exception summaries to the main log line  https://review.openstack.org/45942418:44
openstackgerritDoug Hellmann proposed openstack/oslo.log master: add the line number to log messages  https://review.openstack.org/45942618:44
*** salv-orlando has quit IRC18:45
openstackgerritDoug Hellmann proposed openstack/oslo.log master: add exception summaries to the main log line  https://review.openstack.org/45942418:47
*** e0ne has quit IRC19:05
*** e0ne has joined #openstack-oslo19:05
*** e0ne has quit IRC19:10
openstackgerritDoug Hellmann proposed openstack/oslo.log master: add exception summaries to the main log line  https://review.openstack.org/45942419:10
*** shyama has quit IRC19:23
*** shardy has quit IRC19:33
*** shardy has joined #openstack-oslo19:34
*** dimtruck is now known as zz_dimtruck19:35
*** salv-orlando has joined #openstack-oslo19:35
*** shardy has quit IRC19:39
*** jerrygb has quit IRC19:42
*** cdent has quit IRC19:52
*** sambetts is now known as sambetts|afk20:01
*** pcaruana has quit IRC20:01
*** harlowja has quit IRC20:03
*** ihrachys_ is now known as ihrachys20:08
*** jamielennox is now known as jamielennox|away20:13
*** jerrygb has joined #openstack-oslo20:17
*** jamielennox|away is now known as jamielennox20:20
*** jerrygb has quit IRC20:21
*** zz_dimtruck is now known as dimtruck20:31
*** ansmith has quit IRC20:53
*** harlowja has joined #openstack-oslo20:59
*** efried has joined #openstack-oslo21:06
efriedHowdy folks.  (dhellmann bnemec sfinucan mtreinish) Looking for a little help on config opt deprecation.  I want to do something wicked clever (read: possibly overcomplicated).21:12
dhellmanndo tell21:13
efriedSo I'm working on implementing https://blueprints.launchpad.net/nova/+spec/use-service-catalog-for-endpoints21:14
efriedThe idea will be for certain conf-group-specific opts, like [glance]api_servers and [ironic]api_endpoint, to be deprecated21:14
efriedAnd in their place, each of the affected conf groups will instead get service_type and service_interface options.21:14
dhellmannok21:15
efriedSo I want to a) define those two opts in a common place where I can incorporate them into the affected conf groups.21:15
efriedKind of like keystone lets you do for auth opts.21:15
dhellmannyep21:15
efriedAnd then I also want to provide a similar one-stop shop for those opts in those individual groups to pull in deprecation kwargs.21:16
efriedI've got a start on it...21:16
efriedhttps://review.openstack.org/#/c/458257/3/nova/conf/endpoint.py21:16
dhellmann"to pull in deprecation kwargs"?21:16
efriedYeah, check out ^^21:16
dhellmannI see21:16
efriedand example of how it's used https://review.openstack.org/#/c/458257/3/nova/conf/ironic.py@4021:17
efriedSooo.. this is _almost_ working the way I want it.21:17
*** eck` is now known as eck`gone21:17
efriedExcept that it's printing the warning the wrong way around.21:17
efriedOption "service_type" from group "ironic" is deprecated. Use option "api_endpoint" from group "ironic".21:17
efriedThat's when I remove the deprecated_for_removal, btw21:18
dhellmannI think the deprecated_name is meant to be the old name of the option for a rename21:18
dhellmannin this case you're not really renaming21:18
dhellmannyou're removing one option and adding 2 others with different types of values21:18
efriedWell, no, but the message still applies.21:18
efriedOkay, so that's fair enough; I think what I really want to do is:21:18
bnemecYeah, deprecated_name is supposed to be the old name, which you set on the new opt.21:18
dhellmannI think you want to leave deprecated_name out and just add the information about which new options to be set in the deprecated_reason description21:19
efriedIf you have the deprecated opt in your config (but not if you don't) I want to emit a message that says, "[glance]api_servers is deprecated.  Use [glance]service_type and/or [glance]service_interface instead.  Or, ya know, just leave 'em blank and we'll figure it out."21:19
*** dimtruck is now known as zz_dimtruck21:19
*** zz_dimtruck is now known as dimtruck21:19
efriedOkay, so do I still want deprecated_for_removal=True?21:20
dhellmannyeah, I think so21:20
dhellmannyour application code will have to look at the old option value to see if it's set21:20
dhellmannI would expect that access to trigger the log message, but you'll want to try that21:21
bnemecYeah, except I think deprecated_for_removal will just log that the opt is being removed, not what you should use instead.21:21
efriedWhat I observed was that, with deprecated_for_removal=True, it emitted the (generic) warning regardless of whether the option was specified.21:21
dhellmannbnemec : you're right, I found where it does that21:21
dhellmannit doesn't mention the reason there21:22
efriedHow 'bout this: is there a way I can try this stuff out in a nice isolated environment?  Little script plus conf file?21:22
dhellmannoh, so it emits the warning even if the value isn't defined in the file?21:22
efrieddhellmann That's what I observed, yes.21:22
bnemecAre the existing names consistent?  Maybe you could just add deprecated_name='api_endpoint' to the service_type opt definition.21:22
dhellmannsure, just write a little script that sets up cfg.CONF with some options21:22
efriedbnemec Different for every conf group ;-)21:23
efriedThe new ones are the same for every conf group, which is kinda the point (no pun intended)21:23
dhellmannthat's ok, just instantiate different Opt instances for each group21:23
efriedRight, can't reuse the same ones, figured that out.21:23
dhellmannalthough doing that is going to make it more complicated for you to tell if the value is set using the old name or the new name21:23
dhellmannso I'm not sure you do want to do that21:23
bnemecI believe it will default the deprecated_group to whatever the group where the opt is registered, so it will handle different groups fine.21:24
efrieddhellmann Well, the formats of the values are also totally different.21:24
efriedbnemec Yeah, that's what I've observed.21:24
dhellmannI feel like this has come up before and we said something this complex was application-level logic, but since it has come up more than once maybe we want to extend Opt to handle the case21:24
bnemecHmm, except deprecated_name doesn't take a list.21:24
efriedbnemec Does deprecated_name get validated as being a real conf option somewhere?  Or can I pass in an arbitrary string ("service_type and service_interface")?21:25
efried'cept again, that's the wrong way around, gr.21:25
bnemecefried: No, it doesn't get validated, but you can't use an arbitrary string either.21:25
dhellmannif the value is not present under the new name, the deprecated_name is used as a lookup21:25
bnemecYou have to use the actual name of the old opt or it won't detect if the deprecated opt was used.21:26
dhellmannright21:26
efriedGotcha.  "Validated" in a broader sense.21:26
bnemecI wonder if deprecated_opts could be used.  That does take a list.21:26
efriedRight, that's where I was looking.21:26
efriedBut the docs I found were kinda light as to how that guy actually works.21:27
dhellmannbnemec : I think most of that deprecation stuff expects a 1:1 rename21:27
dhellmannwhich is not really what's going on here, iiuc21:28
dhellmannI think deprecated_opts is mostly for the sample generator, isn't it?21:28
dhellmannis it used for lookups, too?21:28
dhellmannoh, yeah, it is21:29
bnemecMmm, yeah it doesn't look like that has any way to default it to the new opt's group like deprecated_name does.21:29
dhellmannbut you don't need a list21:29
dhellmannyou want to look at the old value and see if it's set. if it is, emit the warning and use it. if not, look for the 2 new values.21:29
dhellmannso there's only 1 deprecated thing21:30
efriedSometimes there's more than one "old value" ;-)21:30
dhellmannyeah. this is application-level logic.21:30
efriedYeah, I'm definitely going to be doing app-level logic as well.21:30
efriedI was just hoping for cfg-level logic to emit the warnings in a helpful way.21:30
bnemecYeah, I was just looking for a way to enumerate the old names in the new opt so it could automatically handle that.21:30
dhellmannif you figure out a way to abstract it, we might be able to put a helper function into oslo.config21:30
efriedOkay, so I'd like to write a mini-script to play with this.  But I've only ever used oslo.config from the context of openstack drivers that already set it up, so I don't actually know how to get the whole thing bootstrapped (e.g. pass in the file path).  Is there a sample somewhere?21:31
bnemecMy thought was to have them all point at the new service_type opt, which could then have something in its description that explains you might need to set service_interface too.21:31
efriedbnemec Yeah, that would work for me.21:31
efried"related options" in the help seems to be a thing.21:31
dhellmannefried : the docs should have some example scripts https://docs.openstack.org/developer/oslo.config/cfg.html21:32
efrieddhellmann bnemec Thanks guys, will play.21:35
*** salv-orl_ has joined #openstack-oslo21:49
*** boden has quit IRC21:51
*** salv-orlando has quit IRC21:51
*** efried has quit IRC21:59
*** gordc has quit IRC22:09
*** eck`gone is now known as eck`22:16
*** sdague has quit IRC23:03
*** dimtruck is now known as zz_dimtruck23:10
*** salv-orl_ has quit IRC23:10
*** dave-mccowan has quit IRC23:30
*** ansmith has joined #openstack-oslo23:31
*** zz_dimtruck is now known as dimtruck23:36

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