[00:36] bigjools, roaksoax were you discussing the api creds for commissioning environment? [00:36] or how we should make ipmi calls home [00:36] ? [00:37] smoser: we didn't, just talked about packaging [00:37] AFAIK commissioning already posts back to the metadata service, so is there any reason we can't extend that api to handle power details? [00:38] it just seems like a patch to me [00:38] but, no. other than that no reason. [00:39] ie, a simple fix for "here, you can update *this* token of information" [00:39] which will later be extended with "and *this* token too"... [00:39] but i do agree that it is the simplist "right now" fix [00:53] indeed === matsubara is now known as matsubara-afk [01:11] bigjools, is htat something you can have soon ish ? [01:11] ie, like so that roaksoax and i can bang on fleshing it out tomrrow? [01:12] smoser: sure, I'll get it done in a few hours [01:12] thank you. you rock. [01:12] smoser: any special requirements? [01:12] other than "I want to set power parameters" [01:12] nah. we just need to be able to call home with that info from the commissioning envrionment. [01:12] i'll probably just extend the hackish client tha tis sent down in user-data right now. [01:13] smoser: is it ok to do it in the existing "signal" call? or do you want a separate one? [01:13] well, signal is easier [01:13] but just seems more hackish :) [01:13] yeah :) [01:13] also, what's the plan for powering up enlisted nodes? [01:14] well, dont know. [01:14] Davieys' idea was reasonable. [01:14] in enlistment you'd (at least in an otion) sit and wait for "ready" [01:14] ie, poll on the server "am i ready for commission?" [01:14] ... [01:14] and then when you are, reboot [01:14] it was, but it wasn't liked by a certain person [01:15] oh. [01:15] hm.. [01:15] well, then. [01:15] yeah [01:15] th eonloyy other hting is to call home in enlistment [01:15] only other thing [01:15] what other options do we have? [01:15] either a.) not power off [01:15] can existing power params be discovered without changing anything in enlistment? [01:15] maybe [01:15] roaksoax, would know more [01:15] we can poke [01:15] i really have to run [01:15] that's what I always assumed would happen [01:15] ok, cya [01:56] bigjools: during enlistment we can't [01:56] roaksoax: :( [01:56] bigjools: unless you give that unauth access :) [01:57] roaksoax: why doesn't the enlistment env have the creds? [01:57] bigjools: the power settings are under a NodeAdminForm validation, [01:57] it's the same env as commissioning AFAIK? [01:57] bigjools: I don't think it would make sense to send admin creds during enlistment [01:57] true [01:57] so two things: [01:58] 1. you *can* detect existing power params in enlistment? [01:58] 2. we can change the enlistment api to take power params [01:58] bigjools: i can do that and I always wanted that [01:58] so, let's do it :) [01:58] that's my personal preference [01:59] bigjools: however, Daviey and smoser saw better usage of those in commissioning rather than enlistment [01:59] smoser: ^^ [01:59] that will complicated the existing setup [01:59] complicate* [01:59] ah he is gone [02:00] Daviey wanted to leave the node powered up and poll [02:00] bigjools: you'll have to talk to Daviey on that regards [02:00] but that was disliked... [02:00] yeah well [02:00] bigjools: the idea behind doing it during commissioning is that commissioning is the step were all the configuration is being made [02:00] enlistment is all about discovery [02:01] so while auto-detecting IPMI is also discovery, we also might need to do setup [02:01] so that's why it was preferred to be in commissioning rather than enlistment [02:01] sure [02:02] so does this mean that we can't reliably auto detect power params in enlistment? [02:02] needless to say, my personal preference has always been in enlistment due to the fact that once we click on "Accept&Commission" the nodewill be turned on automatically [02:02] bigjools: *personally* I'd love it to have it done during enlistment [02:03] well if it can be done, I don't see why we don;t just do it [02:03] bigjools: that's why I explained the reasons above [02:03] bigjools: you should really discuss this with Daviey :) [02:03] it will be the minority use case because most people will use some sort of discovery module to poke in new nodes on the api [02:03] roaksoax: I will! [02:03] I did already in fact but I'll revisit [02:04] so roaksoax, do you have more time to talk packaging? [02:04] bigjools: so if we are going to have unauth access for enlistment, we might aswell have an aunauth mehotd for power settings on an update [02:04] so we can do it in commissioning [02:04] (at least that's what could be argued) [02:04] bigjools: and yes... I'm taking a break from homework :) [02:05] heh, ok [02:05] * bigjools back in 2 mins [02:05] k [02:08] back [02:09] bigjools: ok, shoot :) [02:10] roaksoax: so the upgrade scenario [02:10] I moved the massive postinst from maas to maas-region-controller [02:11] that will probably break it [02:11] bigjools: ok, that needs to be cleaned up, and i think some stuff should be passed to maas-cluster-controller [02:11] yeah [02:11] well I imagine post if it heads back to maas? [02:12] most of* [02:13] well there's upgrade stuff that i think it is not longer needed [02:13] ok [02:13] i need to evaluate that though [02:13] bigjools: btw: I think this is missing, though I don;t like having to symlink that config in maas-common http://paste.ubuntu.com/1227767/ [02:13] all the stuff comparing versions will fail [02:14] bigjools: not really [02:14] well maas-region-controller won't have ancestry [02:14] how can it compare? [02:15] bigjools: it won't be run [02:15] bigjools: becuase it is a first install of that binary package [02:15] so it enters as a new install [02:15] not an upgrade [02:15] exactly my point :)( [02:16] bigjools: so when we install, it will run this: if [ "$1" = "configure" ] && [ -z "$2" ]; then [02:16] right? [02:16] so it will do initial configuration of everything [02:16] yep [02:16] bigjools: when we upgra maas-region-controller, it will run this: elif [ "$1" = "configure" ] && dpkg --compare-versions "$2" gt 0.1+bzr266+dfsg-0ubuntu1; then [02:17] bigjools: which is where the comparing version stands [02:17] so big part of that I think might no longer be needed [02:17] i just need to make sure it's not before I drop it completely [02:17] i had in mind dropping most of it anyway [02:20] will this break: [02:20] elif [ "$1" = "configure" ] && dpkg --compare-versions "$2" gt 0.1+bzr266+dfsg-0ubuntu1; then [02:21] ah should be ok [02:21] however [02:22] it will be ok [02:22] I still think upgrading from 12.04 will break since it'll think it's installing from scratch [02:22] (pushed up your last diff) [02:22] bigjools: no wont break, it will simply install everything as if it was new [02:23] so why are there postinst sections comparing versions then? [02:23] ie a special upgrade case [02:24] or are you saying that install from scratch will work even if there's an existing DB etc? [02:24] bigjools: cause for example, we were upgrading from package XYZ to ABC, and ABC needed W to be configured, but since XYC didn't have it, we need to configure it in upgrade [02:24] but we don't need it if we are upgrading from ABC [02:25] bigjools: yeah it won't install a new DB, i think it will just change the password [02:25] that's not useful :( [02:25] bigjools: it will change the psasword and update the config files [02:25] bigjools: so it should be good [02:26] bigjools: i'll have to test it TBH [02:26] bigjools: if you wnat, do this. Push a package to a PPA< fire up a cnaonistack instance. install maas and upgrade from that PPA [02:26] and see what happens :) [02:26] roaksoax: ok :) [02:27] I'll build something in the testing PPA [02:27] could do with a cow image with maas installed on 12.04, would speed things up [02:27] bigjools: not maas-maintainers/testing please :) [02:27] roaksoax: bah spoilsport :) [02:28] maas-maintainers/experimental then [02:28] bigjools: i have sabdlf's lab using MAAS from maas-maintainers/testing [02:28] ! [02:28] /o\ [02:28] roaksoax: I'd be tempted to make a ppa called sabdfl-garage! [02:28] he wnaqted to test the quantal stuff I think [02:29] lol [02:29] deadly serious [02:30] hehe but that's simplyt latest trunk [02:30] pre-package split [02:38] alright i'm off for the night [02:38] nigth [02:39] roaksoax: ok thanks for the help [02:39] I'll test and let you know results [02:39] roaksoax: oh if you are still there ... [02:40] is there an easy hack to make get-orig-source automatically use my local trunk instead of lp:maas ? [02:41] bigjools: uhmmm you could simply package your local branch [02:41] I just hacked rules for now but it'd be nice if you could set an override [02:42] bigjools: I don't know TBH how to override it easily [02:42] no worries [02:42] go to bed :) [02:42] bigjools: i wish I could go to bed [02:42] * roaksoax doing homework [02:43] ah those days ... [02:43] yeah!! can't wait them to be over :) [07:25] _rvba, allenap: (when you wake up) I'd like to add a test that if you update a tag with invalid data, the transaction is properly aborted, and the data stays consistent. [07:26] I was able to manually do transactions in a test by inheriting TransactionTestCase [07:26] however, for an API test, the transactions are done by the middleware [07:26] (which seems to handle everything is committed or nothing on a single API request.) [07:26] is it reasonable to just skip that test and assume the transaction works properly? [07:26] maybe jtv ^^ [07:27] hi jam [07:27] By "invalid data" here you mean malformed data? [07:28] jtv: the Tag definition field needs to be a proper XPATH string. [07:28] we currently validate that at the point where we go around updating the nodes that match the tag [07:28] By the way, the regular test case turns commit() into a no-op and probably abort() as well. I guess there are probably other ways to establish that changes have been aborted. [07:28] and I want to make sure that we don't mutate any nodes => tag associations. [07:29] You're keeping the tags as a field on the node? [07:29] jtv: in test_api.py if I do a POST with invalid data, I either: get an uncaught DatabaseError, or I catch that in my TagHandler, and raise ValidationError. If I raise VE, then I can't 'reload_object()' because the DB is in 'I want you to rollback' state. [07:29] jtv: we have a node_tags table [07:29] (many to many) [07:30] Ah good [07:30] jam: by "invalid data" here, you mean malformed data? [07:30] jtv: right, the user tries to update a tag to a definition that is improperly formed. [07:30] syntactically invalid, I guess. [07:30] Yeah, malformed. [07:30] '/node/foo' is valid XPATH, 'node@id=bar' is not. [07:31] node[@id=bar] is the proper syntax, etc. [07:31] I'm asking just because I'm not too familiar with the details, so there might conceivably be other notions of validity. [07:31] So I *could* do LBYL and do a check that the syntax is valid before I do any further work. [07:31] But it feels YAGNI, vs just doing the work and assuming if there is a problem it will get rolled back. [07:31] LBYL? [07:31] Ah [07:31] nm [07:31] Look Before You Leap [07:32] Agreed -- the database does exactly what you want here, might as well build on that. [07:32] (Right now to update the node <=> tag association on new definition, I delete all the old values, and then repopulate with new values) [07:32] jtv: so the question is, the testing infrastructure doesn't have TransactionMiddleware running (that I can tell) [07:32] which is where the real API is getting transaction + rollback. [07:33] (AFAICT) [07:33] Nasty idea for a test: store some malformed data, attempt trivial database access, verify that it fails. [07:33] jtv: self.assertRaises(DatabaseError, reload_object, tag) ? [07:33] For example! Just as long as there is no doubt whatsoever that the test won't have affected the object. [07:34] You could also assert that Node.objects.all().count() fails. [07:34] jtv: well, I have *another* test which goes directly to the Tag attributes, and does the transaction logic itself. [07:34] the real key is if somone removes TransactionMiddleware, I don't have a failing test. [07:34] and potentially get inconsistent data in the DB on posting invalid definitions. [07:35] And the test does remove the middleware, because it stubs out commit/abort and runs its own transaction. Gotcha. [07:35] Hmm. [07:36] I don't know if we have any tests at a higher level (Selenium-ish) that runs the real server and we can poke at. [07:36] Like maybe something for diogo? [07:36] Actually, isn't it enough to test that malformed data raises a database error? [07:37] Of course if somebody makes database changes prior to the insertion _and_ someone takes away the transaction management, YASEF. [07:38] jtv: well, we already mutate the db before we find the error [07:38] :( [07:38] tag.node_set.clear() [07:38] for node in raw("""xpath_query""): tag.node_set.add(node) [07:39] jtv: hence the 'I could LBYL' and issue a semi-bogus query [07:39] like 'raw("""xpath_query(%s, )""")' [07:39] Or document in big letters that nobody should take away transaction management. It seems a silly thing to do at any rate. [07:40] jtv: I agree it would be silly to switch to autocommit. [07:41] So testing for this does feel a bit like checking your car for seatbelts: it's sort of a static shared assumption. [07:46] jtv: well, it is a bit of "I'm definitely assuming X, can I test that X is still present"? [07:46] jtv: and as for seatbelts, there are lots of places I've been that don't have them (taxis tend to tuck them under the seat in many countries I've visited) [07:46] The way django is designed, I see neither a good way of setting it in stone nor a good way of testing it. [07:47] I deliberately spoke of "your" car, not a taxi -- some drivers here cut them off. :) [07:47] (And yes, I'm making some guesses there) [07:47] :) [07:48] jtv: I imagine pull it down so the bell doesn't ring, and then cut it off? [07:48] Don't know. It's not something you ask about, or try for yourself. [07:48] They may point out that you don't need them, since they have all the proper talismans and statuettes. [07:49] Leading cause of blindness resulting from vehicle accidents, apparently. [07:49] If you do get one of those in your eye, people will probably tell you how lucky you are -- without the Ganesh statue you'd probably have been killed in the accident. [07:50] Interestingly, this last year in the US, suicide overcame car accidents as the leading cause of accidental death (not counting health issues, etc) [07:51] Suicide is counted as accidental death? I had no idea the country's problems ran _that_ deep. [07:52] I mean, no wonder the financial system collapses with that kind of accounting. [07:52] jtv: 'injury related death' [07:52] http://vitals.nbcnews.com/_news/2012/09/25/14101794-suicide-now-kills-more-americans-than-car-crashes?lite [07:52] Jokes aside, it's shocking. [07:52] not 'accidental' [07:54] sure, though car accidents killed something like 40,000 people, but heart disease kills about 600,000 [07:54] I guess nobody there worries much about terrorism any more then, if more Americans get killed by themselves than by terrorism? [07:54] jtv: I've read a lot of Schneier, and worrying about terrorism is stupid (but publicly funded) in the US. [07:55] I think more people die to pigs than to terrorism. [07:55] Is that the little table at the beginning of the book? [07:55] jtv: something like that I think. I know more people die to pigs than to sharks, which was in that table. [07:56] The bit I read was that the US has an official policy that if a death rate is more than 1:1Million, then it is worth doing something about it. And even in 2001 it didn't reach 1:1M death rates due to terrorism. [07:57] but we sure spent a lot of money on it. [08:05] morning mgz [08:08] mgz: I'm guessing you missed the cat with myself and j-t-v about testing the transaction logic. Want to do a quick standup on Mumble before we join red squad? [08:15] stoopid question of the day: when i pxe boot a node, what is the difference between the "enlist" and the "local" choice ? [08:26] enlist will register it into maas' database - local will tell it to boot from the local disk [08:26] melmoth: ^ [08:27] ok. thanks. [08:27] i felt it was this, but was surprise to see my node enlisted when choosing local (but this is because there was nothing on the drive, so it pxe boot anyway) [08:34] jam: sorry, missed the poke, will read log later [08:35] np [08:35] we can chat after the standup, too [08:43] mgz: I'm back on mumble when you get back to your machine :) [08:45] migration complete :) [08:45] 's one way of getting exercise in the morning... [08:49] grumble.. hitting one problem i had lots of time.. once a node has booted, its name is note resolbable [08:50] and the entry in /var/lib/misc/dnsmasq.leases for its mac mention "ubuntu" instead of its name [08:50] any idea what to do when one is experiencing this ? [08:52] ohh, this time, restarting dnsmasq and rebooting the node seems to have "fixed it". [11:54] mgz: so what did you think about the tests I put up? (I imagine you are currently away at lunch?) [11:57] nearly but not quite [12:11] mgz: https://code.launchpad.net/~jameinel/maas/tags-exposing-nodes/+merge/126438 [12:18] Daviey, roaksoax: ping. I've just realised that maas-enlist is going to need to send MAAS the subarchitecture for ARM support, eg. armhf/highbank instead of armhf. This will need an SRU to 12.04. Currently it uses architecture=armhf, but changing this would break old MAAS installs. So I think I need to add architecture=armhf&subarchitecture=generic, which should work. MAAS doesn't seem to complain about extra fields. Thoughts? [12:18] er, architecture=armhf&subarchitecture=highbank, or architecture=amd64&subarchitecture=generic [12:18] For backwards compatibility new MAAS can just assume subarchitecture=generic if it is not specified [12:19] rbasak: I actually thought we were sending the subarch! [12:19] rbasak: so i agree with that direction, and thought it was done [12:19] Oddly, no. archdetect returns the exact string we need ("$arch/$subarch") [12:19] It's a shame maas-enlist filters out the second component! [12:20] yeah [12:20] It currently does arch=`archdetect | cut -d'/' -f1` [12:20] And I can't cut that out, since then older MAAS installs will use a more recent SRU'd maas-enlist and then break [12:20] I'll just have to add a whole other field [12:21] Daviey: will the SRU be OK? [12:22] rbasak: ideally... we do this IMO.. If it doesn't post the subarch, server-side assumes generic [12:22] and SRU in conjunction. [12:22] Daviey: and to confirm, you mean subarch in a separate field? [12:23] rbasak: I don't know. [12:23] ok [12:26] * rbasak has filed https://bugs.launchpad.net/ubuntu/+source/maas-enlist/+bug/1056816 [12:26] Ubuntu bug 1056816 in maas-enlist (Ubuntu) "maas-enlist does not post subarch" [Undecided,In progress] === matsubara-afk is now known as matsubara [12:57] rbasak, dailies should show up in the next hour or so [12:57] smoser: awesome. Thank you! [12:57] both quantal and precise. [12:59] qemu-arm-static is freaking slow. [12:59] amazing. [13:00] but slow [13:21] https://maas.ubuntu.com/images/ephemeral/daily/precise/20120924/ [13:28] rvba: having some piston trouble with the subarch stuff. I'm trying to add a subarchitecture= field to the api that maas-enlist calls. Except that it doesn't seem to work because it's tied a model so ignores any extra fields. http://paste.ubuntu.com/1228451/ [13:28] (or at least I think it's why) [13:29] any ideas? [13:32] rbasak: is your subarch branch up anywhere yet? just want to see what you've changed for the constraint [13:34] mgz: I haven't touched the constraint yet [13:35] still figuring out how the whole thing will work [13:35] I think I've got most of the pieces except this problem with maas-enlist [13:35] rbasak: I can do that then if you tell me what the architecture field will contain [13:35] mgz: it'll be armhf/highbank, armhf/armadaxp, i386/generic or amd64/generic [13:36] and these strings shoudl be available as ARCHITECTURE.i386, ARCHITECTURE.amd64, ARCHITECTURE.armhf_highbank, etc [13:36] (from maasserver.enum) [13:36] rbasak: thanks, I'll put sometime like that up for consideration [13:36] but maas-enlist is usingi an API that is heavily tied to the node model [13:37] And since I'm not adding a subarchitecture field to node, this is being a massive pain for me [13:37] piston doesn't seem to support additional fields that aren't in the model, unless I'm missing something [13:37] (I hope I am) [13:53] <_rvba> rbasak: Looks like you're manually changing query_data['architecture'] so it should be ok… what's the error exactly? [13:54] Piston/0.2.3rc1 (Django 1.4.1) crash report: Method signature does not match. Resource does not expect any parameters. [13:54] (across multiple lines) [13:54] create_node never gets called [13:54] But only if I have a subarchitecture key in the POST data [13:54] WIthout it, everything works normally [13:54] THe only place that seems to define allowed fields is the fields tuple, and I've added subarchitecture to that [13:54] <_rvba> Looks like the request does not get properly routed if subarchitecture is there. Which is weird. [13:54] So the only other thing I can think of is that it's tied to the Node model, and that doesn't define subarchitecture [13:55] <_rvba> create_node should be called even if the form has a problem with what's in request.data. [13:55] I don't think it's the form with the problem [13:55] I think it's piston [13:56] <_rvba> Piston does not do much. I don't see how it can get in the way. I think it's simply hiding the error. [13:57] I raised a ValidationError in create_node to check [13:57] It gets raised and I get its output over HTTP if I don't use subarchitecture [13:57] WHen I use subarchitecture I get this other error instead [13:57] So I'm certain that create_node never gets called if subarchitecture is set [13:57] THe problem has to be in the new method or in piston [13:58] <_rvba> Can you paste the result of 'bzr diff'? I'll have a look. [13:58] I'm working on top of my highbank patchset [14:02] _rvba: https://pastebin.canonical.com/75335/ should bring you up to where I am, but it does include other patches [14:02] _rvba: they shouldn't affect this issue though [14:07] <_rvba> rbasak: sorry to be thick but how can I apply that kind of patch to my tree? [14:07] rvba: sorry. Use patch -p1 [14:07] * rbasak finds it a bit bizarre that bzr uses -p0 [14:08] <_rvba> Thanks. [14:08] <_rvba> rbasak: what's the failing test? [14:08] _rvba: I don't have one / haven't tried tests [14:09] _rvba: the problem occurs when I actually fire MAAS up and try and enlist with a patched maas-enlist [14:10] _rvba: I'll see if I can add an appropriate test. Looks like it shouldn't be too ahrd [14:11] <_rvba> rbasak: ok, let's see if I can recreate your problem by modifying an existing test. [14:13] jtv, around ? [14:13] hi smoser [14:13] maas daily ppa yesterday successfully wrote a dhcpd.cofn file. [14:13] but that seems broken now. [14:14] Yeah, Julian and I went over some problems earlier [14:15] so it was knowingly broken? [14:15] it worked yesterday [14:15] Not knowingly, but we saw breakage and fixed it. [14:15] Although... [14:15] <_rvba> rbasak: '/'.join('b','a') is not correct. '/'.join(['b','a']) [14:15] Ah yes, smoser: I remember now -- the dhcpd.conf wasn't being written for a very different reason than the other problems. [14:16] but it was being written yesterday. [14:16] i'm almost certain. [14:16] The task to do so never arrived at the cluster controller, because of changes in routing. [14:16] Those routing changes are very recent. [14:16] And difficult to get entirely right without some trial and error. [14:16] <_rvba> rbasak: that's in http://paste.ubuntu.com/1228526/. Also, if '/' in given_subarch blows up if given_subarch is None. [14:17] _rvba: ok, I'll fix that and retest [14:17] _rvba: but I don't think it's getting that far anyway. Let me see... [14:18] _rvba: urgh. Looks like it is [14:18] _rvba: sorry [14:26] my new api test case if failing with a 400 response and this text: [14:26] Piston/0.2.3rc1 (Django 1.4.1) crash report: [14:26] Method signature does not match. [14:26] Resource does not expect any parameters. [14:26] what is it really trying to tell me? [14:26] allenap: ^ any ideas? [14:28] mgz: diff? [14:29] mgz: I'll be back in ~10 minutes. [14:30] allenap: [14:30] the other tests are fine, just writing this at the api level weirded up [14:37] gah, nose I hate you. [14:49] mgz: How very odd. [14:50] so, it's an error from inside acquire.. just not a useful one [14:50] is there some way to make tests show the traceback in that case? [14:50] Gah! 2FA just to download the plain text. I hate you Ubuntu pastebin. [14:50] ...and how do I run *just one* test with nose... ;_; [14:51] mgz: bin/test.maas :TestClass.test_method [14:51] mgz: nose is stupid enough to output test IDs that can't be used as input. [14:52] ah, the colon is the magic I forgot [14:52] okay, this will make tdd on this much less painful [14:53] (well, where the last d is 'debugging' not 'development', was bad and wrote all the code first) [14:59] mgz: Do you want me to hack at it too? [14:59] okay, seems I can do filter(a_manytomany_field=obj), using filter(a_manytomany_field__contains=obj) was wrong [15:00] I shall now continue writing tests.... [15:43] <_rvba> smoser: the recent problem with dhcp is due to the change we made to how tasks are routed. I image it's frustrating for you but here is the explanation: we are working towards having the tasks routed correctly when multiple cluster controllers are connected but this will obviously require some changes to the packaging. And splitting up the existing package into 2 (one for the region controller and one for the [15:43] <_rvba> cluster controller) is still WIP. Hence the routing problem. [15:44] when you break something like that you cost lots of people time. [15:44] <_rvba> smoser: not sure if you're interested in that kind of solution but this: http://paste.ubuntu.com/1228681/ should fix the problem. [15:45] <_rvba> And I could say that not having the proper package structure is costing us a lot of time too. [15:45] really? [15:45] so you're complaining that you broke somethign that worked (in the packaging) [15:46] and it no longer works [15:46] ok [15:46] <_rvba> I'm not complaining. I'm trying to explain to you why that mistake was made. [15:49] <_rvba> smoser: I did not touch the packaging precisely because the whole structure is being changed (from one package to two packages). That's exactly why there is friction. [15:53] _rvba, sorry for ranting. its just frustrating when i'm trying to test something and the daily ppa regresses. [15:54] <_rvba> smoser: I understand… and I think I'm used to you being grumpy now. Well, sort of :). === matsubara is now known as matsubara-lunch [15:57] well, i wanted to find a link for grumpy old man [15:57] but the best i could find was http://www.hulu.com/watch/271896 [15:57] and you probably can't see that. [15:57] <_rvba> Indeed, I can't. [15:58] <_rvba> roaksoax: may I ask how it the packaging work going? I'm asking because I'm making changes upstream that will require some packaging changes but I can't do that while you're refactoring the whole structure (at least I think I can't). [15:58] <_rvba> s/how it/how is/ [15:59] _rvba: we are working on it with bigjools [15:59] what type of changes are you making? [16:00] <_rvba> Tasks are now routed to the queue named after nodegroup.uuid. So the invocation of celeryd needs to be done with "-Q name-of-the-queue". [16:01] <_rvba> But this means that the script Jeroen has done needs to be started in an upstart job, that a proper UUID needs to be generated, etc. [16:02] <_rvba> smoser: http://craigmcn.ca/wp-content/uploads/2012/09/old-man.jpg maybe? [16:03] https://www.google.com/search?q=dana+carvey+grumpy+old+man&hl=en&safe=off&tbm=isch&prmd=imvnso&source=lnms&sa=X&ei=LCdjUIffM_K70QGRooDADw&ved=0CAcQ_AUoAQ&biw=1259&bih=799 [16:05] <_rvba> roaksoax: do you have an ETA for a first version? I'm trying to figure out if I need to do something to cope with the current package (something I would have to undo when the new structure will be in place) or not. [16:06] _rvba: hoping that this friday we have sometihng [16:06] <_rvba> roaksoax: all right, thanks. [16:07] allenap: ping [16:07] allenap: https://pastebin.canonical.com/75364/ [16:09] allenap: let me know when you see it, it's kinda critical to resolve :) [16:14] _rvba: how does the templating work for if statements? [16:15] _rvba: such as {{ if node.distro_series >= {'quantal' }} [16:16] can i use variables? [16:16] <_rvba> Yes you can :). I'll see if I can find an example but the doc is here: http://pythonpaste.org/tempita/. [16:18] thanks ) [16:18] :) [16:19] <_rvba> roaksoax: here is a completely stupid example I just wrote: http://paste.ubuntu.com/1228724/ [16:20] <_rvba> roaksoax: that template language is very permissive, any python syntax variable.field, dict['element'] should work all right. [16:20] _rvba: cool thanks [16:22] _rvba: http://paste.ubuntu.com/1228732/ [16:24] <_rvba> roaksoax: I think you want to use {{server_url}} instead of http://{{server_host}}. [16:24] <_rvba> The server_url should contain http or https. [16:25] <_rvba> We don't want to hardcode 'http' anywhere. [16:25] _rvba: ok cool, though if the error above gets fixed we will use tftp instead [16:26] <_rvba> right [16:27] <_rvba> roaksoax: that's not valid : {{if node.distro_series in {'quantal'} }} [16:28] <_rvba> roaksoax: hold on, I'll find the correct syntax. [16:28] _rvba: it is, just tested it [16:29] <_rvba> roaksoax: ah indeed, you're right, my mistake. [16:53] so, these get_blah_or_404 methods seem like a bad idea to me [16:54] at least using the django helper does, because the user just gets, as the response body "Not Found"... with no indicaton of *what* wasn't found or why [16:56] shouldn't there be at least an ObjectNotFound exception class with code httplib.NOT_FOUND but takes (type, field=None, value=None) so we can give errors like "Tag with name 'foo' is not found" instead? [17:09] rbasak, the images tested ok for me on intel and daily ppa [17:10] wait. for quantal they did. [17:10] i just uploaded the precise fix. [17:25] smoser: \o/ [17:25] smoser: thank you! [17:25] i'll rebuild precise [17:25] but you should test also [17:25] roaksoax, do you know how i could convince maas to boot quantal ephemeral images? [17:26] smoser: yes [17:26] smoser: src/maasserver/models/config.py set it there [17:27] smoser: i need to add an option to modify that in "Settings" view [17:29] smoser: I'll test tomorrow morning [17:30] smoser: so where do I need to test from? maas.ubuntu.com daily? [17:30] smoser: and for precise? or would you like the result of a quantal test first? [17:31] precise will fail [17:31] well, actually might pass. i'm not sure how it worked. [17:31] but resolvconf didn't get written [17:32] i'll start a new precise build right now [17:32] smoser: ok so for ipmi, we want to create a new user and a random pass right? [17:34] hm.. [17:34] well i would suggest that is oen path. [17:34] and that collecting is another [17:35] huh? [17:36] roaksoax, so in the "let maas do it all" case, you would then assume access to the ipmi and you'd want to set up a user, pass, and then tell maas about that. [17:36] but there is also the case where you would just want that collected and reported to maas. [17:36] but not changed. [17:36] (i think) [17:38] smoser: right, so I had that in mind at first, though Daviey mentioned that we should simply assume that every time we commission, we should configure it as if it was unconfiguraed [17:39] i guess that is not unreasonable. [17:40] smoser: what could be done is simple "If maas use already exists, then collect info" [17:41] warning: grave ignorance about to be exposed [17:41] so.. if we boot, collect/set ipmi password and user and IP and such [17:42] then we give the system to a potentially malicous user [17:42] why would that not be granting them access to the same credentials [17:42] and thus the ability to not be nice [17:43] right but we are with the assumption that the credentials are set by the administrator and is a random password that should be hidden on the WebUI [17:44] roaksoax, i'm confused. [17:44] i'm saying the occupant of the system [17:44] can then just read them from the system [17:44] or create new ones [17:45] smoser: right, but that's the same case when an admin manually creates ipmi credentials [17:45] well, yes. [17:46] except for i would suspect that after doing so the admin would then disallow access [17:46] or when no other than the defalt ones have been created [17:46] but if we disallow access, then your "redeploy" scenario requires some sort of manual intervention. [17:47] smoser: right, so this is tricky to resolve [17:47] would this work ? [17:48] for our deployment/re-deployment systems. [17:48] we create one se of credeitians with 'ubuntu:ubuntu' that is admin [17:48] with those credentials, you can open up access from the system itself [17:48] then enlist/commission with maas (which will disallow access from the system) === matsubara-lunch is now known as matsubara [17:49] then you can reset to "ready" with the 'ubuntu:ubuntu' creds [17:49] (from the network interface, rather than from the system itself) [17:49] smoser: right, but that means that we would have to pre-configure ipmi [17:50] right. but in our test labs we would have to do that. [17:50] and i thought, or so I was told, that the idea here is to simply plug in a server, detect ipmi, configure it and that's it [17:50] hm.. [17:51] so we cannot rely on having someone pre-configuring IPMI [17:51] smoser: but either way, IPMI cards have a default user/password [17:51] which is supposed to be enabled [17:51] by default always [17:51] so the idea is to create a user/pass for maas:XYZ [17:52] and tell that to MAAS so it can start/stop machines [17:54] smoser: btw.. I can't see an option to disable BMC access of a machine itself [17:54] there's only lan channel [17:56] doesn't that seem broken? [17:56] smoser: well, that's IPMI settings themselves [17:56] there's no option ot disable local BMC access [17:57] doesn't that seem broken? [17:57] and our entire system based on the fact that we could do that? [17:57] yeah [17:58] well, we can maybe restrict access to such tools on sudoers to the ubuntu user? [17:59] smoser: but to me... the root user is the one who has access to every piece of hardware [17:59] smoser: and it is the same case with the BMC [18:00] smoser: so in reality, if we argue that it is broken, we can argue the same thing with every piece of hardware attached to the system [18:00] restricting local bmc access would be as restricting access to a HD for a root admin [18:00] s/admin/user [18:01] well, thats not really true. [18:02] generally you can disbale access to the bios from the OS [18:02] which would stop the OS from changing boot-order or such things [18:02] which is essentially what we want to do here. [18:02] if my OS is compromised, i'd still like to be able to use my hardware. [18:04] smoser: right, but an ipmi card is a piece of hardware [18:04] not a BIOS [18:04] smoser: so if your OS is compromised, i'd still like to be able to use IPMI [18:05] or access the BMC [18:33] smoser: lp:~andreserl/+junk/autodetect-ipmi [18:34] smoser: ok so instead of doing most of the --commit stuff by commands, a template can be used and written as a file, so we just do 1 commit [18:38] rbasak, precise image daily image should be good now. [18:38] smoser: thank you! [18:41] roaksoax, bug 1: /bin/python [18:41] Launchpad bug 1 in Ubuntu "Microsoft has a majority desktop market share" [Critical,In progress] https://launchpad.net/bugs/1 [18:57] roaksoax, [18:58] you said /usr/share/pyshared/maasserver/models/config.py and change DISTRO_SERIES.precise to DISTRO_SERIES.quantal, right? [18:58] and then i sudo restart maas.pserv [18:58] but it still gives me precise [18:58] smoser: restart apache2 [20:34] roaksoax, https://code.launchpad.net/~smoser/maas/trunk.import-ephem-fix/+merge/126543 [20:37] smoser: done [20:45] thanks [20:45] verified that i can boot quantal ephenmeral [20:45] smoser: awesome! [23:59] bigjools, 'https://bugs.launchpad.net/ubuntu/+source/maas/+bug/1055935' works for you? [23:59] Ubuntu bug 1055935 in MAAS "dhcpd.conf is not updated after package install" [Critical,Fix released] [23:59] i have failed on several attempts [23:59] smoser: yes I had it working yesterday after I fixed the upstart file