[04:00] hello bigjools [04:00] Do you have a minute to help with a maas question? [04:01] /etc/maas/dhcp.conf is not being populated and i can not start the maas-dhcp-server === CyberJacob|Away is now known as CyberJacob === kickinz1|afk is now known as kickinz1 === marcoceppi is now known as rosales === rosales is now known as marcoceppi [07:23] rvba: I looked at the power error log thing [07:24] the only solution for this, apart from a python rewrite, is to write the generated template to a file and execute it [07:25] bigjools: can't we use our tiny wrapper that we use everywhere to execute shell scripts and specialize the way errors are built? [07:25] what tiny wrapper? [07:27] Or rather, can't we tweak how we build the PowerActionFail error (http://paste.ubuntu.com/8316602/)? [07:28] That's the wrapper I had in mind, it's only a wrapper (so to speak) around the error. [07:29] oh and CI is failing :( [07:29] juju bootstrap [07:29] Damn. [07:29] Consistently? [07:29] * rvba checks [07:29] yes [07:29] rvba: no we cannot tweak it, the error text is returned from check_output [07:33] bigjools: well, the error we get from check_output has all the information we need stored on it. Only it's __str__ method produces garbage in our case. [07:33] bigjools: subprocess.py http://paste.ubuntu.com/8316633/ [07:33] rvba: it's not garbage, check output does something like "command: error text" [07:33] and command in our case is the template [07:34] it's abusing the check_output stuff really [07:34] Yeah, I know; but for power command the template is too much information to put in an event :). [07:34] commands* [07:34] what I might do is use subprocess.communicate and grab stderr separately [07:35] although the power templates (I'm looking at AMT) produce way more output than required [07:35] Exactly [07:35] bigjools: it looks to me that the problem is line 6 here http://paste.ubuntu.com/8316645/ [07:35] Because we call the exception's __str__ method. [07:36] And for errors generated by power templates failing, it's guaranteed that it contains the whole template. [07:36] rvba: we can cheat and grab e.output I suppose [07:36] but the template needs fixing [07:37] Indeed. [07:38] bigjools: but yeah, we could use e.output and e.returncode and not use e.cmd (as e.__str__ does). [07:38] rvba: oh god look at what it's doing [07:38] line 6 does the __str__ [07:38] then line 10 does e.output *again* [07:39] heh, true :) [07:39] I'll propose a change [07:39] easier than I thought [07:40] in the meantime, please review my branch :) [07:40] I'd love to. [07:41] Already approved by Dr. jtv it seems. [07:42] Sorry. :-P [07:42] And by the way I never finished that PhD... === CyberJacob is now known as CyberJacob|Away [07:43] aha [07:46] jtv: I know… it was more of honorific title. For some reason I was thinking about 'Doc' in "Back to the Future". ;) [07:47] I'll just take that as a compliment. :) [08:24] rvba: I'm the one with unruly grey hair, not jtv [08:25] I don't know how to break this to you but... it's not unthinkable that I'm slightly weirder. [10:15] jtv: I'm preparing the SRU for bug #1346703 [10:15] bug 1346703 in maas (Ubuntu) "/var/log/maas/rsyslog has incorrect permission" [Medium,In progress] https://launchpad.net/bugs/1346703 [10:16] Hi caribou. Excellent. [10:16] should I do a debdiff against trusty-proposed or another MP ? [10:16] I would say it depens on who sponsor my upload [10:17] caribou: I don't recall having done any backports on the packaging branch myself, so not sure. [10:18] jtv: I'll attach a debdiff & add sponsors & SRU team; this is what I usually do [10:18] jtv: if needed I'll change it later no big deal [10:18] You might ask bigjools, but I think it's past the end of his day now. [10:19] allenap, rvba, jtv: https://code.launchpad.net/~gmb/maas/enlist-mscm-to-RPC/+merge/234279 and https://code.launchpad.net/~gmb/maas/enlist-uscm-to-RPC/+merge/234285 need reviewing when you’ve got a sec. [10:19] * jtv has a sec [10:19] gmb: I'll review your other branch. [10:19] jtv: will do, I should be able to catch him later [10:19] jtv, rvba: ta [10:21] Race conditions ftw [10:21] At last I find out what happens when you try to claim a review that someone else has just claimed. [10:36] allenap: I wonder if what's seeing in the lab is not two bugs combined. [10:36] what we are* [10:36] allenap: I see two errors: [10:37] maas-integration.TestMAASIntegration.test_check_nodes_declared ... ERROR [10:37] Or [10:37] maas-integration.TestMAASIntegration.test_juju_bootstrap ... ERROR [10:38] rvba: Where are you seeing that? On the run I kicked off test_check_nodes_declared is ok... [10:39] allenap: we landed a bunch of branches since the first failure. [10:39] And when I go through them, I see two different type of failures. [10:40] allenap: I wonder if you haven't reverted one problem, only to get the failure from the other problem. [10:40] allenap: makes sense? [10:42] rvba: Ah ha, yes :) === ubot5` is now known as ubot5 === Guest67627 is now known as wallyworld === kickinz1 is now known as kickinz1|afk [14:34] allenap, rvba: Another branch for you: https://code.launchpad.net/~gmb/maas/useful-noconnectionerrors/+merge/234319 [14:35] gmb: I'll take it. [14:36] Ta === kickinz1|afk is now known as kickinz1 [14:39] gmb: question for you on the MP. === roadmr is now known as roadmr_afk [14:45] allenap: https://bugs.launchpad.net/maas/+bug/1368269 [14:45] Ubuntu bug 1368269 in MAAS "internal server error when deleting a node" [Critical,Confirmed] [14:49] rvba: ^^ [14:51] roaksoax: blake_r: yeah, ugly bug. The exception is a bit confusing though. allenap will probably have an idea. [14:51] rvba: yeah rpc error [14:57] rvba: Good point! Updated and pushed. [14:58] rvba: hang on; test in the wrong place… fixing [14:58] gmb: is it worth changing src/maasserver/rpc/regionservice.py:getClientFor as well? [14:59] rvba: Definitely. I hadn’t spotted that one. [15:09] gmb: so all the probe-and-enlist are finished already right? === roadmr_afk is now known as roadmr [15:34] roaksoax: Yes, they’re finished now. [15:35] rvba: I’ve updated that branch again. [15:35] gmb: awesome! [15:36] rvba: Oh, you already approved. Ta :) [15:36] roaksoax: Indeed :). [15:39] rvba: https://bugs.launchpad.net/maas/+bug/1368269 [15:39] Ubuntu bug 1368269 in MAAS "internal server error when deleting a node" [Critical,Confirmed] [15:39] rvba: that breaks juju bootstrap [15:39] rvba: that is what your seing in CI [15:39] rvba: i have a fix, for the enlistment issue [15:40] blake_r: okay, well sleuthed. allenap will have a look at this in a bit. [15:41] rvba: heh...so this wasn't related to blake_r 's branches after all [15:41] roaksoax: enlsitment was! [15:41] roaksoax: well, yes and no. [15:41] hehe ok :) [15:42] ok, let's get this fixed asap since we are releasing today [15:43] rvba: https://code.launchpad.net/~blake-rouse/maas/fix-enlistment/+merge/234326 [15:43] rvba: one liner! [15:44] blake_r: which means you're missing a test :) [15:44] rvba: naw, its twisted! [15:44] rvba: haha! [15:44] blake_r: do we really want to ignore all failures like that? [15:44] rvba: we do for windows boot method [15:45] I mean don't you want to only silence No Content error errors [15:46] rvba: i want to silence all errors, because if windows boot method can't be used, that is fine [15:46] rvba: this is only used for the deprecated windows install, that is not supported anymore [15:46] rvba: it is unrelated to curtin [15:46] rvba: we might remove it [15:47] blake_r: okay, makes sense; probably worth a comment in the code though :) [15:50] rvba: okay added comment [15:51] Ta === kickinz1 is now known as kickinz1|afk === CyberJacob|Away is now known as CyberJacob === roadmr is now known as roadmr_afk === jfarschman is now known as MilesDenver === roadmr_afk is now known as roadmr [21:09] matsubara: got a sec? trying to sort out a maas issue [21:09] plars, yep [21:09] what's up? [21:10] matsubara: I have an install here on trusty that I haven't messed with in a while, but it was previously working. When I powered it back up to try something I tried to go to the /MAAS page on my server and got a 500 error [21:10] matsubara: so I updated to the latest in trusty and rebooted, still no luck [21:10] matsubara: I'm now on the one in ppa:maas-maintainers/stable, but it's doing the same to me [21:10] plars, are you using any version from the PPAs? [21:10] matsubara: sec and I'll post the oops [21:10] thanks [21:10] matsubara: previously I wasn't, but I tried the ppa one as a last effort [21:11] matsubara: http://paste.ubuntu.com/8322024/ [21:12] the only thing I see in that pastebin is a $ [21:13] plars, ^ [21:13] matsubara: hmm [21:13] sec [21:13] matsubara: try http://paste.ubuntu.com/8322034/ [21:15] Do you have the full traceback for that oops in /var/log/maas/oops? Are there any other tracebacks in /var/log/maas/maas.log or /var/log/maas/celery.log (assuming you are using 1.6 from the stable PPA) [21:16] plars, ^ [21:19] plars, also worth checking if all services for maas are running: maas-pserv, maas-txlongpoll, maas-cluster-celery and maas-region-celery [21:20] plars, rabbitmq-server too [21:20] matsubara: sec, phone [21:21] but there's probably a more informative traceback in somewhere in /var/log/maas or /var/log/apache2/ === cmagina_ is now known as cmagina [21:34] matsubara: don't see anything that looks like a real traceback, but still looking, one moment [21:49] plars, ok. Another thing, did you upgrade from 1.5? If you did you'll likely have to re-import the boot images (unrelated to the 500 error you're seeing, just a heads up) [21:49] matsubara: good to know, but I can't even get that far at the moment :) [21:49] matsubara: found some possible stuff http://paste.ubuntu.com/8322192/ [21:50] matsubara: that's from error.log [21:52] plars, it's taking forever to load that pastebin, is it a huge paste? [21:53] matsubara: yes [21:53] matsubara: I can chop it up if you like [21:54] matsubara: there's a lot of 'error: [Errno 113] No route to host' in it [21:54] I'm not sure which host, perhaps the node that's turned off at the moment? [21:54] matsubara: try http://paste.ubuntu.com/8322257/ for a short one [21:55] plars, is rabbitmq-server running? I'd say the region controller is trying to connect to it but failing === sebas538_ is now known as sebas5384 [21:55] plars, when you upgrade did maas restart the services after the update? [21:55] matsubara: yes, it's running [21:56] matsubara: the first update to trusty latest, for certain it did, I even rebooted the whole box to be sure [21:56] matsubara: I'm not sure what all services need to be restarted, I trusted the package update to take care of that but I can reboot again after the upgrade to the ppa version [21:57] maas-pserv, maas-txlongpoll, maas-cluster-celery and maas-region-celery should be all up [21:57] as well as rabbitmq-server [21:57] plars, matsubara - i think the one time i had 500 issue in maas, it ended up being an mq auth issue. i think there were also some bugs where the rabbitmq pwd was reset during an upgrade. [21:57] * beisner thinks back [21:57] beisner, good point [22:04] plars, another thing worth checking is the config files in /etc/maas/ and see if DEFAULT_MAAS_URL and MAAS_URL look sane [22:05] as in, are they pointing to the URL/ip you'd expect MAAS to be running? [22:07] matsubara: hmm, no one of them points at localhost/MAAS [22:09] plars, where are they pointing to? I'd expect to be one of the IPs for that machine. [22:10] matsubara: it is, but.... [22:11] matsubara: when grepping through there I think I may have found the problem [22:11] matsubara: somehow the celery broker url seems to be pointing to the wrong IP [22:15] plars, there's code in the package to auto detect the default route for the given system and use that IP address as the DEFAULT_MAAS_URL which in turn the MAAS_URL would infer its value from. The package would respect the values if they're set into the debconf db but if the configs were changed manually directly in the file they might be overwritten. [22:16] plars, but if you can reproduce the issue or describe what you did, I think it's worth filing a bug. It's helpful to have this kind of upgrade feedback. [22:19] matsubara: seems to be working now, somehow I think I just had a bad ip. Thanks! [22:19] plars, cool! You're welcome. === CyberJacob is now known as CyberJacob|Away