[00:06] <matsubara> smoser, how odd. is there anything I can do to debug this further?
[00:07] <matsubara> smoser, I don't think it's using the daily image, MAAS images have been configured with maas-import-pxe-files
[00:11] <smoser> matsubara, can you get console logs ?
[00:12] <smoser> i'd like to see them.
[00:12] <smoser> what version of maas are you using ?
[00:12] <matsubara> smoser, I'm looking at the console through the Raritan java client but it doesn't seem to allow me to change the tty or boot into recovery mode
[00:13] <matsubara> smoser, I'm using the latest package from the daily builds archive:  maas - 0.1+bzr1002+dfsg-0+1007+87~ppa0~quantal1
[00:21] <smoser> matsubara, can you get ttyS0 logs ?
[00:21] <smoser> (serial console)
[00:21] <matsubara> smoser, how could I get those?
[00:21] <smoser> what made you think yo uwere waiting on eth1 ?
[00:21] <smoser> well, its possible there is serial over ethernet or some way to get at a serial console.
[00:22] <matsubara> the console is halted at the eth0: link become ready
[00:22] <matsubara> smoser, I can show you an screenshot, just a sec
[00:29] <smoser> matsubara, ok. if the console is all you have to debug, and you can't get a serial console, then you'll want to edit one of the maas files and remove 'console=ttyS0'
[00:30] <matsubara> smoser, https://dl.dropbox.com/u/551281/node-eth-ready.png
[00:31] <smoser> easiest thing to do is just add 'console=tty1' to all of the APPEND lines in the template files in /usr/lib/python2.7/dist-packages/provisioningserver/pxe/
[00:32] <smoser> that will make your graphical console the place where messages get written.
[00:32] <smoser> i made the change to use serial console
[00:32] <smoser> which, honestly, i think is right.
[00:32] <smoser> no one will ever have text logs of a graphical console
[00:33] <smoser> matsubara, i dont think anything there is unexpected.
[00:33] <smoser> you're just not seeing output becausae its going to the serial console.
[00:33] <smoser> did you follow the above ?
[00:33] <smoser> how to change the console= ?
[00:33] <smoser> matsubara, ^
[00:33] <matsubara> smoser, yes, let me change those files
[00:34] <smoser> matsubara, you gonna be around a while?
[00:34] <smoser> i have got to step away for 20 minutes at least.
[00:34] <matsubara> smoser, like this:  APPEND {{kernel_params(arch="amd64") | kernel_command | console=tty1}} ?
[00:35] <smoser> but i can come back or we can pick up tomorrow.
[00:35] <smoser> i'd just add it outside the }}
[00:35] <matsubara> smoser, yes, I'll be around
[00:35] <smoser> APPEND {{kernel_params(arch="amd64") | kernel_command}} console=tty1
[00:35] <smoser> (basically just append that string to the end of those 'APPEND' lines)
[00:36] <matsubara> smoser, cool. did that and am rebooting the node
[00:39] <matsubara> smoser, https://dl.dropbox.com/u/551281/node-eth-ready%3Dconsol-tty1.png
[00:40] <matsubara> so I guess what's failing is maas-enlist and not the network interface readyness
[01:06] <smoser> matsubara, you should get mor output than that.
[01:06] <smoser> hm..
[01:06] <matsubara> smoser, that's all I got with that change
[01:06] <smoser> i'm not sure what would be saying 'hostname' like that.
[01:06] <smoser> hm..
[01:07] <smoser> the hostname is 'maas-enlist' because that is what the kernel cmdline says to set it to.
[01:07] <matsubara> smoser, I did notice that console=tty0 was still in the parameters for the kernel when the node booted
[01:07] <smoser> hm..
[01:07] <smoser> "no response after 2 seconds" giving up
[01:07] <smoser> i didnt think i saw that bfore
[01:07] <smoser> oh, wait, but it does retry, i'm almost certain of that.
[01:07] <smoser> hm..
[01:08] <smoser> roaksoax, is there anyway we can get ttyS0 output in that lab?
[01:08] <smoser> ipmi or something?
[01:11] <smoser> matsubara, is there any doc on that lab? i've not played in it.
[01:11] <matsubara> smoser, https://wiki.canonical.com/Launchpad/QA/MAASLenovoLab
[01:13] <smoser> matsubara, you added 'console=tty1' to each of those files ?
[01:13] <smoser> you should see hte kernel cmdline printed to the console
[01:13] <smoser> and you can verify that the last thing on it should be 'console=tty1'
[01:13] <smoser> we can also add '--verbose' and 'debug=1
[01:14] <smoser> and that will give you no shortage of data
[01:14] <matsubara> smoser, I added to both APPEND lines. let me add those two other options
[01:14] <smoser> which file ?
[01:14] <matsubara> /usr/lib/python2.7/dist-packages/provisioningserver/pxe/
[01:14] <smoser> /usr/lib/python2.7/dist-packages/provisioningserver/pxe/config.commissioning.template
[01:14] <matsubara> sorry, yes
[01:14] <smoser> is probably the rigth one for enlistment and commissioning
[01:15] <matsubara> rebooting
[01:20] <matsubara> smoser, https://dl.dropbox.com/u/551281/node.png
[01:41] <smoser> matsubara, can you just let that sit there? it should get furhter eventually.
[01:41] <smoser> something else shoudl happen. it might be 300+ seconds. but *something* should happen
[01:55] <smoser> matsubara, well... good news and bad news.
[01:55] <smoser> good news, i just successfully enlistsed a node following http://bazaar.launchpad.net/~smoser/maas/maas-pkg-test/view/head:/maas-ephemeral-test-quantal.txt
[01:56] <smoser> without using the 'daily' ephemeral image (which is what you were doing).
[01:56] <smoser> matsubara, ah. i wonder.
[01:56] <smoser> did you knwo that you have to fix dhcp ?
[01:56] <smoser> h..
[01:56] <smoser> hm..
[01:56] <smoser> i'll look more at this tomrrow with you if thats ok.
[01:57] <smoser> but i'm not really sure what i could have regressed.
[02:20] <matsubara> smoser, what fix to dhcp?
[02:21] <matsubara> smoser, if I let it sit there it stays there, doesn't seem to time out
[02:29] <roaksoax> smoser: yeah ipmi should be your best bet if those have ipmi
[02:33] <roaksoax> her
[02:39] <smoser> well, in my setup next-server got set incorrectly.
[02:39] <smoser> matsubara,
[02:39] <smoser> so i had to fix 'next-server' in /etc/dhcp/dhcpd.conf
[02:40] <matsubara> smoser, right, I fixed that running dpkg-reconfigure maas-dhcp
[02:40] <smoser> that wouldn't get fixed by that.
[02:40] <smoser> i dont think
[02:40] <smoser> or if it does, then i misunderstand the problem.
[02:41] <matsubara> smoser, I ran dpkg-reconfigure maas and then dpkg-reconfigure maas-dhcp to get the proper dhcpd.conf written
[02:42] <smoser> ah. ok. so then you have dhcpd running on the same interface as maas-server
[02:42] <smoser> (ie, eth0 for you probably)
[02:42] <jtv> (meanwhile, any new information on the “cp” problems in maas-import-ephemerals?)
[02:42] <matsubara> smoser, yes
[02:44] <smoser> matsubara, how long did you let it sit at that ?  and did you do so with --verbose and debug=1?
[02:44] <smoser> you may have to let it set for 5 minutes.
[02:44] <smoser> but something should time out.
[02:44] <matsubara> smoser, nope, I let it sit for awhile, I guess more than 5 min. I can try it again
[02:48] <smoser> matsubara, the other thing we can do is take the 'console=ttyS0' out of /usr/share/pyshared/provisioningserver/kernel_opts.py and restart maas-pserv
[02:48] <smoser> but i really dont think thats going to have an affect.
[02:49] <smoser> the only other guess i have is that I changed 'ip=dhcp' to 'ip=::::<hostname>'
[02:49] <smoser> but my test here verified that that generally works even on the precise image.
[02:50] <smoser> to be clear, I changed kernel paramters, adding 'console=ttyS0'
[02:50] <jtv> smoser: sorry to interrupt — maybe you thought my questions were rhetorical or something, but I really need to know.  Is it only for our own dhcpd instance that the leases file needs to be root-owned?  If so, how can we work around that?  If not, how does the regular dhcpd write to it?
[02:50] <smoser> and 'console=tty1'
[02:50] <smoser> its only the leases file.
[02:50] <jtv> Stop.
[02:50] <smoser> it opens it for wrigint before dropping permissions is what I suspect
[02:50] <jtv> I am asking a question about the leases file.
[02:50] <jtv> You answer with “it's only the leases file.”
[02:50] <jtv> I think we're still talking at cross purposes.
[02:51] <smoser> "regular dhcpd" writes that file as root (look at /etc/init/dhcp-isc-server.conf)
[02:51] <jtv> !
[02:51] <smoser> we need to do exactly the same thing.
[02:51] <jtv> But the dhcpd doesn't run as root, does it?
[02:52] <smoser> it opens it for wrigint before dropping permissions is what I suspect
[02:52] <jtv> What is wrigint?
[02:52] <smoser> writing
[02:52] <jtv> Then don't type it wrong twice!
[02:53] <jtv> If you repeat an obvious mistake, you reinforce the notion that you're doing it deliberately — leaving me with the puzzle of what you mean if not the obvious.
[02:53] <smoser> sorry.
[02:53] <smoser> but if you looked at /etc/init/dhcp-isc-server.conf or actually played with this, you'd see.
[02:54] <jtv> I did look at dhcpd-isc-server.conf… and in fact it's where I copied my own version from.
[02:54] <smoser> http://paste.ubuntu.com/1212215/
[02:55] <smoser> chown root:root /var/lib/dhcp /var/lib/dhcp/dhcpd.leases
[02:55] <smoser> chown root:root /var/lib/dhcp/dhcpd.leases~
[02:55] <smoser> where yours did:
[02:55] <smoser> chown maas:dhcp $LFILE
[02:55] <smoser> chmod g+w $LFILE
[02:56] <jtv> Interesting — I wonder if I just missed that comment.
[02:56] <jtv> Nope: the comment is not there in the version of isc-dhcp-server that I have installed!
[02:56] <matsubara> smoser, not sure if it changes anything but I'm running this on quantal (I upgraded the QA lab to quantal last Friday)
[02:57] <jtv> The version I get installed chowns the leases file to dhcpd:dhcpd.
[02:57] <smoser> matsubara, well, it should not hcange anything.
[02:57] <jtv> So this looks like a Quantal change.
[02:58] <jtv> What I did was apparently right for Precise, and what you ran into was new to Quantal.  I wonder why they made that change.
[03:05] <smoser> it would seem potentially a change in behavior from upstream 4.1.ESV-R4 -> 4.2.2
[03:13] <roaksoax> jtv: cause it is usually better to run a daemon as a user and not as root
[03:16] <matsubara> smoser, apparently it doesn't time out. it's been stuck there for more than 5 min
[03:17] <matsubara> smoser, last message is eth1: no IPv6 routers present
[03:17] <smoser> thats random.
[03:17] <smoser> it seems to me like you're not getting a dhcp response.
[03:17] <smoser> or you got one on the wrong interface.
[03:17] <smoser> but i really think the former.
[03:18] <smoser> roaksoax, it runs as non-root in precise also.
[03:18] <smoser> it really seems like a bug (regression) to me that their code now opens the leases file before it drops its permissions.
[03:18] <smoser> but, that is the way it is, and we'll just have to deal with that or come up with some solution that works both on precise and quantal.
[03:19] <smoser> matsubara, see above.  again, i can poke at this some tomorrow.
[03:19] <matsubara> smoser, ok. I'll ping you. thanks!
[03:20] <matsubara> it's strange because it does get the IP adress and gets the image from the tftp server
[03:20] <roaksoax> smoser: most likely, the changelog doesn't seem to provide any hint of the change on permission for the leases file though
[03:20] <smoser> upstream changelog?
[03:21] <smoser> the ubuntu bzr log is screwed up due to the importer sucking
[03:21] <smoser> i already blamed mdlesuer for something that wasn't his fault as a result :)
[03:22] <roaksoax> heh
[03:22] <roaksoax> smoser: i'm checking on debian's changelog
[03:23] <jtv> roaksoax: that's the funny thing — dhcpd was _already_ running as its own user.  The change I'm wondering about is that the leases file must now apparently be owned by root rather than by the one user that's supposed to read and write the file.
[03:24] <roaksoax> jtv: right, so I'm wondering if this was due to a recent upload, and if so, have you identified which one is it?":
[03:26] <roaksoax> jtv: this could also be related to the fact that we are running our own dhcp server too
[03:27] <jtv> roaksoax: those are exactly the answers I've been trying to get out of Scott.  And now it finally turns out that he's been looking at a different version of the package than I got.
[03:28] <roaksoax> lol
[03:28] <jtv> It turns out that the leases file needs to be root-owned _in the regular Quantal isc-dhcp-server package_.
[03:29] <jtv> Not funny — cost me days off this end of my life and probably a few years off the other end.  “Why don't you just look at the file?  It's so simple.  I'm not going to answer direct questions.”
[03:29] <jtv> Well in retrospect maybe it is a little funny.
[03:30] <jtv> Anyway, the Quantal package's upstart script chowns the leases file to root, and has a comment saying that this is required.  The precise version didn't have any of that.
[03:31] <jtv> So it's not related to the fact that we're running our own instance — it just complicates running our own instance.
[03:32] <roaksoax> jtv: right, but if we are running our own version, it still meeans we assign permissions as maas:root or maas:dhcp
[03:33] <jtv> Well that's the thing: _something_ in the package seems to be requiring root:root, so apparently it has to be root:root.
[03:34] <jtv> In Quantal.
[03:34] <jtv> But making it root-owned may actually break the Precise version.
[03:36] <roaksoax> jtv: right, so it is simply different permissions for each verison of the package
[03:36] <jtv> Can we do that easily?
[03:39] <jtv> roaksoax: does that mean I should just propose separate (but similar) branches for the packaging and packaging-precise branches?
[03:40] <roaksoax> jtv: the precise packaging branch has changes stacked on top of the quantal branch
[03:40] <roaksoax> jtv: so the process should be propose to quantal
[03:40] <roaksoax> then apply precise changes and commit to precise
[03:40] <roaksoax> or propose to precise too
[03:41] <jtv> OK I'll focus on getting it working on quantal then.
[03:43] <roaksoax> jtv: ok, let me know if I can help with anything (of course i'd take care of it tomorrow_
[03:43] <roaksoax> jtv: or just drop me an email with what's needed to get changed and I will take a look at it tomrorow
[03:43] <roaksoax> now i'm off to bed
[03:43] <jtv> Thanks and good night!
[14:12] <rbasak> allenap: I have an issue with gen_pxe_template_filenames. I need an ARM-specific version of config.template, but this isn't currently possible. See http://bazaar.launchpad.net/~maas-maintainers/maas/trunk/view/head:/src/provisioningserver/pxe/config.py#L45
[14:12] <rbasak> allenap: can we get rid of config.template altogether and require every template to have a purpose?
[14:12] <rbasak> alexmoldovan: or alternatively have a config.template.{arch} fallback before config.template?
[14:13] <rbasak> uh, allenap
[14:15] <allenap> rbasak: First thing, the docstring lies; config.{purpose}.template will always be tried before config.template.
[14:15] <allenap> rbasak: Ignore that.
[14:15] <allenap> I am very tired right now :)
[14:16] <allenap> rbasak: If you mean you want the same template for multiple purposes, then I suggest using symlinks.
[14:16] <allenap> rbasak: These already exist for other templates.
[14:17] <allenap> Where these equals symlinks.
[14:17] <rbasak> I don't think that solves my problem
[14:17] <rbasak> I need config.template to be different on ARM
[14:18] <allenap> rbasak: config.arm.template with symlinks for each purpose?
[14:18] <rbasak> So we either need to drop config.template and use specific purpose templates only (in which case I can use the existing override), or we need to add an extra override
[14:18] <allenap> I don't really understand the problem.
[14:18] <rbasak> We could do that, but then it wouldn't be parallel to x86
[14:18] <rbasak> If we do that, then we want config.template with x86 symlinks for each purpose too
[14:19] <rbasak> I want to do the same as what's there already with just the exception for arm present, rather than arranging everythign there differently for arm and thus confusing future work
[14:23] <allenap> rbasak: I don't think that's a problem - not being symmetrical - but I think I still don't really see what the issue is. Another way to do it might be:
[14:24] <allenap> get rid of the {purpose} lookup, and instead pass purpose in to the template's namespace. Then the template can choose what to render.
[14:27] <allenap> rbasak: I think that actually makes more sense in terms of making these templates useful for multiple architectures.
[14:27] <allenap> Enabling a new piece of hardware would mean providing templates for all purposes on its arch, not just a subset.
[14:28] <rbasak> allenap: that's a fairly hefty change and I'm not sure what benefit it would give us given where we are right now. We don't know what'll happen to the boot purposes in the end either, right?
[14:28] <rbasak> allenap: I think I'd prefer to add a fallback to config.<arch>.template which I know won't break anything
[14:29] <rbasak> (and is a trivial change)
[14:31] <allenap> rbasak: Yeah, I still don't see why it's needed. It complicates the lookup, which can already be hard to follow. Just use symlinks for now. There are three boot purposes to make links for : commissioning, install, and local.
[14:33] <rbasak> allenap: so we already have a config.commissioning.template and a config.local.template
[14:33] <rbasak> allenap: can I just rename the existing config.template to config.install.template then?
[14:34] <rbasak> allenap: then I can have easy armhf overrides as necessary
[14:35] <allenap> rbasak: Yeah, that makes sense. That was your original suggestion too. Sorry, I'm not in a fit state to field questions today!
[14:36] <rbasak> allenap: no worries. I wasn't sure if there were other boot purposes too before. I'll test and get a merge proposal in.
[14:37] <allenap> rbasak: get_boot_purpose can also return "poweroff", but this isn't handled anywhere. That's returned for nodes that really ought not to be booting.
[14:38] <rbasak> allenap: is that just an fyi or will it affect my proposed change?
[14:38] <rbasak> AIUI, I can ignore that?
[14:38] <allenap> rbasak: fyi
[14:38] <allenap> Yeah.
[14:38] <mgz> can I mark my own mps approved if they have an approve vote and I've done the requested changes?
[14:38] <rbasak> Right. Thanks!
[14:39] <allenap> mgz: Yes.
[14:39] <mgz> allenap: ta
[14:39] <allenap> mgz: For small changes you can +1 and land your own mps too if waiting for a review is going to block you.
[14:39] <rvba> mgz: don't forget to set the commit message otherwise the MP won't be picked up by tarmac.
[14:40] <mgz> rvba: also ta
[14:40] <mgz> "[bug=]"... seriously?
[14:43] <mgz> not pulling the author/bug details from bzr is bad enough, but we want to pander to commit log parsers so dumb they can't cope with a missing field?
[14:44] <mgz> or is tarmac adding that?
[14:44] <rvba> Yep, tarmac does that.
[14:45] <mgz> okay, /me bops tarmac on the head for being silly
[15:51] <smoser> this make any sense to anyone
[15:51] <smoser> https://bugs.launchpad.net/maas/+bug/1051626
[15:51] <smoser> see my last comment there. i'm not sure what is making the pxe boot take a different path
[15:52] <smoser> allenap, where is your maas cli branch ?
[15:52] <smoser> never mind
[15:52] <smoser> https://code.launchpad.net/~allenap/maas/command-line/+merge/124704
[16:00] <roaksoax> rvba: btw.. were you able to look on the release support branch?
[16:03] <allenap> smoser: Weird indeed!
[16:04] <rvba> roaksoax: we talked about it this morning during the standup.  Jeroen pointed out that you should use the new model BootImage, instead of getting the list of releases from the command line tool.
[16:04] <roaksoax> rvba: we are not getting the releases from a command line tool
[16:04] <roaksoax> rvba: the realeases are being get from python-distro-info
[16:05] <rvba> roaksoax: ah right, I see that now.  I was just wonder were that UbuntuDistroInfo was coming from.
[16:05] <rvba> roaksoax: still, BootImage should probably be used instead.
[16:05] <roaksoax> rvba: what's that now ?
[16:06] <rvba> roaksoax: src/maasserver/models/bootimage.py
[16:07] <roaksoax> rvba: right, so hold on, how we want to obtain the releases from what boot images we have available, since we should obtain the bootimages from the releaes that we have available
[16:07] <roaksoax> rvba: i mean... we should obtain images from release, not release from images available
[16:08] <smoser> allenap, at the risk of seeming completely stupid.
[16:08] <smoser> how can i play wiht maascli
[16:08] <roaksoax> jtv: still around?
[16:09] <rvba> roaksoax: maas-import-pxe-files should populate BootImage.
[16:09] <rvba> and maas-import-pxe-files uses distro-info.
[16:09] <allenap> smoser: Branch lp:~allenap/maas/command-line, make, then use bin/maascli api login --help to get started.
[16:10] <allenap> smoser: It hasn't landed yet :-/
[16:10] <roaksoax> rvba: right, but IMHO, maas-import-pxe-files should obtain the images from the releasea MAAS knows about, not the other way around
[16:10] <smoser> allenap, well, 'make bin/maascli' was failing for me
[16:10] <smoser> i had'nt 'amke install-dependencies' yet
[16:10] <roaksoax> rvba: so maas-import-pxe-files should obtain the releases tht MAAS support
[16:10] <roaksoax> rvba: so maas should determine what releases it supports, not a helper script
[16:10] <smoser> but truthfully, the point of 'make' is that it would have recognized i'd not done that :)
[16:11] <smoser> plus, i already have maas installed on the system via package. i hate pypy
[16:11] <rvba> roaksoax: your suggestion makes sense to me.
[16:11] <smoser> anyway, i'm getting there.
[16:11] <roaksoax> rvba: ok, so we really need to get something in asap as it is really delaying my work
[16:12] <roaksoax> rvba: improvements can always con after we have the main parts in
[16:12] <roaksoax> such as better determining the avaalble releases
[16:12] <rvba> roaksoax: granted.  So my suggestion is this: hardcode the available versions for now: XXX = ['precise', 'quantal']
[16:13] <rvba> roaksoax: the rest can stay as is.
[16:16] <roaksoax> rvba: OK
[16:16] <roaksoax> rvba: do you also want split braches?
[16:17] <rvba> roaksoax: you could simply split that branch into two: one for the db change and one for the rest but I'm ok with one branch if that's easier for you.
[16:17] <smoser> rbasak, lp:~smoser/maas/maas.ubuntu.com.images-ephemeral now has my pushed branch
[16:17] <roaksoax> rvba: i'll split it for better understanding
[16:18] <smoser> i hadn't updated previously. i thought i had pushed.
[16:18] <smoser> :-(
[16:18] <roaksoax> rvba: though, will it get merged before having all the tests addressed?
[16:18] <rbasak> smoser: I'm having trouble building your PPA mountall with sbuild
[16:18] <rvba> roaksoax: usually, the tests should be done in the same branch.
[16:19] <smoser> rbasak, why?
[16:19] <smoser> (fwiw, what is there is == to what is in lp:ubuntu/mountall at the moment)
[16:19] <roaksoax> rvba: ok, so that means fixing looooooooooots of them
[16:19] <rbasak> smoser: http://paste.ubuntu.com/1213219/
[16:19] <smoser> but note, that lp:ubuntu/mountal != whats in the archive.
[16:20] <rbasak> smoser: looks like it wants plymouth-dev instead of libplymouth-dev
[16:20] <rbasak> smoser: http://osdir.com/ml/general/2012-03/msg44302.html looks like the same problem
[16:20] <rvba> roaksoax: really?  Since there is a default release, I don't expect this to break that many tests…
[16:22] <roaksoax> rvba: the new attribute brekas them I think
[16:22] <roaksoax> rvba: i'll have to recheck
[16:24] <smoser> rbasak, you're trying to build in quantal, right?
[16:24] <smoser> yeah, looks like it.
[16:24] <smoser> strange.
[16:24] <rbasak> in a quantal chroot, in precise
[16:24] <rbasak> I found --resolve-alternatives
[16:24] <rbasak> trying it now
[16:25] <rvba> roaksoax: only 2 failures.  We should manage :)
[16:25] <rbasak> OK that seems to have worked
[16:25] <roaksoax> ok cool
[16:25] <roaksoax> lol
[16:25] <rbasak> Looks like it's intended sbuild behaviour
[16:26] <roaksoax> rvba: alright, I'll do the changes and re-submit the merge proposal(s)
[16:26] <rvba> roaksoax: cool.  One more thing, let's set the default to be '' instead of None so won't have to check for both every time we want to know if the value is empty.
[16:26] <roaksoax> rvba: ok cool
[16:28] <rbasak> smoser: http://people.canonical.com/~rbasak/mountall_2.41~ppa415_armhf.deb but I can loopback mount the ephemeral image once it's installed to stick that in, right? And you want me to regenerate an image from lp:~smoser/maas/maas.ubuntu.com.images-ephemeral and test with that?
[16:30] <smoser> rbasak, yeah, pull the m.u.c branch. then edit ARCHES to put armhf in it.
[16:30] <smoser> and run
[16:31] <smoser> or, you dont really need all the launcher stuff
[16:31] <smoser> just download the .tar.gz file, extract and then run
[16:31] <smoser> ./maas-cloudimg2ephemeral disk.img arm-kernel arm-initrd arm-manifest
[16:31] <smoser> and it should handle it
[16:32] <smoser> (then mount loopback and dpkg -i the mountall)
[16:32] <rbasak> What .tar.gz file? Will a branch checkout do?
[16:33] <rbasak> smoser: ^^
[16:37] <smoser> working on it
[16:46] <smoser> rbasak, http://paste.ubuntu.com/1213255/
[16:46] <smoser> it looks a lot like that
[16:46] <smoser> but then add the moutnall
[16:47] <smoser> and that is not working for me on amd64 on quantal right now
[16:47] <smoser> as the apt-add-repository is failing
[16:48] <rbasak> smoser: I'm not with you
[16:48] <smoser> no?
[16:48] <rbasak> smoser: we're trying to get me to generate an armhf ephemeral image, right?
[16:48] <smoser> yes
[16:48] <rbasak> what's nelson?
[16:48] <smoser> my local '$mirror'
[16:48] <rbasak> what can I use instead?
[16:49] <smoser> cloud-images.ubuntu.com
[16:49] <rbasak> cloud-images.u.c?
[16:49] <rbasak> ok
[16:49] <rbasak> smoser: so I don't run the command on the first line, right?
[17:01] <smoser> rbasak, shoot.
[17:01] <smoser> right.
[17:01] <smoser> do not run the first line
[17:01] <smoser> only subsequent
[17:01] <smoser> bad paste
[17:01] <rbasak> ok
[17:01] <rbasak> almost there
[17:03] <rbasak> discovering some dependencies - qemu-user-static and rsync
[17:03] <smoser> http://paste.ubuntu.com/1213282/
[17:03] <smoser> that looks a bit better
[17:03] <smoser> you should not need qemu-user-static
[17:03] <smoser> if you're doing this on arm
[17:03] <rbasak> I'm not
[17:03] <smoser> and rsync?
[17:03] <rbasak> A script seemed to use rsync
[17:03] <smoser> i dont think so
[17:03] <rbasak> I'm doing this on my test maas machine, which is virtualised amd64
[17:03] <smoser> ah. you're right . tree2query does
[17:06] <smoser> rbasak, but for this exercise you dont need tree2query
[17:06] <rbasak> smoser: it failed without rsync
[17:07] <smoser> you're nto running tree2query
[17:07]  * rbasak shrugs
[17:08] <smoser> shoot
[17:08] <smoser> and if you're hitting that cod then something else is wrong
[17:10] <smoser> rbasak, shoot. thats a bug. let me fix that.
[17:10] <smoser> i'm sorry
[17:11] <rbasak> it's ok
[17:11] <rbasak> I can cope with needing to install rsync :)
[17:12] <rbasak> smoser: dd: writing `/tmp/maas-cloudimg2ephemeral.LKQPwv/mp.K8gUX1/tmp/zero': No space left on device
[17:12] <rbasak> is that a problem?
[17:12] <rbasak> or intentional to zero out unused space?
[17:12] <smoser> intentional
[17:13] <rbasak> OK so I think I have an image
[17:13] <rbasak> in ~/dl?
[17:14] <rbasak> smoser: now what?
[17:14] <rbasak> smoser: I don't understand the different forms these images can take
[17:15] <rbasak> This doesn't look like something that maas-import-ephemerals can read, and I don't see an initrd.gz
[17:16] <smoser> rbasak, it updates $img in place
[17:16] <smoser> and copied out kernel and intiramfs to the places you told it to
[17:16] <rbasak> Ah
[17:16] <smoser> dont use maas-import-ephemerals, just copy those files to the right places.
[17:16] <rbasak> OK I think I follow
[17:25] <smoser> rbasak, 39. i think is reasonable.
[17:25] <smoser> r39 in that branch.
[17:25] <smoser> almost finished here.
[17:26] <smoser> rvba, why do you want to hardcode a list of releases?
[17:27] <smoser> we've solved this problem in distro with 'distro-info' and it magically gets serviced for you.
[17:27] <rvba> smoser: it's just a temporary measure.  We want a central place to store that information.
[17:28] <smoser> temporary as in how long?
[17:28] <smoser> if temporary as in its-going-to-go-in-12.10
[17:28] <smoser> then use distro-info the shell utility
[17:28] <rvba> Jeroen has recently created the BootImage table so it sounds reasonable to use that.
[17:29] <rvba> Temporary as in get-andres-unblocked right now.
[17:33] <rvba> smoser: definitely not something that should go in 12.10.  I'll talk to Jeroen about that tomorrow.  But BootImage should be populated by maas-import-pxe-files which uses distro-info.
[17:49] <rbasak> smoser: it's trying to hit archive.ubuntu.com and not ports
[17:52] <smoser> rbasak, can i see logs ?
[17:55] <rbasak> smoser: so at least two problems that I can see
[17:55] <rbasak> It hits archive.ubuntu.com
[17:55] <rbasak> and resolv.conf is still broken
[17:55] <rbasak> smoser: I'm EOD+1h now
[17:55] <rbasak> smoser: but if it'll help I can show you how to test on this machine yourself
[17:56] <rbasak> It's pretty straightforward
[17:56] <smoser> rbasak, your'e not booting that image.
[17:57] <rbasak> smoser: I just this moment realised that
[17:57] <rbasak> sorry
[17:59] <rbasak> smoser: so I only see one /var/lib/maas/...disk.img which I've replaced
[17:59] <smoser> rbasak, restart tgtd
[17:59] <smoser> and make usre you updated your v/ar/lib/maas/tftp/..... kernel and initrd.gz
[17:59] <smoser> sorry. i know you're edo
[17:59] <smoser> edo
[17:59] <smoser> eod
[18:00] <rbasak> /var/lib/maas/tftp?
[18:00] <rbasak> or /var/lib/maas/ephemeral?
[18:00] <rbasak> the latter I've done
[18:00] <rbasak> the former comes from d-i netinst, no?
[18:03] <rbasak> smoser: looks like it's timing out on nonet again
[18:03] <rbasak> smoser: we need to get it so you can test directly I think
[18:04] <smoser> rbasak, lets just look more tomorrow.
[18:04] <smoser> k?
[18:04] <rbasak> ok
[18:04] <smoser> i'll try to get in kind of early.
[18:04] <smoser> and we can poke at it together.
[18:04] <rbasak> ok, ping me when you're in
[18:05] <smoser> rbasak, /var/lib/maas/tftp/amd64/generic/precise/commissioning/ is not install though
[18:05] <smoser> its the kernel copied from import-ephemerals
[18:06] <rbasak> good point
[18:06] <rbasak> so I probably just ran the wrong initrd against the image
[18:06] <rbasak> never mind, I'll try again tomorrow
[18:09] <smoser> rbasak, shoot.
[18:09] <smoser> what does os.uname report on arm ?
[18:12] <roaksoax> rvba: still around?
[18:13] <rvba> roaksoax: unfortunately, yes :)
[18:13] <roaksoax> rvba: are you gonna be here long?
[18:14] <rvba> roaksoax: probably not.
[18:14] <roaksoax> rvba: so I should start then: https://code.launchpad.net/~andreserl/maas/add_node_distro_series/+merge/125010
[18:19] <rbasak> smoser: http://paste.ubuntu.com/1213406/
[18:19] <smoser> rbasak, and uname -m ?
[18:19] <smoser> actually. that is good enough.
[18:19] <smoser> gracias.
[18:20] <rbasak> smoser: armv7l
[18:21] <smoser> rbasak, sorr to abuse you
[18:21] <smoser> dpkg --print-architecture
[18:21] <smoser> prints armhf, right?
[18:21] <rbasak> smoser: armhf
[18:21] <rbasak> yes
[18:21] <roaksoax> rvba: https://code.launchpad.net/~andreserl/maas/distro_series_support/+merge/125012
[18:21] <smoser> then i dont know what is going wrong with mirror selection.
[18:22] <rbasak> It might be that I used the wrong initrd
[18:22] <rbasak> I'll test tomorrow
[18:22] <smoser> well, that would possibly cause errors, but not *those* errors :)
[18:22] <roaksoax> rvba: where do I modify apidoc?
[18:22] <roaksoax> since I'm adding a parameter to "start"
[18:22] <rvba> roaksoax: in the docstring of the API method.
[18:24] <roaksoax> rvba: should we explain what it is used for?
[18:24] <rvba> roaksoax: yes.
[18:31] <roaksoax> rvba: and finally: https://code.launchpad.net/~andreserl/maas/add_api_parameter_for_ubuntu_series/+merge/125016
[18:45] <roaksoax> rvba: now, does these two tests satisfy the new methods added on src/maasserver/models/node.py (get_distro_Series and set_distro_series)
[18:46] <roaksoax> rvba: http://paste.ubuntu.com/1213438/
[18:47] <rvba> roaksoax: looks ok to me.
[18:49] <rvba> roaksoax: I'll step out in a few minutes but I'll review your branches tomorrow.  Thanks for all the changes and for refactoring your work into separate branches.
[18:49] <roaksoax> rvba: no prob ;)
[18:51] <roaksoax> and thanks for reviewing
[19:22] <smoser> matsubara, around ?
[19:23] <smoser> i'm finally into the lenovo lab
[19:38] <smoser> matsubara, ping
[19:57] <matsubara> hi smoser
[20:06] <smoser> matsubara, hi.
[20:06] <smoser> sorry. just saw this.
[20:06] <smoser> i'm poking at the lab right now.
[20:06] <matsubara> cool
[20:07] <matsubara> smoser, I'm sharing the terminal with you. did you reinstall maas there?
[20:07] <smoser> no.
[20:07] <smoser> i've only edited the commissioning kernel cmdline
[20:08] <matsubara> smoser, ok. I think it should be fine to boot a node and see the same issue we were talking about yesterday
[20:08] <matsubara> I thought I had purged the install but it's still there
[20:08] <smoser> i think your initial thought was right.
[20:08] <smoser> i think we are waiting on eth1 to come up
[20:09] <matsubara> hmm so is it a problem with the image itself?
[20:09] <matsubara> smoser, ^
[20:10] <smoser> well, sort of.
[20:15] <smoser> matsubara, yeah. my kernel cmdline changes regressed this.
[20:17] <matsubara> smoser, let me know if you need help test things out there. Are you using the browser based raritan client?
[20:17] <matsubara> smoser, or the java client?
[20:19] <smoser> the browser didnt' work at all
[20:23] <roaksoax> smoser: i had to install oracle's java client
[20:23] <roaksoax> or java plugin i mean
[20:24] <smoser> matsubara, ok.
[20:25] <smoser> i am running the standalone and it doesn't completely suck
[20:25] <matsubara> smoser, I'm using the standalone as well.
[20:26] <smoser> matsubara, so here is what i found
[20:26] <smoser> my kernel commadnline cleanups regressed this.
[20:26] <smoser> so i'll submit an mp for that trivial-ish short term fix.
[20:27] <smoser> and will pursue a better packaging fix.
[20:27] <matsubara> smoser, cool. thanks
[20:27] <matsubara> did you file a bug for this?
[20:27] <smoser> i will do that
[20:27] <smoser> also, you seem to have a bug or misconfiguration of dns
[20:28] <smoser> i dont know, but the node thinks its should be able to get dns from 192.168.21.1
[20:28] <smoser> but that does'nt work
[20:28] <matsubara> smoser, yeah, dns is not working as it was supposed to. Julian asked me to try a few changes to named.conf.options but I didn't yet because of this issue
[20:29] <smoser> well, dns does work for me in my tests
[20:29] <roaksoax> smoser: so enlistment would also be affected maybe if having an external DNS?
[20:29] <smoser> at least caching portion of dns does
[20:29] <smoser> roaksoax, i'm confused
[20:30] <roaksoax> smoser: enlistment tries to detect a DNS server and see whether a host has a DNS entry for it
[20:31] <roaksoax> smoser: so if cloud-init correctly thinkgs there a DNS, enlistment is affected
[20:31] <matsubara> smoser, with the changes bigjools suggested to named.conf.options the `host security.ubuntu.com 192.168.21.1` resolves
[20:32] <roaksoax> smoser: I'll get https://code.launchpad.net/~jtv/maas/packaging-custom-dhcpd/+merge/124594 merged if yoiu dont have any more objections
[20:33] <roaksoax> comments or suggestions
[20:52] <smoser> matsubara, roaksoax https://code.launchpad.net/~smoser/maas/lp1052660/+merge/125046
[20:52] <smoser> ack that would be nice.
[20:53] <smoser> matsubara, that will fix your issue on that system.
[20:53] <matsubara> smoser, thank you
[20:53] <smoser> you will still not have console to the graphical console
[20:54] <roaksoax> smoser: done
[20:55] <smoser> to get that you will need to either locally edit files or get https://bugs.launchpad.net/maas/+bug/1044503 fixed.
[20:59] <smoser> rbasak, just saying this out loud so i might remember it.
[20:59] <smoser> for getting BOOTIF to be pegged to 'eth0' (due to limitation of cloud-init and /etc/network/interfaces)
[21:00] <smoser> we might be able to make use of the fact that udev reads rules from /run/udev/rules.d/.
[21:00] <smoser> ie, we can write those in the initramfs
[21:02] <smoser> ok. i'm out for th enight.