/srv/irclogs.ubuntu.com/2012/11/12/#maas.txt

bigjoolsroaksoax: don't suppose you're about?01:44
bigjoolssquashfs is too buggy so I want to remove it01:44
lifelesswhat sort of bugs ?01:49
* lifeless is curious01:49
bigjoolslifeless: bug 1076409, bug 1074167, bug 1077180 for starters01:56
ubot5Launchpad bug 1076409 in MAAS "maas-import-pxe-files fails when run from trunk" [Critical,Triaged] https://launchpad.net/bugs/107640901:56
ubot5Launchpad bug 1074167 in MAAS "maas-import-pxe-files fails to download squashfs ephemeral images." [High,Triaged] https://launchpad.net/bugs/107416701:56
ubot5Launchpad bug 1077180 in MAAS "Not importing Quantal boot images" [Critical,Triaged] https://launchpad.net/bugs/107718001:56
bigjoolslifeless: maas-specific stuff :)01:56
lifelessfun01:57
gwdSo I've been trying to follow the instructions for setting up MaaS from here: https://maas.ubuntu.com/docs/install.html15:04
gwdAnd it seems that although the machine acting as both region and cluster controller is quantal (12.10), "maas-import-pxe-files" only grabs precise.  That seems a bit unexpected. :-)15:06
gwdsmoser: I'm starting to look at writing a Xen / XCP charm you can use for your OpenStack testing.  Is there a KVM/libvirt charm I can use as a sort of template?  I don't see one in the "Charm Store", or in the examples that come in the quantal juju package.15:26
smosergwd, :-( maas-import-pxe-files  is actually busted at the moment. (bug 1074167)15:29
ubot5Launchpad bug 1074167 in MAAS "maas-import-pxe-files fails to download squashfs ephemeral images." [High,Triaged] https://launchpad.net/bugs/107416715:29
smoseri'll walk through and get you a workaround to get quantal15:29
smoser(it just wont use the squashfs based install, but the end should be the same)15:29
gwdsmoser: I edited /etc/maas/import_pxe_files to include both precise and quantal, that seemed to work OK...15:30
smoseroh?15:30
smoseri would have thought it woudl faail if you did that.15:30
smoser(failing to get the squashfs image)15:30
smoserbut if it works, thats good enough.15:30
gwdWell as you say, the squashfs / ephermeral stuff fails, but the normal ones seem to be working ok...15:30
smoserand install works? thats good enough then.15:31
smoserfor "kvm/libvirt charm". the charms that we use to deploy openstack ... i'm looking15:32
gwdHmm -- I set up some VMs with a private network, so that I could run dhcp / pxeboot without bothering our IT guys, but a lot of aspects of the maas / juju setup seem to assume this is not the case.  For instance, "juju status" is complaining that it can't resolve hostname u1.15:34
smoserhttp://bazaar.launchpad.net/~gandelman-a/+junk/juju-deployer/files is the "deployer"15:34
smoserping adam_g or jamespage in #ubuntu-server for more info15:35
smoseri'd have to dig, and they cna probably give you better reference.15:35
smoserjoin there, i'll introduce15:35
gwdsmoser: Thanks for the intro.  Back to maas -- "juju bootstrap" has produced an installed a juju controller, but "juju status" reports "ERROR Invalid SSH key".  Is there a default login that I can use to log into the controller and see what's going on?15:44
smosergwd, if you cannot get in to the installed node, then something is busted. :-(15:45
smoserare you able to see console logs on that system?15:45
=== matsubara is now known as matsubara-lunch
gwdsmoser: You mean serial output or something like that?  No -- unfortunately it's actually a VM. :-/  Is that information available from the maas controller anywhere?15:47
smosergwd, wel, you shoudl actually get syslog installer info back to the maas controller15:48
smoserin /var/log/maas/rsyslog ... or somewhere down there.15:49
smoserfor debugging at this point you need to set a password for the user and just login and then poke around.15:49
smoser(you could boot with init=/bin/bash or we can modify the preseed to the installer)15:49
smoseri'm really, really sorry you have an issue.15:50
smoseryou imported your ssh keys ?15:50
smoserto maas?15:50
gwdsmoser: I'm not too frustrated yet -- it's somewhat different than what I normally work on, so it's somewhat interesting. :-)15:51
gwdsmoser: I did have 2 ssh keys I put into the web UI -- maybe the fact that there was 2 is the problem?15:51
gwdsmoser: MaaS seems a bit confused at my setup as well -- the machines being controlled are on their own private sub-net, and NAT'ed through the controller.  I had to do some massaging of the configuration files to get pxeboot to work right, for instance.15:53
gwdsmoser: So I found the rsyslog files for my juju controller on the maas controller -- anything in particular I should be looking for?15:55
smosergwd, so the install generally worked?15:58
smoserthe system?15:58
smoserhm.15:58
gwdsmoser: So it would seem -- I've got a machine (u1) that went through the install process, and gives me a login at the console.15:58
gwdsmoser: And I can see the install logs on the maas controller (hostname maas), but I don't see anything in the logs about installing ssh keys.15:59
smoserright.16:00
smoserthat happens on first boot.16:00
smoseri assume something is breaking, and cloud-init on the installed node did not get the metadata from MAAS16:00
smoser(which is how the keys wouldget pulled in)16:00
smoserso... we can change the maas server preseed for the install16:01
smoserso that it creates a user with a password16:01
gwdRight -- where is that, and how can I trigger a re-install?16:02
* gwd goes afk for a few minutes16:04
smosergwd, juju destroy-environment16:11
smoserand juju boostrap willd o it16:11
gwdsmoser: OK cool; how about adding a password to the default user?16:14
smoserriight.16:16
smoseroh shoot.16:16
smoserdid i not paste that.16:16
smosersomewhere there is a preseed file.. ( i dont have it in front of me, ,and i'm trying to juggle too many things right now)16:16
smoserbut you want to basically do:16:16
smoserd-i   passwd/root-login boolean false16:16
smoserd-i   passwd/make-user  boolean true16:16
smoserd-i   passwd/user-fullname string ubuntu16:16
smoserd-i   passwd/username   string ubuntu16:16
smoserd-i   passwd/user-password-crypted  password $6$.1eHH0iY$ArGzKX2YeQ3G6U.mlOO3A.NaL22Ewgz8Fi4qqz.Ns7EMKjEJRIW2Pm/TikDptZpuu7I92frytmk5YeL.9fRY4.16:16
smoserd-i   passwd/user-uid   string16:16
smoser(some of that is already there)16:17
smoseryou just want to add the password-crypted field16:17
smoserand that string is "ubuntu"16:17
gwdOK -- I'll look around for it.16:17
=== matsubara-lunch is now known as matsubara
=== matsubara is now known as matsubara-brb
gwdsmoser: So it appears that there was a race between /home being mounted and the ssh keys being installed.17:57
smoserseparate home partition?17:57
gwdsmoser: The installer creates xvda1 to mount on /, and xvda6 to mount on /home.17:57
smoseri'll admit i've never considerd that.17:57
smoserhm..17:58
gwdsmoser: xvda1 has /home/ubuntu/.ssh with the proper keys in it; but while xvda6 has ubuntu/, it doesn't have any ssh configs.17:58
smosergwd, its not a race17:59
smoseri think you're actually guaranteed failure :)17:59
* gwd was being optimistic. :-)17:59
smoserthis is interesting.18:00
smoserthe auto partitioner chose to give you a /home. i dont think i'd seen that before.18:00
smoserDaviey, ^ that is interesting in maas.18:02
gwdsmoser: So a work-around might be to add the following line: d-i partman-auto/choose_recipe select atomic18:02
smoseri dont know. its wierd to me that it did that.18:04
smoserso, since hte other wierd thing is xen, i suspect somethign related to xen18:04
smoser:)18:04
gwdsmoser: Very weird... even with the preseed line I wrote above, it still made a /home partition. :-/  This is all with quantal.18:15
smosergwd, well, i think we can work around this.18:17
smoserbut it sucks.18:17
smoserit will require you to do a late_commadn to edit /etc/cloud/cloud-init.cfg18:17
=== matsubara-brb is now known as matsubara
smoserwe basically ahve to apply this patch i think18:20
smoserhttp://paste.ubuntu.com/1353734/18:20
=== pcarrier_ is now known as pcarrier
Davieysmoser: eww18:23
Davieysmoser: i had not seen that before ether.. Is it anew default in debian?18:24
smoserhe's just using quantal18:24
Davieysmoser: right, but i wondered if debian had started doing it, and we are getting it 'for free' as part of d-i?18:26
gwdsmoser,Daviey: Well to compare, my maas controller VM was installed via mini.iso -> network install; so it 1) booted under xen but 2) only created one partition18:29
gwdAnyway, I've got to head out here -- thanks for your help, smoser.  Hopefully tomorrow things will go smoother. :-)18:29
Davieygwd: right, but wasn't preseeded i am assuming ?18:29
gwdDaviey: That's right.18:29
Davieygwd: yeah, i'm wondering if preseeded installs generally have different behaviour18:30
Davieyi don't think this is a maas bug, as such... more of a di one..  but that is nothing more than a hunch, with no facts to indicate it :)18:30
gwdDaviey: The Ians here on the Xen team know a bit about Debian; I'll ask them if they know anything about partman's behavior here tomorrow.18:32
Davieygwd: Ian Jackson knows not much about debian :)18:35
* koolhead17 wakes up18:57
=== Guest76575 is now known as dpb___

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