/srv/irclogs.ubuntu.com/2012/11/20/#maas.txt

bigjoolsroaksoax: how close to the quantal SRU are we?00:51
roaksoaxbigjools: i uploaded a new verrsion today for quantaul, haven't uploaded a precise one yet00:54
roaksoaxbigjools: but there's 1 more packaging change i need to make00:54
roaksoaxand we should be good00:54
bigjoolsroaksoax: \o/00:54
bigjoolswe're testing the precise package in earnest00:54
bigjoolsa few bugs, but getting there00:55
bigjoolsI am upload a new one ATM00:55
bigjoolsuploading*00:55
roaksoaxbigjools: right, so the most tedious thing is filing SRU bugs00:55
bigjoolsroaksoax: yeah :(00:55
smoserbigjools, awake ?01:55
bigjoolssmoser: of course01:55
smoserhttps://docs.djangoproject.com/en/dev/ref/templates/builtins/?from=olddocs01:55
smoseri'm trying to do:01:55
smoser {{node.architecture|default:"nothing"}}01:55
smoserin a preseed01:55
smoserand it says01:55
bigjoolswe don't use django templates in preseeds01:56
bigjoolshttp://pythonpaste.org/tempita/01:56
smosergah01:56
bigjools:)01:56
smoserthat would be why the trace said 'tempita' :)01:56
bigjoolshaha01:56
smoserbigjools, so... 2 things iw ant to do.02:01
smoserit seems that node.distro_release might be None when evaluated (which generally seems wrong to me)02:01
smoserand second i want the architecture portion of 'node.architecture'02:02
smoser(which is 'amd64/generic')02:02
smosersuggestions on how to do that?02:02
bigjoolsI don't know why release would be None02:02
bigjoolsfor arch, you can include a python block02:03
bigjoolsso {{py: .... }}02:03
bigjoolsyou can split on the /02:04
smosernot None, but renders to empty string02:04
bigjoolshmm02:05
bigjoolscan you see if it's set in the DB?02:05
smoserbigjools, well, from http://localhost:8080/MAAS/nodes/node-628a5c14-24db-11e2-84ac-d4ae527ac125/preseedview/02:07
smoseri'm using {{node.distro_series}}02:08
smoserhow easiest to check the db ?02:08
bigjoolssudo maas shell02:08
bigjoolsfrom maasserver.models import Node02:08
smoserthats for an un-allocated node02:08
smoserone that is "ready"02:09
smoserfor one that is deployed, it does have one02:09
bigjoolsoh ok, then that makes sense02:09
bigjoolsif it's not deployed it doesn't have any OS02:09
smoserit should have the default.02:10
bigjoolswhy?02:10
bigjoolswhat are you trying to do?02:10
smoseri'm trying to use it.02:15
smoserand the rendered view of the preseed is broken02:15
smoserbecause it doesn't have a value.02:15
smoserbut there is a default value02:15
smoserso it should have that02:15
bigjoolsI don't think it's broken based on the intended usage02:17
bigjoolswhat do you need the preseed for, before it's deployed?02:17
smoserif i dont need it, then why does it show it to me?02:18
bigjoolsthat's not what I asked :)02:18
smoserif it weren't nicely displayed in the UI, i'd have no argument.02:18
bigjoolsthe info presented is correct02:18
bigjoolsyou could argue that the distro series is not useful though - but it would also be incorrect if it showed the defaut and you then deployed a different series02:19
smoserwell that would clearly be wrong.02:19
smoserbut if it displayed the default, and then deployed the default (because i didn't specifically request something else) that would be right.02:20
smoserbut if i change it, then, well, i changed it, didnt i02:20
smosernot a terribly large deal, but if this is something that is surfaced to users (which it generally ise) then it is confusing at best to have "" there. when there is (i think) a system wide default.02:21
bigjoolsI think your expectations are different to mine here.  That's not to say you're wrong, just different.  It's an interesting problem.02:21
=== jonas_ is now known as Guest82921
=== rnbrady_ is now known as rnbrady
=== jonas_ is now known as Guest70663
=== matsubara is now known as matsubara-lunch
rvbaroaksoax: thanks for the backport of raphael js.  I've tested the package in -proposed.  It fixes the apparmor problem all right.15:45
roaksoaxrvba: awesome then! I can start taking care of filing SRU bugs then15:46
rvbaroaksoax: the package of python-django that Julian has put in the experimental ppa is also fine.15:47
roaksoaxrvba: alright, I need to review that and make sure we can SRU it15:48
roaksoaxrvba: i believe he put a patch which is upstream and not fixed in raring?15:48
rvbaroaksoax: I hope you'll succeed because we need it ;).  Well, technically, there is a last resort option but the SRU would be much better.15:48
rvbaroaksoax: he has backported a new utility method 'prefetch_related' that we need to optimise SQL queries.15:49
rvbaroaksoax: he has backported the fix for 16937.15:50
rvbaroaksoax: https://code.djangoproject.com/ticket/1693715:50
ubot5Django bug 16937 in Database layer (models, ORM) "Prefetch related objects" [Normal,Closed]15:50
roaksoaxrvba: right, nt is that right but is that part of django in precise?15:55
roaksoaxerr15:55
roaksoaxi mean in raring?15:55
rvbaIt's part of Django 1.4 which is in Quantal15:55
roaksoaxrvba: oh ok, so it is easy to SRU then15:56
rvbaCool15:56
=== matsubara-lunch is now known as matsubara
=== rnbrady_ is now known as rnbrady
hazmatgreetings maas devs18:53
=== pcarrier_ is now known as pcarrier
=== matsubara is now known as matsubara-afk

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