Thursday, 2014-12-04

*** ryanpetrello has quit IRC00:00
*** ryanpetrello has joined #openstack-dns00:11
*** jmcbride has joined #openstack-dns00:26
*** vinod1 has quit IRC00:31
*** ryanpetrello has quit IRC00:46
*** EricGonczer_ has joined #openstack-dns00:46
*** vinod1 has joined #openstack-dns00:47
*** ryanpetrello has joined #openstack-dns00:51
*** ryanpetrello has quit IRC00:56
*** rjrjr has joined #openstack-dns00:59
*** rmoe has quit IRC01:04
*** EricGonczer_ has quit IRC01:05
*** ryanpetrello has joined #openstack-dns01:18
*** ToMiles has quit IRC01:26
*** ToMiles has joined #openstack-dns01:29
*** rmoe has joined #openstack-dns01:30
*** ryanpetrello_ has joined #openstack-dns01:33
*** ryanpetrello has quit IRC01:34
*** ryanpetrello_ is now known as ryanpetrello01:34
*** nosnos has joined #openstack-dns01:52
*** ryanpetrello has quit IRC01:55
*** EricGonczer_ has joined #openstack-dns01:55
*** linstatsdr_ has joined #openstack-dns02:31
*** jmcbride has quit IRC02:33
*** LinStatSDR has quit IRC02:34
*** linstatsdr__ has joined #openstack-dns02:34
*** ryanpetrello has joined #openstack-dns02:37
*** linstatsdr_ has quit IRC02:38
*** LinStatSDR has joined #openstack-dns02:38
*** linstatsdr__ has quit IRC02:40
*** EricGonczer_ has quit IRC03:10
*** EricGonczer_ has joined #openstack-dns03:15
*** EricGonczer_ has quit IRC03:17
*** nosnos has quit IRC03:23
*** richm has quit IRC03:55
*** ToMiles_ has joined #openstack-dns04:02
*** ToMiles has quit IRC04:03
*** nosnos has joined #openstack-dns04:16
*** GonZo2K has quit IRC04:21
*** vipul has quit IRC05:09
*** vipul has joined #openstack-dns05:10
*** LinStatSDR has quit IRC05:13
*** ryanpetrello has quit IRC06:33
*** ToMiles_ has quit IRC06:53
*** k4n0 has joined #openstack-dns06:54
*** nihilifer has joined #openstack-dns07:47
*** jordanP has joined #openstack-dns08:53
*** jordanP has quit IRC09:05
*** jordanP has joined #openstack-dns09:17
*** alokj has joined #openstack-dns09:28
*** pino has joined #openstack-dns09:59
*** jmcbride has joined #openstack-dns10:55
*** jmcbride has quit IRC11:13
*** jmcbride has joined #openstack-dns11:14
*** kbyrne has joined #openstack-dns11:26
*** mwagner_lap has quit IRC11:39
*** jmcbride1 has joined #openstack-dns12:08
*** jmcbride has quit IRC12:12
openstackgerritKiall Mac Innes proposed openstack/designate: Handle multi-packet TCP queries  https://review.openstack.org/13888513:03
openstackgerritKiall Mac Innes proposed openstack/designate: Add DynECT DevStack plugin  https://review.openstack.org/13886613:03
*** vinod1 has joined #openstack-dns13:11
*** jmcbride1 has quit IRC13:15
*** mwagner_lap has joined #openstack-dns13:17
*** nosnos has quit IRC13:27
*** GonZo2K has joined #openstack-dns13:52
rjrjrjust 13 more FAILed unit tests to fix.13:58
*** vinod1 has quit IRC14:02
KiallSee, now you scared vinod off ;)14:04
*** jordanP has quit IRC14:07
*** pino has quit IRC14:14
*** pino has joined #openstack-dns14:14
*** richm has joined #openstack-dns14:16
*** rediskin has joined #openstack-dns14:16
*** jordanP has joined #openstack-dns14:20
*** nihilifer has quit IRC14:31
*** k4n0 has quit IRC14:33
*** jmcbride has joined #openstack-dns14:36
*** nkinder has quit IRC14:45
*** ryanpetrello has joined #openstack-dns14:45
*** rediskin has quit IRC14:52
*** GonZo2K has quit IRC14:57
*** rmoe has quit IRC15:20
openstackgerritMerged openstack/designate: Handle multi-packet TCP queries  https://review.openstack.org/13888515:28
*** rediskin has joined #openstack-dns15:30
*** timsim has joined #openstack-dns15:30
*** EricGonczer_ has joined #openstack-dns15:31
rjrjrkiall: any reason why the deleting of an empty recordset is in the API code and not central?15:32
KiallEhh, I can't remember to be honest... Probably!15:39
*** vinod1 has joined #openstack-dns15:43
rjrjrokay.  i'm going to try to move this code to storage and see if it breaks any additional unit tests.15:47
rjrjrproblem with it in the API code, we don't actually delete the record when we call delete_record method anymore.  so, checking to see if the recordset has no more records will always fail.15:48
rjrjrthe deletion of a record has been moved to update_status instead.15:48
rjrjrsomeday, we should go through this code and pick a style: record['recordset'] or record.recordset - i prefer the later personally (less typing and easier on the eyes.)15:50
vinod1The former one was the original one - when we did not have objects. Once we had objects we started using the latter format15:53
vinod1Of course now we have to convert the dict syntax to the object syntax15:53
*** betsy has joined #openstack-dns15:58
*** paul_glass has joined #openstack-dns15:58
*** LinStatSDR has joined #openstack-dns16:00
*** EricGonc_ has joined #openstack-dns16:03
*** rjrjr has quit IRC16:05
*** EricGonczer_ has quit IRC16:07
*** arn_ has joined #openstack-dns16:16
*** rjrjr has joined #openstack-dns16:16
rjrjrmoving the logical to central or storage breaks other unit tests.  <sigh.16:17
rjrjrso, how do we want to handle this?  the problem, we have code in the API when a record is deleted to also delete any empty recordset.16:17
rjrjrwe cannot leave it in the API,  because we don't actually delete the record when we call central.delete_record method.16:18
*** d34dh0r53 has quit IRC16:18
*** jordanP has quit IRC16:18
*** arn has quit IRC16:18
rjrjrif deleting an empty recordset when deleting a record is desireable, then we will want to implement it in another layer.  i think storage makes the most sense.16:19
*** jordanP has joined #openstack-dns16:19
rjrjrthe ramifications, there are other places where we delete a record that we do not expect the recordset to also be deleted.  i would have to fix all those too.16:19
*** d34dh0r53 has joined #openstack-dns16:20
rjrjranother solution, remove this functionality (deleting of an empty recordset) but we reintroduce the bug where we cannot reuse names (for example, reuse a CNAME in the same domain.)16:20
rjrjrthoughts?16:21
vinod1Currently we have that kind of logic (deleting empty recordsets) in central with the storage doing what is asked of it.16:22
rjrjrno, we don't.16:22
rjrjrsorry, i thought you implied that logic exists.  you mean that logic should go in central.  my bad. 8^)16:22
vinod1For this case, we could possibly have a flag in storage to specify if we want to delete empty recordsets when records are deleted16:23
rjrjrso, keep storage dump (and single focused.)16:23
vinod1Yes16:23
rjrjrmakes sense.  so implement this in central and fix what it breaks?16:23
vinod1Yes IMHO16:23
vinod1Kiall/mugsie/betsy/timsim: Thoughts?16:24
rjrjrfor example, another unit test it breaks, we delete a record.  the record is deleted, but so it the recordset.  then we go to fetch the record (you can see where this is going) but instead of getting the RecordNotFound exception, we get the RecordsetNotFound exception.16:24
betsyvinod1: wasn’t reading let me catch up16:24
rjrjrvinod, you are correct.  this is business logic and it should go in central.16:25
betsyrjrjr: I’ve just about finished my patchset that gets rid of server and replaces it with nameserver16:25
betsyThis is part of the pool storage spec. I shoud have mine up by this afternoon.16:26
rjrjrbetsy: cool.16:26
rjrjri figured i'm going to be in merge heaven regardless. 8^(16:26
betsyI’ve redone central to basically get rid of servers and use nameservers instead. I’ve changed the v1 api to reflect that, as well as all the tets16:26
betsytoo true16:26
betsyBut I think we’ve worked on some of the same parts. For instance, I’m eliminating the create_server call from central16:27
timsimI'm having a hard time finding it in the API code...16:27
rjrjrmy stuff is blocked waiting for a pdns backend.16:27
rjrjrtimsim: ?16:27
rjrjrv1/records.py16:27
timsimah. v1.16:28
rjrjralmost the last line in the file.16:28
*** mikedillion has joined #openstack-dns16:28
vinod1https://github.com/openstack/designate/blob/master/designate/api/v1/records.py#L25116:28
timsimKind of seems like that logic should be in central.delete_record16:28
rjrjrit can't go there either.  central.delete_record just updates the record atttributes and calls the pool manager update_domain method.16:29
rjrjrit will need to go in the update_status where we actually delete records and "delete" domains.16:29
rjrjri think we are in agreement it goes into central.16:30
rjrjri'll have to track down all the stuff it breaks by moving it there.  hope the list isn't long...16:30
vinod1central.delete_record can check if this is the last record and call central.delete_recordset. That way both are marked as PENDING16:31
timsimThat's what I was thinking ^16:31
vinod1and when update_status returns it does the right thing16:31
rjrjrso, you can imagine, unit tests at the API level handle this.  unit tests at the central level do not.16:31
rjrjrcentral.delete_recordset does not set a PENDING status.  there is no status for recordsets.16:32
*** ryanpetrello has quit IRC16:32
timsimWait wut16:33
rjrjrwe have status on records, not recordsets.16:33
timsimAh16:33
rjrjrso, when you update a recordset, it changes the status field of a record.16:33
rjrjrremember, the backend could care less about recordsets.  (at least BIND9 doesn't care.)16:33
vinod1How about if you change the ttl of a recordset - how do you mark it as PENDING?16:33
rjrjrthe records are marked as PENDING when you do that.16:34
timsimAll of them?16:34
rjrjrcorrect.16:34
rjrjrall of them in the recordset.16:34
timsimWhat if there is 100000 of them? Do you poll for each individual one?16:34
rjrjr?16:34
rjrjrone call to update_domain.16:34
timsimFixes the records to ACTIVE once the serial for the zone is right?16:35
rjrjrthe code no longer handles records one at a time.  it does them all at once.  (NS, SOA, etc.)16:35
rjrjrtimsim: correct.16:35
timsimok16:35
rjrjrthe code is much more efficient than it was at calling the backend.16:36
rjrjrsorry, performing an AXFR.16:36
rjrjrso, unless i want to introduce status and action to recordsets, i'll handle this in update_status.16:37
rjrjrsorry, meant "we".16:37
vinod1Handling it in update_status, then seems logical16:38
timsimI guess I'd have to see what it looks like.16:38
rjrjrand fix what it breaks.  okay, that is the way i'll go.  if it looks like it breaks too much or i run into a road block, we can look at adding status and action to recordset.16:38
rjrjrfunny, the code is working and passes all the tests we have.  it's these unit tests that i'm spending all my time on...16:39
rjrjrall the tests = exercises/designate.sh16:39
rjrjrand rally16:40
vinod1If you need help fixing the unit tests - let me know16:40
rjrjrbeen spending my time simulating stuff happening on the backend and calling update_status for most of the fixes.16:40
rjrjri was down to 13. with the change needed for delete_record, the number has jumped a bit.16:41
rjrjri want to get these existing tests done today and the code up for review.16:42
rjrjrhave other unit tests to write for pool manager.16:42
vinod1Can the delete_record be done in a different patchset?16:42
rjrjrand i suspect a fun merge in the near future. 8^)16:42
rjrjrnot if we want the unit tests to pass.16:42
rjrjri'm just trying to get them to pass so the code i submitted can be reviewed and accepted.16:43
rjrjrhttps://review.openstack.org/#/c/138406/16:44
rjrjralso waiting for a powerdns pool backend driver.16:44
*** paul_glass has quit IRC16:46
*** pino has quit IRC17:02
*** untriaged-bot has joined #openstack-dns17:03
untriaged-botUntriaged bugs so far:17:03
untriaged-bothttps://bugs.launchpad.net/designate/+bug/139035717:03
untriaged-bothttps://bugs.launchpad.net/designate/+bug/128944417:03
*** pino has joined #openstack-dns17:03
untriaged-bothttps://bugs.launchpad.net/designate/+bug/133825617:03
uvirtbotLaunchpad bug 1390357 in designate "Designate sync creates duplicated records in powerdns backend" [Medium,New]17:03
untriaged-bothttps://bugs.launchpad.net/designate/+bug/139898917:03
uvirtbotLaunchpad bug 1289444 in designate "Designate with postgres backend is having issues" [Undecided,New]17:03
*** untriaged-bot has quit IRC17:03
uvirtbotLaunchpad bug 1338256 in designate "There's no record validation in v2" [Undecided,New]17:03
uvirtbotLaunchpad bug 1398989 in designate "DynECT backend fails to catch certain failures during zone creation" [Undecided,New]17:03
*** jmcbride has quit IRC17:06
*** jmcbride has joined #openstack-dns17:07
*** jmcbride has quit IRC17:07
*** jmcbride has joined #openstack-dns17:08
*** LinStatSDR has quit IRC17:16
*** boris-42 has joined #openstack-dns17:29
*** alokj has quit IRC17:29
*** mwagner_lap has quit IRC17:30
*** pino has quit IRC17:34
*** mikedillion has quit IRC17:40
*** jordanP has quit IRC17:44
*** jmcbride1 has joined #openstack-dns17:51
*** jmcbride has quit IRC17:51
*** ryanpetrello has joined #openstack-dns17:57
*** jmcbride1 has quit IRC18:01
*** jmcbride has joined #openstack-dns18:01
*** jmcbride has quit IRC18:06
*** jmcbride has joined #openstack-dns18:08
*** LinStatSDR has joined #openstack-dns18:15
*** shakamunyi has joined #openstack-dns18:18
*** mwagner_lap has joined #openstack-dns18:18
rjrjrseeing some strange behavior.  the test for record paging is failing.18:31
rjrjrthe created_at timestamp for the SOA record is strange.18:32
rjrjrthat record has a timestamp greater than all other records but the last record.18:32
rjrjrwhy would the created_at timestamp change at all?  from the logic of the code, it should be right after the NS records.18:32
*** mikedillion has joined #openstack-dns18:33
rjrjrit seems like that was accounted for in the unit test, as the unit test expects that record to be created last, after all records.18:33
rjrjrwhich makes no sense to me....18:33
rjrjrokay, figured it out.  increment_serial in central is also updating the created_at value of a domain.18:43
rjrjrsorry, meant create_at value of the SOA record.18:48
rjrjrbasically, the _update_soa method is creating a new SOA record everytime.18:48
*** openstackgerrit has quit IRC18:50
*** openstackgerrit has joined #openstack-dns18:50
*** ChanServ sets mode: +v openstackgerrit18:50
vinod1_update_soa is calling update_recordset_in_storage and not create_recordset? Is update_recordset updating the create_time?18:50
rjrjrlook at the code.  it is creating a new record everytime.18:53
rjrjri'm fixing it.18:53
*** jmcbride has joined #openstack-dns18:54
rjrjrthe SOA record will be created first for a domain.  it will always be the first 'created_at' record.18:56
*** amcrn has joined #openstack-dns19:12
*** GonZo2K has joined #openstack-dns19:13
*** amcrn has quit IRC19:34
*** jmcbride has quit IRC19:57
*** jmcbride has joined #openstack-dns20:02
*** jmcbride has quit IRC20:02
*** jmcbride has joined #openstack-dns20:02
*** openstackgerrit has quit IRC20:04
*** openstackgerrit has joined #openstack-dns20:04
*** ChanServ sets mode: +v openstackgerrit20:04
*** shakamunyi has quit IRC20:30
*** shakamunyi has joined #openstack-dns20:32
*** jmcbride has quit IRC21:02
*** mikedillion has quit IRC21:08
openstackgerritBetsy Luzader proposed openstack/designate:   Pool_Attribute API  https://review.openstack.org/13354921:12
openstackgerritBetsy Luzader proposed openstack/designate:   Migrate Server table  https://review.openstack.org/13644021:12
*** vinod1 has quit IRC21:21
*** jmcbride has joined #openstack-dns21:25
*** vinod1 has joined #openstack-dns21:35
*** bitblt has joined #openstack-dns21:37
*** rediskin has quit IRC21:37
*** pino has joined #openstack-dns21:51
*** pino has quit IRC21:51
*** jmcbride has quit IRC21:52
*** jmcbride has joined #openstack-dns21:57
*** pino has joined #openstack-dns21:59
*** ryanpetrello has quit IRC22:18
*** jmcbride has quit IRC22:33
*** jmcbride has joined #openstack-dns22:35
openstackgerritOpenStack Proposal Bot proposed openstack/designate: Updated from global requirements  https://review.openstack.org/13922722:36
*** jmcbride1 has joined #openstack-dns22:52
*** jmcbride has quit IRC22:53
*** betsy has quit IRC22:57
*** jmcbride1 has quit IRC23:17
*** bitblt has quit IRC23:18
*** shakamunyi has quit IRC23:19
*** shakamunyi has joined #openstack-dns23:20
*** timsim has quit IRC23:28
*** ryanpetrello has joined #openstack-dns23:32
*** pino has quit IRC23:34
*** EricGonc_ has quit IRC23:48
*** vinod1 has quit IRC23:56
*** EricGonczer_ has joined #openstack-dns23:58

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