*** openstack has joined #openstack-barbican | 14:13 | |
*** openstack has quit IRC | 14:13 | |
*** openstack has joined #openstack-barbican | 14:16 | |
*** openstack has quit IRC | 14:16 | |
*** openstack has joined #openstack-barbican | 14:21 | |
*** openstack has quit IRC | 14:22 | |
*** openstack has joined #openstack-barbican | 14:23 | |
*** openstack has joined #openstack-barbican | 14:26 | |
*** openstack has quit IRC | 14:26 | |
*** openstack has joined #openstack-barbican | 14:35 | |
*** Stanzi has joined #openstack-barbican | 14:37 | |
*** openstack has joined #openstack-barbican | 15:43 | |
*** darrenmoffat has joined #openstack-barbican | 15:47 | |
*** Stanzi_ has joined #openstack-barbican | 15:48 | |
*** stanzi has quit IRC | 15:52 | |
*** stanzi has joined #openstack-barbican | 15:53 | |
*** stanzi has quit IRC | 15:55 | |
*** stanzi has joined #openstack-barbican | 15:56 | |
*** Kevin_Zheng has quit IRC | 15:56 | |
*** Kevin_Zheng has joined #openstack-barbican | 15:56 | |
openstackgerrit | Kaitlin Farr proposed openstack/barbican: Add reno for release notes management https://review.openstack.org/248918 | 16:00 |
---|---|---|
*** stanzi has quit IRC | 16:06 | |
*** Stanzi_ has quit IRC | 16:07 | |
*** stanzi has joined #openstack-barbican | 16:07 | |
*** Stanzi_ has joined #openstack-barbican | 16:07 | |
openstackgerrit | Fernando Diaz proposed openstack/castellan: Add created property to Managed Objects https://review.openstack.org/238150 | 16:09 |
*** lisaclark1 has quit IRC | 16:09 | |
*** Stanzi_ has quit IRC | 16:15 | |
*** stanzi has quit IRC | 16:15 | |
*** openstackstatus has joined #openstack-barbican | 16:15 | |
*** ChanServ sets mode: +v openstackstatus | 16:15 | |
*** lisaclark1 has joined #openstack-barbican | 16:17 | |
openstackgerrit | Kaitlin Farr proposed openstack/barbican: Add reno for release notes management https://review.openstack.org/248918 | 16:20 |
*** rhagarty has joined #openstack-barbican | 16:27 | |
*** Stanzi has joined #openstack-barbican | 16:30 | |
*** stanzi_ has joined #openstack-barbican | 16:30 | |
*** stanzi_ has quit IRC | 16:35 | |
*** Stanzi has quit IRC | 16:35 | |
*** chlong has joined #openstack-barbican | 16:40 | |
*** Stanzi has joined #openstack-barbican | 16:46 | |
*** Stanzi has quit IRC | 16:51 | |
*** stanzi has joined #openstack-barbican | 17:01 | |
*** Stanzi_ has joined #openstack-barbican | 17:02 | |
*** jaosorior has quit IRC | 17:03 | |
openstackgerrit | Fernando Diaz proposed openstack/castellan: Add created property to Managed Objects https://review.openstack.org/238150 | 17:06 |
*** stanzi has quit IRC | 17:06 | |
*** Stanzi_ has quit IRC | 17:07 | |
elmiko | diazjf: did you work on the castellan.common.config module? | 17:07 |
diazjf | hey elmiko, yeah I added this patch: https://review.openstack.org/#/c/238328/ | 17:10 |
elmiko | diazjf: ok, cool. i'm pretty sure it's causing a bug for downstream consumers =( | 17:13 |
elmiko | i added, https://bugs.launchpad.net/castellan/+bug/1521265 | 17:13 |
openstack | Launchpad bug 1521265 in castellan "Log configuration causes error in applications that have already processed configuration arguments" [Undecided,New] | 17:13 |
elmiko | and an agenda item to talk about it today at the meeting | 17:13 |
elmiko | i think we need to re-assess the log usage in castellan | 17:13 |
diazjf | elmiko, It was just to allow output to stdout, but I want to in the future have logging to file support. I'll take a look at it | 17:14 |
diazjf | thanks for bringing it up | 17:14 |
elmiko | diazjf: unfortunately, i think we need to add it as an option. we can't bake it into the lib. | 17:14 |
elmiko | ideally, consumers of castellan will be configuring their own logging support. the lib should accept that usage, and only provide the option to create logging if the user explicitly asks for it. | 17:15 |
elmiko | also, logging to a file exists as a cli option in oslo.log (--log-file, iirc) | 17:16 |
*** Stanzi has joined #openstack-barbican | 17:17 | |
diazjf | elmiko, I see, so we should have stdout as optional if the user specifies it in the config. | 17:18 |
elmiko | diazjf: well, we should default to however the user decides to configure their logging. but, i could see keeping that configuration function for the purpose of allowing a user to call it if they have no logging support in their apps. | 17:19 |
elmiko | it's just that most openstack services, that might consume castellan, will already have configured their logging. | 17:20 |
*** jorge_munoz has quit IRC | 17:21 | |
diazjf | elmiko gotcha, that sounds like a good idea. Do you have the log_error_test.py | 17:22 |
diazjf | I wanna recreate the error | 17:22 |
*** Stanzi has quit IRC | 17:22 | |
diazjf | and I'll work on a fix, for if the configuration is none then set it to stdout | 17:22 |
elmiko | sure thing, 1sec | 17:23 |
elmiko | diazjf: http://paste.openstack.org/show/480403/ | 17:24 |
elmiko | diazjf: i think any solution should be an optional call instead of occurring during the API call | 17:25 |
elmiko | the reason i added the configuration that occurs currently during the API() call is that those functions are re-entrant safe. | 17:25 |
*** gyee has joined #openstack-barbican | 17:28 | |
*** stanzi has joined #openstack-barbican | 17:33 | |
*** Stanzi_ has joined #openstack-barbican | 17:33 | |
diazjf | elmiko, a quick fix would be http://paste.openstack.org/show/480406/ making it the default if it hasn't been set. Any suggestions for making it an optional call. | 17:35 |
elmiko | diazjf: i don't think that would fix it | 17:37 |
elmiko | as for making it optional, just remove the call from API() | 17:37 |
elmiko | oh, and i added a note to the bug, but the configure_logging call needs to accept a ConfigOpt object instead of using the global cfg.CONF object | 17:37 |
elmiko | the rest of the configuration options in castellan are setup to allow the user to define their own config object, this should follow the same model. just in case the user isn't using the global CONF for their configuration. | 17:38 |
*** stanzi has quit IRC | 17:39 | |
*** Stanzi_ has quit IRC | 17:40 | |
diazjf | elmkio, gotcha I look further into this. I did run python log_error_test.py with the change posted and no errors were returned. thanks for all the details I appreciate it | 17:41 |
elmiko | diazjf: right, because in the patch you posted it will never get called :/ | 17:42 |
elmiko | conf will always be set to something | 17:43 |
diazjf | lol ;) | 17:43 |
elmiko | ;) | 17:43 |
elmiko | honestly, we should discuss more at the meeting today. i'm curious to hear what the group has to say in general about logging for castellan | 17:44 |
diazjf | elmkio, thanks, yeah I'll continue to look at it till then. | 17:44 |
elmiko | i am looking through some other libraries to get a wider view of how this is handled | 17:44 |
elmiko | diazjf: thanks! | 17:44 |
diazjf | no problem | 17:45 |
*** lisaclark1 has quit IRC | 17:45 | |
*** pdesai has joined #openstack-barbican | 17:47 | |
*** lisaclark1 has joined #openstack-barbican | 17:54 | |
*** dimtruck is now known as zz_dimtruck | 17:55 | |
*** kfarr has joined #openstack-barbican | 18:02 | |
*** zz_dimtruck is now known as dimtruck | 18:02 | |
*** Kevin_Zheng has quit IRC | 18:06 | |
*** stanzi has joined #openstack-barbican | 18:06 | |
*** chlong has quit IRC | 18:10 | |
*** stanzi has quit IRC | 18:11 | |
*** silos has quit IRC | 18:16 | |
*** rm_work has quit IRC | 18:17 | |
*** Stanzi has joined #openstack-barbican | 18:22 | |
*** dave-mccowan has quit IRC | 18:22 | |
*** jillysciarilly has quit IRC | 18:22 | |
*** rm_work has joined #openstack-barbican | 18:22 | |
*** reaperhulk has quit IRC | 18:23 | |
*** alee has quit IRC | 18:23 | |
*** chlong has joined #openstack-barbican | 18:26 | |
*** Stanzi has quit IRC | 18:27 | |
*** jillysciarilly has joined #openstack-barbican | 18:28 | |
*** dave-mccowan has joined #openstack-barbican | 18:32 | |
*** stanzi has joined #openstack-barbican | 18:38 | |
*** stanzi has quit IRC | 18:42 | |
*** alee has joined #openstack-barbican | 18:45 | |
*** Stanzi has joined #openstack-barbican | 18:53 | |
*** Stanzi has quit IRC | 18:58 | |
*** jhfeng has joined #openstack-barbican | 19:07 | |
*** jaosorior has joined #openstack-barbican | 19:08 | |
*** stanzi has joined #openstack-barbican | 19:09 | |
*** Stanzi_ has joined #openstack-barbican | 19:09 | |
*** Stanzi_ has quit IRC | 19:14 | |
*** stanzi has quit IRC | 19:14 | |
*** jaosorior has quit IRC | 19:15 | |
*** reaperhulk has joined #openstack-barbican | 19:18 | |
*** xek has quit IRC | 19:21 | |
*** Stanzi_ has joined #openstack-barbican | 19:25 | |
*** stanzi has joined #openstack-barbican | 19:25 | |
*** silos has joined #openstack-barbican | 19:26 | |
*** lisaclark1 has quit IRC | 19:27 | |
*** lisaclark1 has joined #openstack-barbican | 19:28 | |
*** lisaclark2 has joined #openstack-barbican | 19:29 | |
*** lisaclark1 has quit IRC | 19:30 | |
*** Stanzi_ has quit IRC | 19:30 | |
*** stanzi has quit IRC | 19:30 | |
*** lisaclark2 has quit IRC | 19:31 | |
*** lisaclark1 has joined #openstack-barbican | 19:31 | |
*** Stanzi has joined #openstack-barbican | 19:41 | |
*** lisaclark1 has quit IRC | 19:43 | |
*** Stanzi has quit IRC | 19:45 | |
diazjf | elmiko, just updated the bug with some thoughts | 19:50 |
elmiko | diazjf: ack, i'll take a gander | 19:50 |
diazjf | elmiko, coolio | 19:51 |
diazjf | kfarr, I don't think Nate is able to join, do you wanna lead the meeting, if not I'd be happy to do it :) | 19:53 |
elmiko | diazjf: i don't think that patch will completely solve my issues, i'll make a detailed note in the bug | 19:54 |
kfarr | diazjf, I was just thinking that | 19:54 |
diazjf | elmiko, gotcha we'll continue to hack at it | 19:54 |
diazjf | kfarr, I wrote down all the commands for it lol | 19:55 |
kfarr | diazjf nice! | 19:55 |
*** dimtruck is now known as zz_dimtruck | 19:56 | |
*** Stanzi_ has joined #openstack-barbican | 19:56 | |
*** stanzi has joined #openstack-barbican | 19:56 | |
diazjf | Meeting Starting in 2 min | 19:58 |
kfarr | diazjf, you or me? I can do it! | 19:59 |
*** edtubill has joined #openstack-barbican | 19:59 | |
diazjf | kfarr, You can do it if you want if not I gotcha covered | 19:59 |
diazjf | kfarr, you beat me too it :p | 20:00 |
diazjf | lol | 20:00 |
kfarr | meeting starting now in #openstack-meeting-alt ! | 20:00 |
*** Stanzi_ has quit IRC | 20:01 | |
*** stanzi has quit IRC | 20:01 | |
*** lisaclark1 has joined #openstack-barbican | 20:11 | |
*** zz_dimtruck is now known as dimtruck | 20:11 | |
*** stanzi_ has joined #openstack-barbican | 20:12 | |
*** Stanzi has joined #openstack-barbican | 20:12 | |
*** stanzi_ has quit IRC | 20:17 | |
*** Stanzi has quit IRC | 20:17 | |
*** lisaclark1 has quit IRC | 21:05 | |
kfarr | hey diazjf thanks for offering to lead the meeting today! that was very helpful | 21:10 |
*** lisaclark1 has joined #openstack-barbican | 21:10 | |
diazjf | kfarr, no worries anytime! | 21:10 |
*** lisaclark1 has quit IRC | 21:12 | |
diazjf | elmiko, just one comment on https://bugs.launchpad.net/castellan/+bug/1521265 and I'll get a patch up | 21:12 |
openstack | Launchpad bug 1521265 in castellan "Log configuration causes error in applications that have already processed configuration arguments" [Undecided,New] - Assigned to Fernando Diaz (diazjf) | 21:12 |
elmiko | diazjf: k | 21:14 |
*** Stanzi_ has joined #openstack-barbican | 21:15 | |
*** stanzi has joined #openstack-barbican | 21:15 | |
elmiko | diazjf: answered, but i think there are some deeper questions surrounding proper usage of the library. | 21:18 |
diazjf | elmiko, I'll take a look | 21:19 |
diazjf | thanks | 21:19 |
elmiko | np, i'll be around for a little while longer, so if you want to talk it out just give me a ping | 21:19 |
*** Stanzi_ has quit IRC | 21:20 | |
*** stanzi has quit IRC | 21:20 | |
diazjf | elmiko, sure, lets talk a little more about it | 21:20 |
*** Stanzi has joined #openstack-barbican | 21:22 | |
*** stanzi_ has joined #openstack-barbican | 21:22 | |
elmiko | diazjf: cool | 21:23 |
diazjf | elmiko, so in the key_manager I just want enable_logging(configuration=None) so that the user can add a conf or if none is passed then we will use default logging | 21:23 |
diazjf | In config.py we have default values setup which are setup only if no conf is passed | 21:24 |
elmiko | diazjf: i don't think you need to enable logging in the key_manager | 21:25 |
elmiko | imo, i think this patch http://paste.openstack.org/show/480430/ would do the trick | 21:27 |
elmiko | but, it leaves the configure_logging option up to the user | 21:27 |
diazjf | elmiko, so the user will have to import config and then run configure_logging? | 21:28 |
elmiko | diazjf: yea, something like that | 21:28 |
elmiko | and then they could run that configure_logging at an appropriate time in their application | 21:28 |
diazjf | elmiko, sounds good, We will just have to add some good docs | 21:28 |
elmiko | diazjf: yes, +1 | 21:28 |
diazjf | elmiko, awesome I'll add you as a co-author | 21:29 |
elmiko | and really, that should only be used if they have not already configured logging | 21:29 |
elmiko | k | 21:29 |
diazjf | elmiko, or if you already have the patch its cool :) | 21:29 |
elmiko | diazjf: no, go for it! | 21:30 |
*** lisaclark1 has joined #openstack-barbican | 21:31 | |
elmiko | diazjf: this will fix it for now, then we can work on something more robust for the future. i think there is probably a better way we can handle this, for example with some castellan specific configuration options. | 21:32 |
*** stanzi_ has quit IRC | 21:33 | |
*** Stanzi has quit IRC | 21:33 | |
diazjf | elmiko, thats a good idea | 21:34 |
*** kfarr has quit IRC | 21:34 | |
elmiko | diazjf: just thinking here, should we put this function in castellan.options with the stuff to set defaults and list options? | 21:35 |
elmiko | since those are already documented as an entry point into castellan configurations? | 21:36 |
diazjf | elmiko, I think so, better not to have settings everywhere | 21:37 |
elmiko | diazjf: that's kinda what i was thinking too | 21:38 |
diazjf | I created http://paste.openstack.org/show/480435/ | 21:39 |
diazjf | but does not hold changes when called after API | 21:39 |
*** kfarr has joined #openstack-barbican | 21:39 | |
elmiko | diazjf: when did you call enable_logging? | 21:40 |
diazjf | http://paste.openstack.org/show/480436/ | 21:40 |
diazjf | I also added an log.error in the store key function | 21:41 |
elmiko | ok, sounds like you might need to add the log.setup in there, but i would do something like: | 21:41 |
elmiko | def enable_logging(conf=None, appname='castellan') | 21:41 |
elmiko | then just use | 21:41 |
elmiko | log.setup(conf, appname) | 21:42 |
elmiko | so that the application name can be overridden by the end user if necessary | 21:42 |
diazjf | elmiko, alright let me give it a shot | 21:43 |
elmiko | cool | 21:44 |
elmiko | diazjf: you may also need to call cfg.CONF() from your app, to process the configuration options | 21:50 |
elmiko | this is kinda why i think it's a blurring of lines to have the library do some of this work for the user | 21:51 |
diazjf | elmiko, http://paste.openstack.org/show/480438/ is working for me | 21:53 |
diazjf | just can't register_options after API is called so I shouldn't include it | 21:53 |
diazjf | I'm running http://paste.openstack.org/show/480439/ | 21:53 |
diazjf | So I can remove castellan.common.config and add this code to castellan.options | 21:54 |
elmiko | diazjf: if we're gonna contain all the logging stuff in that enable_logging call, i think it would be better to add the log.register_conf in that function and just tell people to run it before calling API() | 21:56 |
elmiko | it seems weird to setup logging inside enable_logging, then require an extra step from the user with regards to the log | 21:56 |
elmiko | like, ideally, you should just have the call to log.register_conf inside enable_logging, then call enable_logging() right before you do cfg.CONF() | 21:57 |
diazjf | elmiko, thats true, a user should know that they are setting up beforehand. | 21:58 |
elmiko | right | 21:59 |
elmiko | and they elect not to do any logging stuff, then they can call this convenience function | 21:59 |
elmiko | otherwise, logging will work however they configure it | 21:59 |
diazjf | elmiko, I'll have a patch up in 15 | 22:03 |
elmiko | diazjf: awesome | 22:04 |
*** notmyname has quit IRC | 22:05 | |
*** notmyname has joined #openstack-barbican | 22:06 | |
*** spotz is now known as spotz_zzz | 22:14 | |
*** spotz_zzz is now known as spotz | 22:19 | |
openstackgerrit | Fernando Diaz proposed openstack/castellan: Allow for default logging configuration to be user enabled https://review.openstack.org/251558 | 22:19 |
diazjf | elmiko ^ | 22:20 |
elmiko | diazjf: ack, taking a look | 22:20 |
diazjf | elmiko, cool lmk and I'll start on the docs | 22:23 |
elmiko | hehe, was just about to comment about the docs | 22:26 |
elmiko | diazjf: ok, added my nits | 22:26 |
diazjf | elmiko, awesome thanks. I'll take a look and add some docs later tonight | 22:27 |
*** silos has left #openstack-barbican | 22:29 | |
elmiko | diazjf: cool | 22:31 |
openstackgerrit | Fernando Diaz proposed openstack/castellan: Allow for default logging configuration to be user enabled https://review.openstack.org/251558 | 22:35 |
*** jhfeng has quit IRC | 22:37 | |
openstackgerrit | Fernando Diaz proposed openstack/castellan: Allow for default logging configuration to be user enabled https://review.openstack.org/251558 | 22:39 |
*** jhfeng has joined #openstack-barbican | 22:47 | |
*** Stanzi has joined #openstack-barbican | 22:51 | |
*** stanzi_ has joined #openstack-barbican | 22:51 | |
*** diazjf has quit IRC | 22:54 | |
*** stanzi_ has quit IRC | 22:56 | |
*** Stanzi has quit IRC | 22:56 | |
*** jhfeng has quit IRC | 22:56 | |
*** kfarr has left #openstack-barbican | 22:56 | |
*** lisaclark1 has quit IRC | 23:02 | |
*** lisaclark1 has joined #openstack-barbican | 23:05 | |
*** Stanzi has joined #openstack-barbican | 23:07 | |
*** spotz is now known as spotz_zzz | 23:08 | |
*** edtubill has quit IRC | 23:09 | |
*** Stanzi has quit IRC | 23:11 | |
*** Stanzi has joined #openstack-barbican | 23:23 | |
*** jmckind has quit IRC | 23:23 | |
*** stanzi_ has joined #openstack-barbican | 23:23 | |
*** lisaclark1 has quit IRC | 23:26 | |
*** spotz_zzz is now known as spotz | 23:26 | |
*** lisaclark1 has joined #openstack-barbican | 23:26 | |
*** stanzi_ has quit IRC | 23:27 | |
*** Stanzi has quit IRC | 23:27 | |
*** lisaclark1 has quit IRC | 23:31 | |
*** pdesai has quit IRC | 23:35 | |
*** barra204 has quit IRC | 23:38 | |
*** shakamunyi has joined #openstack-barbican | 23:38 | |
*** Stanzi has joined #openstack-barbican | 23:38 | |
*** pdesai has joined #openstack-barbican | 23:40 | |
openstackgerrit | Adam Harwell proposed openstack/barbican: Remove consumer check for project_id to match containers https://review.openstack.org/251168 | 23:40 |
rm_work | dave-mccowan: ^^ I think that should work? we'll see when the gate runs | 23:40 |
rm_work | dave-mccowan: your comment "Also, the project id still needs to be saved in the database to support the quota feature." I am not sure if that is a problem | 23:41 |
rm_work | dave-mccowan: it should still save, the line i removed was a duplicate I believe, so seems like I removed it but it should be in there from the constructor | 23:41 |
*** Stanzi has quit IRC | 23:43 | |
*** spotz is now known as spotz_zzz | 23:49 | |
*** dave-mccowan has quit IRC | 23:51 | |
*** dave-mccowan has joined #openstack-barbican | 23:58 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!