/srv/irclogs.ubuntu.com/2014/03/25/#maas.txt

bigjoolsyes00:02
Valduareinteresting00:02
Valduareany kernel I wish to serve?00:03
Valduareor something custom from maas?00:03
bigjoolsit uses stuff from maas.ubuntu.com/images at the moment00:03
bigjoolsbut you can replace what maas downloads with your own if you want00:03
Valduareso supported arm hardware only then00:03
Valduareah00:03
bigjoolsboot kernels live in /var/lib/maas/tftp/00:03
bigjoolsand ephemerals for installation are in /var/lib/maas/ephemeral/00:04
Valduareephemerals?00:04
bigjoolsthe latter is served up with iscsi when installing the OS00:04
bigjoolsyes they are very large images that contain the installation media00:04
bigjoolsso we netboot to start up the installer, after that it local boots00:05
Valduareso maas is using local storage?00:05
bigjoolsyes, theres no support for net mounted root fs yet00:06
Valduareright now I got a freenas box with 4 drives in it, zfs mirrors and then the two mirrors striped together, serving iscsi to a gigabyte ga-e350n mobo with 16 gigs of ram running esxi to host 14 vms00:08
Valduarelooks like for now i’ll stick with my ga-e350n boards00:22
Valduarebigjools: so maas is just metal as service,00:35
Valduarehow does that play along with openstack and all the other stuff00:36
bigjoolsValduare: maas is the bare metal provisioner, Juju is the service orchestrator00:36
bigjoolsJuju deploys openstack00:37
Valduareso If I have 3 or 4 amd e350 boxes00:39
Valduarewith this juju, maas stuff is there a controller host?00:39
bigjoolsyes, juju maintains a "bootstrap" host00:40
bigjoolsyou also need a least one host for maas00:40
Valduarecan these be virtualized?00:41
bigjoolsyes00:44
bigjoolsmaas can manage virtualized hosts as well00:44
bigjoolsnodes, I mean, not hosts00:44
Valduareinteresting00:45
Valduarelooks like with my little hardware I may just need to skip maas for now?00:50
bigjoolsI don't know00:51
=== CyberJacob is now known as CyberJacob|Away
bigjoolsjtv: https://code.launchpad.net/~julian-edwards/maas/new-import-script-integration/+merge/21253502:05
bigjoolsjtv: yes I am aware you have those comments coming in another branch.  Sorry :(02:05
bigjoolsbut they will get blown away if we rewrite the file anyway02:05
jtvEverything will get blown away if we rewrite the file.  Just saying they need to be moved... _some_where.  :)02:06
bigjoolsyes02:08
bigjoolsbut where!02:08
jtvGood question.02:09
jtvYou're moving the whole "boot" section..?  Shouldn't storage still be in pserv.yaml?02:09
jtvI don't suppose there's a way to inject comments while dumping to yaml...02:10
bigjoolsjtv: why should it be in pserv?02:10
jtvThe information is shared with pserv, isn't it?02:11
bigjoolsoh god, don't tell me pserv needs it to serve tftp02:11
bigjoolsargh02:11
jtvI was going to, but if you don't want me to...02:11
bigjoolsjtv: it is still using "root" as a config item02:18
bigjoolswhich was changed to default to /var/lib/maas/boot-resources/current/02:19
jtvYes02:19
jtvNo02:19
jtvWait02:19
jtvYou mean you ditched the "storage" item?02:19
bigjoolsI didn't02:20
bigjoolsit's still there02:20
bigjoolsI am saying that the tftp server uses "root"02:20
bigjoolsand the import script uses "storage"02:20
bigjoolsthey are not the same value02:20
bigjoolsI am happy to keep it that way02:21
jtvAh so02:22
jtvPlease update the arch: "*" entries to arches: ["*"]02:24
bigjoolsok02:25
jtvShall I just go to work on the UEFI card then?02:33
bigjoolsjtv: no, I think Blake started that, and Gavin said he was getting involved too02:34
jtvOh02:34
bigjoolsyou ok with my branch?02:35
* jtv relooks02:35
jtvStill eseing the old "arch" instead of "arches"...02:35
jtvAlso, it'd be good to move the additional documentation over from pserv.yaml before deleting it — for those who aren't going to see the file rewritten right away.02:36
bigjoolsjtv: I'll move that over02:40
bigjoolsjtv: I had not merged the latest changes so missed it02:40
jtvThanks.02:41
bigjoolsjtv: are you sure that text is right?  You don't need separate sources, just separate selections I think02:45
jtvI'm not sure, no.  But how would you put in multiple selections?02:45
bigjoolsthe selections section is repeatable isn't it?02:46
bigjoolsoh maye not.  It ought to be02:46
bigjoolsjtv: ok it's pushed up if you would like to re-check02:50
jtvRe-checking.02:50
jtvMaybe the "selections" section is repeatable...  if so, it'd be nice to have that said somewhere.02:51
bigjoolsjtv: I don't think it is, it ends up as "filters" in the boot_merge() func02:52
jtvHmm... but that is a list of dicts, right?02:52
jtvIt's all so infuriatingly unclear.02:52
bigjoolsjtv: oh wait yes!02:53
bigjoolsit's a list of dicts02:53
jtvWhat a way to run a railroad...02:53
bigjoolsI will test this out02:54
bigjoolsjtv: it works, I am going to add another selections section to the example config to make this obvious02:56
jtvOK.02:56
bigjoolsjtv: in fact I think the one there now should be commented out and we add one in for just trusty02:56
jtvYes, that makes sense.02:57
bigjoolshuh something weird is happening, I had both amd64 and i386 and it only downloaded i38602:58
bigjoolsjtv: christ it's worse than not working.  It only gets the *last* selection03:00
bigjoolsjtv: awaiting your review03:06
* bigjools eats03:06
jtvThe last selection?  How!?03:07
bigjoolsjtv: I have NFI.  It's easy to recreate on canonistack03:49
jtvPackage build failed.04:04
jtvIt's patch #02, to pserv.yaml.04:05
jtvGood thing we have "make package" — much easier to discover these things.04:05
bigjoolsah04:06
bigjoolsjtv: we need a forked packaging branch now then.... joy.04:07
jtvLooks easy to patch — but it means forking the packaging branch...  :/04:07
jtvTwo minds, one thought.04:08
bigjoolswell it just needs a "quilt refresh" IRC04:08
bigjoolsIIRC04:08
jtvWith a "series file."04:08
jtvbigjools: are you available for a pre-imp?04:34
bigjoolsjtv: give me a few minutes and then yes04:34
jtvGreat, thanks.04:34
bigjoolsjtv: you want a link or an invite?04:39
jtvbigjools: I was thinking talky.04:39
bigjoolsah yes04:39
bigjoolsI'm in04:39
AskUbuntuError in creating juju bootstrap | http://askubuntu.com/q/43885105:01
bigjoolsjtv: ok I figured out why multiple selections were not working05:11
bigjoolsPEBKAC, in short05:11
=== CyberJacob|Away is now known as CyberJacob
gmbbigjools, rvba, jtv: New import script question: Is there a preferred MAAS-ish way to exit from a script, or is good old sys.exit() fine?07:19
bigjoolsgmb: depends on what sort of script it is!07:20
gmbbigjools: Well, fair point. I'm talking about exiting boot_resources.main() when there's no config file.07:20
bigjoolsgive this is a basic one, sys.exit seems ok07:20
gmbbigjools: Okidoke.07:21
gmbbigjools: Is there a trick for running these scripts in the dev environment? This is slightly new territory for me.07:26
bigjoolsgmb: bin/py <script>07:26
gmbbigjools: !! You'd think I'd never worked on Launchpad. Ta.07:26
bigjools:)07:26
* gmb adds tea to brain.07:26
bigjoolsgmb: one gotcha, it still looks for /etc/maas/<thing>.yaml07:27
gmbbigjools: Okay, thanks.07:27
bigjoolsI thought we had got around that but it seems not07:27
rvbagmb: you can pass --config-file <my file> to the script.07:30
rvba(If you run it through scripts/maas-import-pxe-files)07:31
bigjoolsyeah07:34
bigjoolsgmb: thou hast mist tests sire07:52
gmbbigjools: Rly?07:52
gmbbigjools: I thunk it was untested.07:52
bigjoolsgmb: well you could start :)07:52
bigjoolsand this one is easy07:52
gmbbigjools: Damn you. Fair point though :)07:52
jtvgmb: I wouldn't sys.exit() from main() itself, because that will be run from celery.  But from the command-line script it'd be fine of course — insofar as it matters.07:58
gmbjtv: Do you have a preferred option? Not sys.exit()ing would also be easier to test, come to think of it.07:58
jtvAt least, I seem to remember that main() is part of what would run from celery...07:58
jtvExactly.07:58
jtvIt's library code.  I wouldn't do sys.exit() except in the command-line script itself.07:58
jtvIf main() is a function, IMHO it should act like a function: return if successful (for some value of), raise on failure.07:59
gmbjtv: Makes perfect sense. On it.08:00
jtvWe could get clever with returning an exit code, but are there really any points in that?08:00
bigjoolsgmb: oh yes jtv is right, raise an exception that is caught in the outer wrapper08:00
jtvOK.  Always happy to upset people's plans.  :)08:00
gmbjtv: Depends on how many failure states there are :). In this case, no.08:00
gmbjtv: Or rather, I'm happy for that to be SEP.08:01
jtvThat's the spirit.08:01
rvbaIt tries to download http://archive.ubuntu.com/ubuntupool/main/s/shim-signed/shim-signed_1.5~13.10.1+0.4-0ubuntu4_amd64.deb and fails.09:10
rvbaLooks like there is a slash missing between 'ubuntu' and 'pool'.09:12
rvbaAnyone up for a trivial review? https://code.launchpad.net/~rvb/maas/fix-download-url/+merge/21256709:30
jtvI'll take it.09:32
rvbaTa09:32
allenaprvba: I am Mr Trivial.09:32
allenaprvba: Where are the tests? <sniggers>09:33
rvbaallenap: grrrr09:33
bigjoolsyo09:33
rvbabigjools: I'm sorry to say that the fix to get more details about errors from scripts run by celery is not working 100%: here is what I was getting when the import script was failing: http://paste.ubuntu.com/7150376/.  And I know for a fact that the script was echoing things.09:33
frankbanmaas devs: I am looking at bug 1277445 trying to track down the issue. Given the "could not compose userdata for bootstrap node" error, this seems related to maasEnviron.StartInstance not being able to find the tools URL. Is it a known issue?09:39
ubot5Error: Launchpad bug 1277445 could not be found09:39
frankbanhttps://bugs.launchpad.net/ubuntu-advantage/+bug/127744509:40
rvbaHi frankban, looks like environs.ComposeUserData (called from maasEnviron.StartInstance) broke indeed. This doesn't look related to the tools.09:59
frankbanrvba: morning. The code paths seems to be ComposeUserData -> cloudinit.Configure -> ConfigureJuju -> verifyConfig and in verifyConfig we have cfg.Tools.URL == ""10:05
frankbanrvba: tools seems to be retrieved in maas.acquireNode10:08
rvbafrankban: you're right… this code changed a lot since I last had a look at it…10:11
rvbafrankban: the "picked arbitrary tools" comment in acquireNode() seems fishy…10:12
bigjoolsrvba: the script was probably not printing stuff in a way that the task can see, perhaps stdout/stderr got disconnected?10:12
bigjoolsrvba: at least we get one more bit of info:10:12
bigjools[2014-03-25 09:32:06,783: ERROR/Worker-2] import_boot_images: Command `sudo -n -E maas-import-pxe-files` returned non-zero exit status 1:10:12
rvbabigjools: yeah, it's better than nothing.10:13
frankbanrvba: yeah. do you think this is something you have to tackle, should I assign this to the maas team? or to juju-core? this just seems not related to the GUI at all.10:13
rvbabigjools: but I know for a fact that the script did "echo 'could not download $url'"… seeing that would have helped :)10:13
bigjoolsrvba: I suspect that the child process is sufficiently detached that the task is losing its stdout/stderr10:13
rvbaYeah, sounds probable.10:14
* bigjools EODs10:15
rvbafrankban: I think the juju people will be in a better position to help you pinpoint where the problem is.  Don't get me wrong, if it's a problem in MAAS we will be more than happy to help, but at this stage, it looks like a problem with this particular installation and juju.10:15
frankbanrvba: fair enough, I'll ping them then, thank you10:17
rvbawelcome10:17
jtvWhy doesn't provisioningserver.config.Config's load_from_cache() use its own load()!?10:23
jtvI thought I was smart and could just patch load().  :)10:24
jtvallenap, you may be able to help with this.  I must be missing something obvious.10:27
jtvI'm patching out a class method.10:27
jtvBut a plain old call to that class method then fails with:10:28
jtvTypeError: unbound method <patched-out method>() must be called with <Class> instance as first argument (got <next parameter type> instance instead)10:28
jtvMy fake is a plain old function.  It doesn't matter whether I make it take a "cls" argument or not; the problem seems to happen in the binding of the original call.10:29
jtvAhhh, @classmethod seems to do it.10:29
jtvLooks a bit weird to decorate a nested function with a @classmethod, but oh well!10:30
jtvThanks for being my passive debug partner.  :)10:30
allenapjtv: Hehe. It would be interesting to see some example code for that.10:36
* allenap will be biab.10:36
=== _zchander_ is now known as zchander
gmbrvba, allenap, jtv: Can on of you gents give this this once over again so I can land it? https://code.launchpad.net/~gmb/maas/INTEGRATION-BRANCH-stop-with-no-config/+merge/21255510:42
jtvAbsolutely.10:42
jtvBecause I think I had a glance earlier and left a minor comment.10:42
gmbY'did.10:45
gmbA very thoughtful and useful one :)10:46
jtvAnd here are some more.  :)11:04
rvbaI just put 3 branches up for review: two small and one medium, take your pick:11:14
rvbahttps://code.launchpad.net/~rvb/maas/network-listing-pagination/+merge/21257911:14
rvbahttps://code.launchpad.net/~rvb/maas/zone-listing-pagination/+merge/21257811:14
rvbahttps://code.launchpad.net/~rvb/maas/move-boot-image-different-page/+merge/21257211:14
jtvGrr.  I was hoping to code for a while.  :)11:16
jtvrvba: I'll do some more reviewing.  Maybe you can review mine?11:16
jtvhttps://code.launchpad.net/~jtv/maas/bootresources-rewrite-marker/+merge/21258411:16
rvbajtv: sure11:16
=== CyberJacob is now known as CyberJacob|Away
gmbrvba, allenap: Are you still happy with Jools's idea to merge the integration branch today.16:13
gmb?16:13
rvbagmb: I think we need smoser to update the daily simplestreams' data and to publish the new data for the releases first.16:15
gmbrvba: Ah, you're right. I completely forgot that part of the conversation, sorry. Arvobrain.16:15
smoserif i get you daily is that good enough?16:15
gmbrvba: ^^16:15
rvbaWell, technically yes, the daily images should suffice (for the int. tests to pass).16:16
rvbagmb: I've already updated the config with the daily URL.16:18
gmbrvba: Can we do a run of the integration tests on the integration branch before we merge?16:19
gmbJust for the sake of not having to revert or scramble to fix it16:19
rvbagmb: that's exactly what I'm doing now.16:19
gmbrvba: I knew as I was typing it that you would be. But I wanted to seem OTB.16:20
gmbDamn, no itv around for OTB.16:20
gmb*jtv16:20
gmbPhuket.16:21
smoserrvba, ok. you should have correct (in once sense) data on daily stuff now16:21
rvbasmoser: ta16:21
smoser"in one sense", because i did something there that isn't valid, and may piss off your improter if it has old state.16:21
smoseri updated the kernel and initrd data for existing 'version's rather than creating a new version.16:22
rvbaShould be fine, we're installing from scratch.16:22
smoseryeah. it should be fine there.16:23
Fishy__Has anyone gotten a cobbler server to forward new machines over to my maas server?16:27
Fishy__or help on getting cobbler / maas to coexist on the same network16:28
rvbagmb: can you check that the test suite passes on the feature branch?16:28
gmbrvba: Sure.16:28
rvbaThis way, if the tests pass in the lab, we'll be ready to merge it.16:29
allenaproaksoax: Do you know anyone who has a really good handle on python-apt, and who might be able to help with the shim-signed problem?16:42
roaksoaxallenap: i'd probably ask slangasek but using python-apt seems painful16:43
allenaproaksoax: Okeydoke. I’m following up because cjwatson recommended it, so I reckon there’s got to be something there.16:44
roaksoaxallenap: afaik python-apt would use the current sources.list to install the package fron the archive16:45
roaksoaxif thats ehat you are looking on doing then thats what it should be done16:45
roaksoaxi'd ask slangasek how to manage getting the shim + uodates to slangasek though16:46
allenaproaksoax: python-apt also has some lower level libraries that might be of use.16:46
roaksoaxcool16:47
gmbrvba: Is this what you're seeing? https://pastebin.canonical.com/107113/16:58
rvbagmb: no, that's because you have a maas package installed.  I forget which.16:59
gmbGaaaaah.16:59
rvbagmb: http://paste.ubuntu.com/7152093/ that's what I'm seeing.17:01
rvbagmb: like I said, it's the configure_me thingy17:01
gmbrvba: Right.17:01
gmbrvba: I'm poking at it now. Just switching locations whilst it runs...17:02
* gmb -> bbiab17:02
rvbagmb: I fixed the problem, it was just a syntax issue in the config file.17:17
rvbagmb: smoser: actually, the integration tests deploy stuff (with juju) using precise.  So we need the precise simplestream stream.17:19
smoserrvba, ?17:19
smoserthat data hould be there, no.17:20
smoser?17:20
rvbaHum, the daily images should be there indeed…17:20
rvbaI see, we didn't configure the package to import the precise daily images.17:22
rvbagmb: I fixed the code to do that.  Should work now.17:24
=== zchander is now known as zchander_work
=== zchander_ is now known as zchander
=== CyberJacob|Away is now known as CyberJacob
=== CyberJacob is now known as CyberJacob|Away

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