Monday, 2014-01-06

*** nosnos has joined #openstack-dns01:06
*** amrit has joined #openstack-dns01:11
*** amrit has quit IRC01:19
*** amrit has joined #openstack-dns01:20
*** amrit has quit IRC02:14
*** CaptTofu has quit IRC03:24
*** CaptTofu has joined #openstack-dns03:24
*** CaptTofu has quit IRC03:55
*** CaptTofu has joined #openstack-dns03:56
*** krow has quit IRC04:34
*** jmcbride has joined #openstack-dns05:29
*** jmcbride has quit IRC05:33
*** nosnos_ has joined #openstack-dns05:34
*** nosnos__ has joined #openstack-dns05:36
*** nosnos_ has quit IRC05:37
*** nosnos has quit IRC05:38
*** nosnos__ has quit IRC07:06
*** nosnos has joined #openstack-dns07:06
*** briancline has joined #openstack-dns07:48
*** zigo has joined #openstack-dns07:48
*** vinod has joined #openstack-dns07:55
*** pasquier-s has joined #openstack-dns08:12
*** vinod has quit IRC09:04
*** vinod has joined #openstack-dns09:36
*** vinod has quit IRC09:58
*** CaptTofu has quit IRC11:52
*** CaptTofu has joined #openstack-dns11:52
*** eankutse has joined #openstack-dns12:33
*** nosnos has quit IRC12:36
*** vinod has joined #openstack-dns12:44
*** vinod has quit IRC12:45
*** eankutse has quit IRC13:02
*** mugsie_ is now known as mugsie13:13
*** mugsie has joined #openstack-dns13:13
*** CaptTofu has quit IRC13:29
*** CaptTofu has joined #openstack-dns13:29
*** jmcbride has joined #openstack-dns13:48
*** CaptTofu has quit IRC13:49
*** CaptTofu has joined #openstack-dns13:50
*** vinod has joined #openstack-dns13:58
*** eankutse has joined #openstack-dns14:04
*** eankutse has quit IRC14:05
*** eankutse has joined #openstack-dns14:05
*** artom has joined #openstack-dns14:12
*** vinod has quit IRC14:22
jmcbrideHi Chris, hope your son is doing better.14:27
*** openstack has joined #openstack-dns14:34
*** ChanServ sets mode: +v openstack14:34
*** krow has joined #openstack-dns14:34
*** vinod has joined #openstack-dns14:37
*** vinod has quit IRC14:37
*** krow has quit IRC14:41
*** timfreund has quit IRC14:52
*** CaptTofu has quit IRC15:00
*** timfreund has joined #openstack-dns15:06
*** CaptTofu has joined #openstack-dns15:20
*** msisk has joined #openstack-dns15:30
*** krow has joined #openstack-dns15:38
*** krow has quit IRC15:43
*** vinod has joined #openstack-dns15:55
kiallheya16:07
*** msisk has quit IRC16:07
artomheya16:07
*** msisk has joined #openstack-dns16:08
*** jmcbride has quit IRC16:11
*** vinod has quit IRC16:17
openstackgerritArtom Lifshitz proposed a change to stackforge/designate: Test database migration schema  https://review.openstack.org/6207916:19
*** eankutse1 has joined #openstack-dns16:31
*** eankutse has quit IRC16:33
*** vinod has joined #openstack-dns16:34
*** krow has joined #openstack-dns16:39
*** jmcbride has joined #openstack-dns16:41
*** krow has quit IRC16:43
kiallartom: any luck figuring out why the DB in your patchset isn't getting reset properly?16:56
kiall(or if, it is.. and it's highlighting another issue? Always possible..)16:56
artomkiall, I was going to say I suspect name collisions...16:57
artomBut as I was typing it out I realize it's not possible.16:57
kiallSure, but it should only have 1 tsig key in the DB with that test16:57
artomI mean tempfile name collisions.16:58
artomBut since setUp() copies the "master" db every time, even if the tempfile has the same name as one that was previously used, the contents should be pristine...16:58
*** eankutse1 has quit IRC17:01
*** eankutse has joined #openstack-dns17:01
kiallreally? I thought it ensured those are properly unique?17:05
kiallWell .. That too, it copies it over17:05
artomEnsured purely based on statistics ;)17:05
kiallDoesn't it check the file doesn't exist, and that it can obtain a lock?17:05
kiallor something like that17:05
artomNot my code...17:06
artomMaybe tempfile?17:06
kiallI mean the stdlib tempfile module ;)17:06
kiallartom: ... actuallty17:06
kiallIt's your new powerdns backend test that the error is coming from, I didn't notice that before17:07
kiallmaybe there is a bug there?17:07
artomIt's possible I guess...17:07
artomBut I'd rather rule out any errors with new code before doubting the old one...17:08
kiallYea, true17:08
artomThe PowerDNS code has worked fine in production.17:08
artomAnd my tests are pretty basic - I'd be surprised if I've uncovered some obscure bug.17:08
kiallI feel so daft right now.. Trying to find the old DB setup code and failing ;)17:11
kiallFound it17:12
kiall;)17:12
kiallartom: So, once I removed the old DB setup code.. The errors are totally different.17:14
kiall"table not found" etc etc17:14
artomEh? What code did you remove?17:16
kiallartom: -        storage_fixture = StorageFixture()17:21
kiall-        self.useFixture(storage_fixture)17:21
kiall+        # storage_fixture = StorageFixture()17:21
kiall+        # self.useFixture(storage_fixture)17:21
kiallI think I see whats happening17:22
artomExplain then, because I don't even see where StorageFixture was being used...17:24
artom;)17:24
kiallOkay .. So .. I think this is what we need to do :)17:24
kiall1) Remove StorageFixture ;)17:24
kiall2) Update DatabaseFixture to accept a repository, and return a path.. the DB at that path should be reset between each test ..17:25
kiall3) supply that path as self.config('database_connection='sqlite:///path/goes/here', group='storage:sqlalchemy')17:25
kialland .. all that should happen in the tests/__init__.py TestCase classes __init__17:25
artomBut... the powerdns backend doesn't use storage...17:26
artomDoes it?17:26
artomIt has its own database_connection option.17:27
kiallNo, for PowerDNS you would have a second DatabaseFixture and set a different config var.. But, in the PowerDNS test case only this time17:27
artomRight, but this is where the current errors are coming from...17:27
kiallRight now, the DatabaseFixture generated sqlite DB isn't actually being used at all, it;s being built, but we're still using the "standard" database.17:28
artomWell crap, you're right.17:31
artomHow come though?17:31
artomself.config(database_connection=self.db_fixture.url, group='backend:powerdns')17:32
artomThat's called in setUp()...17:32
kiallI think it's too late at that point..17:34
kiallI think17:34
kiallI'd start by removing the new PDNS test for a few mins, and getting this working first for the main DB http://paste.ubuntu.com/6704336/17:35
kiallOnce that works, we know the DatabaseFixture is good and it should be easy enough to get that into the right spot for powerdns17:36
artomHrmm, I *have* been testing two things at the same time...17:36
kiallYep :) Split the new PowerDNS tests into a new review, once we know the fixture is good :)17:36
kiallThe addCleanup stuff is a good spot to move the "restore the golden DB" stuff: http://pastie.org/860717717:37
kiallActually.. setUp works better there ;)17:38
kiallSince it works for the first run too117:38
kiallAlso .. I self.useFixture() calls have to be in the test's __init__ methods..17:39
kiallbrb17:39
artomSolution #3: Ask the infra team to give Jenkins SSD drives ;) We can run all the migrations for every test :D17:39
*** krow has joined #openstack-dns17:39
kiallartom: so long as I get one for my laptop from them too, sure ;)17:39
* artom has one.17:40
*** krow has quit IRC17:44
*** jmcbride has quit IRC18:11
*** rossk has joined #openstack-dns18:13
*** rossk_ has joined #openstack-dns18:26
*** rossk has quit IRC18:28
*** vinod has quit IRC18:39
*** rossk_ is now known as rossk18:39
*** krow has joined #openstack-dns18:40
*** krow has quit IRC18:44
*** wjohnson has quit IRC18:50
*** jmcbride has joined #openstack-dns19:02
*** eankutse has quit IRC19:04
*** vinod has joined #openstack-dns19:08
*** eankutse has joined #openstack-dns19:25
*** sballe has joined #openstack-dns19:35
*** krow has joined #openstack-dns19:41
*** krow1 has joined #openstack-dns19:44
*** krow has quit IRC19:44
*** jorgem has joined #openstack-dns19:52
*** krow1 has quit IRC20:00
*** amrit has joined #openstack-dns20:02
*** amrit has quit IRC20:02
*** amrit has joined #openstack-dns20:03
*** jmcbride has quit IRC20:04
*** jmcbride has joined #openstack-dns20:09
*** krow has joined #openstack-dns20:10
*** amrit has quit IRC20:18
*** jmcbride has quit IRC20:33
*** krow1 has joined #openstack-dns20:38
*** krow has quit IRC20:40
*** jmcbride has joined #openstack-dns20:40
*** jmcbride has quit IRC20:55
*** krow1 has quit IRC21:00
artomSome folks have decided to fork the Nova scheduler and call it Gantt.21:08
artomWith the intention of making a general scheduler for OpenStack.21:08
artomCould be useful for pools...21:08
*** msisk has quit IRC21:17
*** vinod has quit IRC21:27
*** vipul is now known as vipul-away21:31
*** vipul-away is now known as vipul21:31
*** vinod has joined #openstack-dns21:34
*** pvinci_ has joined #openstack-dns21:36
*** CaptTofu has quit IRC21:48
*** CaptTofu has joined #openstack-dns21:49
*** CaptTofu has quit IRC21:51
*** CaptTofu has joined #openstack-dns21:51
*** vinod has quit IRC22:21
*** vinod has joined #openstack-dns22:28
*** eankutse1 has joined #openstack-dns22:34
*** eankutse1 has quit IRC22:34
*** eankutse has quit IRC22:38
openstackgerritVinod Mangalpally proposed a change to stackforge/designate: WIP: Add APIs for managing TLDs  https://review.openstack.org/6516822:48
*** jorgem1 has joined #openstack-dns22:50
*** jorgem has quit IRC22:53
*** CaptTofu has quit IRC23:13
*** CaptTofu has joined #openstack-dns23:13
*** vinod has quit IRC23:16
*** jorgem1 has quit IRC23:18
*** jorgem has joined #openstack-dns23:20
*** vipul is now known as vipul-away23:47
*** vipul-away is now known as vipul23:50
*** pvinci_ has quit IRC23:58

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