/srv/irclogs.ubuntu.com/2014/09/09/#maas.txt

=== 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
dimiternanyone around? I'm having issues with getting maas cli ipaddresses to work09:16
dimitern$ maas maas-root ipaddresses reserve network=192.168.50.0/2409:16
dimiternNo network found matching 192.168.50.0/2409:17
dimiternbut I can see 192.168.50.0/24 in the networks list with $ maas maas-root networks read09:18
dimiternroaksoax, allenap, gmb, rvba`, if you have a moment? ^^09:19
dimiternjtv, bigjools, blake_r, jhobbs, or maybe one of you? ^^09:21
allenapdimitern: I’m here, but I have less experience than you with that command :)09:23
* allenap fires up NUC.09:23
=== rvba` is now known as rvba
dimiternallenap, ah :), sorry to bug you, but it seems the command accepts some format I'm not getting or there may be a bug09:24
gmballenap: 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
jtvdimitern: is the cluster interface set to manage DHCP?09:35
dimiternjtv, let me check09:35
jtvAnd more importantly, does it have a static range set?09:35
dimiternjtv, yes: eth0192.168.50.0/24Manage DHCP and DNS09:35
jtvAnd the static range?09:36
dimiternjtv, hmm, that might be it - how to check?09:36
jtvBecause that's where the static IP address comes from.09:36
jtvLook at the cluster interface in the UI.09:36
jtv(Well, or the API, but UI is easier.)09:36
dimiternjtv, there's nothing in the Non-MAAS DHCP column09:36
jtvThat's OK.09:36
jtvThat's just a check for rogue DHCP servers on the network.09:36
jtvBut click on to the page for that specific interface, and you should see a dynamic address range and a static address range.09:37
jtvIf 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:37
dimiternjtv, 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 DHCP09:38
jtvAre you running a DHCP server on that subnet that's not managed by MAAS?09:38
dimiternjtv, nope, maas is running inside kvm on a dedicated bridge, so it's isolated from the rest of the network09:39
dimiternjtv, and after adding the static range it did work! thanks!09:39
jtvThe 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
dimiternjtv, I see09:40
dimiternjtv, 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:40
jtvIndeed.09:41
jtvFile a bug?09:41
dimiternjtv, will do, thanks09:45
allenapgmb: Sorry, I missed your question until now. /me thinks.09:49
gmbNo worries09:49
allenapgmb: Yeah, set side_effect.09:50
allenapgmb: What’s not working quite right?09:50
dimiternbug filed: https://bugs.launchpad.net/maas/+bug/136719709:52
ubot5Ubuntu bug 1367197 in MAAS "maas-cli ipaddresses reserve network=CIDR error message unhelpful" [Undecided,New]09:52
bigjoolsjtv. 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
gmballenap: http://paste.ubuntu.com/8298444/ produces  http://pastebin.ubuntu.com/8298451/09:53
jtvbigjools: told you it'd make more sense to match on the full network before checking against just the static range.  :)09:53
bigjoolsjtv: meh09:53
* bigjools goes afk09:54
dimiternbigjools, :) indeed09:54
dimiterndogfooding IS king09:55
allenapgmb: I’s investigatin'09:55
gmbTa09:56
allenapgmb: I can’t apply that to trunk. Do you mind merging trunk and diffing again?09:59
gmbGnargh.09:59
gmballenap: Sure09:59
gmb(As in “Sure, no problem,” not “yes, I mind, you cheeky swine."10:00
gmballenap: http://paste.ubuntu.com/8298498/10:01
gmballenap: or lp:~gmb/maas/create-node-to-use-RPC10:02
allenapgmb: 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
gmballenap: Ah, sweet. Thanks.10:09
gmballenap: Also, didn’t know you could have a list of side_effects. Nice!10:10
allenapgmb: Yeah, I didn’t know that until relatively recently.10:12
dimiternallenap, gmb, re that bug I filed, is it hard to change the error message in that case?10:12
dimiternI mean it's something that will probably hit us sooner rather than later, however trivial it might seem10:12
dimiternso IMHO it should be triaged as High perhaps10:13
bigjoolsdimitern: it's not trivial to fix10:16
bigjoolspriority reflects the reality of when it will get fixed, not how important it is10:17
dimiternbigjools, I see, ok then10:17
bigjoolshaving said that, I'll take a look tomorrow10:17
dimiternbigjools, thank you ever so much :)10:18
bigjools:)10:18
jtvcaribou: yes, "bzr branch," commit & push changes, then "propose for merging" into lp:maas.12:40
cariboujtv: work is done on the upstream branch or the Ubuntu one (i.e. lp:ubuntu/maas) ?12:41
cariboujtv: I have another question but I'll ask in the Freenode channel12:43
caribouoh, I am now12:43
caribouman I need to figure out a way to discriminate b/w two channels with the same name12:44
caribouok, I'm working on another bug : when installing maas-cluster-controller, the postinst script runs "chown -R /var/log/maas"12:45
caribouin doing this, it changes the ownership of /var/log/maas/rsyslog & the syslog daemon can no longer write to it12:45
caribouwould the following change to the postinst script be adequate for you : http://paste.ubuntu.com/8299594/12:47
jtvcaribou: the work is done on the upstream branch.12:47
cariboujtv: perfect!12:48
jtvI guess /var/log/maas needs syslog as its group then..?12:48
cariboujtv: before installing maas-cluster..., the ownership is correctly set to syslog:syslog12:49
cariboujtv: the maas-region-controller.postinst script does it correctly12:50
cariboujtv: it is just the blanket change by "chown -R" in the maas-cluster pkg that messes things up12:50
jtvOh, what you're proposing is already in the region postinst?12:51
cariboujtv: 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:maas12:52
jtvDo we know that maas will still be able to do all the logging it needs, e.g. after log rotation?12:52
cariboujtv: 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 it12:53
cariboujtv: if I only install the maas-region-controller package (for testing purpose), then /var/log/maas/rsyslog is owned by syslog:syslog12:53
jtvYes, so the question is: will the cluster controller be able to log when it's like that?12:53
cariboujtv: well, doing the 'find .' in http://paste.ubuntu.com/8299594/ will change everything bug rsyslog to maas:maas so I suppose that it will work12:54
cariboujtv: one thing is sure : /var/log/maas/rsyslog when owned by maas:maas doesn't work12:55
jtvRight.12:55
jtvI guess it'll work in either installation order?12:56
jtv(Sorry, evening here, tired!)12:56
cariboujtv: no worry, it's not obvious out of the context12:57
cariboujtv: I'll propose a branch & test my stuff before hand. then you people can judge12:58
jtvIf comments are possible, add them!12:58
jtvThanks.  :)12:58
cariboujtv: thank you13:00
jtvDon't thank me.  You're the one writing the patch.  :)13:00
caribouhmm, 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 ?13:46
lamontif 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:10
gmballenap: Calling allenap-as-a-service… Why does http://paste.ubuntu.com/8300331/ give me http://paste.ubuntu.com/8300352/?14:34
=== kickinz1` is now known as kickinz1|afk
gmballenap: Nevermind. Fixed it.14:42
gmballenap: Oh, wait, no I haven't.14:44
=== kickinz1|afk is now known as kickinz1
rvbagmb: 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
ubot5Ubuntu 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:19
gmbrvba: I have no clever ideas off the top of my head… bear with me a sec.15:29
gmballenap: 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:29
gmbrvba: I need some context. Where in the code is that error actually coming from?15:34
rvbagmb: 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:37
gmb!15:38
rvbagmb: then I hacked /usr/lib/python2.7/subprocess.py:CalledProcessError and *this* changed the error15:38
gmbOoo-kay15:39
rvbaThat's why I was surprised, I thought we were using a wrapper each time we need to shell something out.15:39
gmbrvba: Well, isn’t the offending code in src/provisioningserver/power/poweraction.py?15:42
gmbThat doesn’t use our wrapper (why? IDK)15:42
gmbIt uses subprocess directly.15:42
gmbrvba: See PowerAction.run_shell()15:43
gmbrvba: So maybe a first step is to change that to use our call_and_check wrapper.15:43
rvbagmb: yeah, probably.15:44
rvbagmb: I was just wondering why we didn't use that already.15:44
gmbrvba: No clue, I’m afriad. We (I?) must’ve missed that when switching things over to use call_and_check.15:45
gmballenap, rvba, blake_r, jhobbs: https://code.launchpad.net/~gmb/maas/create-node-to-use-RPC/+merge/233899 needs a review, please.15:47
blake_rgmb: done16:01
gmbblake_r: Thx16:01
=== kickinz1 is now known as kickinz1|afk
gmballenap: 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?16:59
gmbYay, test isolation problems!17:14
gmbBut they’re for tomorrow.17:14
allenapgmb: They’re reviewed, just not landed yet.17:44
=== 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

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