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

jtvroaksoax: you still have that 1.4 branch waiting to land...  should I land it?01:50
jtvThere were some review changes to be made... don't know if you made them.01:51
=== freeflying is now known as freeflying_away
=== freeflying_away is now known as freeflying
=== vertigo is now known as Guest50260
jtvbigjools: could you review this one for me?  https://code.launchpad.net/~jtv/maas-test/fix-setup-error-reporting/+merge/19478104:51
bigjoolsjtv: sure04:54
jtvthx04:54
bigjoolsdone04:56
* bigjools goes back to CSS04:56
jtv...UI work?04:57
bigjoolsaye04:57
jtvNot the Canadian Secret Service then.04:57
bigjoolswill show you shortly04:57
bigjoolshaha04:57
jtv(If they're so secret, how come they're in the GTF, huh?)04:57
bigjoolsyou have SIS already?04:57
jtvWhich one?04:58
jtv11 entries so far.04:58
bigjoolsSecret Intelligence Service04:58
jtvYup, got that.04:58
bigjoolssplendid04:59
bigjoolsjtv: as promised: https://code.launchpad.net/~julian-edwards/maas/warning-no-power/+merge/19478705:26
bigjoolsAzendale: still there?05:26
Azendalebigjools: still here05:26
Azendalebigjools: give me a minute to finish the project I'm in05:27
bigjoolsAzendale: I have been thinking about your problem and I think you might want to find some virtualisation experts.  I can't see anything wrong with any of the maas logs you showed me so I'm mostly convinced there's some error in the networking over virtio05:27
Azendalebigjools: TBH, I'm not sure where to start on that route. But I can try. I'm thinking I could try breaking it, and then running a packet capture on the MaaS server. If it's still sending and receiving packets, I would think there would be something up with the software. I think I saw that once trying to figure it out myself, but I would like to be sure of that before saying that is the case05:34
bigjoolsAzendale: the reason I am sceptical it's maas is because we have a physical lab of QA machines that get fired up in tandem and they are fiine.05:35
Azendalebigjools: The other thing I could think of is setting up an LXC container on my machine, setting up MaaS inside it, and then bridging it's network to virtual machines. I could also try not using virtio05:37
bigjoolsall worthwhile, yeah05:38
Azendalebigjools: That does make it seem more like a virtualization thing then, though. I guess I'll keep expirimenting around05:38
bigjoolsAzendale: also, the fact that it fails at the DHCP level means there's no maas code involved at that point, and I don't believe that isc-dhcp-server would randomly give up under load, it's pretty solid05:39
Azendalebigjools: I do agree there, that is pretty widely used. Well, thanks for taking a look at it, I'll see what I can find. I'll probably be back with questions though (if I find something weird that I can't figure out)05:42
bigjoolsAzendale: sure, please let me know what you find, I am very interested.05:43
bigjoolsI have vague recollections of virtual networking being weird like this under load, but could be wrong.05:43
Azendalebigjools: definitely possible. Though I have seen stuff pulling during the installs from the package cache I have on the host machine at 30 MiB/s. Maybe it's just UDP stuff05:46
bigjoolscould well be05:46
Azendalebigjools: ok, well thanks for the help, I'll let you get back to whatever you were doing before I figured out some weird way to break stuff :)05:47
bigjoolsAzendale: heh no problem05:48
jtvbigjools: would also appreciate your opinion on a change I'd like to make... time for a hangout?06:53
=== CyberJacob|Away is now known as CyberJacob
bigjoolsjtv: yes07:17
jtvAhhh — when you fire up a VM with uvtool, it does an apt-get update.  If that isn't finished yet by the time we start installing maas, things break horribly.08:19
jtvLooks like we do need proper waiting (uvt-kvm wait, followed by polling for /var/lib/cloud/instance/boot-finished).08:20
rvbajtv: You're right, we need to wait until cloud-init finishes.08:25
jtvIn practice it may depend on the speed you get from your mirror, but for me, that means it doesn't.08:25
jtvShame that that can't be fast, but oh well.08:25
rbasakjtv: currently it installs avahi-daemon, but I want to drop that. But yes - we need to wait for boot-finished in the general case.08:56
rbasak(and eventually uvt-kvm wait should incorporate that)08:57
jtvIt's not so much the avahi-daemon that bothers me, it's the maas.08:57
rbasakFor speed?08:57
jtvNo, to avoid failure.08:57
rbasakI meant that the race is a consequence of installing avahi-daemon. Without that, cloud-init won't hit apt-get on boot.08:57
jtvIt looks as if, before the "apt-get update" completes, the VM has as an apt database that doesn't match what's on the local mirror.08:58
jtvSo I think if we ditch avahi-daemon, we'll have to do an apt-get update anyway.08:58
rbasakAh, I see. Yes, that's true.08:58
jtvBut it'll be easier than polling.08:58
jtvBecause we'll be running it synchronously to our ssh session.08:59
jtvA polling loop doesn't sound like much, but it needs testing etc.08:59
rbasakA daily image might be closer to the apt mirror than the "release" one. I'm not sure using that is a good idea for production stuff though.08:59
rbasakWhen you sync, you can override the mirror to http://cloud-images.ubuntu.com/daily/ I think.08:59
jtvWhat was that about saving time?  :)09:00
jtvFor all I know, the image's built-in apt db might have more recent versions that aren't on the mirror yet...09:00
jtvOr the other way around.  So yes, would be nice to get it all off the same mirror.09:00
rbasakYou could also prep an image and get uvt-kvm to use that instead of a pristine one09:01
rbasak--backing-image-file09:01
rbasakMake sure to remove /var/lib/cloud/instance/boot-finished manually if you do that and want to poll for it though.09:01
jtvNot a worry if we do it synchronously, I guess.09:02
rbasakmount-image-callback is handy for manually prepping the image if you want to do that.09:02
jtvNot just now, to be honest — that's optimisation.09:02
rbasak(or you can use a VM)09:02
jtvIt actually working sort of takes priority.  :)09:02
rbasak:)09:03
rbasakThough if your development iteration will be faster, it might be worth it09:03
jtvYes, it will help.  But if it takes longer to build, that also affects our development cycle.09:04
jtvSo bit of a trade-off.09:04
jtvSo... two simple alternatives:09:05
jtv1. Wait for boot to complete, and keep doing the apt-get update even when we ditch avahi-daemon.09:05
jtv2. Always use the central archive.09:05
jtvAnd #2 needs daily uvt images, right?09:06
jtvTo be reliable?09:06
rbasakTo be reliable, I think I'd recommend always running apt-get update09:08
jtvIt does seem like the most robust option.09:08
jtvSo I'll just do the waiting.09:09
rbasakIt might be safe to try apt-get --download-only install first, and if that fails to download then apt-get update first before retry, and then apt-get install09:09
rbasakDoing that with a daily might give you a speedup09:09
jtvOr a slowdown I guess, if the downloads are out of date.  Is it worth it?09:10
rbasakHowever, I presume the purpose of a daily is that Scott or Ben can break it for a day without everyone yelling at them, so we probably shouldn't do that in production09:10
rbasakNot worth it for me, I don't think. YMMV on your connection and your end of the world.09:10
jtvSimple is beautiful.09:11
jtvrvba: I think I spotted KVMFixture.ip_address being called multiple times in a test somewhere...  Shouldn't we just make start() say self.ip_address = [...]?09:46
jtvNot a high-priority item.  :)09:46
rvbajtv: that's an optimization we can do indeed.  Like you said, not really urgent.09:48
jtvrvba: didn't you find a package a while back with little utilities like "wait until file exists"?09:53
rvbajtv: I think you're think about http://blog.dustinkirkland.com/2013/09/introducing-run-one-constantly-run-one.html09:55
rvbathinking*09:55
jtvYes, that's it, thanks.09:55
jtvThere just has to be a tool like this in there.09:55
jtvArgh, no, I can't use that.  We can't apt-get install yet at that point.09:56
=== freeflying is now known as freeflying_away
=== freeflying_away is now known as freeflying
freeflyingmaas profile nodes list shows some nodes has two ip address, would it be a issue13:48
=== freeflying is now known as freeflying_away
=== freeflying_away is now known as freeflying
jtvfreeflying: it might be, IIRC.  It shouldn't really happen.14:47
freeflyingjtv, it did happen here :)14:47
jtvroaksoax: hi — any idea about this installation error in a VM?14:47
jtv/tmp/maas-region-controller.config.51653: 35: /tmp/maas-region-controller.config.51653: dbc_go: not found14:47
jtvroaksoax: that's saucy/amd6414:49
freeflyingjtv,     "ip_addresses": [14:49
freeflying            "10.213.0.108",14:49
freeflying            "10.213.0.111"14:49
freeflying        ],14:49
jtvIf MAAS manages DHCP, leases never expire... In principle (there's another weasel term) a node should always keep the same IP address on the same interface.14:50
jtvBut sometimes, it seems...14:50
freeflyingjtv, in our case, we have 1 bond nics has 2 slaves, due to some reason, the mac of bond could be either of the 2 slaves14:53
freeflyingjtv, led maas has 2 ip for this nodes14:56
jtvfreeflying: if the bonded interface arbitrarily picks the MAC of one of the two underlying interfaces, I guess after a few boots they'd both get IP addresses and things could get confused...  Maybe the real problem is the unpredictability of how these two interfaces come up.14:58
jtvI need to leave now, I'm afraid...  It sounds as if the problem may be at a very low level, so consider asking in #ubuntu-server.14:59
freeflyingjtv, thats true, for example, in bond 1, when fail over happens, then the mac will be changed14:59
rbasakrvba: oh, you can put strings on separate lines and they get concatenated? I didn't know that - thanks!15:06
rvbarbasak: the operator % takes priority over +.15:06
rbasakrvba: I usually stick brackets in. I didn't realise I could just drop the +15:09
roaksoaxjtv: yeah, but that's nothing that you should worry about15:09
roaksoaxjtv: that does not cause an install error nor prevent maas from installing15:09
rbasakCan I merge directly from the MP in Launchpad somehow? Or do I need to do it locally and push?15:10
rvbarbasak: unless you have a lander like tarmac set up, then I think your only option is to merge locally and push.15:13
rbasakOK, thanks.15:13
rbasakCan you tell I'm new to this? :)15:13
rvba;)15:13
rvbarbasak: does this error ring a bell: "libvirt.libvirtError: xml in virDomainDefineXML must not be NULL" I'm running this:http://paste.ubuntu.com/6405809/15:21
rbasakrvba: no. I've not seen that before.15:21
* rbasak hopes he hasn't broken something recently15:22
rbasakI need tests :-/15:22
rvbaI think it's related to my machine… I can't reproduce it on canonistack.15:22
rvbaI think I fucked something up locally :/.15:22
rbasakrvba: can you drop into pdb on line 322 and print xml? Or is that what you're doing already?15:23
rbasakrvba: also type(xml) please15:23
rbasak(just as I'm paranoid)15:23
rvbarbasak: what I was printing was the result of compose_domain_xml().15:24
rvbarbasak: let me remove all the packages and start over first…15:24
rvbarbasak: I re-installed everything and now it works… I probably messed up the template… sorry for the noise.15:28
rbasaknp15:28
=== Spideyman is now known as Spideyman_afk
NCommanderIf I get a "Tests Failed" status, where can I find what exactly failed?16:02
NCommanderThe console output isn't clear (I have some IPMI errors, but that should be expected, I don't have working IPMI)16:03
faderHey folks, I installed MAAS on 12.04 from the havana cloud-archive but am getting some django errors ("ImportError: No module named simple") when hitting the MAAS webservice.  Googling around suggests that something is relying on some depricated functionality in django (http://stackoverflow.com/questions/15085626/no-module-named-simple-login-required-depreciated) but I'm kinda stuck after that point16:40
faderIt's a fresh install that's up-to-date on packages... is there anything obvious I might be missing?16:40
matsubarafader, did you add the cloud tools archive? I think if you only added the cloud-archive:havana it's still pulling the MAAS packages from the main archive, not the cloud tools one.16:49
fadermatsubara: Aha, that sounds like it could be my issue.  I'll give it a shot, thanks!16:50
fader(As a side note, it would be nice if these things were on the MAAS install docs page.  I went with the cloud archive as I'd heard that the main archive isn't getting updated, but didn't realize the cloud tools archive was separate.)16:51
rbasakfader: the havana cloud archive pocket is not compatible with the cloud-tools pocket, AIUI. You can only have one.16:51
faderHmm... so is there a working way to get MAAS up and running and deploy havana to it?16:52
rbasakYes, you can do that.16:53
rbasakYour MAAS installation will use the cloud-tools pocket16:53
rbasakYour deployed nodes running Openstack components will use the havana pocket.16:53
rbasakJust not both on the same node16:53
faderAh, gotcha.  I thought the MAAS server would cache and serve up packages based on its configuration16:54
=== Spideyman is now known as Spideyman_afk
NCommanderSo where do commisioning/enlsitment scripts come from in the epimerial images?17:14
=== racedo` is now known as racedo
=== Spideyman is now known as Spideyman_afk
=== Spideyman is now known as Spideyman_afk
=== Spideyman_afk is now known as Spideyman
=== Spideyman is now known as Spideyman_afk
=== Spideyman is now known as Spideyman_afk
=== Spideyman_afk is now known as Spideyman
bigjoolsNCommander: they are in /etc/maas/23:05
bigjoolsnot in the ephemerals23:05
=== CyberJacob is now known as CyberJacob|Away
=== freeflying is now known as freeflying_away
=== freeflying_away is now known as freeflying

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