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

=== wallyworld_ is now known as wallyworld
=== CyberJacob|Away is now known as CyberJacob
=== vladk|offline is now known as vladk
rvbabigjools: Do you really need to resort to raw SQL in get_hostname_ip_mapping?07:20
bigjoolshoist. petard. etc07:21
bigjoolsrvba: yes.07:21
bigjoolssame as the other same-named func does07:21
rvbaAh, right, I think I see why now…07:23
bigjoolsme too07:24
bigjoolsdebugging it made it clear, it's not the same dict07:24
rvbabigjools: I /think/ Django grew support for "Distinct ON".07:24
bigjoolswell, still not sure why it's lazy, but uh07:25
bigjoolsoh maybe it's a memory thing07:27
bigjoolsrvba: "I'd rather properly test the behavior"07:30
rvbabigjools: in this branch you've added StaticIPAddressManager.get_hostname_ip_mapping but it's not used anywhere yet… do you have a follow-up branch that makes use of it?07:30
bigjoolstesting behaviour: that's what I am avoiding07:30
bigjoolsit's slow07:30
bigjoolsyes I am using it locally but struggling to get tests to pass07:31
rvbaYeah, I meant end-to-end behavior.  For the reason I stated.  But I'm okay with mocking, it's just not as reliable (and that's why you missed the fact that the old get_hostname_ip_mapping wasn't doing the right thing).07:31
bigjoolsthese tests are a nightmare07:32
bigjoolsthey are running the same code twice because of signals07:32
rvbaThe ones in test_dns?07:33
bigjoolswhat wasn't it doing?07:33
bigjoolsyes test_dns07:33
bigjoolsmake_nodegroup etc etc causes signals07:33
rvbaYour tests aren't exercising the code up to the point where get_hostname_ip_mapping is called.07:34
=== CyberJacob is now known as CyberJacob|Away
bigjoolsso the same dns code is run07:34
bigjoolsrvba: yes I know, that is the intention07:34
rvbaAh, okay, cool then.07:34
bigjoolsit's tested elsewhere07:34
bigjoolswell, ideally in these :)07:34
bigjoolsrvba: every time create_managed_nodegroup() is called in the test it fires a dns job through a signal07:35
rvbabigjools: yeah, but until we call 'self.patch(settings, 'DNS_CONNECT', True)' that doesn't trigger a real task.07:35
rvbabigjools: you'll see that 'self.patch(settings, 'DNS_CONNECT', True)' is called *after* all the setup is done.07:36
bigjoolstrue, but, still feels like one of the main reasons tests are slow07:36
rvbaIt's possible.07:36
bigjoolsthey have gone massively slow on me lately, something has changed07:36
rvbaI didn't notice anything this dramatic on my side.07:37
bigjoolsand we have not put enough importance on the fact that fast tests are a necessity07:37
rvbaI agree with that.07:37
bigjoolshurray a passing test07:39
* bigjools fixes others07:39
bigjoolsrvba: very glad you made create_nodegroup_with_lease()07:41
bigjoolseasy to change to create static ip instead and thusly fix many tests in one fell swoop07:41
rvbaEncapsulation FTW :)07:42
bigjoolswooo passing tests07:43
bigjoolsI'll push a new rev in a sec07:43
bigjoolsrvba: annoyingly there's a bi-dependency between node and dns now, so inline imports are needed  :(07:45
bigjoolsrvba: dns.py can't import from maasserver.models.staticipaddress07:45
=== roadmr is now known as roadmr_afk
rvbaI see.07:45
bigjoolsrvba: anyway new rev pushed, can you have a look please?  I am going to eat, back in a little while07:46
rvbabigjools: looking at the code, I think you're right and the only reason why lazydict was introduced was to make use of __slots__ and thus save memory space in case the mapping is huge.07:47
rvbabigjools: sure, looking now.07:47
bigjoolsyeah07:47
bigjoolsbbiab07:47
=== mwhudson is now known as mwhudson-
=== mwhudson is now known as mwhudson-bip
bigjoolsrvba: "deviation from the original design"... not as I understood it!  We spoke yesterday and said that dynamic IPs do not need dns CNAME entries08:27
=== mwhudson-bip is now known as mwhudson
=== roadmr_afk is now known as roadmr
=== vladk is now known as vladk|offline
=== mwhudson is now known as mwhudson-bip
jtvgmb: I remember seeing a bunch of "6" suffixes on keywords in an IPv6 sample config.09:48
gmbjtv: Yeah, it really is pretty much that simple :)09:48
bigjoolsRan 2647 tests in 1889.564s09:49
gmb(at least on my test network, on a small scale)09:49
bigjoolsurgh09:49
jtvWhy, why, why does factory.make_node() perform two update queries on the node it just created, and then another query to load back the object!?09:49
gmbbigjools: The v6 stuff couldn’t have increased runtimes could it? I.e. if there’s lots of “if IP in network” where network is a /64; that kind of thing?09:50
bigjoolsdoubt it09:50
gmbMind you we’re not doing it in many places yet.09:50
bigjoolsexactly09:50
bigjoolsprofile.  we need a profile09:50
bigjoolsrvba: the branch is all done now, if you want to look again.  All I did was fix a couple of failing tests and remove the dns update for new leases.09:57
* jtv longs for a utilities package09:58
jtvgmb: did you land your make-a-random-ipv6-address factory method?10:01
gmbjtv: Yes. it’s factory.get_random_ipv6_address().10:02
rvbabigjools: LGTM10:02
jtvgmb: wha!?  Why not just make_ipv6_address()?10:05
jtvMaybe I should have said...10:05
rvbabigjools: are you witnessing a general slowdown or is it confined to a subset of the tests?10:05
bigjoolsrvba: general10:05
bigjoolsrvba: thanks, BTW10:06
rvbaThe branch I described this morning is up for review: https://code.launchpad.net/~rvb/maas/utopic-syslinux/+merge/22418210:17
=== roadmr is now known as roadmr_afk
=== vladk|offline is now known as vladk
jtvrvba: blason added a file to the list of boot loader files, but it's present in syslinux 4 and 6 alike.11:04
jtvpoweroff.com, I think11:04
rvbaYeah.  I think we can live with a bit of duplication here.11:04
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
AskUbuntuUnable to add nodes to ubuntu MAAS server on static vlan | http://askubuntu.com/q/48754911:32
=== roadmr_afk is now known as roadmr
=== roadmr is now known as roadmr_afk
rvbabigjools: gmb:  turns out we *can* use omshell to query the leases.  I just tested it and it works.13:00
gmbrvba: Sweet.13:00
=== vladk is now known as vladk|offline
=== jtv_ is now known as jtv
=== roadmr_afk is now known as roadmr
blake_rjtv: "maasutils" package would be very nice13:10
blake_rjtv: "ensure_dir" is not in maasserver, ugh!13:10
jtvblake_r: yeah, so far we've mostly had to dump generic helpers in provisioningserver, because provisioningserver can't import from maasserver (but vice versa works).13:12
blake_rjtv: oh yeah forgot, was thinking it was the other way around13:13
jtvThere shouldn't be a need to remember...  "maasutils"13:14
=== vladk|offline is now known as vladk
rvbablake_r: btw, FYI using a symlink /syslinux/ at the root of the TFTP dir worked.13:20
blake_rrvba: i was looking at that13:21
blake_rrvba: so you created a symlink from current/syslinux -> /usr/lib/syslinux ?13:21
rvbablake_r: exactly13:21
rvbablake_r: but syslinux 4 and 6 seem to have different requirements for what *really* needs to be stored at the top level.13:22
blake_rrvba: i thought pxelinux expected it all to be in tftproot13:22
blake_rrvba: does it check both?13:22
rvbablake_r: syslinux 6 definitely does13:22
blake_rrvba: cool13:23
blake_rrvba: that makes it easy13:23
rvbaYeah13:23
=== jfarschman is now known as MilesDenver
rvbanewell_: Hi there.  I see you haven't had time to work on the MP I marked as "Needs fixing". I realize what I asked is probably a bit more work than you had anticipated because it implies dealing with forms.  But in the long run, it's a worthy investment (for the various reasons I stated in my review);  I'm happy to give you a hand with that if you want.14:14
jtvrvba: lander's tests broke on your branch.  :(14:35
jtvThe syslinux one.14:35
rvbajtv: I saw that.  The failure looks completely unrelated.14:36
jtvYeah.  And I remember that was a function I disliked for some reason.14:36
jtvI wonder if it's a function I messed with.14:36
rvbajtv: it's a spurious failure.  It passes locally from time to time.14:37
jtvYou mean it _fails_ locally from time to time, I hope?  It's been passing for me.14:38
rvbaNot sure, I haven't run it a great number of times.14:39
rvbaBut yeah, it seems success is more frequent than failure.14:40
jtvI bet there's an undetected clash in networks or ranges.14:40
rvbaI'm going to investigate but I'd like to get my syslinux branch landed first.14:40
=== jfarschman is now known as MilesDenver
newell_rvba, I haven't worked on that because I was told that there were some other items that were higher priority, so I have been working on those.14:44
newell_Yes, your help would be appreciated14:44
newell_Once I have finished the higher priority items that I am currently working on, I will ping you so you we can go over it.14:45
newell_Thanks for lending a helping hand.14:45
rvbanewell_: okay, cool.14:48
d_`where in the source is the startup script for bootstrapping a node?15:03
d_`based on packet captures on both hosts, they're making a bunch of DNS queries that are failing, but based on the hosts they're querying, I'm guessing some of them are supposed to fail?15:07
jtvWho's up for a code review?  https://code.launchpad.net/~jtv/maas/arp-on-failed-entries/+merge/22432215:39
roaksoaxblake_r: ^^15:42
blake_rroaksoax: sure15:42
roaksoaxblake_r: thanks!15:43
blake_rjtv: done!15:52
jtvThanks blake_r!15:52
=== vladk is now known as vladk|offline
blake_rjtv: np15:52
jtvYou say that, but actually it hasn't even been proven that np isn't the same thing as p.15:53
blake_rYeah that makes since! But I will keep saying "np"!15:54
rvbablake_r: rarg, poweroff.com is poweroff.c32 in Utopic's syslinux.15:57
blake_rroaksoax: it should have both15:57
blake_rrvba: ^15:58
blake_rrvba: poweroff.com at /usr/lib/syslinux15:58
blake_rrvba: from syslinux-common package15:58
rvbaThat's not the case.  I just installed syslinux-common and syslinux-dev.15:58
blake_rrvba: ugh15:58
blake_rrvba: http://packages.ubuntu.com/search?searchon=contents&keywords=poweroff.com&mode=exactfilename&suite=utopic&arch=any15:59
rvbablake_r: http://paste.ubuntu.com/7695727/16:00
blake_rrvba: that is so wierd, guess the packages site is incorrect16:01
blake_rrvba: guess need a symlink from poweroff.com -> poweroff.c3216:01
rvbablake_r: indeed. Maybe roaksoax will know how that could happen.16:01
rvbablake_r: ewww16:01
blake_rrvba: temp[late needs to work fro both trusty and utopic16:01
rvbablake_r: I know.16:02
jtvAnd precise?  jtv interjects with a stupid look16:02
rvbaBut I don't want to do a symlink if we can avoid it.16:02
rvbablake_r: I wonder if, with the other symlink I just added it won't just work out of the box if we remove poweroff.com from the list of things we copy over.16:03
=== roadmr is now known as roadmr_afk
rvbablake_r: I guess it's worth a shot.  I'll test that tomorrow.16:04
rvbablake_r: are, I didn't realize the template was referencing the file directly…16:08
rvbas/are/arg/16:08
loki27_ I have question about charms deployment and juju .. If i deploy the same charm , on different machine, (Let's say mysql and rabbitMQ) , how will the deployment work their relation, will the mysql instances be standalone , or are they going to replicate the same data trough all instances ?16:10
rvbablake_r: isn't there a way to say: "poweroff.com or poweroff.c32"?16:10
jtvloki27_: you may have more luck in #juju with questions specific to a Juju charm.16:11
loki27_haa great16:12
jtv(Not saying nobody will know, but I think it's the best chance)16:12
jtvgmb: looks like you put code in make_interface_settings to leave static_ip_range_{low,high} set to None if the random range has no room for them.16:13
jtvGuess what happens when you enter None in the dict that goes into a POST?16:13
gmbjtv: Not exactly; it was to allow for the old (dynamic only) behaviour to be maintained… I’m guessing that that doesn’t work properly :/16:13
jtvRight.  It blows up, but only on rare runs.16:14
* jtv doesn't really know what gmb just said, but finds enough common ground to bluff his way through16:14
jtvThese are the things that need documenting in code!16:15
gmbI thought I had; my apologies :/16:15
gmbjtv: Can you paste me a failure?16:15
jtvUrgh.  I think I just lost that shell.  Let me reproduce it...16:15
blake_rrvba: I don't think so16:16
blake_rrvba: I will look and see16:16
rvbaOkay, ta.16:17
blake_rrvba: from what I can find, doesn't seem to be anything about handling a missing file or alternatives17:08
=== CyberJacob|Away is now known as CyberJacob
lazypowerstrange. When i remote into my VMAAS nodes and issue df -h i dont see a root parition listed18:06
lazypoweris this expected behavior?18:06
=== CyberJacob is now known as CyberJacob|Away
d_`lazypower: you don't see a root partition? how is your system operating?18:31
lazypowerd_`: my sentiments exactly18:33
lazypowerlet me rebootstrap maas, spin up a machine with juju and pastebin the output for df -h18:34
lazypowerhttp://paste.ubuntu.com/7696549/18:58
lazypowerd_`: sorry for the delay, but thats what i see out of df -h on my maas nodes18:58
lazypowerthey all have 8gb disks allocated. This is a new one on me where df doesn't report all mounted filesystems.18:59
blake_rlazypower: whats the content of /etc/fstab19:05
lazypowerblake_r: LABEL=cloudimg-rootfs / ext4 defaults 0 019:18
lazypowerthat's the only line in there - so is this a byproduct of using some kind of overlayfs?19:18
blake_rlazypower: that is correct19:28
blake_rlazypower: i mean the corrent fstab19:28
lazypowerok19:29
blake_rlazypower: what does blkid, show19:29
lazypowerthis appears to have changed recently - within the last 4 months. I recall a while back df-h showed the contents of / mounted and its disk space19:29
lazypowerblkid shows nothing, returns 019:29
lazypowerdo i need to pass it an arg?19:29
blake_rno19:29
blake_rtry "ls /dev | grep sd"19:30
lazypowernothin19:30
blake_rtry19:31
blake_rtry "ls /dev | grep vd"19:31
lazypowerthat yields 2 disks. vda device and vda119:31
blake_rso your in a physical machine?19:31
lazypowerwell, disk / partition19:31
blake_ri mean virtual machine19:31
lazypoweri'm in a virtual machine. correct19:31
lazypoweri'm orchestrating VMAAS. my HOST (metal) is the region/cluster controller19:31
lazypoweri'm using kvm w/ about 13 nodes pre-allocated as my maas cluster.19:32
blake_rso vda1 is your "/"19:32
blake_rfdisk /dev/vda19:32
blake_rprint19:32
blake_rshould show partition, correct?19:32
lazypowercorrect19:32
blake_rwhat version of maas?19:32
blake_rapt-cache policy maas19:33
lazypower  Installed: 1.5.1+bzr2269-0ubuntu0.119:33
blake_rcan you view the curtin log, as the node is installing ubuntu?19:34
lazypoweri'm not sure whre that lives - i normally open up the VM from VMM and watch the logs there.19:34
blake_rokay, do this19:34
blake_ron the webui of maas, go to the settings page and set the global kernel parameters to this value19:35
blake_rconsole=ttyS019:35
blake_rthen "start" a node19:35
blake_rthen on your host do "virsh console {name-of-vm}"19:35
blake_rthat will show the booting log and curtin output19:35
lazypowerright on, neat19:36
blake_ryou should do "virsh console", quickly19:36
lazypoweryeah i'm not seeing anything. should i see the TFTP output?19:36
lazypowerer, the pxe boot sequence19:37
lazypowerblake_r: ah, found the problem. I've got the curtin log now.19:41
blake_rlazypower: perfect19:41
lazypowerblake_r: am i looking for something specific in here or do i need to pastebin this for you?19:47
blake_rlazypower: oh thought you saw the problem19:48
blake_rlazypower: yeah you can just pastebin the whole thing19:48
lazypower[    2.565478] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)19:48
lazypowerthats teh only thing i see pertinent to what i'm looking for...19:48
lazypowerok let me re run this with output redirected to a logfile19:49
lazypowerblake_r: http://paste.ubuntu.com/7696786/19:54
lazypowerwait, i see this here. init bottom says something about tmpfs as the overlayfs19:55
lazypowerwat19:55
blake_rthats just for install19:56
blake_ryour system reboots19:57
lazypowerah ok19:57
blake_rdoes this new node have the same problem?19:57
lazypowerblake_r: yeah :(20:01
blake_rlazypower: did you change the preseed in anyway20:02
lazypowerblake_r: nosir20:03
blake_rlazypower: that is so wierd20:03
blake_rlazypower: i would recommend re importing the boot images20:03
blake_rlazypower: rm -rf /var/lib/maas/boot-resources/current/*20:03
blake_rlazypower: then "maas-import-pxe-files"20:03
blake_rlazypower: just to see if that is it20:04
lazypoweralready on it. i wiped the entire directory though20:04
lazypower/var/lib/maas/boot-resources20:04
blake_rthat should be okay20:04
lazypowerblake_r: yeah still seeing the same behavior after reimporting the pxe images20:47
blake_rlazypower: you are deploying precise, can you try to deploy trusty20:48
lazypowerstrange... my default series is set to trusty20:48
lazypowerah wait, i'm wrong.20:49
lazypowerblake_r: mind = blown20:53
lazypowerworks as expected with trusty20:53
blake_rlazypower: strange precise should work20:53
blake_rlazypower: alteast it is working now20:53
lazypoweri mean, it appears to work. the thing that got me was being unable to report disk usage20:54
lazypoweri'm deploying a mongodb cluster, and ran out of disk space thanks to preallloc - which is what prompted this discovery session20:54
blake_rmight ask in #ubuntu-server they might know an answer for precise20:56
lazypowerthanks for the troubleshooting tutorial blake_r. this was informative21:00
blake_rlazypower: np21:00
lazypoweri thought i had a good grasp on maas until this :P21:01
lazypowernow i realize there's so much more21:01
=== CyberJacob|Away is now known as CyberJacob
=== mwhudson-bip is now known as mwhudson
=== CyberJacob is now known as CyberJacob|Away
=== jfarschman is now known as MilesDenver
=== jfarschman is now known as MilesDenver

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