Tuesday, 2013-09-17

*** eankutse has quit IRC00:05
*** shakayumi has quit IRC00:55
*** shakayumi has joined #openstack-dns00:57
*** shakayumi has quit IRC00:58
*** jeffreyio2 has joined #openstack-dns01:27
*** jmcbride has joined #openstack-dns02:07
*** jmcbride has quit IRC02:23
*** jmcbride has joined #openstack-dns02:39
*** CaptTofu has quit IRC02:41
*** vipul has quit IRC03:16
*** vipul has joined #openstack-dns03:17
*** vipul is now known as vipul-away03:35
*** vipul-away is now known as vipul03:39
*** jmcbride has quit IRC03:44
*** jeffreyio2 has quit IRC04:21
*** CaptTofu has joined #openstack-dns04:46
*** jeffreyio2 has joined #openstack-dns05:32
*** jeffreyio2 has quit IRC05:41
*** pasquier-s has quit IRC06:09
*** openstack has joined #openstack-dns06:18
*** ChanServ sets mode: +v openstack06:18
*** SlickNik has quit IRC07:14
*** vipul is now known as vipul-away07:14
*** SlickNik has joined #openstack-dns07:15
*** vipul-away is now known as vipul07:16
*** mugsie_ is now known as mugsie10:11
*** mugsie has joined #openstack-dns10:11
*** eankutse has joined #openstack-dns10:21
*** eankutse has quit IRC10:25
openstackgerritA change was merged to stackforge/designate: Give more meaningful error message when no servers are configured  https://review.openstack.org/4680910:49
*** eankutse has joined #openstack-dns11:00
*** eankutse has quit IRC11:02
kiallartom: heya11:59
kiallYea, the notifications are intended for external systems to hook into.. e.g. ceilometer or your own custom code12:00
*** betsy has joined #openstack-dns13:05
*** eankutse has joined #openstack-dns13:18
*** eankutse has quit IRC13:19
*** eankutse has joined #openstack-dns13:19
*** jmcbride has joined #openstack-dns13:24
*** CaptTofu has quit IRC13:48
*** tsimmons has joined #openstack-dns14:12
*** CaptTofu has joined #openstack-dns14:13
*** CaptTofu has quit IRC14:25
tsimmonshey Kiall are you around?14:32
kialltsimmons: heya14:32
tsimmonshey :) so I'm almost done with this code. I'm looking at copying the file in /var/cache/bind over to designate/bind9/zones.config14:33
tsimmonsI figured I would keep it consistent and use utils.execute() to do a cp command.14:34
tsimmonsThe problem is when I run it I get this error: Command: sudo designate-rootwrap /etc/designate/rootwrap.conf cp var/cache/bind/*.nzf /root/designate/bind9/zones.config14:35
tsimmonsExit code: 9714:35
tsimmonsStdout: '/usr/local/bin/designate-rootwrap: Incorrect configuration file: /etc/designate/rootwrap.conf\n'14:35
kiallIn this case, we probably(?) don't want to shell out to cp, I guess that depends on if the /var/cache/bind version is world readable.. But to explain the error :)14:36
kiallhttps://github.com/stackforge/designate/blob/master/etc/designate/rootwrap.conf.sample14:36
kiallhttps://github.com/stackforge/designate/blob/master/etc/designate/rootwrap.d/bind9.filters14:36
kiallOslo has this "root wrap" script, which is intended to restrict what services can do as `sudo`14:37
tsimmonsah, that makes sense.14:37
kiall(i.e. they reinvented /etc/sudoers.d with regexes)14:37
tsimmonsSo how should I go about getting that file over?14:38
kiallAssuming sudo and cp is necessary, we'll want to most restrictive command we can fit in there :)14:38
kiallshutil.copyfile(src, dest) is on way, assuming non-root users can read the /var/cache/bind fil14:38
kialle14:38
tsimmonsI thought about maybe using pythons shutil14:38
tsimmonshah, alright I'll do that.14:39
kiall:)14:39
tsimmonsthanks :)14:39
*** betsy has quit IRC14:50
*** betsy has joined #openstack-dns15:35
*** shakayumi has joined #openstack-dns15:43
eankutseKiall: Question - I commited patch set 2  for https://bugs.launchpad.net/bugs/1214869. I know from the Gerrit Workflow documentation that I have to click the "Publish" button to make it available for review. However, the "Publish" button is at the top of the patch set 1, and patch set 2 has a different set of buttons. Which way to go?15:44
kialleankutse: it's already published - when you uploaded the second review, it wasn't uploaded as a draft15:45
kiallso .. it's "open"15:45
kiallOS Gerrit won't automatically test on that though ..15:45
eankutsehmm… ok15:45
kiallleaving a comment with "recheck no bug" should trigger the tests15:45
kiall(done BTW)15:46
eankutseoh, so my comment on the "git commit -a —amend" should be "recheck no bug"?15:46
kiallNo - a comment on gerrit :)15:47
eankutseah, git review -m 'recheck no bug' ?15:48
kiallNo .. Login to review.openstack.org and hit the "review" button ;)15:48
kialle.g. https://review.openstack.org/#/c/45078/15:48
eankutseThanks15:49
kialleankutse: humm.. no idea why your patch is failing the flake8 test.. that error doesn't seem to make sense16:03
kiallOh .. I bet it needs to be rebased :)16:06
kiallor maybe not.. humm16:07
kiallYes. that's it16:08
kiallhttps://github.com/stackforge/designate/commit/fde4d7e01b150655434c0969ad94c16e3db2fa7d16:09
kiallThat commit went in, and among other things, adds that excutils import16:09
kiallso when Jenkins tests what the final merge would look like, it's catching a change you wouldn't see locally16:09
*** zane has joined #openstack-dns16:10
openstackgerritKiall Mac Innes proposed a change to stackforge/designate: Monkeypatch WebTest to support HTTP PATCH.  https://review.openstack.org/4698316:32
openstackgerritKiall Mac Innes proposed a change to stackforge/designate: Monkeypatch WebTest to support HTTP PATCH  https://review.openstack.org/4698316:33
*** CaptTofu has joined #openstack-dns16:33
tsimmonskiall: I'm about to submit my bind stuff, would you like me to add the needed tweak to the bind9 configuration to the new doc you published?16:34
openstackgerritKiall Mac Innes proposed a change to stackforge/designate: Monkeypatch WebTest to support HTTP PATCH  https://review.openstack.org/4698316:35
kialltsimmons: sure - I just threw up what I could remember yesterday, so any additions are welcome :)16:35
tsimmonsCool. I'll see if I have anything else relevant in my notes.16:36
kiallNothing like silly dependency versions wasting a few hours of your time >:(16:39
openstackgerritA change was merged to stackforge/designate: Monkeypatch WebTest to support HTTP PATCH  https://review.openstack.org/4698316:40
*** eankutse has quit IRC16:57
*** vipul is now known as vipul-away17:17
*** vipul-away is now known as vipul17:23
*** tsimmons has quit IRC17:30
*** jmcbride has quit IRC17:31
*** tsimmons has joined #openstack-dns17:39
*** eankutse has joined #openstack-dns17:51
*** jmcbride has joined #openstack-dns17:56
*** eankutse1 has joined #openstack-dns18:03
*** eankutse has quit IRC18:03
*** jmcbride has quit IRC18:32
*** tsimmons has quit IRC18:36
*** dmakogon_ has joined #openstack-dns19:04
*** betsy has quit IRC19:33
*** vipul is now known as vipul-away19:34
*** jmcbride has joined #openstack-dns19:58
*** msisk has joined #openstack-dns20:01
*** vipul-away is now known as vipul20:03
*** zane has quit IRC20:18
*** zane has joined #openstack-dns20:21
eankutse1Kiall: when you get the chance would you take a look at the PEP8 violation that my patch is generating. I don' see how that's coming about:20:59
eankutse12013-09-17 20:20:31.242 | pep8 runtests: commands[0] | flake820:59
eankutse12013-09-17 20:20:31.258 |   /home/jenkins/workspace/gate-designate-pep8$ /home/jenkins/workspace/gate-designate-pep8/.tox/pep8/bin/flake820:59
eankutse12013-09-17 20:20:35.690 | ./designate/backend/impl_powerdns/__init__.py:29:1: F811 redefinition of unused 'excutils' from line 2520:59
eankutse12013-09-17 20:20:35.768 | ERROR: InvocationError: '/home/jenkins/workspace/gate-designate-pep8/.tox/pep8/bin/flake8'20:59
eankutse12013-09-17 20:20:35.769 | ___________________________________ summary ____________________________________20:59
kialleankutse1: heya21:00
eankutse1Hello21:01
kiallYou must have missed my messages earlier! Took me a few mins to figure that what out too :)21:01
kiallThere actually nothing wrong with your code, the issue is what happens when your code is combined with the current tip of master :)21:01
kiallThere's*21:01
kiall17:03 <kiall> eankutse: humm.. no idea why your patch is failing the flake8 test.. that error doesn't seem to make sense21:02
kiall17:06 <kiall> Oh .. I bet it needs to be rebased :)21:02
kiall17:07 <kiall> or maybe not.. humm21:02
kiall17:08 <kiall> Yes. that's it21:02
kiall17:09 <kiall> https://github.com/stackforge/designate/commit/fde4d7e01b150655434c0969ad94c16e3db2fa7d21:02
kiall17:09 <kiall> That commit went in, and among other things, adds that excutils import21:02
kiall17:09 <kiall> so when Jenkins tests what the final merge would look like, it's catching a change you wouldn't see locally21:02
eankutse1ah.., I missed all that21:02
kiallNo problem :)21:02
kiallBest bet is to `git fetch origin && git rebase origin/master` in your branch..21:03
kiallThen run tox locally, and you'll see the same error (and the duplicate import will be visible)21:03
*** zane has quit IRC21:04
eankutse1ok. I'll try git fetch…" I already did git rebase -i master bug/1214869 but that went smoothly and did not reveal any issues21:04
kiallYour local master was likely out :)21:05
kiallyou could `git checkout master && git pull && checkout my-branch && rebase master` as a longer way than just using git fetch :)21:05
eankutse1ok. I'll try that. Thx :-)21:06
*** vipul is now known as vipul-away21:16
openstackgerritEmmanuel Ankutse proposed a change to stackforge/designate: Update domains when servers are created, modified or deleted  https://review.openstack.org/4507821:20
eankutse1Kiall: do I still need to do "recheck no bug"?21:21
kialleankutse1: nope, it only seems necessary when you first go from draft -> published21:22
kiallhttp://status.openstack.org/zuul/ shows the job queue21:22
kiallby the time you load it though... your test run's will likely already be done ;)21:23
eankutse1k. I also see the posting in the IRC21:23
eankutse1Kiall: k. Waiting for comments. Thanks for your time :-)21:24
kiallIt'll probably be the morning! late here :)21:24
kiallOn first glance, I'd love to find a way to remove the "old_server_name" arg.. def update_server(self, context, server, old_server_name):21:25
kiallThough - I have no suggestions as to how :)21:25
eankutse1ok. without the old_server_name it's hard to know how to go about the update21:26
kiallYea, It's def required to make it work.. But I wonder if we can track it via something else, like the server ID21:28
kiall(We don't have that info available to us in the backend DB today, but maybe we could add it..)21:28
kiallAnyway - Totally off the top of my head! Don't go making any changes just yet! I'll have a proper think about it tomorrow..21:29
kiallOoo21:29
kiallWe do ..21:29
eankutse1K. But I'll think through how we might go about doing the update without the old_server_name21:29
eankutse1yea :-)21:29
eankutse1we do :-)?21:30
kiallSo, We have the server ID, which we can do a SELECT content FROM powerdns.records WHERE designate_id = 'server_id' AND type = 'NS';21:30
kiall(I think this is only necessary for PDNS right now, as bind rewrites the whole zonefile?)21:31
kiallBy a fluke of bad decision making about a year or so ago.. designate_id can be a bit misleading..21:31
kiallfor normal records, it's the designate record id .. for NS records created for a server, it's the server_id21:32
kialland for SOA records it's the domain_id21:32
eankutse1I think stepping through the code, I noticed that. So your point is that the server_id remains the same even though the name has changed. So we can us the server_id as a guide to know what name to replace in the SOA record21:34
eankutse1But..21:34
kiallYea - But.. that raises a new Q21:34
eankutse1when you use the func.replace() you still have to specify the old name of the server to be replaced21:34
kiallWhat happens when the server get's deleted21:35
kiallWell - We can select the NS record based on the server_id before we update it, keep the old name around, update the server, then update the NS records21:35
*** msisk has quit IRC21:36
eankutse1I'd have to think through a bit21:36
eankutse1or maybe sleep over it a bit :-)21:37
eankutse1yes and then we also need to update the SOA to use an existing server21:38
kiallI know the feeling :) It's late, so I'm probably talking crap ;) Anyway - code looks good.. I'll leave a proper review in the morning.. Hopefully with a clean way to remove the old_server_name arg :)21:38
eankutse1Cool. Have a good rest :-)21:38
*** msisk has joined #openstack-dns21:39
*** jmcbride has quit IRC21:55
*** eankutse has joined #openstack-dns21:55
*** betsy has joined #openstack-dns21:56
*** vipul-away is now known as vipul21:58
*** eankutse1 has quit IRC21:59
*** eankutse has quit IRC22:00
*** eankutse has joined #openstack-dns22:01
*** tsimmons has joined #openstack-dns22:04
*** eankutse has quit IRC22:04
*** eankutse has joined #openstack-dns22:08
*** eankutse has quit IRC22:14
*** tsimmons has left #openstack-dns23:02
*** dmakogon_ has quit IRC23:11
*** msisk has quit IRC23:57
*** msisk has joined #openstack-dns23:58

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