Tuesday, 2015-09-15

*** ccneill has quit IRC00:15
*** penick has quit IRC00:20
*** johnbelamaric has quit IRC00:26
*** jmcbride has joined #openstack-dns00:31
*** jbasalone has quit IRC00:47
*** jbasalone has joined #openstack-dns00:50
*** rudrajit has joined #openstack-dns00:55
*** banix has joined #openstack-dns01:06
*** jmcbride has quit IRC01:17
*** jmcbride has joined #openstack-dns01:21
*** rudrajit has quit IRC01:31
*** stanzgy has joined #openstack-dns01:34
*** stanzgy__ has joined #openstack-dns01:35
*** jbasalone has quit IRC01:36
*** jbasalone has joined #openstack-dns01:39
*** jmcbride has quit IRC01:40
*** jmcbride has joined #openstack-dns01:59
*** ducttape_ has joined #openstack-dns02:02
*** banix has quit IRC02:21
*** jasonsb has joined #openstack-dns02:43
*** jasonsb has quit IRC02:46
*** banix has joined #openstack-dns02:47
*** mlavalle has quit IRC03:02
*** ducttape_ has quit IRC03:13
*** ducttape_ has joined #openstack-dns03:16
*** ducttape_ has quit IRC03:22
*** timsim has quit IRC03:27
*** ryanpetrello has quit IRC03:28
*** jroll has quit IRC03:28
*** ryanpetrello has joined #openstack-dns03:30
*** rudrajit has joined #openstack-dns03:30
*** ducttape_ has joined #openstack-dns03:31
*** timsim has joined #openstack-dns03:31
*** jroll has joined #openstack-dns03:31
*** banix has quit IRC03:32
*** rudrajit has quit IRC03:33
*** rudrajit has joined #openstack-dns03:33
*** ducttape_ has quit IRC03:35
*** jroll has quit IRC03:41
*** timsim has quit IRC03:41
*** ryanpetrello has quit IRC03:41
*** d34dh0r53 has quit IRC03:42
*** d34dh0r53 has joined #openstack-dns04:04
*** ryanpetrello has joined #openstack-dns04:04
*** jroll has joined #openstack-dns04:04
*** timsim has joined #openstack-dns04:05
*** rudrajit has quit IRC04:28
*** richm has quit IRC05:37
*** jbasalone is now known as jbasalone-away05:56
*** mpbnka has joined #openstack-dns06:42
*** boris-42 has quit IRC07:10
*** jordanP has joined #openstack-dns07:38
*** jbasalone-away has quit IRC07:54
*** jbasalone has joined #openstack-dns07:55
*** mpbnka has quit IRC08:52
*** l6unchpad has joined #openstack-dns08:56
*** l6unchpad has quit IRC09:30
*** jbasalone is now known as jbasalone-away09:32
*** Billias has quit IRC09:33
*** l6unchpad has joined #openstack-dns09:35
*** bradjones|away has quit IRC09:47
*** bradjones has joined #openstack-dns09:49
*** bradjones has quit IRC09:49
*** bradjones has joined #openstack-dns09:49
*** Billias has joined #openstack-dns10:03
*** richm has joined #openstack-dns10:06
*** chlong has quit IRC10:09
*** chlong has joined #openstack-dns10:11
*** l6unchpad has quit IRC10:28
*** mwagner_lap has quit IRC10:29
*** l6unchpad has joined #openstack-dns10:29
*** stanzgy__ has quit IRC10:46
*** stanzgy has quit IRC10:46
*** jbasalone-away is now known as jbasalone11:00
*** jbasalone is now known as jbasalone-away11:01
openstackgerritsonu proposed openstack/designate: Replace request.request_mac with request.mac  https://review.openstack.org/22352411:07
*** ducttape_ has joined #openstack-dns11:13
*** l6unchpad has quit IRC11:14
*** ducttape_ has quit IRC11:17
*** ducttape_ has joined #openstack-dns11:19
*** l6unchpad has joined #openstack-dns11:39
*** kei_yama has quit IRC11:40
openstackgerritEric Peterson proposed openstack/designate-dashboard: Removed unnecessary header docs for pep8.  https://review.openstack.org/22280011:46
*** ericpeterson has joined #openstack-dns11:52
*** ducttape_ has quit IRC11:55
*** ducttape_ has joined #openstack-dns11:55
*** ericpeterson has quit IRC11:57
*** ducttape_ has quit IRC12:00
*** mwagner_lap has joined #openstack-dns12:06
*** jmcbride has joined #openstack-dns12:19
*** km has quit IRC12:24
*** EricGonczer_ has joined #openstack-dns12:25
*** EricGonczer_ has quit IRC12:27
*** jmcbride has quit IRC12:34
*** richm has quit IRC12:43
*** banix has joined #openstack-dns12:45
*** l6unchpad has quit IRC12:49
*** richm has joined #openstack-dns12:56
*** andrewbogott has left #openstack-dns12:57
*** banix has quit IRC13:16
*** l6unchpad has joined #openstack-dns13:21
*** johnbelamaric has joined #openstack-dns13:25
*** l6unchpad has quit IRC13:32
*** jmcbride has joined #openstack-dns13:52
*** EricGonczer_ has joined #openstack-dns13:56
*** jbasalone-away has quit IRC13:57
*** jbasalone has joined #openstack-dns13:57
*** ducttape_ has joined #openstack-dns13:58
ducttape_bdx - I updated your commit message.  Usually the bugs in launchpad will cross link when the commit message gets corrected, not sure what is going on with that thing14:01
*** mlavalle has joined #openstack-dns14:04
mlavalleKiall: ping14:04
mlavalleKiall: please don't forget to reach out to the infra team by email to have designate + neutron in the gate. Please include carl_baldwin in the message14:18
mlavallemugsie, timsim: in API V2, how do you create PTR records? Or are they just created for you out of the A and AAA records?14:19
timsimmlavalle: You can do it manually like this: http://docs.openstack.org/developer/designate/howtos/manage-ptr-records.html or use the (apparently undocumented) /v2/reverse endpoint, which will get your floatingips from neutron.14:23
*** banix has joined #openstack-dns14:28
*** jmcbride has quit IRC14:29
*** kbyrne has quit IRC14:31
*** kbyrne has joined #openstack-dns14:37
*** kbyrne has quit IRC14:38
*** kbyrne has joined #openstack-dns14:40
*** pglass has joined #openstack-dns14:45
*** pglass has quit IRC14:45
*** pglass has joined #openstack-dns14:46
mlavalletimsim: thanks :-)14:57
*** mlavalle has quit IRC14:57
*** jbasalone is now known as jbasalone-away15:04
*** jbasalone-away is now known as jbasalone15:06
*** jbasalone is now known as jbasalone-away15:07
*** csoukup has joined #openstack-dns15:07
elarsonhey all, when passing criterion to a central find_* method, how can I do an OR?15:15
elarsonie foo = bar or foo = baz15:15
timsimI think you can do 'foo': ['bar','baz']15:17
timsimyeah, https://github.com/openstack/designate/blob/master/designate/sqlalchemy/base.py#L142-L14315:19
timsimDoing a list should do a select * from x where foo in (bar,baz)15:20
*** ccneill has joined #openstack-dns15:21
elarsontimsim: awesome. thanks!15:27
*** en_austin has joined #openstack-dns15:27
en_austinhi all! can anybody share a designate's config with multiple backend servers (or give an advice in modifying my own) - in my case, I want to build a separate API and two backends15:29
timsimen_austin: You want multiple DNS servers to be the same. aka Have Designate update multiple dns servers with the same info?15:30
en_austinyep, exactly15:30
en_austinlike usual master/slave instances, but Designate-controlled15:31
timsimSure, paste your config in and we can help.15:31
*** jbasalone-away is now known as jbasalone15:32
*** jbasalone is now known as jbasalone-away15:32
en_austintimsim: http://paste.openstack.org/show/463144/15:32
en_austinit's not clear for me how to use multiple backends here - i should give IDs via comma in "nameservers" param?15:33
timsimWhat version of designate are you running en_austin?15:34
en_austinKilo15:34
timsimk15:34
timsimYeah. So...just a sec15:34
*** boris-42 has joined #openstack-dns15:35
timsimhttp://paste.openstack.org/show/463155/ Would do if you wanted to add another BIND server at 127.0.0.215:36
timsims/Would/should ;)15:37
en_austinnice, thank you! but - can you explain a difference between "nameserver" and "target" from Designate's point of view?15:40
timsimSure.15:40
timsimA target is the thing that Designate will write to, so in BIND, that will be the BIND server itself, the thing where `rndc addzone` gets called.15:40
timsimThe nameserver is the thing that Designate will check to ensure that a change is live. So when you create a zone, Designate will send a DNS query to validate that it was indeed created, and live at the right serial number.15:41
*** james_li has joined #openstack-dns15:41
timsimFor generic BIND9, those are the same thing. But for a lot of use cases, you might want to write to say, a database, and poll some other server.15:41
en_austinlike PowerDNS, for example, right?15:41
timsimDoes that make sense?15:41
timsimYesp15:41
timsimYes15:41
timsimThere are certain BIND9 configurations where you'd want to do that as well.15:42
timsimIf you're working with something like Akamai, Dyn, same thing.15:42
en_austinSo. When API receive a "create record" request, it refers to "target" in pool and try to RNDC on each on them, and after - it refers to "nameservers" with AXFR for it. Right?15:43
en_austin(I'm talking about bind9 backend - so that's why rndc)15:43
en_austinand, what will happen if one of backends will be offline for some reasons (for example, hw node failure) - will Designate sync all changes correctly?15:45
timsimSo on a create record, it will actually just send a NOTIFY to BIND9, which should do the AXFR for itself, and update it's representation of the zone, and Designate will poll the 'nameserver' ip/port to make sure that the change went live.15:46
timsimIt'll NOTIFY the target.15:46
timsimIf for some reason one of the backend servers is down, the change will not go to an ACTIVE state, and the Pool Manager's periodic recover/sync jobs should catch it up when it comes back online.15:46
en_austinit's more clear now, thanks!15:46
timsim:)15:46
en_austinbut, if change will not go to ACTIVE state - will it be live on remaining backend?15:47
en_austinwhat does "state" means? just only Designate's internal state or smth else?15:48
timsimIt will, Designate will consider changing it to ACTIVE based on the threshold config value inthe Pool Manager's config.15:48
timsimThe state is supposed to reflect the actual state of resolution on the backend servers that Designate manages. If a change is PENDING, we can't be fully confident that it is live. But if it is ACTIVE, we know that it resolves (or at least did at last check). If something is in ERROR, Designate encountered a problem trying to roll the change out, and it will retry at an interval to true it up.15:50
en_austinGreat!15:52
*** rudrajit has joined #openstack-dns15:52
en_austinAnother one question about states - are there any way to know a state (active/pending/etc) via API?15:52
en_austinfor example, I'm deploying a stack and i want to be sure, that record is already resolving (e.g created on BIND's == in ACTIVE state in Designate)15:53
*** rudrajit has quit IRC15:54
*** rudrajit has joined #openstack-dns15:54
*** rudrajit has quit IRC15:56
*** rudrajit has joined #openstack-dns15:57
*** fawadkhaliq has joined #openstack-dns15:58
*** richm has quit IRC15:59
*** rudrajit has quit IRC16:00
timsimSure. The recordsets, and zones expose state when you get /v2/zones/id /v2/zones/id/recordsets/id16:00
*** jmcbride has joined #openstack-dns16:00
*** rudrajit has joined #openstack-dns16:00
en_austinwell, that's all for now - thanks for your support!16:06
*** jmcbride has quit IRC16:08
*** rudrajit has quit IRC16:08
*** jmcbride has joined #openstack-dns16:08
*** richm has joined #openstack-dns16:13
*** richm has quit IRC16:18
*** richm has joined #openstack-dns16:20
*** jordanP has quit IRC16:31
*** johnbelamaric1 has joined #openstack-dns16:46
*** johnbelamaric has quit IRC16:46
*** rudrajit has joined #openstack-dns16:47
*** ericpeterson has joined #openstack-dns16:53
*** ducttape_ has quit IRC16:56
*** johnbelamaric has joined #openstack-dns17:01
*** johnbelamaric1 has quit IRC17:02
*** james_li has quit IRC17:04
*** james_li has joined #openstack-dns17:05
*** l6unchpad has joined #openstack-dns17:07
*** en_austin has quit IRC17:24
*** james_li_ has joined #openstack-dns17:25
*** penick has joined #openstack-dns17:26
*** ericpeterson has quit IRC17:27
*** ducttape_ has joined #openstack-dns17:28
*** james_li has quit IRC17:28
*** kbyrne has quit IRC17:49
*** johnbelamaric1 has joined #openstack-dns17:57
*** jbasalone has joined #openstack-dns17:58
*** james_li_ has quit IRC17:58
*** johnbelamaric has quit IRC17:58
*** jbasalone-away has quit IRC18:01
*** l6unchpad has quit IRC18:06
*** james_li has joined #openstack-dns18:19
*** l6unchpad has joined #openstack-dns18:22
*** fawadkhaliq has quit IRC18:25
*** jmcbride has quit IRC18:27
*** jmcbride has joined #openstack-dns18:29
*** ccneill has quit IRC18:32
*** ccneill has joined #openstack-dns18:37
*** jbasalone has quit IRC18:38
openstackgerritCharles Neill proposed openstack/designate: Unauthed tests for RecordSets (Security)  https://review.openstack.org/22374518:42
*** l6unchpad has quit IRC18:43
*** pglass has quit IRC18:56
*** pglass has joined #openstack-dns18:59
*** jbasalone has joined #openstack-dns19:02
*** james_li has quit IRC19:31
*** james_li has joined #openstack-dns19:32
*** jbasalone has quit IRC19:34
*** jbasalone has joined #openstack-dns19:36
*** johnbelamaric has joined #openstack-dns19:46
*** johnbelamaric1 has quit IRC19:48
*** jbasalone has quit IRC20:19
*** jbasalone has joined #openstack-dns20:20
*** mwagner_lap has quit IRC20:37
*** jbasalone has quit IRC20:56
*** jbasalone has joined #openstack-dns20:59
pglasshey ccneill21:01
ccneillyo21:01
pglassregarding this: https://review.openstack.org/#/c/223745/21:02
ccneillI saw the gate jobs failed on my CR :\21:02
pglassyeah21:02
ccneillnot sure why21:02
pglassso there's no noauth section in the tempest config in the gate21:02
ccneillahhh21:02
*** jmcbride has quit IRC21:02
ccneillyeah, I was curious how that was going to work in the gate21:02
ccneillis there a way that would make more sense?21:02
ccneillI wanted to avoid writing my own auth provider, but maybe I need to do that?21:03
pglassdo you just want to skip passing in the X-Auth-Token header for those tests?21:04
ccneillyep21:04
ccneilland I don't need to send x-auth-tenant-id really21:04
ccneillbut that was the only way I could get the KeystoneV2Credentials call to work21:04
pglassso that NoAuthAuthProvider was a bit of a hack21:06
pglassI copy pasted it from tempest-lib and then edited to skip passing in the auth token header...21:06
*** jmcbride has joined #openstack-dns21:07
pglassIt should work a lot better if the _decorate_request method here: https://review.openstack.org/#/c/223745/ calls super._decorate_request and then modifies the headers it gets back21:07
ccneillyeah, well I just kind of hacked on top of it haha21:07
*** csoukup has quit IRC21:07
pglassthat should let us select what headers we want to (dis)allow more easily21:08
pglassalthough why didn't I do that initially...?21:08
pglassbecause AuthProvider._decorate_request is abstract...21:09
pglasshmm21:11
ccneillyeah I didn't dig too deep into the tempest_lib part of things, but it didn't seem like there was an easy way to avoid using keystone creds... the best I could do was just a tenant ID21:12
pglassyeah this is kind of awkward21:15
ccneillhmm, so it looks like just passing in None as creds might actually work.. since check_credentials just returns True anyway21:17
ccneillI swear I tried that before though...21:17
pglasswell, but the client still needs to get the url from the service catalog for the gate21:18
ccneillahh21:19
pglassso we'll have to use/subclass KeystoneV2AuthProvider to get the right url: https://github.com/openstack/tempest-lib/blob/master/tempest_lib/auth.py#L27421:23
ccneillyeah it looks like my tests don't run right when passing None as creds :\21:23
pglassokay21:25
pglassyeah21:25
pglassyou can subclass KeystoneV2AuthProvider21:25
pglassthe override its _decorate_request method to call super._decorate_request, which will return the headers that you can modify21:26
pglassthen when we're actually writing the tests we'll use ZoneClient.as_user('default').get_zone()21:27
pglass^ when we want a token21:27
pglassand then ZoneClient.as_user('default-no-auth').get_zone() when we don't want a token?21:27
pglassthat's not the greatest thing I guess21:27
ccneillyeah well, since these tests are all unauthed tests, I just define self.client as the no_auth client, so that would work for me21:28
ccneillbut I'm not sure if it's the best thing for other use cases21:28
pglassit would probably be clearer if it was ZoneClient.as_user('default', no_token=True).get_zone()21:29
pglassor something like that21:29
pglassbut then we have to forward a bunch of flags21:29
pglassmaybe21:29
ccneillwell at least we get rid of the "noauth" section in the tempest config21:30
ccneillhmm21:30
pglasswell21:30
pglassso the noauth section is for running the tests against Designate without keystone21:30
pglasswhich we frequently want to do for development because setting up keystone/devstack is a pain21:31
ccneillok so we leave that, but want to use something different for the case where we have keystone but we don't want to use it21:31
ccneill(and yeah, agreed about getting keystone set up)21:31
pglassthe idea with this mangled AuthProvider thing I came up with is that we can run against keystone without any config changes, and selectively test for unauthenticated requests when we want to21:33
ccneillalright, I'll see if I can hack something together21:38
*** richm has quit IRC21:38
ccneillbrb21:38
*** EricGonczer_ has quit IRC21:39
*** johnbelamaric has quit IRC21:41
*** jbasalone has quit IRC21:45
*** jbasalone has joined #openstack-dns21:46
*** jbasalone has quit IRC21:52
*** richm has joined #openstack-dns21:55
*** csoukup has joined #openstack-dns21:56
*** csoukup has quit IRC21:57
*** jbasalone has joined #openstack-dns22:01
*** jbasalone has quit IRC22:03
*** penick has quit IRC22:08
*** jmcbride has quit IRC22:11
*** jbasalone has joined #openstack-dns22:20
*** pglass has quit IRC22:30
*** ducttape_ has quit IRC22:32
*** jbasalone has quit IRC22:48
*** banix has quit IRC22:48
*** jbasalone has joined #openstack-dns22:50
*** jbasalone has quit IRC22:57
*** km has joined #openstack-dns23:04
*** jbasalone has joined #openstack-dns23:04
*** jennyb has joined #openstack-dns23:11
*** jbasalone has quit IRC23:15
*** openstackgerrit has quit IRC23:16
*** jennyb has quit IRC23:16
*** openstackgerrit has joined #openstack-dns23:16
*** ChanServ sets mode: +v openstackgerrit23:16
*** jbasalone has joined #openstack-dns23:17
openstackgerritCharles Neill proposed openstack/designate: Unauthed tests for RecordSets (Security)  https://review.openstack.org/22374523:18
*** banix has joined #openstack-dns23:21
*** kei_yama has joined #openstack-dns23:27
*** jbasalone has quit IRC23:33
*** jbasalone has joined #openstack-dns23:36
*** james_li has quit IRC23:40
*** dtx00ff has joined #openstack-dns23:41
*** EricGonczer_ has joined #openstack-dns23:43
*** rudrajit has quit IRC23:46
*** banix has quit IRC23:56

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