=== allenap_ is now known as allenap === Guest9121 is now known as wallyworld === mscheel` is now known as mscheel === CyberJacob|Away is now known as CyberJacob === CyberJacob is now known as CyberJacob|Away [09:16] anyone around? I'm having issues with getting maas cli ipaddresses to work [09:16] $ maas maas-root ipaddresses reserve network=192.168.50.0/24 [09:17] No network found matching 192.168.50.0/24 [09:18] but I can see 192.168.50.0/24 in the networks list with $ maas maas-root networks read [09:19] roaksoax, allenap, gmb, rvba`, if you have a moment? ^^ [09:21] jtv, bigjools, blake_r, jhobbs, or maybe one of you? ^^ [09:23] dimitern: I’m here, but I have less experience than you with that command :) [09:23] * allenap fires up NUC. === rvba` is now known as rvba [09:24] allenap, ah :), sorry to bug you, but it seems the command accepts some format I'm not getting or there may be a bug [09:35] allenap: What’s the nicest way to test the way a function handles an error in an RPC call? Is it to set the side_effect of the RPC call (when using MockLive*Fixture) to defer.fail(Exception(….)) or am I missing something? That way doesn’t quite work the way I expected. [09:35] dimitern: is the cluster interface set to manage DHCP? [09:35] jtv, let me check [09:35] And more importantly, does it have a static range set? [09:35] jtv, yes: eth0 192.168.50.0/24 Manage DHCP and DNS [09:36] And the static range? [09:36] jtv, hmm, that might be it - how to check? [09:36] Because that's where the static IP address comes from. [09:36] Look at the cluster interface in the UI. [09:36] (Well, or the API, but UI is easier.) [09:36] jtv, there's nothing in the Non-MAAS DHCP column [09:36] That's OK. [09:36] That's just a check for rogue DHCP servers on the network. [09:37] But click on to the page for that specific interface, and you should see a dynamic address range and a static address range. [09:37] If it only has the dynamic range, then you can't reserve static IP addresses because there's no address range to take them from. [09:38] jtv, it indeed did have only dynamic ranges, I added static low-high, but the cluster edit page still does not show anything in Non-MAAS DHCP [09:38] Are you running a DHCP server on that subnet that's not managed by MAAS? [09:39] jtv, nope, maas is running inside kvm on a dedicated bridge, so it's isolated from the rest of the network [09:39] jtv, and after adding the static range it did work! thanks! [09:40] The Non-MAAS DHCP field is there only to show you if there are any DHCP servers running on the subnet that MAAS isn't in charge of. Empty is its normal, "everything OK" state. [09:40] jtv, I see [09:40] jtv, but I have to note that as a dumb user the "No network found matching 192.168.50.0/24" error message when there's no static range set isn't very helpful :) [09:41] Indeed. [09:41] File a bug? [09:45] jtv, will do, thanks [09:49] gmb: Sorry, I missed your question until now. /me thinks. [09:49] No worries [09:50] gmb: Yeah, set side_effect. [09:50] gmb: What’s not working quite right? [09:52] bug filed: https://bugs.launchpad.net/maas/+bug/1367197 [09:52] Ubuntu bug 1367197 in MAAS "maas-cli ipaddresses reserve network=CIDR error message unhelpful" [Undecided,New] [09:53] jtv. dimitern: I was *just* looking at the code that does that 10 minutes ago and thinking... hmm this will give the wrong error! And guess what ... [09:53] allenap: http://paste.ubuntu.com/8298444/ produces http://pastebin.ubuntu.com/8298451/ [09:53] bigjools: told you it'd make more sense to match on the full network before checking against just the static range. :) [09:53] jtv: meh [09:54] * bigjools goes afk [09:54] bigjools, :) indeed [09:55] dogfooding IS king [09:55] gmb: I’s investigatin' [09:56] Ta [09:59] gmb: I can’t apply that to trunk. Do you mind merging trunk and diffing again? [09:59] Gnargh. [09:59] allenap: Sure [10:00] (As in “Sure, no problem,” not “yes, I mind, you cheeky swine." [10:01] allenap: http://paste.ubuntu.com/8298498/ [10:02] allenap: or lp:~gmb/maas/create-node-to-use-RPC [10:09] gmb: I think mock is getting confused over the use of both return_value and side_effect. http://paste.ubuntu.com/8298529/ is my fix. [10:09] allenap: Ah, sweet. Thanks. [10:10] allenap: Also, didn’t know you could have a list of side_effects. Nice! [10:12] gmb: Yeah, I didn’t know that until relatively recently. [10:12] allenap, gmb, re that bug I filed, is it hard to change the error message in that case? [10:12] I mean it's something that will probably hit us sooner rather than later, however trivial it might seem [10:13] so IMHO it should be triaged as High perhaps [10:16] dimitern: it's not trivial to fix [10:17] priority reflects the reality of when it will get fixed, not how important it is [10:17] bigjools, I see, ok then [10:17] having said that, I'll take a look tomorrow [10:18] bigjools, thank you ever so much :) [10:18] :) [12:40] caribou: yes, "bzr branch," commit & push changes, then "propose for merging" into lp:maas. [12:41] jtv: work is done on the upstream branch or the Ubuntu one (i.e. lp:ubuntu/maas) ? [12:43] jtv: I have another question but I'll ask in the Freenode channel [12:43] oh, I am now [12:44] man I need to figure out a way to discriminate b/w two channels with the same name [12:45] ok, I'm working on another bug : when installing maas-cluster-controller, the postinst script runs "chown -R /var/log/maas" [12:45] in doing this, it changes the ownership of /var/log/maas/rsyslog & the syslog daemon can no longer write to it [12:47] would the following change to the postinst script be adequate for you : http://paste.ubuntu.com/8299594/ [12:47] caribou: the work is done on the upstream branch. [12:48] jtv: perfect! [12:48] I guess /var/log/maas needs syslog as its group then..? [12:49] jtv: before installing maas-cluster..., the ownership is correctly set to syslog:syslog [12:50] jtv: the maas-region-controller.postinst script does it correctly [12:50] jtv: it is just the blanket change by "chown -R" in the maas-cluster pkg that messes things up [12:51] Oh, what you're proposing is already in the region postinst? [12:52] jtv: no, the region sets up /var/log/maas as owned by syslog:syslog, but then installing the maas-cluster behind it resets it to maas:maas [12:52] Do we know that maas will still be able to do all the logging it needs, e.g. after log rotation? [12:53] jtv: so if I do the normal "apt-get install maas", /var/log/maas/rsyslog is owned by maas:maas & the syslog daemon cannot write to it [12:53] jtv: if I only install the maas-region-controller package (for testing purpose), then /var/log/maas/rsyslog is owned by syslog:syslog [12:53] Yes, so the question is: will the cluster controller be able to log when it's like that? [12:54] jtv: well, doing the 'find .' in http://paste.ubuntu.com/8299594/ will change everything bug rsyslog to maas:maas so I suppose that it will work [12:55] jtv: one thing is sure : /var/log/maas/rsyslog when owned by maas:maas doesn't work [12:55] Right. [12:56] I guess it'll work in either installation order? [12:56] (Sorry, evening here, tired!) [12:57] jtv: no worry, it's not obvious out of the context [12:58] jtv: I'll propose a branch & test my stuff before hand. then you people can judge [12:58] If comments are possible, add them! [12:58] Thanks. :) [13:00] jtv: thank you [13:00] Don't thank me. You're the one writing the patch. :) [13:46] hmm, the change I was talking about previously is in a debian packaging specific file; should I do the MP from the lp:ubuntu/maas branch ? [14:10] if tcpdump shows the ipmi packets going from the controller to the ilo on the HP DL 360 blade, and it doesn't power on, what are the most likely suspects? [14:34] allenap: Calling allenap-as-a-service… Why does http://paste.ubuntu.com/8300331/ give me http://paste.ubuntu.com/8300352/? === kickinz1` is now known as kickinz1|afk [14:42] allenap: Nevermind. Fixed it. [14:44] allenap: Oh, wait, no I haven't. === kickinz1|afk is now known as kickinz1 [15:19] gmb: I was surprised to see https://bugs.launchpad.net/maas/+bug/1357071. I thought we were using a wrapped around system calls but apparently, this is coming straight from the Python library… any idea on how we could fix this? I'm asking because I'm not sure Blake's big replacement is going to be done in time for the release. [15:19] Ubuntu bug 1357071 in MAAS "When a power template fails, the content of the event from the node event log is not readable (it contains the whole template)" [High,Triaged] [15:29] rvba: I have no clever ideas off the top of my head… bear with me a sec. [15:29] allenap: I’m completely stuck with the problem I pung you with last. Whenever you’ve got a chance to eyeball it, it’d be appreciated. [15:34] rvba: I need some context. Where in the code is that error actually coming from? [15:37] gmb: that's the thing, I tried to change ExternalProcessError.str (or whatever it's called) and couldn't get a different representation of the error. [15:38] ! [15:38] gmb: then I hacked /usr/lib/python2.7/subprocess.py:CalledProcessError and *this* changed the error [15:39] Ooo-kay [15:39] That's why I was surprised, I thought we were using a wrapper each time we need to shell something out. [15:42] rvba: Well, isn’t the offending code in src/provisioningserver/power/poweraction.py? [15:42] That doesn’t use our wrapper (why? IDK) [15:42] It uses subprocess directly. [15:43] rvba: See PowerAction.run_shell() [15:43] rvba: So maybe a first step is to change that to use our call_and_check wrapper. [15:44] gmb: yeah, probably. [15:44] gmb: I was just wondering why we didn't use that already. [15:45] rvba: No clue, I’m afriad. We (I?) must’ve missed that when switching things over to use call_and_check. [15:47] allenap, rvba, blake_r, jhobbs: https://code.launchpad.net/~gmb/maas/create-node-to-use-RPC/+merge/233899 needs a review, please. [16:01] gmb: done [16:01] blake_r: Thx === kickinz1 is now known as kickinz1|afk [16:59] allenap: You’ve got a bunch of cards in the review lane for celery removal, but I don’t see any branches… are those ones all done, or am I jumping the gun? [17:14] Yay, test isolation problems! [17:14] But they’re for tomorrow. [17:44] gmb: They’re reviewed, just not landed yet. === roadmr is now known as roadmr_afk === kickinz1|afk is now known as kickinz1 === kickinz1 is now known as kickinz1|afk === CyberJacob|Away is now known as CyberJacob === roadmr_afk is now known as roadmr === jfarschman is now known as MilesDenver === jfarschman is now known as MilesDenver