Thursday, 2014-06-19

*** rmoe has quit IRC00:07
*** richm has left #openstack-dns00:08
*** matsuhashi has joined #openstack-dns00:20
*** rmoe has joined #openstack-dns00:25
*** betsy has quit IRC00:36
*** CaptTofu_ has quit IRC00:36
*** CaptTofu_ has joined #openstack-dns00:37
*** CaptTofu_ has quit IRC00:41
*** nosnos has joined #openstack-dns00:43
*** msisk has joined #openstack-dns00:47
*** vinod1 has joined #openstack-dns00:49
*** m1crofarmer has quit IRC01:00
*** msisk has quit IRC01:01
*** rossk has quit IRC01:02
*** msisk has joined #openstack-dns01:03
*** yidclare has quit IRC01:05
*** CaptTofu_ has joined #openstack-dns01:08
*** vinod1 has quit IRC01:23
*** dtx00ff__ has quit IRC01:30
*** dtx00ff has joined #openstack-dns01:36
*** JensOfSweden has joined #openstack-dns01:44
*** msisk has quit IRC01:49
*** CaptTofu_ has quit IRC01:50
*** CaptTofu_ has joined #openstack-dns01:50
*** vinod1 has joined #openstack-dns01:52
*** CaptTofu_ has quit IRC01:55
*** matsuhashi has quit IRC02:07
*** matsuhashi has joined #openstack-dns02:08
*** matsuhashi has quit IRC02:08
*** matsuhashi has joined #openstack-dns02:08
*** ytwu has quit IRC02:14
*** ytwu has joined #openstack-dns02:15
*** CaptTofu_ has joined #openstack-dns02:29
*** ytwu has quit IRC02:31
*** ytwu has joined #openstack-dns02:32
*** vinod1 has quit IRC02:51
*** eankutse1 has quit IRC02:53
*** nkinder_ has quit IRC02:58
*** nkinder_ has joined #openstack-dns02:59
*** CaptTofu_ has quit IRC03:28
*** CaptTofu_ has joined #openstack-dns03:29
*** CaptTofu_ has quit IRC03:33
*** matsuhashi has quit IRC03:38
*** matsuhashi has joined #openstack-dns03:39
*** yidclare has joined #openstack-dns03:41
*** matsuhashi has quit IRC03:45
*** matsuhashi has joined #openstack-dns03:45
*** matsuhashi has quit IRC03:46
*** yidclare has quit IRC03:52
*** dtx00ff has quit IRC03:54
*** serverascode has quit IRC03:59
*** simonmcc has quit IRC04:00
*** simonmcc has joined #openstack-dns04:01
*** serverascode has joined #openstack-dns04:02
*** nosnos has quit IRC04:02
*** matsuhashi has joined #openstack-dns04:37
*** nosnos has joined #openstack-dns04:43
*** matsuhashi has quit IRC04:56
*** matsuhashi has joined #openstack-dns04:57
*** dtx00ff has joined #openstack-dns05:03
*** CaptTofu_ has joined #openstack-dns05:17
*** CaptTofu_ has quit IRC05:21
*** m1crofarmer has joined #openstack-dns06:17
*** rjrjr has quit IRC06:25
*** seventy3 has quit IRC06:37
*** dtx00ff has quit IRC06:38
*** seventy3_away has joined #openstack-dns06:40
*** seventy3_away is now known as seventy306:40
*** m1crofarmer has quit IRC06:44
*** CaptTofu_ has joined #openstack-dns07:05
*** CaptTofu_ has quit IRC07:10
*** ajc_ has joined #openstack-dns07:18
*** baffle_ has joined #openstack-dns07:24
*** JoeHazzers has quit IRC07:27
*** baffle has quit IRC07:27
*** JoeHazzers has joined #openstack-dns07:28
*** dtx00ff has joined #openstack-dns07:28
*** nosnos has quit IRC08:44
*** nosnos has joined #openstack-dns08:46
*** dtx00ff has quit IRC08:48
*** dtx00ff has joined #openstack-dns08:51
*** dtx00ff has quit IRC08:52
*** CaptTofu_ has joined #openstack-dns08:53
*** CaptTofu_ has quit IRC08:58
*** openstackgerrit has quit IRC09:14
*** nosnos has quit IRC09:40
*** matsuhashi has quit IRC09:44
*** matsuhashi has joined #openstack-dns09:44
*** matsuhashi has quit IRC09:46
*** matsuhashi has joined #openstack-dns09:47
*** amarao has joined #openstack-dns10:33
*** CaptTofu_ has joined #openstack-dns10:36
*** matsuhashi has quit IRC11:00
*** matsuhashi has joined #openstack-dns11:01
*** matsuhashi has quit IRC11:05
*** matsuhashi has joined #openstack-dns11:16
*** CaptTofu_ has quit IRC11:22
*** CaptTofu_ has joined #openstack-dns11:23
*** CaptTofu_ has quit IRC11:27
*** dtx00ff has joined #openstack-dns11:39
*** dtx00ff has quit IRC11:43
*** ajc_ has quit IRC11:50
*** ajc_ has joined #openstack-dns11:50
*** ajc_ has quit IRC11:55
*** mwagner_lap has quit IRC12:10
*** matsuhashi has quit IRC12:13
*** matsuhashi has joined #openstack-dns12:14
*** matsuhas_ has joined #openstack-dns12:18
*** matsuhashi has quit IRC12:18
*** CaptTofu_ has joined #openstack-dns12:29
*** CaptTofu_ has quit IRC12:33
*** seventy3 has quit IRC12:40
*** seventy3_away has joined #openstack-dns12:43
*** seventy3_away is now known as seventy312:44
*** CaptTofu_ has joined #openstack-dns12:53
*** jaycaz has joined #openstack-dns13:02
*** vinod1 has joined #openstack-dns13:04
*** vinod1 has quit IRC13:15
*** richm has joined #openstack-dns13:20
*** tsimmons has joined #openstack-dns13:32
*** msisk has joined #openstack-dns13:37
*** amarao has quit IRC13:44
*** sballe has joined #openstack-dns13:47
tsimmonsKiall: about?14:00
ekarlsotsimmons: anything I can help with ?14:02
ekarlsooffload the poor dude a bit ;)14:02
tsimmonsekarlso: Sure!14:02
tsimmonsLooking at https://review.openstack.org/#/c/100361/2/designate/api/v2/controllers/root.py14:03
tsimmonsI'm trying to figure out how to "walk that path and attach the controller to the right place" generically given the right path from a static method in the extension controllers. I'm not 100% sure but it seems that the API path is determined by the variable names in the root controller, so how can we make that up no the fly for a bunch of different extensions?14:05
ekarlsotsimmons: good q really, I think i'll let you talk to him instead ;)14:08
tsimmonshah. I did actually have a question for you yesterday.14:08
ekarlsofire away :)14:09
tsimmonsFor the oslo.db change. https://review.openstack.org/#/c/98122/ Is it just a style thing changing databse_connection to connection, or is it a convention for oslo.db?14:09
ekarlsoit's what other projects are moving to I think and what o.db has :)14:10
ekarlsoI don't think there was projects besides us using database_connection but rather connection / sql_connection14:10
tsimmonsAlright, that's cool, might as well keep it consistent.14:13
ekarlso:)14:14
*** vinod1 has joined #openstack-dns14:17
*** matsuhas_ has quit IRC14:17
*** vinod1 has quit IRC14:18
*** vinod1 has joined #openstack-dns14:18
*** mwagner_lap has joined #openstack-dns14:19
*** matsuhashi has joined #openstack-dns14:23
*** yidclare has joined #openstack-dns14:23
*** ytwu has quit IRC14:25
*** ytwu has joined #openstack-dns14:25
*** yidclare has quit IRC14:26
*** crc32 has joined #openstack-dns14:30
*** matsuhashi has quit IRC14:33
*** matsuhashi has joined #openstack-dns14:33
*** jmcbride has joined #openstack-dns14:35
*** crc32 has quit IRC14:36
*** jmcbride has quit IRC14:36
*** jmcbride has joined #openstack-dns14:37
*** crc32 has joined #openstack-dns14:37
*** matsuhashi has quit IRC14:38
*** matsuhashi has joined #openstack-dns14:40
Kialltsimmons: sorry, been meaning to reply to your Q all day.. Distractions keep coming my way ;)14:48
tsimmonsKiall: Whenever it's convenient for you, I understand you're busy :)14:49
KiallBasically, I think if we add a __init__ method (possibly __new__, if __init__ is too late), we can iterate the list of plugins, calling a static method for each which would return a "path" like "zones.bla"14:50
KiallThen, you you split the path on "."14:50
KiallThen - take the 0 -> N-1 items, lets say they are ["zones", "recordsets", "bla"]14:52
*** eankutse has joined #openstack-dns14:52
Kiallyou would do a controller = getattr(getattr(self, "zones"), "recordsets")14:52
Kiallcontroller.bla = BlaController()14:53
Kiallthat way - the plugins can be attached almost anywhere in the API tree etc14:53
KiallNot sure if that's really much clearer TBH ;)14:53
tsimmonsI'm getting there. I was experimenting a little bit. I did zones.blacklists = blacklists.BlacklistsController. I could interact with /zones/blacklists but not /zones/id/blacklists.14:54
KiallThat's due to the structure of the blacklists controller, rather than the way it was attached :)14:54
tsimmonsAh, ok.14:55
Kiallhttps://github.com/stackforge/designate/blob/master/designate/api/v2/controllers/blacklists.py#L3814:55
Kiallif that line was changed to ..14:55
Kialldef get_one(self, zone_id, blacklist_id):14:55
Kiallthen /zones/<id>/blacklists would work14:55
tsimmonsDerp. ok that mkaes sense.14:55
KiallPecan infers a chunk of stuff based on how the objects are attached, what the methods are called, and what the methods arguments are called14:56
Kiallactually.. for that URL, it's the method on L4914:56
KiallIt'd need to be changed to14:56
Kialldef get_all(self, zone_id, **params):14:56
Kialle.g. here's the recordsets controller: https://github.com/stackforge/designate/blob/master/designate/api/v2/controllers/recordsets.py#L5314:56
tsimmonsYeah that makes sense.14:57
tsimmonsSo for this bit "controller = getattr(getattr(self, "zones"), "recordsets") " how would you do this generically? So some might be ["zones", "recordsets", "bla"] but others might just be ["bla"]. How can you do controller.bla when "bla" could be anything?14:58
*** jaycaz has quit IRC15:00
*** vinod1 has quit IRC15:01
*** jmcbride has quit IRC15:02
Kialltsimmons: So, if there's only 1 path element, the controller = self (considering this in the RootController's __init__ method)15:03
*** vinod1 has joined #openstack-dns15:03
tsimmonsRight, that makes sense. I guess would that be done manually in each extension controller's __init__ or __new__?15:04
Kiallcontroller = self15:04
Kiallfor p in path.split('.')[:-1]:15:04
Kiall    controller = getattr(controller, p)15:04
Kiallsetattr(controller, 'bla', BlaController())15:04
Kiall(that'll blow up in a few different ways, like when a path segment doesn't exist)15:05
KiallBut the idea should be there15:05
*** matsuhashi has quit IRC15:07
tsimmonsOk, so we'll do that for each enabled extension in the root controller. I think I'm there.15:07
*** matsuhashi has joined #openstack-dns15:07
tsimmonsThanks Kiall :)15:09
KiallNo problem :)15:09
*** matsuhashi has quit IRC15:11
*** crc32 has quit IRC15:12
*** vinod1 has quit IRC15:17
*** vinod1 has joined #openstack-dns15:17
*** jaycaz has joined #openstack-dns15:18
*** betsy has joined #openstack-dns15:21
*** jmcbride has joined #openstack-dns15:30
*** jmcbride1 has joined #openstack-dns15:32
*** jmcbride has quit IRC15:34
*** jmcbride1 has quit IRC16:01
*** jmcbride has joined #openstack-dns16:11
*** vinod2 has joined #openstack-dns16:12
*** vinod1 has quit IRC16:13
*** rmoe has quit IRC16:23
*** rmoe has joined #openstack-dns16:40
*** jmcbride has quit IRC16:40
*** jmcbride has joined #openstack-dns16:43
Kialljmcbride / vinod / betsy / richm / rjrjr: Okay - Looks like we can get space in Seattle for a mid-cycle17:06
Kiallcomes down to logistics now :)17:07
betsyCool. Now hopefully we get approved for the trip. :)17:07
ekarlsoKiall: could the extensions add in at different places also ?17:14
ekarlsoaka a extension could be at /zones/<id>/blahext17:14
ekarlsovs /zones/<id>/records/<id>/fooext ?17:14
*** richm has quit IRC17:15
*** crc32 has joined #openstack-dns17:15
KiallYep - ekarlso they can be (or will be, once tsimmons is finished with the changes I suggested) :)17:16
*** richm has joined #openstack-dns17:32
*** yidclare has joined #openstack-dns17:34
*** richm has quit IRC17:36
*** richm has joined #openstack-dns17:38
*** jmcbride has quit IRC17:39
*** crc32 has quit IRC18:08
*** ytwu has quit IRC18:08
*** sballe has quit IRC18:08
*** yidclare has quit IRC18:08
*** vinod2 has quit IRC18:08
*** seventy3 has quit IRC18:08
*** retr0h has quit IRC18:08
*** briancline has quit IRC18:08
*** betsy has quit IRC18:08
*** simonmcc has quit IRC18:08
*** mgagne has quit IRC18:08
*** fouxm has quit IRC18:08
*** zigo has quit IRC18:08
*** shufflebot has quit IRC18:08
*** yidclare has joined #openstack-dns18:10
*** crc32 has joined #openstack-dns18:10
*** vinod2 has joined #openstack-dns18:10
*** betsy has joined #openstack-dns18:10
*** ytwu has joined #openstack-dns18:10
*** sballe has joined #openstack-dns18:10
*** seventy3 has joined #openstack-dns18:10
*** simonmcc has joined #openstack-dns18:10
*** retr0h has joined #openstack-dns18:10
*** mgagne has joined #openstack-dns18:10
*** briancline has joined #openstack-dns18:10
*** zigo has joined #openstack-dns18:10
*** fouxm has joined #openstack-dns18:10
*** shufflebot has joined #openstack-dns18:10
*** jmcbride has joined #openstack-dns18:14
*** crc32 has quit IRC18:14
*** ytwu has quit IRC18:14
*** sballe has quit IRC18:14
*** yidclare has quit IRC18:14
*** vinod2 has quit IRC18:14
*** seventy3 has quit IRC18:14
*** retr0h has quit IRC18:14
*** briancline has quit IRC18:14
*** betsy has quit IRC18:14
*** simonmcc has quit IRC18:14
*** mgagne has quit IRC18:14
*** fouxm has quit IRC18:14
*** zigo has quit IRC18:14
*** shufflebot has quit IRC18:14
*** yidclare has joined #openstack-dns18:16
*** crc32 has joined #openstack-dns18:16
*** vinod2 has joined #openstack-dns18:16
*** betsy has joined #openstack-dns18:16
*** ytwu has joined #openstack-dns18:16
*** sballe has joined #openstack-dns18:16
*** seventy3 has joined #openstack-dns18:16
*** simonmcc has joined #openstack-dns18:16
*** retr0h has joined #openstack-dns18:16
*** mgagne has joined #openstack-dns18:16
*** briancline has joined #openstack-dns18:16
*** zigo has joined #openstack-dns18:16
*** fouxm has joined #openstack-dns18:16
*** shufflebot has joined #openstack-dns18:16
tsimmonsKiall: The only piece I'm missing is how to get at BlaController() in our example. Do you access that via entry points?18:20
Kialltsimmons: In https://review.openstack.org/#/c/100361/2/designate/api/v2/controllers/extension.py18:24
Kialle.obj should be the instantiated class18:25
Kiall(with invoke_on_load=False, it would be the class, and you would need to e.obj() to get an instance)18:25
*** rjrjr has joined #openstack-dns18:29
*** sballe has quit IRC18:33
tsimmonsEverything should work....but I still get a 404 at v2/quotas18:36
*** yidclare has quit IRC18:50
*** vinod2 has quit IRC18:50
tsimmons....well that's because there isn't a get_all in the thing that I wrote. Dumbbbb. Ok we're good.18:52
Kialllol18:52
Kiall:)18:52
tsimmonsShould have just stepped away for a second and I would have realized that.18:53
*** dtx00ff has joined #openstack-dns18:56
*** ekarlso has quit IRC19:01
*** ekarlso has joined #openstack-dns19:04
*** vinod1 has joined #openstack-dns19:29
*** jmcbride has quit IRC19:31
*** jmcbride has joined #openstack-dns19:32
*** jmcbride has quit IRC19:34
*** jmcbride has joined #openstack-dns19:34
*** jaycaz has quit IRC19:46
*** dtx00ff has quit IRC20:10
*** CaptTofu_ has quit IRC20:13
*** dtx00ff has joined #openstack-dns20:17
*** CaptTofu_ has joined #openstack-dns20:21
*** yidclare has joined #openstack-dns20:36
*** jmcbride has quit IRC20:37
*** jmcbride has joined #openstack-dns20:55
*** jmcbride has quit IRC20:55
*** jmcbride has joined #openstack-dns20:55
*** crc32 has quit IRC21:00
*** jmcbride1 has joined #openstack-dns21:18
*** mwagner_lap has quit IRC21:20
*** jmcbride has quit IRC21:20
*** vinod1 has quit IRC21:23
*** jmcbride1 has quit IRC21:30
*** eankutse has quit IRC21:31
*** eankutse has joined #openstack-dns21:31
*** eankutse has quit IRC21:31
*** openstackgerrit has joined #openstack-dns21:34
*** ChanServ sets mode: +v openstackgerrit21:34
*** dtx00ff has quit IRC21:35
*** dtx00ff has joined #openstack-dns21:42
*** vinod1 has joined #openstack-dns21:51
*** crc32 has joined #openstack-dns21:58
*** tsimmons has quit IRC22:00
openstackgerritEndre Karlson proposed a change to stackforge/designate: Switch to oslo.db and fix cmd.manage  https://review.openstack.org/9812222:01
*** CaptTofu_ has quit IRC22:06
*** CaptTofu_ has joined #openstack-dns22:07
*** yidclare has quit IRC22:07
*** msisk has quit IRC22:08
*** CaptTofu_ has quit IRC22:11
*** vinod1 has quit IRC22:19
*** CaptTofu_ has joined #openstack-dns22:20
*** iraw_ has joined #openstack-dns22:23
*** iraw_ has quit IRC22:31
*** openstackgerrit has quit IRC22:34
*** 20WAAHXAJ has joined #openstack-dns22:35
*** yidclare has joined #openstack-dns22:45
*** openstack has joined #openstack-dns22:50
*** ChanServ sets mode: +v openstack22:50
*** CaptTofu_ has quit IRC22:55
*** CaptTofu_ has joined #openstack-dns22:55
*** CaptTofu_ has quit IRC23:00
*** CaptTofu_ has joined #openstack-dns23:05
*** crc32 has quit IRC23:21
*** 20WAAHXAJ has quit IRC23:29
*** betsy has quit IRC23:30
*** openstackgerrit has joined #openstack-dns23:30
*** ChanServ sets mode: +v openstackgerrit23:30
*** yidclare has quit IRC23:36
*** msisk has joined #openstack-dns23:37
*** msisk has quit IRC23:38

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