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

webbrandonif im gonna use maas for virtual machines and juju i have to install LXC on my MAAS server correct?  Not to familiar with this yet, but running lxc-create now for node, hope im on the right track01:00
=== CyberJacob|Away is now known as CyberJacob
rvbaHi jtv, time for medium-sized review? https://code.launchpad.net/~rvb/maas/cluster-own-ui4/+merge/21384808:18
rvbagmb: arg, found a critical bug in maas-test (https://bugs.launchpad.net/maas-test/+bug/1301815).08:57
ubot5Ubuntu bug 1301815 in maas-test "maas-test is incompatible with the most recent MAAS packages (revision 2182 and up)." [Critical,Triaged]08:57
rvbagmb: I thought maas-test would still work (but drop the simplestreams config) but since it explicitly runs the (now gone) maas-import-ephemerals it breaks completely with recent packages.08:58
gmbrvba: Ack. So the fix is just to drop that call?08:58
rvbagmb: if /etc/maas/bootimages.yaml is there: drop that call08:58
rvbagmb: next step would be to add a way to customize /etc/maas/bootimages.yaml but that can be done later.08:59
gmbrvba: Right. Want me to take this? Once I’ve done reviewing I’m free.08:59
rvbagmb: Okay, thanks.08:59
gmbCool.08:59
=== CyberJacob is now known as CyberJacob|Away
=== wgrant_ is now known as wgrant
blake_rrvba: allenap: I was out yesterday. But the new import script does provide the UEFI files, and I have tested it with daily-qa, two days ago13:20
rvbablake_r: all right, thanks a lot.13:27
jtvAnybody want to review a validator for Node.hostname?  https://code.launchpad.net/~jtv/maas/bug-1300059/+merge/21403213:41
rvbajtv: what happens if someone has existing nodes with invalid hostnames?  I mean, after this lands on existing installations with invalid hostnames.14:18
jtvThey can't save with the broken hostname.14:21
jtvBut they can keep it in the database for as long as they like.14:21
rvbajtv: which means you won't be able to change *any* field on these nodes.14:23
jtvUnless you also change the hostname.14:23
rvbaRight.14:23
jtvI know that's harsh, but I have no sympathy at all.  :)14:24
rvbajtv: I can see that :)14:25
rvbaI agree with you on the principle… just trying to think what kind of pain this can inflict on users.14:26
jtvI think it's pain we simply have to go through.  We could smooth it by warning about bad hostnames.14:28
rvbajtv: not sure it's worth it.  It won't help people using the API/CLI at all.14:30
jtvRight...  And to be honest, I hope that nobody will have gotten this wrong.  Except maybe the underscores.14:31
rvbajtv: not entirely happy with the multiple error messages that a user could get when trying to enter invalid hostnames:14:33
rvbaI can imagine a user spending quite some time trying to figure out what the allowed format is.14:33
jtvA network administrator not being able to figure out the allowed format for hostnames?  I doubt it.14:34
rvbajtv: but I mean, the error message should not only tell you about the error, it should also state what a valid hostname should look like (even if it's just a mention of the proper RFC)14:35
jtvCan you give me an example of how you have gotten this wrong recently, and what documentation you looked up to resolve it?14:36
jtvOr preferably, somebody who manages systems and networks?14:36
jtvIt just seems outlandish to me.14:36
bladernr_hey, how often does MAAS update it's ephemerals and PXE files?  I'm using it to do a lot of trusty type dev and testing, and want to be sure that it's pulling whatever the latest trusty bits are.14:37
jtvIt's either weekly, or manually only — let me check.14:37
jtvbladernr_: once a week.14:38
rvbajtv: yeah, I might be splitting hairs a bit.  I'll review your branch now :)14:38
bladernr_I was under the impression MAAS was supposed to update itself once you did the initial update... if that's not the case, we definitely need to know as we're requiring MAAS for cert now :/14:38
jtvrvba: Thanks.  Maybe it's just the voice of laziness, but I feel "hostname" should be obvious to someone who manages hosts.  :)14:39
rvbabtw, branch up for review: https://code.launchpad.net/~rvb/maas/reporting-bug-1301809/+merge/21398414:39
jtvI'll take it next.14:39
rvbaOr you can leave it to gmb or allenap. :)14:39
jtvbladernr_: it refreshes its copies of the boot images once a week.14:40
bladernr_ahhh  ok14:40
bladernr_so running maas-import-pxe-files is essentially a manual update that can be run whenever necessary, yeah?14:40
jtvTechnically, that has nothing to do with that initial manual download.  We just ask people to do the manual download so they don't have to wait a week to start working.  :)14:40
jtvAs you say, it's just a manual update that you can run anytime, in addition to the weekly update.14:41
bladernr_ahhh, ok.  Hah... I thought there was some sort of magic sauce in MAAS that was triggered by the first download... tricksie you are14:41
jtvIt can also be triggered from the UI.14:41
rvbajtv: btw, I'm quite surprise that we don't have a hostname validator somewhere that we can re-use…14:41
rvbasurprised* even14:41
jtvSo am I.  The Apache foundation seems to have something in Java, but...14:41
bladernr_jtv: cool.  Thanks for the confirmation/clarification.  That's exactly what I needed to know.14:41
jtvnp14:42
jtvrvba: Django has built-in URL and email validators, though I'm not sure they're as thorough as mine.14:42
jtvActually, without meaning to brag, I'm fairly confident they aren't.14:42
jtvI considered tricks like "put http:// in front and see if it's a valid URL" — but that's susceptible to all sorts of mistakes.14:43
jtvrvba: ah _that_ MP...  I saw that earlier and didn't review it because there was no commit message and no description.  I thought it was a WIP.14:43
rvbajtv: I just came across http://python-jsonschema.readthedocs.org/en/latest/validate/#validating-formats14:44
rvbajtv: rarg, the commit message didn't get through.  Fixed now.14:45
jtvHadn't seen that one.  I'll have a closer look.14:45
jtvrvba: the jsonschema one isn't very thorough either.  :/14:47
jtvIt'll even disallow some names that I _think_ are valid.14:47
jtvOn the other hand, it looks like it'll allow "..." as a hostname.  :-)14:48
rvbajtv: how can you tell?  It's not very clear in the doc what it does.  Are you looking at the code?14:48
jtvrvba: yeah, I read the code.15:20
rvbajtv: question for you.  I'd like to add a tiny notification next to 'Clusters' at the top of the page when some of the clusters need attention from the user.  More precisely, I'd like to display the number of pending clusters + the number of accepted clusters with no boot images.15:24
rvbajtv: but I'm afraid this would be a bit too expensive to compute to display it on every page…15:24
rvbajtv: I didn't try to measure the time it takes to compute the number of accepted clusters with no boot images yet… but I guess I could try to see how it goes.15:26
rvbajtv: well, it's not really a question… but I'd welcome your opinion on that :)15:26
jtvI think it's a good idea, and I don't expect that much performance overhead.  Clusters are smaller in the database than nodes, and we expect fewer of them.15:27
jtvThe real question is what feedback to show.  That sounds like it needs UI design.15:27
jtvThe flavour-of-the-week UI, I guess, would be to show a red field over the Clusters tab with the number of items that need attention.15:27
rvbajtv: I've got an idea about that.15:28
jtv?15:28
rvbajtv: exactly.  I already have a couple of CSS class to do precisely that.15:28
rvbaclasses*15:28
jtvBut much more a question for UX people than for Unix people, if you'll pardon the pun.15:29
rvbaRight, I'll put a mockup together.15:31
=== roadmr is now known as roadmr_afk
=== roadmr_afk is now known as roadmr
AskUbuntuMAAS networking | http://askubuntu.com/q/44295716:41
rvbagmb: did you do something earlier today to fix that 1.5 lander?  My branch got landed but now I've got another one stuck… maybe I'm just not patient enough…17:01
rvbagmb: my bad, it got merged eventually.  Just took forever.17:34
blahRusrvba: is it possible to add 14.04 yet to MAAS to deploy servers with it?17:43
rvbablahRus: yes, but you it will be much simpler to do if you use a Trusty server to run MAAS.17:45
blahRusrvba: we were getting internal servers errors all over the place with beta 217:48
blahRuslet me try it again17:48
=== lazyPower is now known as lazyPower-travel
blahRusI'll try off of a beta17:48
blahRusdaily*17:48
rvbablahRus: a new version has been published recently.  I've got reports that it works okay.17:48
blahRuskk17:49
rvba1.5+bzr2204-0ubuntu1 <- that's the version in Trusty now.17:49
blahRuskk17:49
=== CyberJacob|Away is now known as CyberJacob
gmbrvba: I didn’t actually do anything; I tore the instance down and started a new one. The annoying thing is that I’ve no way of debugging the lander… it gets deployed with some random SSH key that I don’t seem to have access to (maybe bigjools does).18:40
gmbAnyway, yay for things being fixed just by wishing.18:40
gmbNext up, I shall wish for plug-and-go MAAS and see what happens.18:40
=== roadmr is now known as roadmr_afk
=== roadmr_afk is now known as roadmr
=== sputnik1_ is now known as sputnik13net
tych0hi allenap, smoser: can you tell me how the new import script works?20:54
tych0so when i import images20:54
tych0immediately after that is done i try and create a node and it fails20:54
tych0(tells me "there are no images")20:55
tych0but if i wait a bit, it works fine20:55
tych0presumably now it does more than a stat() on the images to see if they're there, my guess is a celery notification20:55
tych0what should i wait for before i can add new nodes?20:55
allenaptych0: Did you run maas-import-pxe-files directly?20:56
tych0yes20:56
tych0allenap: is there a better way to trigger it so that it will automatically get updated?20:56
allenapIt can take a few minutes after its finished before the region susses out what images are available.20:56
tych0yep, understood20:56
tych0how do i know?20:56
tych0maas boot-images report-boot-images or something?20:56
allenaptych0: You can run it from the UI.20:56
tych0not in the cloud installer i can't20:57
allenapAh :)20:57
allenapme looks20:57
allenaptych0: bin/maas foo node-groups import-boot-images20:58
tych0allenap: that won't block until i'm done, though20:58
tych0so i still need a way to check20:58
allenaptych0: bin/maas foo boot-images read $cluster_uuid20:58
tych0allenap: cool, that'll play, thanks21:00
allenaptych0: So, there’s a check every 5 (or 10?) minutes that’ll find the imported images. Importing images via the API (or UI) ensures that the images are reported as soon as the import run finishes.21:00
tych0ok21:01
tych0allenap: is there any way to tell it to look?21:01
tych0and/or tell the m-i-e script via the API to use an http proxy?21:01
allenaptych0: You /might/ find that the periodic check picks up a half-finished import, but I suspect it won’t; the new import script switches a symlink when it finishes.21:01
tych0actually i think it should be ok21:02
tych0we're not even pxe booting the first node21:02
tych0so we don't even really care if the images are even there21:02
allenaptych0: maas-import-ephemerals is an ex-script. maas-import-pxe-files isn’t the thing that reports back; there’s a celery subtask that runs when the import task completes.21:02
tych0maas just barfs on us if they're not21:02
tych0allenap: ok. so is there a way to route the whole thing through an http proxy if i call it through the maas api?21:03
tych0alternatively, can i just call the celery job manually?21:04
allenaptych0: If you’ve set the http proxy in MAAS, then call through to it via the API, it should dtrt.21:04
tych0hmm21:04
tych0is there an easy way to set the proxy via the cli?21:05
allenapShould be, /me looks.21:06
tych0ok21:06
tych0no worries, i can look21:06
tych0just iddn't know if you knew off the top of your head21:06
tych0(allenap)21:06
allenaptych0: bin/maas foo maas set-config name=http_proxy value=http://...21:08
tych0cool21:08
tych0thanks!21:08
allenapIt’s good to refresh my memory :)21:08
* allenap signs off for the night.21:14
tych0allenap: hmm21:28
tych0we might actually want to be notified if the job fails ourselves21:29
tych0allenap: is there a way we can get some kind of failure notification?21:29
tych0allenap: so set-config doesn't work21:42
tych0http://paste.ubuntu.com/7200708/21:42
allenaptych0: maas maas maas set-config ...22:17
tych0ah22:35
tych0:-(22:35
=== CyberJacob is now known as CyberJacob|Away

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