/srv/irclogs.ubuntu.com/2014/04/09/#maas.txt

Kupo24zThere a way to edit tags without maas-cli?01:20
Kupo24zmaas-cli maas tag update-nodes juju add="node-3004a5ec-bf71-11e3-9d94-52540051bc11" results in "Not Found"01:21
jtvKupo24z: looks like the wrong command line.  I haven't done much with tags, so give me a moment to check01:23
Kupo24zGot it from https://maas.ubuntu.com/docs/tags.html01:24
Kupo24zah, i think its 'tags new' first01:24
Kupo24zyup that did it01:25
jtvYeah, we have this pattern where the plural acts more or less like a class, and the singular is for addressing objects.01:26
jtvCreating an object is something you do on the class, basically.01:26
Kupo24zCan you add multiple tags in one line?01:26
jtvNo.01:27
Kupo24zjtv: is it possible to add a tag to a node by hostname or is it only system id?01:29
jtvOnly by system ID.  It's basically a node's identifying key.01:30
jtvHostnames can be changed, so you see the can of worms there...01:30
Kupo24zhmm okay01:30
Kupo24ztrying to make this somewhat automated in a script01:30
jtv1bigjools: got time for a pre-implementation chat?04:23
=== jtv1 is now known as jtv
=== vladk|offline is now known as vladk
bigjoolsjtv: yes04:45
jtvtalky?04:45
bigjoolsyarp04:46
bigjoolsjtv: fuxache04:47
bigjoolsjtv: there's no option in talky to select which camera/mic I need to use04:49
bigjoolsplus, trusty has broken my usb devices04:49
jtvAh.04:50
jtvWell, maybe just here on IRC then?04:53
jtvProviding your keyboard works?04:53
jtvBranch up for review: https://code.launchpad.net/~jtv/maas-test/copy-file/+merge/21487906:20
bigjoolsjtv: looking06:21
jtvThanks.06:22
bigjoolsjtv: how can you have two symbols both called make_file in test_maasfixture.py?06:23
=== CyberJacob|Away is now known as CyberJacob
jtvbigjools: one is just a convenience wrapper for the other.06:54
jtvThey mean the same thing.06:54
jtvIt's just that one is self.make_file() and the other is make_file(self).06:54
jtvI can remove the wrapper, but it was easier to leave it.06:54
bigjoolsyeah get rid of it :)06:54
jtvIt's easier now anyway — doing it before the review would just have polluted the diff.06:55
bigjoolskk07:00
rvbajtv: Actually, I diagnose the first problem before running things with your change :)07:13
rvbadiagnosed*07:13
jtv:(07:13
rvbajtv: It was, indeed, a validation error.07:13
=== vladk is now known as vladk|offline
rvbajtv: trying to debug the second maas-test problem now.07:24
jtvThe only thing in the logs that struck me as particularly suspicious was the login failure.07:25
jtvI'm going out for a bit.07:25
=== BjornT_ is now known as BjornT
rvbabigjools: btw, when will we change 'daily' into 'release' for the Trusty image label in etc/maas/bootresources.yaml.  It's a bit of a chicken and egg problem unless the 'release' images get published a bit before the release.07:35
=== CyberJacob is now known as CyberJacob|Away
bigjoolsrvba: we have to do it for the last upload07:35
bigjoolsie probably tomorrow07:35
bigjoolscheck with andres07:35
rvbaOkay.07:36
bigjoolsit's not chicken and egg :)07:36
rvbaDepends when the images are published really.07:36
=== vladk|offline is now known as vladk
rvbajtv: btw, there is no reason why we should run maas-import-pxe-files manually in maas-test, as opposed to using the API.09:02
jtvMaybe one:09:02
rvbaI might fix that as a drive-by if I manage to fix my pb quickly.09:02
jtvRunning the script manually makes it slightly easier to write the bootresources.yaml.09:03
jtvBecause we can just pass it on the command line.09:03
jtvPlease don't change that while I'm working on this bug.09:03
jtvWe can look at it again later, but it's not urgent.09:03
rvbaRight.  But we could also simply overwrite the config file in /etc/maas/09:03
jtvSlightly harder.09:03
jtvWe can, but then we need a sudo et.c09:04
jtvInstead of a plain scp.09:04
rvbaDefinitely not urgent.  But this is actually related to my problem: the problem I'm dealing with now is that the boot images are not reported in time *because* we're calling the script manually.09:04
jtvAhhh09:04
rvbai.e. with the API, the images would have been reported at the end of the import phase.09:05
jtvI Right.09:05
jtvRight.09:05
rvbaBut since this is all asynchronous, I have to poll for the boot images anyway.09:05
jtvWe _could_ just jack up the frequency of that celery job...  It's not going to be very costly, and 5 minutes was completely arbitrary as I recall.09:06
rvbaI do think 5 minutes is too long indeed… but to avoid a race condition, we have to wait until the boot images are there anyway…09:06
jtvYup.09:07
rvbaBecause we can't predict how long it will take for the import script to run.09:07
jtvHow did we deal with that previously?  I forget.09:07
rvbaWe didn't have to deal with it really, because the reporting was just a nice-to-have, not a crucial part of the infrastructure.09:08
jtvOh, but as long as we're running the script manually, it won't complete until the import is done anyway, right?09:08
rvbaYes09:08
jtvIf we jack up the frequency to twice per minute, then waiting for a minute after the script completes would solve the CI problem to all intents and purposes, right?09:09
rvbaBefore all the bootresources work, the images being there was the only requirement.  Now we need them on the cluster and we need them reported back to the region.09:09
rvbaYes, that would solve the pb.09:09
jtvJust as a quick hack of course — as you say, in the end we must poll on BootImage.09:09
rvbaThe branch I'm testing now wait 5 minutes after the import script. (It's just a test to confirm my hypothesis)09:10
rvbawaits*09:10
jtvFive minutes plus overhead, I guess.  For those corner cases.09:10
rvbaLike I said, it's just a test.09:10
jtvSure.09:10
rvbaNode is being powered up… let's see what happens.09:12
rvbajtv: gmb: btw, the decision to return 'no-such-image' as part of the pxe url when MAAS can't find a suitable image is one of those little things that make debugging so much easier.  Thanks for that!09:13
jtvIt was him.09:13
* rvba thanks him.09:13
rvbaNode enlisted okay this time.09:14
rvbaOkay, working on the polling stuff now.09:14
rvbajtv: success! (with sleep(5*60) after the import script has run)09:17
jtvPhew.09:17
jtvSomething else maas-test may need: subarch!  It doesn't do that yet, does it?09:17
jtvOh wait, it does, it does.09:18
rvbaPhew.09:18
jtvIt's just still hidden inside the arch string.09:22
jtvThere is some yuckiness going on with the additional i386 import, too.09:22
rvbajtv: I have trouble running the tests for maas-test http://paste.ubuntu.com/7225462/ The failure looks familiar but I can't remember what the pb was… can you?09:33
jtvrvba: could tox be one of those packages that maas-test needs installed but maas needs un-installed?09:34
rvbajtv: arg, that was it (but it wasn't tox, just python-api-client)09:35
rvbaThanks.09:35
rvbaAny reviewer available for a fix to a critical issue? https://code.launchpad.net/~rvb/maas-test/import-images-api/+merge/21491310:34
jtvrvba: if it's short, I can do it — but then you'll have to review and Q/A https://code.launchpad.net/~jtv/maas-test/bootresources-config/+merge/214916 :)10:43
rvbajtv: deal :)10:43
jtvReviewing...10:45
rvbajtv: as far as I can tell, the change you're proposing won't allow us to configure the boot resources to get, say, the 'daily' images for a release.  Wouldn't be simpler to let the user pass the entire bootresources.yaml file to maas-test?10:47
jtvSimpler for us, yes.  But the UX was vetoed.  I figured it's easy to add label to this later.10:47
rvbajtv: "But the UX was vetoed." what do you mean by that?10:48
jtvI mean that Julian immediately and resolutely said "no" when I listed it among the options.11:04
jtvYour branch has been reviewed.11:04
rvbaAll right.11:07
rvbaTa.11:07
rvbaI think it goes a bit against maas-test being just a simple tool to drive MAAS itself… but okay.11:08
rvbajtv: I'm fixing my branch (as per your review).  Then I'd like you to merge trunk into your branch so that I can actually QA it.11:09
jtvThere goes my plan to leave on time...11:10
rvbajtv: I can create another branch from your branch and merge trunk myself.  No worries.11:11
jtvThanks!11:13
jtvAlthough I probably have myself to blame for being such a picky reviewer...11:13
rvbaheh11:13
jtvGood night everyone!11:14
=== matsubara_ is now known as matsubara
rvbaallenap: I'd welcome your opinion on [1] in https://code.launchpad.net/~jtv/maas-test/bootresources-config/+merge/21491612:20
allenaprvba: Okay, I’ll take a look.12:34
allenaprvba: I think bootresources.yaml is different to power parameters. The latter have a number of schemas associated with them. Trying to flatten that into a command-line is nearly impossible.12:44
rvbaallenap: my suggestion is to pass the entire file content to maas-test.12:44
rvbaAll at once.12:44
allenaprvba: bootresources.yaml will be transient, but we can use capabilities to detect when we should use its successor.12:44
rvbaallenap: maas-test --bootresources <file>12:45
allenaprvba: Would that be optional?12:45
rvbaallenap: yes, of course12:45
allenaprvba: What’s the purpose?12:45
rvbaallenap: customize the boot image import: use a different label, use a different path, etc12:45
allenaprvba: I imagine we still need the code in this branch when it’s not supplied?12:47
rvbaallenap: no, we can use the default one.12:47
allenaprvba: Does that import everything? Using the default one makes sense - we’re trying to test how hardware works with MAAS out-of-the-box - but if it’s really slow then folk are going to tire of it.12:48
allenaprvba: This is pertinent w.r.t. the “directive” we had about default-to-everything.12:49
rvbaallenap: It imports [i386,amd64]/release/precise [i386/amd64]/daily/trusty by default.12:50
allenaprvba: Is that MAAS’s default, or maas-test’s?12:50
rvbaMAAS's default12:50
allenapbiab12:51
allenaprvba: When we transition away from bootresources.yaml, what will we do with maas-test then?12:54
allenapgah, biab.12:55
rvbaallenap: maybe we won't transition away from bootresources.yaml.  Maybe the region will simply generate an ad-hoc bootresources.yaml every time the import script it run.12:55
rvbaallenap: and if we do get away with it, then that's one more reason no to spend time getting maas-test capable of writing that file.12:56
allenaprvba: Either way, bootresources.yaml is an implementation detail, temporarily exposed to users while we scurry to provide API+UI for it. Jeroen has written the code to generate it. I think we should use it for now. I suspect we’ll have to change maas-test again in any case.13:23
rvbaallenap: well, I don't agree but I guess I'm outnumbered :)13:24
rvbaallenap: bootresources.yaml being an implementation detail should be yet another reason not to spend time working on code to generate it.  We should expose it to user temporarily to give them maximum control over what gets imported.  And change that when MAAS itself changes.13:27
allenaprvba: I think we can revisit this at some point. In the meantime I think jtv’s branch is an improvement, and is okay to land.13:27
rvbaallenap: we won't be able to offer a unified interface in maas-test anyway.13:27
rvbaallenap: well, apart from the fact that it doesn't work at all.13:27
allenaprvba: Doesn’t it?13:28
rvbaallenap: see my point [0]13:28
allenaprvba: Oh yes :)13:28
rvbaallenap: yet another reason why fiddling with bootresources.yaml is, I think, a bit pointless.  Oh well13:29
allenaprvba: Given that the work has been done already I don’t think we can argue anymore to not do the work ;)13:30
rvbaallenap: if it was working, I'd say you're right.13:30
allenaprvba: I don’t feel passionately about this, so maybe I’m missing something.13:30
allenaprvba: I don’t think this code is incompatible with adding a —boot-resources-config flag later on.13:32
rvbaallenap: it is not, but why duplicate the work?  That's all I'm asking.13:32
allenaprvba: We can’t unduplicate the work now. This is an improvement regardless, and it’s done (I’m assuming fixing it is a small thing). I also think this makes the out-of-the-box experience of maas-test better.13:33
rvbaallenap: gmb: It's been a long battle, but I'm happy to report that the CI job for maas-test is now green.13:33
allenap\o/13:34
rvbaallenap: I agree.  But adding the --bootresources would solve the bug this work is fixing and much more with ~10x less code.13:34
allenaprvba: It wouldn’t make the `apt-get install maas-test; maas-test …` experience better though. It’s not a massive amount of code either.13:36
rvbaallenap: it would definitely make it better, because using your own bootresources.yaml file, you could do exactly what you want, and for instance limit the number of images much better.13:38
gmbrvba: Sweet!13:39
allenaprvba: How many people who want to test hardware compatibility with Ubuntu and/or MAAS (remember that MAAS compatibility is important to general Ubuntu Server compatibility now) are going to have a bootresources.yaml lying around? Afaict, this makes the experience better without having to think.13:40
rvbaallenap: my point is simply that I don't think it's worth it.  Use the default bootresources.yaml in most case, otherwise, let the user do as he pleases by providing his own bootresources.yaml.  This solution is something is the middle that is, I think, wasted effort.13:42
smoserbladernr_, ping13:43
bladernr_smoser: hello13:43
smoserso fast path install doc is bad. agreed.13:43
smoser:)13:43
smoserone question as to why you're wanting to use it.13:43
allenaprvba: It will save something now, and even more if/when (when most likely) we default to downloading everything.13:43
smoserrather than user-data.13:43
bladernr_heh I've patched together about 1/3 of the solution sof ar13:43
smoseri suspect i can probably help you through the rest.13:44
allenaprvba: Even if this is wasted effort (I don’t think it is, fwiw), it can’t be unwasted now.13:44
bladernr_truth be told, I don't know exactly WHERE to put this stuff, I was putting it in the install late_command just because that's where it is in d-i and what the limited docs I could find indicated13:44
smoserso how do you deploy nodes?13:44
smoservia juju ?13:44
bladernr_no, purely via maas13:44
smoserperfect13:44
smoserthen just use user-data13:45
smoserand cloud-init/cloud-config syntax there.13:45
bladernr_either d-i or FPI if I can get FPI to install the test tools automatically13:45
smoseronly do in the install environment what you need.13:45
bladernr_where's user-data?13:45
smoserthen your user-data stuff is install-path agnostic13:45
smoserand will also work on ec2 or wherever else you can talk to cloud-init.13:45
smoser(getting user-data info)13:45
smoserbladernr_, http://bazaar.launchpad.net/~virtual-maasers/+junk/maas-libvirt-utils/view/head:/maas-deploy-node13:46
rvbaallenap: can't be unwasted.  Let's see how much time it takes to fix this branch and QA it.13:46
smoserthats my 'deploy-node'. which takes a ubuntu release and user-data.13:46
smoserbut it shoudl tell you what you need to do on the api.13:46
smoseressentially, you just pass 'user_data=BASE_64_DATA_HERE' on your 'start' call13:47
smoserthat user-data can be anything that cloud-init understands.13:48
smoserwhich is described partially at13:48
smoser https://help.ubuntu.com/community/CloudInit13:48
smoserand then examples and doc of cloud-config options are at13:48
smoserhttp://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/view/head:/doc/examples/cloud-config.txt13:48
allenaprvba: Heh, yes, that’s a fair point.13:48
smoserbut the dead simplist thing to do is just give a '#!' script to it, and it will be executed on first boot at rc.local-like time frame.13:49
bladernr_Ahhh... yeah, I was wondering about that.  and you can pass the script in via user_data= ?? (like user_data=`base64 myscript`)13:50
bladernr_or is that more encoding the actual keypairs instead?13:51
allenaprvba: Okay, as this is not likely to make it into Trusty anyway, and we’re busy enough as it is, let’s put it on hold and discuss it in Austin?13:52
rvbaallenap: well, my main point being that is was a wasted effort, like you said, if Jeroen can get it done quickly, then fine.  But I suspect we will have to do the bootresources thing anyway.13:53
rvbaallenap: Julian apparently explicitly said he was against adding a --bootresources option.  That's what I'm fighting against.13:54
smoserbladernr_, like you said there. user_data=`base64 myscrtip`13:56
allenaprvba: I don’t know what Julian said, but I’m not thrilled about adding it either. It depends somewhat on how you see maas-test. I see it as a front-end for non-MAAS users to test hardware with MAAS. As such, I don’t think asking them to provide config files is good UI.13:57
bladernr_smoser: awesome.  thanks!13:57
rvbaallenap: I guess it depends the kind of polish we want to apply to maas-test.13:57
allenaprvba: I think this is ripe for discussion face-to-face in Austin though. If nothing else it takes the heat off right now.13:59
rvbaallenap: yeah, agreed.13:59
rvbaallenap: any idea about https://bugs.launchpad.net/maas/+bug/1305061 ?  Looks related to the RPC stuff but it's not clean why 'power_type' isn't there at all.14:35
ubot5Ubuntu bug 1305061 in MAAS "maas crashes because of a missing power_type, even though I provided one" [Undecided,New]14:35
rvbatych0: do you have shell access to the machine where you saw https://bugs.launchpad.net/maas/+bug/1305061 ?14:36
allenaprvba: tych0 figured it out; reload the bug report.14:36
allenaprvba: It’s because pserv wasn’t running; it had crashed because of another bug :)14:37
allenapHowever, the error was not helpful.14:37
rvbaallenap: ah right, I didn't reload the page.14:37
allenaprvba: It should probably have said “I can’t contact any clusters to validate this” or something like that.14:38
rvbaallenap: definitely14:38
jtvrvba: I think I've found the reason for the problem with my maas-test branch...  It's that the default simplestreams path (as encoded in provisioningserver/config.py) never got the v2 data!14:41
allenapjtv: Is this an “oh s**t” moment?14:41
jtvI would say so, yes.14:41
jtvBut nothing that a small, simple patch won't solve.14:41
rvbajtv: right, the default value of the 'path'.14:42
jtvIt doesn't have the -v2 bit in it...14:42
rvbaindeed14:42
rvbajtv: that would explain why the import script failed with a KeyError on 'subarches' :).14:43
jtvOf course it also raises the question of whether the repo path should be a command-line option to maas-test.  But one thing at a time.14:43
jtvYeah, it's nothing whatsoever to do with the subarches in my code.14:43
jtvIt's a field in the simplestreams data — v2, but not regular.14:43
rvbaYep14:43
rvbaroaksoax: https://code.launchpad.net/~andreserl/maas-test/release_bzr126/+merge/204040 is obsolete now right?14:59
jtvrvba: https://code.launchpad.net/~jtv/maas/bug-1305118/+merge/21496615:03
jtvOf course we'll also want either a configurable path, or dailies by default, in maas-test.  But that's a separate issue.15:03
rvbaRight.15:03
rvbaLooks good.15:04
rvbajtv: that's precisely with I'm advocating for a general-purpose --boot-resources option.15:04
jtvI know, I know... but bear in mind we're aiming to replace that config altogether.15:05
jtvThanks for the very quick review btw.  :)15:05
rvbaQuick fix → quick review :)15:05
jtvI'll also backport to 1.5.15:05
roaksoaxrvba: that should have been emrged :)15:05
rvbaroaksoax: I know, but gmb's changes make this obsolete now… correct?15:06
roaksoaxrvba:hcecking15:06
roaksoaxrvba: yes!15:06
vladkrvba: https://codereview.appspot.com/86070043 - gomaasapi TestServer extensions required for juju-core testing15:08
rvbavladk: looking15:10
vladkrvba: thanks15:52
faderHey folks, is there any documentation anywhere on authenticating against the REST API?16:56
faderI can use it properly from a web browser if I have logged into MAAS interactively already, but if I haven't logged in or try from a script I get something like "Unrecognised signature: GET list"16:56
faderSeems to be similar to: http://askubuntu.com/questions/402691/handling-ubuntu-maas-restful-api-login (and not covered that I see in the API docs)16:56
=== roadmr is now known as roadmr_afk
=== roadmr_afk is now known as roadmr
=== vladk is now known as vladk|offline
Kupo24zhey all, getting this error when booting via PXE: exceptions.AssertionError: No PXE template found in u'/etc/maas/templates/pxe'!18:20
Kupo24zodd because it worked yesterday18:21
Kupo24zand the dir is populated: http://paste.ubuntu.com/7227453/18:22
Kupo24zhmm, reran pxe import script and it fixed it somehow18:35
=== CyberJacob|Away is now known as CyberJacob
tych0hi rvba, allenap: what is the DJANGO_SETTINGS_MODULE for maas?19:10
tych0ah ha, maas.settings19:12
=== mwhudson- is now known as mwhudson
bladernr_hey, can someone catch me up on the state of uEFI support in MAAS?20:57

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