[03:44] <dchem> Hello everyone
[04:50] <AskUbuntu> MaaS + JuJu on a single PC, MaaS as host for VM Nodes (LXC + KVM) | http://askubuntu.com/q/472230
[08:11] <rvba> bigjools: jtv:  I just installed MAAS 1.5.1+bzr2269-0ubuntu0.1 on a canonistack instance and the 'architecture' dropdown isn't populated ('power_type' is)… The result is that I can't add a node…
[08:11] <jtv> That means RPC hasn't bootstrapped, doesn't it?
[08:12] <jtv> Ah, no, arch is derived from boot images — power type is gathered over RPC.
[08:13] <jtv> So... no boot images?
[08:13] <rvba> Ah, that's right, I thought the import had been done… but it failed for some reason…
[09:33] <bigjools> rvba: doesn't it say something about boot images?
[09:34] <rvba> bigjools: yes, it was the problem indeed.  I was messing with the import config (in the DB) and the import script failed.
[09:34] <rvba> My fault.
[13:23] <jtv> Oh dear.  Got a bunch of spurious test failures in test_ucsm.py, and the setup is undocumented & hard to make sense of.
[13:24] <jtv> And when I say "spurious" I mean "one-off."  They may be justified or they may not be.
[13:33] <jtv> jhobbs: that looks like a bug in get_first_booter — I think it takes the alphabetically first item, when it's meant to take the numerically first item.  That test setup really needs some documentation, and if it matters at all, we need to test against this.
[13:33] <jtv> Ordering is tricky.
[13:35] <jtv> Adage: write your code as if it's going to be maintained by a lazy, irritable axe murderer who lives next door from you; write your tests as if the code is going to be written by a smartarse whom you'd love to prove wrong in any way you can.
[13:39] <jtv> The worst things in humans can bring out the best things in programming.
[13:53] <jtv> jhobbs: filed 1323307
[13:53] <jtv> Bug 1323307, that is.
[13:54] <jtv> rvba: thanks for that lint branch — I had the same branch written up, but got held up by that spurious test failure ^
[13:54] <rvba> jtv: heh
[14:07] <jtv> rvba: you have some reviews.  Blocked one on a question.
[14:08] <rvba> jtv: on it
[14:18] <jtv> rvba: I didn't tag that bug as "tests" because it may simply be a bug in the code which the tests occasionally expose.
[14:19] <rvba> jtv: I see; judging by your explanations, if seems likely that this is a bug in the test itself but you're right, it's probably too early to tell.
[14:21] <jtv> I'm really not sure which is more likely...  the function under test is clearly expecting an ordinal, as if it's trying to extract a number from the string.
[16:18] <jtv> Some very easy branches up for review:
[16:18] <jtv> https://code.launchpad.net/~jtv/maas/resources-message-tweaks/+merge/220992
[16:18] <jtv> https://code.launchpad.net/~jtv/maas/import-boot-images-with-mandatory-sources/+merge/220993