Monday, 2016-02-22

*** boris-42 has joined #openstack-dns00:04
*** ducttape_ has joined #openstack-dns00:10
*** rudrajit has joined #openstack-dns00:16
*** ducttape_ has quit IRC00:23
*** km has quit IRC00:52
*** km__ has joined #openstack-dns00:52
*** km__ is now known as Guest7187200:53
*** ducttape_ has joined #openstack-dns01:04
*** stanzgy has joined #openstack-dns01:12
*** bpokorny has joined #openstack-dns01:19
*** ccneill has joined #openstack-dns01:28
*** EricGonczer_ has joined #openstack-dns01:34
*** bpokorny has quit IRC01:53
*** ducttape_ has quit IRC01:56
*** ducttape_ has joined #openstack-dns01:57
*** ccneill has quit IRC01:59
*** ducttape_ has quit IRC02:05
*** EricGonczer_ has quit IRC02:22
*** rudrajit has quit IRC02:32
*** rudrajit has joined #openstack-dns02:39
*** ducttape_ has joined #openstack-dns02:45
*** EricGonczer_ has joined #openstack-dns02:47
*** ducttape_ has quit IRC02:59
*** EricGonczer_ has quit IRC03:02
*** Guest71872 has quit IRC03:11
*** km has joined #openstack-dns03:11
*** ducttape_ has joined #openstack-dns03:14
*** stanzgy has quit IRC03:24
*** stanzgy has joined #openstack-dns03:36
*** EricGonczer_ has joined #openstack-dns03:41
*** EricGonczer_ has quit IRC03:43
*** ducttape_ has quit IRC03:45
*** rektide has quit IRC04:15
*** bpokorny has joined #openstack-dns04:22
*** bpokorny has quit IRC04:30
*** ccneill has joined #openstack-dns05:55
*** ccneill has quit IRC06:00
*** jasonsb has joined #openstack-dns06:52
*** chlong_ has quit IRC07:30
*** jasonsb has quit IRC07:33
*** jasonsb has joined #openstack-dns07:36
*** wolsen has quit IRC07:57
*** wolsen has joined #openstack-dns08:00
*** pcaruana has joined #openstack-dns08:05
*** nyechiel_ has joined #openstack-dns08:44
*** jschwarz has joined #openstack-dns08:53
*** nyechiel_ has quit IRC08:53
*** rudrajit has quit IRC09:01
openstackgerritEndre Karlson proposed openstack/designate: Add support for getting Service Status  https://review.openstack.org/28077309:13
*** jordanP has joined #openstack-dns09:23
openstackgerritEndre Karlson proposed openstack/designate: Add support for getting Service Status  https://review.openstack.org/28077309:33
*** chlong_ has joined #openstack-dns10:06
*** kei_yama has quit IRC10:41
*** nyechiel_ has joined #openstack-dns10:43
*** nyechiel_ has quit IRC10:55
*** nyechiel_ has joined #openstack-dns10:56
*** nyechiel_ has quit IRC11:05
*** stanzgy has quit IRC11:15
*** jet-rongl has joined #openstack-dns11:30
*** jet-rongl has quit IRC11:33
*** jet-rongl has joined #openstack-dns11:34
*** jet-rongl has quit IRC11:36
*** andrewbogott has quit IRC11:39
*** ryanpetrello has quit IRC11:40
*** rackertom has quit IRC11:40
*** fyxim has quit IRC11:40
*** zigo has quit IRC11:40
*** bauruine has quit IRC11:40
*** d34dh0r53 has quit IRC11:40
*** dhellmann has quit IRC11:41
*** zigo has joined #openstack-dns11:41
*** andrewbogott has joined #openstack-dns11:43
*** fyxim has joined #openstack-dns11:43
*** rackertom has joined #openstack-dns11:43
*** jet-rongl has joined #openstack-dns11:44
*** ryanpetrello has joined #openstack-dns11:46
*** dhellmann has joined #openstack-dns11:46
*** d34dh0r53 has joined #openstack-dns11:46
*** bauruine has joined #openstack-dns11:46
*** jet-rongl has quit IRC11:46
*** jet-rongl has joined #openstack-dns11:49
*** km has quit IRC11:59
*** chlong_ has quit IRC12:17
*** jet-rongl has quit IRC12:29
*** nyechiel_ has joined #openstack-dns12:47
*** ducttape_ has joined #openstack-dns13:12
*** ducttape_ has quit IRC13:24
*** andrewbogott has quit IRC13:55
*** andrewbogott has joined #openstack-dns13:55
*** rsyed_away is now known as rsyed13:59
mugsietimsim: whan you wake up - https://review.openstack.org/25185314:01
*** richm has joined #openstack-dns14:02
*** testing-tester has joined #openstack-dns14:03
*** testing-tester has left #openstack-dns14:03
*** chlong_ has joined #openstack-dns14:06
*** openstackgerrit has quit IRC14:17
*** openstackgerrit has joined #openstack-dns14:17
*** ChanServ sets mode: +v openstackgerrit14:17
*** jet-rongl has joined #openstack-dns14:23
elarsonfederico3: out of curiosity, any reason for SomethingTest vs TestSomething in test class names/14:23
elarsonnames?*14:23
federico3elarson: the majority of test classes are named SomethingTest but we are not b14:26
federico3-eing consitent14:26
federico371 SomethingTest VS 24 TestSomething :(14:26
federico3tools like nose would expect a specific format instead14:27
elarsonpytest usually picks up TestSomething or unittest based tests, so I was just curious your feelings14:28
* elarson prefers the TestSomething, but mostly b/c it is familiar14:28
federico3anything is better than random14:29
federico3TestSomething is also consistent with "def test_foo()"14:30
openstackgerritMerged openstack/designate: Add delayed NOTIFY  https://review.openstack.org/24758814:42
openstackgerritMerged openstack/python-designateclient: Updated from global requirements  https://review.openstack.org/28277014:42
openstackgerritFederico Ceratto proposed openstack/designate: Randomize SOA refresh interval  https://review.openstack.org/27947514:54
*** ducttape_ has joined #openstack-dns15:00
*** ducttape_ has quit IRC15:00
*** ducttape_ has joined #openstack-dns15:00
openstackgerritGraham Hayes proposed openstack/designate: WIP: Add scheduler for pools  https://review.openstack.org/27853615:04
timsimUgh mugsie Kiall this change looks like it times out on a test very very rarely: https://review.openstack.org/#/c/272316/ we probably shouldn't merge if it's going to do what it did in the gate to random changes now and then.15:21
timsimWell...actually, that's the periodic one.15:22
timsimThat doesn't make any sense.15:22
*** jet-rongl has quit IRC15:22
timsimI had assumed that'd be the poll-deletes one because that actually adds work.15:22
timsimThat's probably just regular entropy.15:22
*** jet-rongl has joined #openstack-dns15:22
KiallAh, ekarlso's got a similar fail on one of his patches.15:22
KiallI think we have another $random gate failure merged15:22
timsimneat15:23
*** pglass has joined #openstack-dns15:26
Kialltimsim: yea, we have a gate issue :( https://review.openstack.org/#/c/282469/15:27
timsimhttp://replygif.net/i/12715:28
*** jordanP has quit IRC15:33
elarsonthe gate... https://media.giphy.com/media/SwAf9VVJRMbok/giphy.gif15:36
openstackgerritMerged openstack/designate: Fix V1 Quotas API Extension  https://review.openstack.org/25185315:38
*** nkinder has joined #openstack-dns15:50
*** penick has joined #openstack-dns15:53
*** nyechiel_ has quit IRC15:56
*** nyechiel_ has joined #openstack-dns15:56
*** jet-rongl has quit IRC15:58
openstackgerritKiall Mac Innes proposed openstack/designate: Add AttributeListObjectMixin class  https://review.openstack.org/28064716:02
Kiallmugsie / timsim / ekarlso / elarson.. that gate fail, has anyone seen it affect the powerDNS gate yet?16:02
*** penick has quit IRC16:04
KiallNasty URL incoming16:04
Kiallhttp://logstash.openstack.org/#/dashboard/file/logstash.json?query=message:%5C%22delete%20failed%20%5C%5C(client%20error%5C%5C)%5C%5C:%20Unable%20to%20complete%20operation%20on%20subnet%5C%22%20AND%20message:%5C%22One%20or%20more%20ports%20have%20an%20IP%20allocation%20from%20this%20subnet%5C%22%20AND%20tags:%5C%22screen-q-svc.txt%5C%22%20AND%20voting:1&from=864000s16:04
Kiallfirst occourance was 2016-02-15T14:42:44.563+00:0016:05
Kiallaffected bind9 50 times, powerdns 2 times16:05
*** EricGonczer_ has joined #openstack-dns16:07
*** EricGonczer_ has quit IRC16:11
elarsonSo, writing a test for https://bugs.launchpad.net/designate/+bug/1548331 I'd like to move this out of a decorator: https://github.com/openstack/designate/blob/master/designate/central/service.py#L12116:22
openstackLaunchpad bug 1548331 in Designate "The zone records quota are not enforced" [Undecided,New] - Assigned to Eric Larson (eric-larson)16:22
elarsonthe reason being is that unwrapping that decorator is really rough in order to test it w/o the db16:22
* elarson would prefer to use a context manager explicitly in with the caller16:23
elarsonhmm... maybe I can salvage it...16:24
elarsonit is used a lot16:24
Kiallelarson: I'm not convinced that was ever the right place for it!16:24
Kiall(bpth physical location of code, and placement of the TX wrapper16:24
elarsonok, I'll try moving it around and seeing what folks think16:25
*** pcaruana has quit IRC16:27
*** ccneill has joined #openstack-dns16:28
openstackgerritMerged openstack/designate: Updated from global requirements  https://review.openstack.org/28246916:31
*** wolsen has quit IRC16:34
*** wolsen has joined #openstack-dns16:42
*** bpokorny has joined #openstack-dns16:46
openstackgerritChaozhe Chen(ccz) proposed openstack/designate: Stop using WritableLogger() which is deprecated.  https://review.openstack.org/28316516:47
*** james_li has joined #openstack-dns16:49
*** bpokorny has quit IRC16:51
*** bpokorny has joined #openstack-dns16:51
*** jschwarz has quit IRC16:56
*** ccneill has quit IRC17:09
*** ccneill has joined #openstack-dns17:15
*** ccneill has quit IRC17:17
*** fawadkhaliq has joined #openstack-dns17:18
*** ccneill has joined #openstack-dns17:18
*** fawadkhaliq has quit IRC17:19
*** penick has joined #openstack-dns17:28
*** jasonsb has quit IRC17:30
*** fawadkhaliq has joined #openstack-dns17:42
*** fawadkhaliq has quit IRC17:51
openstackgerritMerged openstack/designate: Update periodic-sync-seconds help  https://review.openstack.org/27033217:57
*** ducttape_ has quit IRC17:57
*** eandersson has joined #openstack-dns18:01
eanderssonHey18:01
eanderssonAnyone with some experience doing a live upgrade from Designate Kilo to Liberty18:02
*** ducttape_ has joined #openstack-dns18:08
*** rudrajit has joined #openstack-dns18:08
openstackgerritMerged openstack/designate: Improve performance and utility of Recovery  https://review.openstack.org/27231618:11
openstackgerritMerged openstack/designate: Actually poll for zone deletes  https://review.openstack.org/27429118:11
*** rudrajit has quit IRC18:13
*** rudrajit has joined #openstack-dns18:24
eanderssonFirst issue is that all my requests are getting unauthorized :(18:24
mugsieeandersson: really? is there any stack trace in the -api logs?18:26
eanderssonI had this with the latest version of Kilo as well.18:26
eanderssonIt's not working with domain-tokens.18:26
eanderssonbut might just be a policy or something I forgot to update18:27
mugsieah. I remember somehting about this ... your talking about domain scoped keystone tokens?18:27
eanderssonYea18:27
*** rsyed is now known as rsyed_away18:27
mugsieas far as I know we need a project scoped token - as we use the project_id for a ton18:28
eanderssonIt's odd though as I do see some requests successful from our monitoring tools18:28
mugsiewe had a bug when with a domain scoped token we would just store the zone / recordset in the db with no project id18:28
mugsieis there any reason you are using domain scoped tokens?18:29
eanderssonIt's the design of our cloud18:30
eandersson:D18:30
eanderssonI can't remember exactly why we went down that route though.18:30
mugsieis there any reason you are using domain scoped tokens?18:34
mugsiegha18:34
mugsiehit up by accident18:34
eanderssonheh18:34
eanderssonNot really seeing an error message in the logs.18:34
eandersson> GET /v1/servers HTTP/1.1 40118:34
eanderssonWith debug logs I see it return a token with credentials etc.18:35
eanderssonRoles include admin18:35
eanderssonroles [{"id":"....", "name "admin"}18:36
*** rektide has joined #openstack-dns18:36
mugsieah18:36
mugsiehttps://github.com/openstack/designate/commit/ae235cba3c5bda5d1da6816135400107660a279418:36
eanderssonThat is the patch that broke Kilo18:37
mugsiehttps://bugs.launchpad.net/designate/+bug/146018718:37
openstackLaunchpad bug 1460187 in Designate kilo "Designate GET and POST /v1/domains has auth issue" [Critical,Fix committed] - Assigned to Kiall Mac Innes (kiall)18:37
eanderssonI mentioned it in IRC here a few months ago18:37
eanderssonI had to manually patch it in Kilo when I upgraded.18:37
ekarlsoeandersson: hey man :P18:38
mugsieI must have missed it. It seems that we do not know what to do with domain scoped tokens still. Seen as domains are constantly changing (there is going to projects that are now domains?? ) I am not sure what the correct route  it18:38
mugsieroute is *18:38
eanderssonhey ekarlso !! <318:39
mugsiewiht your patch, all users will see all the domains though, right?18:39
eanderssonat least that isn't how it works for us18:40
eanderssonit's per tenant afaik18:40
eanderssonI still need to use --all-tenants as an admin to see all domains18:40
*** rudrajit_ has joined #openstack-dns18:40
eanderssonAt least I know that it isn't a config issue18:41
*** rudrajit has quit IRC18:42
eanderssonI'll just apply that patch again.18:43
mugsieok. i would be interested in seeing how domain scoped tokens are working with tenant level multi tenancy, but that may be a problem for another day18:45
eanderssonhmm actually reverting the patch does not seem to work in Liberty :(18:46
eanderssonoh nvm I commented out the wrong code lol18:46
eanderssonsuccess18:46
mugsie:)18:47
eanderssonHow is openstackclient support coming along?18:48
eandersson:D18:48
eanderssonIs that something being worked on?18:48
ekarlsoeandersson: eh, openstackclient u mean the cli ?18:49
eanderssonYep18:50
ekarlsoeandersson: been in for a long time :P18:51
ekarlsoor relatively long in terms of v2 support :p18:51
eanderssonoh18:51
mugsiethere is a few rough edges, but it is all thee18:51
mugsiethere*18:51
eanderssonnice18:51
eanderssoninteresting > ERROR: list index out of range18:53
eanderssonwhen trying to delete a record in Liberty18:53
*** rsyed_away is now known as rsyed18:56
mugsieis there a full trace? I think I have seen that before ..19:01
eanderssonhttp://paste.openstack.org/show/487796/19:02
eanderssonUpgrade to designateclient 2.0.0, but was the same in 1.5.019:03
mugsielooks like a bug - ekarlso ^^19:03
eanderssonNot sure what is happening, because the request comes back as 200, but it then errors out and nothing happens19:06
eanderssonthe record is still there19:06
eandersson> DEBUG: "DELETE /v1/domains/<xxx>/records/<yyyy> HTTP/1.1" 200 019:08
eandersson> DEBUG: RESP: [200] Date: Mon, 22 Feb 2016 19:01:49 GMT Connection: keep-alive Content-Type: text/html; charset=utf-8 Content-Length: 0 X-Openstack-Request-Id: req-f86880e9-62e2-4275-8309-f6b509ee576119:08
eanderssonOh it's getting a 404 in designate-api19:09
eanderssondidnt see that at first19:09
mugsiethe record is probably still in a DELETING state ... so it will show for a while, until the pool-manager sees that it is gone19:09
eanderssonI even restarted the pool-manager19:10
eanderssonjust in case it's that deadlock bug19:10
eanderssontrying a full designate restart19:11
mugsieif you do an `openstack recordset list domain.tld.` what does it show?19:11
*** ccneill has quit IRC19:13
eanderssonchecked the db and it's stuck pending19:14
openstackgerritGraham Hayes proposed openstack/designate: WIP: Add scheduler for pools  https://review.openstack.org/27853619:15
openstackgerritGraham Hayes proposed openstack/designate: Move zone masters to a new table  https://review.openstack.org/28321619:15
*** james_li has quit IRC19:16
*** rudrajit has joined #openstack-dns19:19
openstackgerritGraham Hayes proposed openstack/designate: Move zone masters to a new table  https://review.openstack.org/28321619:21
openstackgerritGraham Hayes proposed openstack/designate: Add AttributeListObjectMixin class  https://review.openstack.org/28064719:21
openstackgerritGraham Hayes proposed openstack/designate: WIP: Add scheduler for pools  https://review.openstack.org/27853619:21
mugsieeandersson: crap. I am just running out of the office to catch a bus - will be back in an hour or so.19:22
eanderssonthanks mugsie19:22
*** rudrajit_ has quit IRC19:22
eanderssonthink I have to head home, but I'll be back tomorrow =]19:23
*** rudrajit_ has joined #openstack-dns19:27
*** ducttape_ has quit IRC19:29
*** rudrajit has quit IRC19:30
*** ccneill has joined #openstack-dns19:34
*** rsyed is now known as rsyed_away19:44
andrewbogottfederico3: I’m back looking at https://github.com/openstack/designate/blob/stable/kilo/doc/source/backends/powerdns.rst — some of those settings go in subsections, right?  e.g. doesn’t the ‘connection’ setting go under '[storage:sqlalchemy]’?19:44
*** ducttape_ has joined #openstack-dns19:44
*** james_li has joined #openstack-dns19:46
andrewbogottheh, the more I read that doc page the less sense it makes :(19:48
andrewbogottThere’s sqlite:///$pystatepath/powerdns.sqlite, no explanation of what that db is or where it comes from19:50
andrewbogottand then later connection = mysql://<username>:<password>@<host>:<port>/<dbname> which suggests that designate-central is writing directly to the pdns database, even though everyone agrees that shouldn’t happen19:50
andrewbogottso, I’m back to square one.  Could use advice from anyone who has made this work in kilo.19:51
*** penick has quit IRC19:53
*** james_li has quit IRC19:56
*** james_li has joined #openstack-dns19:56
*** mlavalle has joined #openstack-dns19:57
pglassandrewbogott: i don't run powerdns, but powerdns stores all of it's zones in a database. does powerdns have a method to manipulate zones without directly touching the pdns database?19:57
*** penick has joined #openstack-dns20:05
*** rsyed_away is now known as rsyed20:11
andrewbogottpglass: I’m told that as of kilo, everything should be done with mdns and xfr20:19
andrewbogottah, you mean that you think we do db writes for zones but xfr for records?20:19
timsimI believe it does db writes to create zones, and XFRs to populate the records, yeah.20:20
*** mugsie has quit IRC20:20
*** partner has quit IRC20:20
*** ekarlso has quit IRC20:20
*** lkoranda has quit IRC20:20
*** partner has joined #openstack-dns20:20
*** mugsie has joined #openstack-dns20:20
*** ekarlso has joined #openstack-dns20:21
andrewbogottwhat, then, was the advantage of ripping out the code that just did everything via db rights?20:21
andrewbogott“This is too easy to configure:20:21
andrewbogott“ ?20:21
*** lkoranda has joined #openstack-dns20:21
timsimI could be wrong. I probably am20:21
federico3andrewbogott: most likely sqlite was just an example, used for testing, maybe, but in any case you want to use mysql20:22
andrewbogotttimsim: and that’s the end state?  Or some kind of transition from ‘all db’ to ‘all xfr’?20:24
andrewbogottugh, sorry netsplit20:25
Kiallandrewbogott: there's no standard for zone creates / deletes, so we still do that per backend type.. For zone updates, we use zone transfers now. It eliminates a whole pile of race conditions we had, and makes working with the likes of BIND much easier as we're not trying to render a file on disk to N servers for every change to a zone.20:27
*** nyechiel_ has quit IRC20:27
andrewbogotttimsim:  the one install I have is configured for both xfr and db writes.  So you are probably right about how it works, that’s just ridiculous20:28
timsimIt's really not20:28
andrewbogottKiall: ok, so — both.  That’s unfortunate but I can live with it.20:30
Kiallit kinda is... a standard for zone creates updates would make a pile more sense.. but it doesn't exist :(20:30
Kiallehh20:30
Kialla standard for creates a deletes*20:30
Kialland*20:30
* Kiall do can't today english20:31
andrewbogottso if I want to have two resolvers...20:31
timsimJust write that RFC Kiall20:31
andrewbogottI really can only have one of them talk directly to designate20:31
andrewbogott(in Juno I had both resolvers backed with a single db, which worked since the resolvers had a read-only relationship with the db, the only writer was designate)20:31
Kiallandrewbogott: you can, ypou setup 1 pool target (the DB with type=powerdns), and 2x pool nameservers (with the DNS details)20:32
Kialloh - missed the read only bit.. No, powerdns will write the zone contents to the DB20:32
andrewbogottKiall: sorry, still trying to understand the 1 pool target vs 2x pool nameservers thing20:33
andrewbogottdoesn’t that still have two nameservers competing for writes to a single db?20:33
KiallYes and no, PowerDNS will obtain a write lock on the DB from whichever gets there first is the one to write the contents20:34
andrewbogottso far, we are describing my current setup, which falls over quite a bit20:35
*** jmcbride has joined #openstack-dns20:35
*** jmcbride has quit IRC20:35
Kiallbah - 3rd disconnect from IRC. What's going on with freenode -_-20:35
andrewbogottyeah, I keep getting dropped too20:35
*** jmcbride has joined #openstack-dns20:35
KiallSo, I missed the beginning of the convo.. what does falling over mean?20:36
andrewbogottYou didn’t miss it, it’s just why I’m here.20:36
andrewbogottI don’t have a very complete theory.  Periodically my resolvers just seize up for a few minutes and have to be restarted.20:37
andrewbogottWhen I look at the logs, of course they are crazy, a zillion xfr requests flying left and right.20:37
KiallPowerDNS itself needs restarting?20:37
andrewbogottyeah20:37
*** krotscheck has quit IRC20:37
andrewbogottdesignate seems fine through all this20:37
andrewbogottSo, working theory is:  having two pdns instances sharing a database worked with Juno when they never wrote to the db.  But adding axfr on top of that produced a world of races.20:38
KiallSo, is it lots of small zones? a few big zones? or a few small zones?20:38
andrewbogottThree zones, they haven’t changed a single time since initial setup20:38
KiallAs in, not even a record in the zones changed?20:39
andrewbogottNo, I mean I’m not adding or removing domains at all20:39
andrewbogottI am adding and removing records all the time20:39
andrewbogottgenerally around 800 records per zone at any one time20:39
andrewbogott(sink is the only thing I’m using designate for at the moment)20:40
KiallOkay, so nothing large....20:40
andrewbogott(hoping to add a horizon config for floating IPs and domains once this is resolved)20:40
KiallDo all the pDNS servers lock up at once? or just 1 at a time?20:40
andrewbogottThat’s a good question, and I’m not sure.  I think it’s only one of them.20:41
andrewbogottI have a primary and a failover, the failover gets essentially 0 traffic20:41
andrewbogottso even if it did lock we wouldn’t notice20:41
andrewbogottKiall: bear in mind that just because my config is sort of working, it is almost certainly not ‘correct'20:42
andrewbogottSince the docs (e.g. https://github.com/openstack/designate/blob/stable/kilo/doc/source/backends/powerdns.rst) are pretty much incoherent about config20:42
andrewbogottit’s trial and error for the most part20:42
andrewbogottI can c/p my designate config if that’s of interest.20:42
andrewbogottI’ve also noticed that despite those docs saying "domain_type NATIVE,” the domains that designate actually creates are set to ‘SLAVE,’ and ‘SLAVE’ is a string literal in the code.20:44
andrewbogott(no idea if that’s related or just a random grievance)20:44
Kiall5th disconnect WTF -_- At least it's keeping the history!20:44
KiallYea, the way we interact with DNS servers has changed LOTS and the docs really didn't keep up - we messed up there :(20:44
KiallSlowly getting things back in shape20:44
Kiall6th. Okay, next time you see a lockup, as it's hard to tell what's happening from just this info.. Can you:20:45
andrewbogottKiall: please bear in mind that you have at least one actual user running a production install, who may enjoy upgrading from time to time.20:46
Kiallgrab the `show processlist` output from mysql, if it's locking on the DB, that should show something20:46
andrewbogottok, let me see if we captured that last time...20:46
*** krotscheck has joined #openstack-dns20:46
*** openstackgerrit has quit IRC20:47
*** openstackgerrit has joined #openstack-dns20:47
*** ChanServ sets mode: +v openstackgerrit20:47
andrewbogottKiall: this may be of interest:  https://phabricator.wikimedia.org/T124680#200797020:48
KiallAlso, you said you had exactly 2 nameservers, 1 active and 1 standby - if you can set master=false, slave=false on the standby - with a giant caveat that it needs to be flipped to true to use the standby - and see if the lockups happen, that would rule out the 2 locking on each other.20:48
andrewbogottUnfortunately the lockups happen only every few weeks.  So it’s very hard to experiment with any reliability.20:50
andrewbogottWould you expect the systems to typically be master/slave true/true?  Or false/true?20:50
Kiallthe worst kind. From that URL, I see a comment at the end re "Does pdns delete all records and reimport them periodically (see rows_inserted and rows_deleted)?"20:50
andrewbogottKiall: the answer to that is ‘yes’ isn’t it?  Basically that happens every time there’s a sync20:51
KiallLike 142nd disconnect. This happening as often to others?20:52
KiallIt indeed does, it starts a TX, deletes all the records in the zone, and repopulates the contents before completing the TX20:52
*** james_li has quit IRC20:53
Kiallmaster=false for most deployments20:53
Kiallslave=true for all (unless you're trying to debug things)20:54
andrewbogottok, that sounds right to me20:54
Kiallslave=false will mean it ignores designate-mdns when it's told to update content20:54
*** james_li has joined #openstack-dns20:54
andrewbogottKiall: if I paste a redacted version of my designate config would you be willing to take a look?  There may be obvious mistakes.20:54
*** eandersson_ has joined #openstack-dns20:55
KiallYea, no problem... be consistent in redacting tho ;) e.g. 1.0.0.1 -> x.x.x.x, 1.0.0.2 -> y.y.y.y - it can be hard to trace when everything is *'s ;)20:55
andrewbogottok, will ping you shortly20:56
eandersson_Kiall: Do you know why records aren't deleting properly after an upgrade from Kilo to Liberty?20:56
eandersson_mugsie, thought that it could be a bug20:57
eandersson_or sounded like it at least20:57
eandersson_Any major changes I missed maybe during the upgrade.20:57
Kiallehh, records not deleting? but new ones do get created? that's a new one for me...20:57
eandersson_Stuck pending in the DB20:58
eandersson_Feels like I ran into a similar issue when upgrading to Kilo.20:58
eandersson_I am also seeing the following when using the cli http://paste.openstack.org/show/487796/20:59
*** Kiall has quit IRC21:00
*** Kiall has joined #openstack-dns21:00
*** Kiall has quit IRC21:00
*** Kiall has joined #openstack-dns21:01
Kialleandersson_: so Q, things only get stuck in pending when you're deleting a record? other actions do work?21:02
Kiall(or, mugsie will prob be back in a bit! might be better than starting over :D)21:02
eandersson_I only tried adding / removing records so far21:03
eandersson_Yea, you are probabl right.21:03
eandersson_Was going to deal with this tomorrow, but... I have a difficult time leaving something broken lol21:03
mugsieeandersson_: hey - back21:09
*** Kiall has quit IRC21:09
mugsiestupid bus driver took the worng bus from the depot and we had to go back and swap buses -_-21:09
eandersson_haha that stinks21:10
*** Kiall has joined #openstack-dns21:10
eandersson_So mugsie I upgraded to trunk, still nothing.21:10
andrewbogottKiall: behold, my crufty config:  https://phabricator.wikimedia.org/P265021:10
eandersson_sorry not trunk, but latest stable/liberty21:10
mugsieok. do you have logs from pool-manager / minidns that show any issues?21:11
Kiallandrewbogott: double checking, kilo?21:11
mugsieI am just about to hop on a call, will be back in a few21:11
andrewbogottYes, kilo.  And a lot of stuff in there is supporting custom sink handlers; should be obvious which.21:11
KiallL57 can be removed, no longer used.. (Just saying while I see it)21:12
andrewbogottKiall: that file was migrated from older versions, so if you see settings that are deprecated let me know and I’ll snip them out21:12
Kiall:D21:13
andrewbogottheh, you’re on it :)21:13
KiallL143 looks dud aswell..21:14
*** mlavalle has quit IRC21:14
KiallOMG. why FreeNode/my ISP, why do you hate me?21:15
andrewbogottso [service:pool_manager] can be 100% defaults?21:15
eandersson_andrewbogott, you upgrading to kilo?21:16
KiallI'd have expected to see a second [pool_nameserver:*] section, for the standby pDNS.21:16
Kialland is mdns running on both the pDNS servers? if so, the masters = 127.0.0.1:5354 is fine.. but you can list out non-loopback IPs for them all there too.. No harm though21:17
Kiallre all defaults, yea.. it can be21:17
andrewbogottok, now this is getting interesting :)21:17
andrewbogottI have two separate boxes, one is running mdns and pdns, the other (the secondary) running only pdns21:17
andrewbogottthe second had up-to-date records last I checked, but I haven’t checked in a while21:18
Kiallit's getting them via the first one doing the AXFR21:18
andrewbogottah,ok, so right now my secondary is a slave of my primary rather than a slave of mdns21:18
andrewbogott(if I understand my terminology correctly)21:18
KiallBut, if it obtains a lock on the DB and tries to AXFR, it might just hold the lock for quite some time21:18
Kiallkinda.. it's not slaving from the primary pDNS, it just happens to be sharing a datastore so "flukes" into getting content21:19
andrewbogottKiall: so, would it be an option to just configure my secondary to be master=false slave=false, and rely on it getting what it needs from the db that’s written to by the primary?21:19
andrewbogottin other words, declare that ‘fluke’ to be on purpose :)21:20
KiallThat's an option, until the primary falls over.21:20
andrewbogottah, right, of course, then it will drift out of sync.21:20
Kialland it may very well be that pDNS is very eager to obtain a lock, meaning the second one not being able to AXFR could do weird things.21:20
andrewbogottSo, action items:21:21
andrewbogott1)  Add a pool_nameserver entry for secondary pdns21:21
andrewbogott2)  somethingsomething to make mdns send xfr updates to both21:21
andrewbogottwhat does 2) look like?  is it just21:22
andrewbogottmasters = <primaryip>:5354, <secondaryip>:5454 ?21:22
Kiallyep, and 1 more thing to complete #2.. 1 sec while I dig it out21:22
andrewbogottwait...21:23
andrewbogottmasters should point to mdns, correct?21:23
andrewbogottso it should actually be21:24
KiallYes, points to mDNS - ideally more than 1 mDNS so if it crashes, it still OK21:24
andrewbogottmasters = <mdnsip>:535421:24
andrewbogottin both sections21:24
andrewbogott(and, yeah, with a second mdns ideally)21:24
andrewbogottok, I think I follow21:24
Kialland.. UPDATE pdns.domains SET masters="mDNSip:port,mDNSip:port"; to update existing domains in the powerdns DB.21:24
KiallUPDATE pdns.domains SET master="mDNSip:port,mDNSip:port"; *21:25
andrewbogottok.  In the short run I’m not expecting to add a second mdns, I’ll just point both pdns servers to the existing mdns21:25
Kiall(We tend to err on the side of not updating existing things like ^, as you might have millions of zones)21:25
andrewbogottso in that case that UPDATE is not needed, correct?21:25
KiallIt is, as it'll have 127.0.0.1 in there right now21:26
andrewbogotthm...21:26
andrewbogottSo, sorry, I’m going to make you repeat yourself I think.  ‘master’ is conveyed to pdns, and pdns is told “listen for updates from this"21:27
andrewbogottis that right?21:27
andrewbogottoh, sorry, no21:28
andrewbogottyou just told me — I’m conveying that to pdns myself, via that update command21:28
KiallIt's 2 way.. designate will shout over to powerdns saying "Hey, I think I have some new content for you - foo.com, serial 1234".. powerdns will check it's DB to see if it has foo.com 1234, and if not, reaches back out to one of the mdns servers asking for the full content of the zone21:28
andrewbogottok, I’m following I think.21:29
andrewbogottKiall: any other points of pain in that config?21:31
andrewbogott(And, I don’t rightly remember where those uuids come from, they only have to be internally consistent within the config, right?  Or are they in a db someplace?)21:32
KiallYes, Interally consistent.21:32
KiallAnd, no - no other weirdness that I see.. Though, I am curious what the nova_ldap handler is?21:33
andrewbogottKiall:  It’s something I’m trying to kill :)21:33
eandersson_That was the first thing I implemented as well. =]21:34
andrewbogottBut, for the moment, we have per-instance ldap entries that store various things, most interestingly puppet node definitions.21:34
andrewbogottSink seemed like a reasonable place to stow that since it’s getting notifications for instance creation and knows all the right things anyway.21:34
KiallHah, fair enough :)21:35
andrewbogottKiall: thank you for looking over my config!  I may solicit a code review when I have the config patch written.21:35
Kiallsure.. no problem21:36
openstackgerritChris Johnson proposed openstack/designate: Cleanup after enable files refactor  https://review.openstack.org/28326821:36
KiallHopefully that really was it, if the standby pDNS was somehow holding the lock while it tried to talk to a master that didn't actually exist (127.0.0.1..), it's certainly possible it's caused things to deadlock. But.. We'll see if the happens again after those config changes21:37
Kiallgotta run to the shops before they chose.. back in a bit.21:38
*** porunov has joined #openstack-dns21:43
mugsieeandersson_: hey - sorry, my boss likes to talk... a lot21:43
mugsie:)21:43
* mugsie just checked he wasnt in here21:44
eandersson_haha no worries21:44
eandersson_I'll have to pick this up tomorrow though21:44
mugsiecool. just give me a ping21:44
mugsieI am on most of the time :)21:44
eandersson_Is there anything that needs to be changed in the config after an upgrade from Kilo to Liberty?21:44
eandersson_Anything obvious that I might have missed?21:44
eandersson_Since you probably wont be online until late for me tomorrow =]21:46
mugsiewell, I am UTC, so I should be OK for you (in theory) :). Kilo to liberty - let me have a quick look21:47
eandersson_oh wow working late? :D21:48
mugsiejust a bit21:48
mugsiethe sample config hasnt changed21:49
mugsie(much) - nothing of major interest21:49
mugsiethere should not be anything extra needed21:49
eandersson_Is the new service required?21:55
Kiallzone-manager? Nope, totally optional for some new features...21:56
eandersson_ah kk didn't read anything about it *yet*21:57
eandersson_I'll go and play some Overwatch then and try again tomorrow =]21:58
eandersson_thanks guys for the help21:58
openstackgerritFederico Ceratto proposed openstack/designate: Update Bind 9 backend and other documentation  https://review.openstack.org/28243722:05
openstackgerritTim Simmons proposed openstack/designate: Add an on-demand single-target sync method  https://review.openstack.org/27429222:22
*** jordanP has joined #openstack-dns22:27
*** ducttape_ has quit IRC22:40
*** ducttape_ has joined #openstack-dns22:42
andrewbogottKiall: at your leisure, https://gerrit.wikimedia.org/r/#/c/271797/22:54
andrewbogott(you surely cannot leave comments there, but the patch itself should be public)22:54
*** jordanP has quit IRC22:57
openstackgerritMerged openstack/designate: Fix a missing '\' in doc  https://review.openstack.org/28135923:03
*** eandersson_ has quit IRC23:07
*** jmcbride has quit IRC23:17
*** f1ller is now known as filler23:19
*** ducttape_ has quit IRC23:20
*** pglass has quit IRC23:21
*** km has joined #openstack-dns23:22
*** kei_yama has joined #openstack-dns23:27
Kiallandrewbogott: just heading to bed, but had a real quick look.. So, it should be 2 pool nameserver sections, and 1 pool target section..23:36
KiallIf you move forward with 2 pdns and 2 DBd, then it's 2 nameserver sections and 2 target sections..23:37
andrewbogottso target == mdns23:37
andrewbogottand nameserver == pdns?23:38
andrewbogottKiall: does that mean that I’m setting a url to the pdns database for mdns and /not/ for pdns?  That confuses me :)23:39
Kialltarget is where creates and deletes go, nameservers are where we send notifies to and check that changes have gone live (for powerdns..)23:39
KiallE.g. creating a zone with a shared DB only needs to happen once, while with 2 DBs it needs to happen twice.23:40
andrewbogottI follow, it’s just that in the ‘before’ version of the config that you looked at before...23:41
andrewbogottunder [pool_target:f26e0b32-736f-4f0a-831b-039a415c481e]23:41
KiallThe main thing I think will help your issue is the correction of the masters line23:41
andrewbogottwe had a connection type = powerdns set23:41
andrewbogottoh, and of course...23:42
andrewbogottpdns is both a target /and/ a nameserver23:42
andrewbogottbecause of the mysql +also axfr thing23:42
andrewbogottI’m slow to grasp that, it seems23:42
andrewbogottI’ll rewrite, and (maybe) ping you tomorrow.  Have a good night!23:42
KiallKinda, the DB is the target, powerdns is the nameserver.. It's odd, I know.. It's hard to map the many different ways different DNS servers work into something that's obvious for all of them!23:43
andrewbogott‘db as target’ makes sense23:44
* andrewbogott comments accordingly23:44
KiallAnyway, gone.. I'll be around tomorrow anyway..23:44
KiallCya23:44
*** rsyed is now known as rsyed_away23:50

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