/srv/irclogs.ubuntu.com/2014/02/24/#maas.txt

=== CyberJacob is now known as CyberJacob|Away
=== mwhudson is now known as zz_mwhudson
Lord_SetGreetings. So does anyone know if there are any planned projects or current projects with MAAS using the Cisco Nexus API to allow you to provision MAAS nodes into automatically created private vlans or networks and automate other network fuctions through the Cisco Nexus switch platform? I know this will get easier for KVM with the 1000V virtual switch for virtualization but there are a lot of04:55
Lord_Setapplications and uses outside of virtualization as well.04:55
jtvNot being planned for 14.04, our current milestone.  Don't know about after; I know some people will be wanting things like that.05:00
bigjoolsLord_Set: we were discussing it but no active plans right now05:02
bigjoolswould be a nice feature05:02
bigjoolspatches welcome :)05:02
Lord_SetHello there bigjools. Guessing you are a MAAS dev?05:04
bigjoolsLord_Set: both jtv and I are05:05
Lord_SetAwesome. Thanks again for the help the few times I have asked.05:05
bigjoolswelcome05:05
Lord_SetLike I have said before I think MAAS and Juju dominate Mirantis. So much better on so many levels. I just wish some of the features of the Mirantis portal and config page were in MAAS.05:08
bigjoolsLord_Set: please file bugs for anything you would like to see05:08
Lord_SetI will. What do you use for your bug repository?05:09
bigjoolshttps://bugs.launchpad.net/maas05:09
Lord_SetThanks05:09
jtvbigjools: do you think there's any chance that this test failure might have happened because our signals restart named/bind too often and, say, run us out of ports?  https://code.launchpad.net/~jtv/maas/ui-node-networks/+merge/207632/comments/487817/+download05:32
bigjoolsjtv: entirely possible, but wtf is it happening now all of a sudden05:33
bigjoolsjtv: if that is the reason, my context manager is going to be quite useful :)05:34
jtvI'm not getting it either.  It's as if we're running some additional thread behind the tests.05:34
jtvI've got one very thin theory on why that other intermittent failure might have happened, but I'm clutching at straws: "maybe make_file() called time.time() for some reason."05:35
bigjoolslet me finish getting my head around this branch and then I'll look more closely05:36
bigjoolsjtv: any idea why post_save would have our callback in its receivers *twice* ?06:20
bigjools(Pdb) self._live_receivers(sender)06:20
bigjools[<function dns_post_save_NodeGroup at 0x302a5f0>, <function post_save_callback at 0x3032140>, <function post_save_callback at 0x3032398>]06:20
bigjoolsI think my change just exposed a bug06:21
bigjoolsoh, hahaha I see what's going on06:24
bigjoolsoh dear06:24
jtv?06:25
bigjoolsboth dhcp_post_edit_status_NodeGroup and dhcp_post_edit_name_NodeGroup get fired06:27
bigjoolsfor this code:06:27
bigjools        nodegroup.name = new_name06:27
bigjools        nodegroup.save()06:27
bigjoolsno idea why06:27
* jtv looks06:34
bigjoolsI'm digging06:35
bigjoolspdb has been hot today06:35
jtvDoesn't look as if that should be firing...  unless maybe the value gets normalised during cleaning somehow.06:35
jtvI don't suppose the status gets updated while reconfiguring?06:36
* jtv throws another we've-talked-about-this look in the direction of signals06:36
jtvAre you sure there were no other changes to that nodegroup?06:37
bigjoolssignals have caused much pain06:37
jtvBut yes, I've observed some double-firing.06:37
jtvYup.  What you'd call a pain signal.06:37
bigjoolsdanger zone06:37
* jtv gently drops the pun on the ground, raises his hands, and backs up 3 paces06:38
bigjoolsso the status changed when saving the name change06:45
bigjoolswtf06:45
bigjools(Pdb) getattr(instance, delta_flag)06:45
bigjools((1,), (0,))06:45
bigjoolsjtv: so somewhat stumped here06:46
* jtv looks up those numbers06:47
jtv!06:48
jtvOh noes06:48
jtvThat's a change from Pending to Accepted.06:48
jtvSo I think what's going on there is auto-acceptance.06:48
jtvUrgh06:49
jtvThe factory method creates the NodeGroup (and it gets saved).  And _then_ it sets the status and some other properties, and saves again.06:49
bigjoolsoh bloody hell06:49
bigjoolsyes I remember seeing that earlier06:49
bigjoolsstupidity06:49
jtvNo idea why we do that.  But expect more breakage.06:49
* bigjools grinds teeth06:50
jtvI'm getting tired of doing that.  Know a good teeth-grinder?06:50
bigjoolsjtv: hang on06:51
bigjoolswhy would it do this *here* when I do a node.save() in test code?06:52
bigjoolsthis is not in the factory06:52
bigjoolsI bet this is because I tried to cheat the receivers...06:52
jtvAnd you're quite sure that the call isn't happening in the factory?06:52
bigjoolsit's the code I pasted above06:52
jtvHow exactly are you cheating the receivers?06:52
* bigjools makes WIP MP06:53
bigjoolshttps://code.launchpad.net/~julian-edwards/maas/stop-dhcp-server-bug-1283114/+merge/20787006:53
jtv(I bet our test suite could be faster without the signals, too)06:53
bigjoolsyup06:54
bigjoolsso basically I'm just blanking the receivers while doing some stuff06:54
jtvYuck...  post_save is a single global object with a receivers list!?  Are you sure?06:55
bigjoolsyep06:55
bigjoolsgross isn;'t it06:55
jtvVery.06:55
jtvI would expect the signals to be broken down by receiver type.  Which _would_ also explain what you're seeing.06:55
bigjoolsyeah you have another one somewhere I just noticed.  GRAR06:56
bigjoolsin fact 206:56
bigjoolsI just want to smash signals in the face06:56
jtvHeyyy and what's this sender_receivers_cache?06:57
jtvI really think it would be cleaner to make the handlers do nothing by default in tests, and selectively enable them where relevant.06:58
jtvLike we did with DNS_CONNECT.06:58
bigjoolsit's grotesque06:58
jtvWe _have_ done that with both actually...06:58
bigjoolsyep06:58
bigjoolsDHCP_CONNECT06:59
bigjoolsit is required here06:59
jtvSo... shouldn't DHCP_CONNECT and DNS_CONNECT both be False in tests?06:59
bigjoolsI need to kill more signals06:59
jtvYes, getting rid of them would be the ideal solution.06:59
bigjoolsno I need DHCP_CONNECT as it's testing the dhcp callbacks06:59
bigjoolshowever the bloody factory causes more signals now I've fixed the underlying code07:00
bigjoolshence my context manager07:00
jtvShouldn't you just leave the enabling of DHCP_CONNECT to the last moment?07:00
bigjoolsit does07:01
bigjoolsbut makes no difference to the f*@!ing signals07:01
jtvBut surely the actual handler exits immediately when DHCP_CONNECT is not set..?07:02
bigjoolsjtv: oh good grief I can see what';s going on07:06
=== CyberJacob|Away is now known as CyberJacob
jtv?07:06
bigjoolsjtv: the code was relying on DHCP_CONNECT being false to return a [] from get_interfaces_managed_by07:07
bigjoolsbut my code ploughs on regardless now07:07
bigjoolsthis is such a grotesque hack07:07
jtvWouldn't it make more sense to start the handler with "if not DHCP_CONNECT then give up"?07:12
bigjoolsjtv: eminently so07:17
bigjoolswhich is what I just did07:17
bigjoolsrvba: I hope my needs-fixing made sense?07:28
melmothhi there. I have been asked to help someone using maas about a "slowiness in the region controller syslogd" when one use juju add-machine10:09
melmothi do not have much information to be honest...But, is this sort of thing, common, or ring a bell to anyone ?10:09
=== matsubara is now known as matsubara-afk
hazmathi folks, just curious wrt to progress on vlan stuff12:34
=== fader_ is now known as fader
manishanker_Hi i am new to MAAS .I am trying to install MAAS in Ubuntu 12.04 LTS . i have succeded in installing .Once i log in to the Dashboard ,i keep getting this error  The region controller does not know whether any boot images have been imported yet. If this message does not disappear in 5 minutes, there may be a communication problem between the region worker process and the region controller. Check the region worker's logs for signs14:16
jpdsmanishanker_: That's not an error.14:17
jpdsmanishanker_: And you've forgetten to run: sudo maas-import-pxe-files14:17
manishanker_Sorry14:17
roaksoaxmanishanker_: http://maas.ubuntu.com/docs/install.html#import-the-boot-images14:19
manishanker_i ran the command still i am getting that error14:19
jpdsDid you wait five minutes like it tells you? :)14:21
manishanker_Yes i did :P14:21
manishanker_I have a query regarding Region controller14:21
manishanker_I have installed MAAS and its components on server -a . Can i add its Mac address while i am creating nodes or do i have to add mac address of other servers ?14:28
roaksoaxmanishanker_: if the machines PXE boot off MAAS dsirectly, you can just let them register themselves automatically14:31
roaksoaxyou wouldn't have to add any machine14:31
manishanker_Thanks roaksoax14:32
manishanker_quit15:18
faderHmm, is there a minimum amount of RAM needed to run MaaS?  I have a VM with 4G and it's getting OOMs after 3-4 minutes when I run the code from trunk16:27
faderNot sure if that's a leak or if you just really need more RAM16:27
roadmrfader: I'm using 4GB on my maas controller and it works just fine16:39
roadmrfader: based on "free" output, 2 GB should also work16:39
roadmrfader: (this is from packages available for trusty, though)16:39
faderroadmr: Yeah, that's what I thought, as I've got a controller with 4GB running some older (released) version of maas16:39
faderSo probably a leak somewhere, hopefully not in the code I was trying to hack into it :)16:40
roadmryou broke it :P16:43
faderI don't *think* I did :)  I'm going to blame med_ for no good reason.16:43
med_perfect16:44
* med_ reads scrollback a bit16:44
fader:)16:44
med_morning fader.16:44
med_(well, morning out here in the West)16:44
fadermed_: Morning!  (Still here too for another 15m)16:44
med_maas controller is typically a VM16:44
med_so be surprising if it took killer amounts of RAM but not too surprising if it was a seive for memory containtment16:45
med_fader, if you are running "pure" upstream *unhacked* you'd want to bug file that issue.16:45
fadermed_: Yeah, I was afraid of that :/  Going to try a clean branch and make sure I still see that behavior16:46
fader(I'm pretty sure nothing I touched would have done it but might as well be sure)16:46
med_nodz.16:46
* med_ shouldn't even be in this channel...16:47
fadermed_, roadmr: Since you guys are around and might know, what's the process for submitting patches for maas?  I don't see anything in the hacking guide16:48
faderIs it just submit a merge request on lp?16:48
med_roaksoax, ^16:49
faderTa16:49
* med_ truly doesn't know..... 16:50
=== matsubara-afk is now known as matsubara
=== roadmr_ is now known as roadmr
bjfi have maas importing pxe files now. how can i get the maas ui to add trusty as one of the options to install on new nodes?18:17
=== zz_mwhudson is now known as mwhudson
=== mwhudson is now known as zz_mwhudson
=== zz_mwhudson is now known as mwhudson
=== Guest70848 is now known as wallyworld
=== CyberJacob is now known as CyberJacob|Away

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