/srv/irclogs.ubuntu.com/2012/10/18/#maas.txt

=== matsubara is now known as matsubara-afk
shangHi All, I have 2 questions. 1: Why do we need to manually download the meta file for isos? Is there a reason behind not make it automatically download it at installation time?03:41
shang2. we tried to run: sudo maas-import-pxe-files, but failed. I noticed that: https://maas.ubuntu.com/images/query/precise/ephemeral/released-dl.current.txt is not accessible03:42
ThiagoCMCfirewall rules?! this machine can browse the web?03:43
shangyup, I just tried it on my computer: This page does not exist yet. You can create a new empty page, or use one of the page templates.03:44
ThiagoCMCweird...   :-/03:45
ThiagoCMCI just run this command few hours ago...03:45
shangdoes that work on your browser?03:49
freeflyi1gThiagoCMC: but why does import-pxe-file need access to that page?03:50
ThiagoCMCHave no idea... Sorry but, I'm still learning about MaaS...   =(03:51
ThiagoCMCI'm newbie here...    =P03:51
freeflyi1gThiagoCMC: no worries, we're in the same boat :)03:59
ThiagoCMC^^04:06
shangsorry for the noise, the link works now04:12
shangI can download the files expected :)04:13
bigjoolso/ lifeless04:14
lifelessbigjools: o/04:16
ThiagoCMCbigjools, hi! I find more places telling to use two network interfaces with MaaS (I think...)... Look: http://www.ubuntu.com/cloud/private-cloud/reference-architecture "Each nova compute..." and - https://wiki.edubuntu.org/SecurityTeam/TestingOpenStack ...04:28
ThiagoCMCI don't know if it is related but, it isn't a requirement, right?!04:29
* bigjools looks04:29
bigjoolsI don't know about those, they are not maas-related04:29
ThiagoCMCok04:30
bigjoolsI suspect it's for firewalling04:30
bigjoolsso maybe a recommended setup but not necessarily required04:30
ThiagoCMCGotcha!04:30
mgzhm, we should probably have a tags index page08:51
allenaprvba: Do we pass a queryset to Piston? If so, could we patch the iterator() method for that single queryset, so that it does prefetching? It's a hack, but it's quick as a proof of how to fix the problem.09:00
rvbaallenap: we pass a queryset of nodes but then the serialization inspect them one by one to get the related MAC addresses.09:01
rvbaThat's what is generating the queries.09:01
rvbaallenap: does that make sense?09:03
allenaprvba: I guess I don't know enough/anything about how Django does prefetching. In Storm that would work, for example, because it the prefetch would pull in the related rows.09:03
rvbaallenap: yeah, but there is no caching like that in Django.09:04
allenapand, depending on how they're related, it could get them from cache.09:04
allenapRight, okay.09:04
jtvrvba: just noticed something weird...  you made ip_range_low & ip_range_high non-unique because they can be null?09:13
jtvDoes that mean that we're still storing "null" IP addresses as empty strings?  :(09:14
rvbajtv: yes09:14
jtvBugger.  Silly nonsense.09:14
jtvIf we could store them as proper IP addresses, which can be properly null in the database, this wouldn't be an issue.09:15
jtv(because (null = null) -> null)09:15
rvbaAnyone up for a pre-imp about this performance thing?  I think I possible solution.09:18
rvbajtv: allenap ^ ?09:18
rvbaI see* a possible solution09:18
jtvrvba: gimme a sec09:20
jamrvba: if you would like09:29
jamrvba: I mentioned in the bug that I think you can pre-iterate the queryset by just calling list() on it.09:31
jamwhich I think works around the piston.iterator() issue.09:31
rvbajam: I'll try that before I go on with my much complex plan.09:47
rvbajam: this does not seem to work.  Because the .iterator() is not problematic on the nodes but on the related MAC addresses.09:51
jamrvba: so if it as big issue, the worst case is to return HTTPResponse(json.dumps(stuff))09:52
jambut that is a pretty big overhaul to get around piston.09:52
rvbaBut it also means we don't have control over the fields returned.09:53
rvbaI think I have a solution which simply involve creating a very small specialized emitter.09:53
rvbainvolves*09:53
jamrvba: well dumps(stuff) you have full control over what goes into 'stuff'. :)09:54
rvbaSure, but I mean you have to fabricate the objects by hand.09:54
rvbaThat means computing the resource_uri stuff by hand etc.09:54
jamrvba: looking at the piston Emitter level of local function nested makes my eyes bleed just a little bit :)09:55
jamnesting.09:55
jamrvba: so the tag_names change, feel free to just land that one.09:55
rvbajam: Yeah, I had the same reaction :)09:55
jamwell, land it with a '.only()'09:56
jamso it doesn't have to load all tag columns just for the one attribute.09:56
rvbajam: I'll do it, but first, I'll get that specific emitter done.09:56
rvbajtv: It looks like the prefetch_related stuff is intelligent enough to restrict the queries it issues if the "original" query is restricted.10:02
rvbajtv: unrestricted: http://paste.ubuntu.com/1286632/ / restricted: http://paste.ubuntu.com/1286633/10:03
rvbajtv: here is the code that generates these queries: http://paste.ubuntu.com/1286635/10:04
rvbajam: with or without the '[:3]' bit of course10:04
rvbaerr, jtv10:04
jamrvba: right. Because it doesn't do the prefetch until it has fetched the list of nodes, because it needs their ids to do the other fetch.10:05
jtvotp10:09
* jtv shakes fist at long, unwrapped lines10:11
jtvAh OK10:12
rvbajam: now I need to find a way to override a method that is deeply buried.10:15
rvbahttp://paste.ubuntu.com/1286648/10:15
rvbaI'm talking about the horrible nesting you mentioned.10:16
jamrvba: that is *really* hard to do, because the actual 'I_want_to_ovrride_this' doesn't exist until after the def runs.10:16
rvbaGood point… what a mess.10:17
jtv1Oops.  Filesystem corruption again.  :(10:34
jtv1Better reboot & manually fsck.10:35
rbasakrvba: have you seen this before? http://paste.ubuntu.com/1286685/10:45
rbasakNothing has changed that I'm aware of so I presume I've inadvertently changed something as it worked before10:45
rbasaklocale.getdefaultlocale() returns None10:45
rvbarbasak: o_O, never seen that before.10:45
rbasakAh10:46
rbasakThe preseed I'm using might have changed yesterday10:46
rbasak(on the MAAS server)10:46
rbasakIt's now "C"10:46
mgzthat's some bad code in django...10:47
rbasak"LANG=en_GB.UTF-8 maas createsuperuser" works10:47
mgzthe locale really should be C.utf8 though10:47
rbasakhttps://code.djangoproject.com/ticket/1601711:08
ubot5Django bug 16017 in Core (Management commands) "createsuperuser fails if Python can't detect default locale" [Normal,Closed]11:08
rbasakLooks like it's not just me11:08
jamrvba: do you know the speed of updating the dailybuilds? If I land something now, is it likely to be in the build tomorrow? or would I have to wait one more day?12:57
mgztoday is a rather unusual day...12:57
mgzprobably in a good way though, most of the q work is done and r is not yet open12:58
rvbajam: I think it will be there tomorrow.  But apparently, you can request the build to happen manually.13:00
rvbaI just tried it, it seems to work.13:00
rvba(I usually use my own ppa)13:00
rvbajam: there is a 'request build' button on https://code.launchpad.net/~julian-edwards/+recipe/maas-daily.13:01
rvbaIf you're not allowed to do that (?) I can trigger the build for you.13:01
jamk13:03
mgzhm, jam it seems your gzip branch is missing the actual middleware?13:14
jammgz: did that not get pushed?13:14
jamhmm...13:14
jammgz: src/maas/settings.py should have django.middleware.gzip.GzipMiddleware13:15
jamI see it here.13:15
mgzright, but jenkins complains that it doesn't exist13:15
mgzmight be some djangoy weirdness?13:15
jammgz: no, capitalization typo13:16
jamthe name is GzipFile, but GZipMiddleware13:17
jamI tend not to run 'make test' each time, I should do it more often.13:17
jammgz: thanks for noticing. Also, as I am likely to not be around much tomorrow, can you keep an eye on dimitern, I'd hate for him to run amok on his first week :)13:21
dimitern:)13:22
mgz:)13:22
jammgz: we've also been missing you on mumble today, but on Monday, we'll all see eachother in person anyway.13:22
mgzyeah, not the best environment for mumbling this unfortunately13:23
mgzI'm not around til tuesday evening, but am looking forward to it.13:23
mgzI think it's only managery things the first two days?13:23
rvbaI think so, I'll arrive on Tuesday evening as well.13:26
matsubaramgz, that worked, thanks! :-)13:46
mgz:)13:47
dimiternI pushed my first change! :) can I bug someone to review it please?14:33
dimiternmgz: :) ^14:34
mgzhaving a look14:34
dimiternonly for the docstring I'm not sure what exactly to describe... not aware of the full process14:35
=== matsubara is now known as matsubara-lunch
allenapmgz: Ah, sorry, I beat you to it again :-/16:02
mgzallenap: no problem :)16:04
rbasakI'm concerned about bug 1068086. Can anyone reproduce on amd64?16:16
ubot5Launchpad bug 1068086 in MAAS "juju fails to deploy with MAAS by default" [Undecided,New] https://launchpad.net/bugs/106808616:16
* rbasak notes the irony in the last four digits of that bug number16:16
mgzrbasak: I've seen something along those lines before, but am failing to search up recollection16:21
mgzrbasak: need to go now, but will try to dig into it tomorrow if none of the americans get there first16:33
rbasakthanks mgz16:36
=== matsubara-lunch is now known as matsubara
=== matsubara is now known as matsubara-brb
=== matsubara-brb is now known as matsubara
=== lifeless_ is now known as lifeless

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