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

jambigjools: ping if you are still around06:10
bigjoolsjam: I am here06:10
jambigjools: /wave.06:10
bigjoolssurprisingly awake too :)06:10
jamWe've been landing our changes into the 1.2 branch06:10
jambut I'm realizing they should also get merged into trunk, right?06:10
bigjoolsI saw06:10
jamI tried doing the obvious merge, but there are a handful of conflicts.06:10
bigjoolsideally they need to start in trunk because I wanted to do a bug-only SRU into quantal :(06:10
jambigjools: I can revert the changes, but the bug was on the 12.10-stabilization06:11
jamwhich I thought meant it needed to be in the 1.2 branch.06:11
bigjoolsIt does.  I had intended to SRU features later but I realise that the bugtask was a bit misleading :(06:12
jambigjools: so, if you want I can revert what I've landed so far, retarget them onto trunk.06:12
jamThere is still the fact that 1.2 doesn't merge cleanly into trunk, should it?06:12
jamor are they intended to diverge?06:12
jam(So in the *immediate* term, I can put together my teams changes as a single branch, which you can land once you have done the bugfix SRU, and are ready to do a feature SRU)06:14
jamthough I imagine any branch will bitrot if not landed soon06:14
jambigjools: is it worth doing that effort?06:16
bigjoolsthey are diverged06:16
bigjools(sorry had to deal with a large insect)06:17
bigjoolsyou need to cherry pick revisions06:17
jamso, they *have* diverged, but it would be possible to converge them. s there something you don't want in trunk that is in 1.2?06:17
bigjoolshmmmm let me think more about the feature branch06:17
bigjoolsthere's stuff in trunk we don't want in 1.206:18
jambigjools: right, I'm talking about the other direction06:18
jamI was thinking to land our code in 1.2 then merge up into trunk06:18
bigjoolsthere *might* be stuff in 1.2 - jtv has been landing there first and forward porting06:18
jambut it isn't possible today because of divergence on both side.06:18
jammostly simple textual conflicts that are fairly easy to resolve06:18
bigjoolsyou should be able to CP stuff though?06:18
jambigjools: we can, but it seems a waste to do so unless there is stuff you really don't want in trunk06:19
bigjoolsif you can work out which revisions are missing we can decide06:19
bigjoolsbut there should be nothing that's not in trunk06:19
bigjoolsunless there was a separate fix landed just for a bug in 1.206:19
jamI'm willing to do the conflict cleanup. The main problem with specific revisions is that cherrypicking makes it hard to see where things specifically come from.06:19
bigjoolsok thanks06:20
jambigjools: so one diff between 1.2 and trunk that I think you worked on. There is a pserv task "import_pxe_files" in 1.2, and "import_boot_images" in trunk.06:31
jamI'm not sure which name you want to use06:31
jam.06:31
bigjoolsjam: rvba renamed the former to the latter; he needs to backport it06:32
jamk06:32
jamI'll make sure to use boot_images after the merge.06:32
bigjoolsrightyo06:32
bigjoolsjam: I think you need to revert the 1.2 features and land them on trunk08:27
jambigjools: i'm willing to do so, do you know an ETA when 1.2 would be opened again.08:47
jamI guess at this point, we would essentially just hand it off to your team for that, though.08:47
=== mcclurmc_away is now known as mcclurmc
jam /wave mgz, dimitern09:10
dimiternjam: /wave :)09:11
jamI'm sitting in mumble if you guys would care to join.09:11
dimiternok09:12
jamw7z: poke09:14
mgzhey jam09:15
mgz...I wonder if I can find an extra network cable09:17
jammgz: I've got about 10 of them here.09:18
jamIf you feel like dropping by :)09:18
jammgz: care to join us on mumble?09:18
jambigjools: https://code.launchpad.net/~jameinel/maas/1.2-remove-kernel-opts/+merge/13342409:19
jamand now https://code.launchpad.net/~jameinel/maas/1.2-remove-kernel-opts/+merge/133425 to properly target 1.209:20
bigjoolsjam: if you make a branch targeted to 1.2, we can land it after the first SRU09:27
jambigjools: sure09:27
jamthe patch is essentially revert this revision :)09:27
bigjoolsok :)09:27
* bigjools heading off shortly, tired.com09:27
jammgz: https://code.launchpad.net/~jameinel/maas/1.2-remove-kernel-opts/+merge/13342509:29
jammgz, dimitern: https://code.launchpad.net/~jameinel/maas/merge-1.2/+merge/13341809:49
jammgz: DatabaseError: column maasserver_tag.kernel_opts does not exist09:59
jamLINE 1: ...er_tag"."definition", "maasserver_tag"."comment", "maasserve...09:59
jamevilnickveitch: just to let you know, I'm landing a 1.2 merge  => trunk which includes your doc fixes10:05
evilnickveitchjam, thanks for the headsup10:06
jammgz, dimitern: https://code.launchpad.net/~jameinel/maas/land-kernel-opts-in-trunk/+merge/13343410:07
w7zfailure is https://jenkins.qa.ubuntu.com/job/maas-merger-quantal/264/console10:11
jammgz w7z: Did you see bug #1073090 ?10:52
ubot5Launchpad bug 1073090 in MAAS "Using MAAS and --constraints "maas-name=$SPECIFIC_HOST" juju will deploy when that host is in commissioning or some other non-ready state" [Critical,Triaged] https://launchpad.net/bugs/107309010:52
jamI didn't think this was specific to something we've changed, but I could be wrong.10:53
w7zlooking10:53
jamw7z: from what I can see, we already have: 'available_nodes.filter(status=NODE_STATUS.READY)'10:54
w7zhm, we probably inherit the same dodgy logic for other constraints though10:54
jamso get_available_ shouldn't be allowing it if the status isn't actually ready.10:54
jamthough maybe juju keeps poking at us for a specific node, and the status goes to READY before some action actually finishes?10:55
jamw7z: is it a possible data race between multiple juju requests to acquire a node, and the backend having a specific node ready?10:55
w7zhm, right, only accepting READY seems fine10:55
w7zI wonder if a symptom is being misdiagnosed and it's actually some other issue with using maas-name10:56
w7zwhen does READY get changed to something else...10:57
jamw7z: when it is "damn well read10:58
jamready"10:58
jam:)10:58
w7zin acquire, which is before the api returns10:58
jamw7z: I think you mean in RELEASE10:58
w7zso, no obvious chance for maas to mislead juju here10:58
jambut note, any HTTP level request is inside a transaction that doesn't commit until it returns.10:59
w7zright, READY->ALLOCATED in acquire, ...->READY in release10:59
w7zI think the bug description is just wrong11:00
jamw7z: right, and the API level is "get_available(), node.acquire()"11:00
jamso we shouldn't return a node without it already being marked acquired.11:00
w7zthe issue is that if you try to allocate more than one machine with the same maas-name constraint, juju will get no possible options for the second, and be stuck in pending11:01
w7zthe fix being, don't use that constraint then11:01
dimiternjam, mgz: my branch is ready for review https://code.launchpad.net/~dimitern/maas/1.2-node-view-shows-kernel-params/+merge/13344911:01
jamw7z: it sounds more like if you do a deploy before the machine has finished being ready, juju will just stop trying11:02
w7zI don't think he's actually confirmed that, though release does seem optimistic11:02
jambecoming ready11:03
w7zsending reboot then immediately putting in READY may not be good enough11:03
w7zI don't think that's what he's observing though11:04
jamw7z: from what I can pull out of the bug comments, the issue is that you do a 'juju deploy' and it doesn't do anything, because there are no nodes matching the constraint that are READY11:04
jamthen juju doesn't wake up and realize once the machine is actually ready.11:05
w7zI think what he's seeing is just the known issue with trying to deploy with a set of constraints that returns no acquirable nodes11:05
jamw7z: is there a specific bug on it?11:06
jamI agree that it doesn't seem specific to maas-name, just easier to trigger because maas-name can have at most 1 machine available.11:06
jamdimitern: I'm curious about the CSS in your patch.11:07
w7zthere's a helpful mailing list thread where melmoth was trying to use maas-name... annoyingly it's not the public list >_<11:08
dimiternjam: the css just sets the line input to be longer on the settings page11:08
jamdimitern: sure, it just seems odd to have it be tied to '.size12'11:09
jam.size12 doesn't seem related to 'input'11:09
dimiternjam: well, it's what was used for other form fields, so I thought I should reuse it11:09
dimiternjam: the problem is, that you cannot set easily (at least I could not find an easy way) the css class of a form field in the template, that's why I changed the parent and made the child input take 100% width, because it was constrained otherwise11:11
w7zjam: so, I suspect if the bug reporter checks /var/log/maas/maas.log he will also see "NodesNotAvailable: No matching node is available"11:12
w7zlikewise the juju provisioning agent log will have something along those lines11:13
jamw7z: right, so where is the failure that is preventing  the *user* from understanding that things aren't going to work?11:13
jamIs juju deploy failing to give the message immediately11:13
w7zthat juju doesn't forward errors from the provisioning agent to the client11:13
jamis it not supposed to fail right away11:13
jambut is failing to retry later?11:14
w7zif this happened on bootstrap, the client you're running is talking directly to maas, and you'd see the error11:14
w7zbut once the master node is up, all the client does is say "juju please make the state look like this" and the provision agent does all the actions against maas11:15
jamw7z: sure, and what happens if it can't do so immediately?11:15
w7zthis means any errors after bootstrap go in the provisioning agent log on the master, and the client never sees them11:15
w7zso, `juju deploy something --constraints=maas-name=bogus` will always succeed... and give you an ever pending machine11:16
w7zwhereas `juju bootstrap --constraints=maas-name=bogus` will fail with the nice error the maas api returns11:17
jamw7z: as would `juju deploy something --constraints=maas-tag=no-available-machines11:17
jamwhere the tag exists, but all machines are busy rightnow.11:17
jamIt may be that juju isn't meant to handle it, as it assumes providers that have capacity...11:17
w7zright. anything that doesn't return a machine, or any transient error (though things do get retried in some circumstances that I'm still not completely clear on)11:18
Davieyevilnickveitch: Hey, can you join #ubuntu-server pls?11:23
w7zso, basically bug 98464011:23
ubot5Launchpad bug 984640 in juju "Unsatisfied constraints are not reported back to the user" [Medium,Confirmed] https://launchpad.net/bugs/98464011:23
=== dimitern is now known as dimitern_lunch
jamw7z: so the only bit that makes me think bug #1073090 may not be bug #984640 is that the 'retry forever' doesn't seem to be working.12:15
ubot5Launchpad bug 984640 in juju "duplicate for #1073090 Unsatisfied constraints are not reported back to the user" [Medium,Confirmed] https://launchpad.net/bugs/98464012:15
ubot5Launchpad bug 984640 in juju "Unsatisfied constraints are not reported back to the user" [Medium,Confirmed] https://launchpad.net/bugs/98464012:15
jamSpecifically, after the node *is* ready, it doesn't actually get activated.12:15
w7zright, juju gets the "there are no acquirable nodes" response and takes that as immutable truth12:18
jamw7z: I thought juju was supposed to retry forever, if it isn't retrying again... sigh12:22
jamIt feels like they said, no no, you shouldn't care that it isn't ever working because we'll do it again, except we don't do it again.12:22
jamYou don't need any actual information about what is going wrong...12:22
jamanyway, bath time for the boy, have a good weekend mgz, maybe I'll see you in dota2?12:23
jamI *think I sent you a friend request, so maybe I'll catch you around there.12:23
=== dimitern_lunch is now known as dimitern
dimiternjam: ping13:14
jamdimitern: pong13:17
dimiternjam: so I see the branch is now merged - now what?13:17
dimiternshould I go back to go?13:17
jam1: work with mgz tomorrow, 2: if you see roaksoak or smoser online, chat with them to see if we can get them to test the kernel opts once it hits the daily ppa.13:18
jam3: work on Go if you run out of things.13:18
dimiternjam: ok 10x13:20
rbasakroaksoax: around? In maas-import-squashfs, you have "set -o nounset" but etc/maas/import_squashfs doesn't set RELEASES (commented out) so maas-import-pxe-files fails when running out of trunk. What's your intention here? Do you want RELEASES to be set to an empty string in etc/maas/import_squashf?14:02
roaksoaxrbasak ill have a look in a bit ( taking care of something else right now)14:05
rbasakOK thanks14:06
roaksoaxrbasak: can you pastebin the failure?14:13
roaksoaxrbasak: and yes i want it to not be set to a string in etc/maas/import_squashfs14:13
rbasakroaksoax: http://paste.ubuntu.com/1342601/14:14
roaksoaxsame as what happens with maas-import-ephemerals14:14
w7zroaksoax: we've landed all the bits we think you need for customising kernel parameters14:14
roaksoaxw7z: cool, thanks! how can I customize it?14:14
rbasakroaksoax: I think we need a different test on line 47 then14:14
w7zcan you find a way of trying it out on trunk, and telling us if it does what you need?14:14
w7zand also what documentation you want :)14:14
roaksoaxrbasak: so my intention there is that if in etc/maas/import_pxe_files quantal has not been set, then maas-import-squashfs should not import anything14:15
roaksoaxw7z: documentation on hjow to add/modify kernel parameters for each particular host or group of hosts14:16
roaksoaxs/host/nodes14:16
roaksoaxrbasak: http://pastebin.ubuntu.com/1342612/14:18
w7zbasically, when creating or modifying a tag, you can supply an optional kernel_opts param (see the for the cli to double check),14:19
w7zwhich will then be appended to the kernel opts used by the provisioning server on boot14:19
roaksoaxw7z: an example would be helpful :)14:19
roaksoaxw7z: and you need to let evilnickveitch know too to add that to the documentation on maas.ubuntu.com eventually14:20
evilnickveitchw7z, yes, that would definitely help!14:21
w7zit's essentially as per the auto generated docs14:22
w7zbut, specifically14:22
w7zsomething like `maas-cli tag create --name=00-default-console --definition=true --kernel_opts=console=ttyS0`14:23
w7zwill make all nodes (the defintion says effectively match everything) boot with the extra kernel param "console=ttyS0" after all the other ones maas uses14:24
w7zor for a similar thing14:24
roaksoaxw7z: cool, thanks14:25
w7zthe current highbank special case could be redone as a tag like `maas-cli tag create --name=01-highbank-console --definition="contains(/node/product,'Highbank')" --kernel_opts=console=tty`14:27
w7zor, you can set stuff manually just on one machine14:27
rbasakroaksoax: this scripts fails on a fresh updated quantal machine (with multiverse enabled for python-selenium): http://paste.ubuntu.com/1342651/14:29
w7z`maas-cli tag create --name=99-special-snowflake --kernel_opts=whatever_magic_param_here` followed by `maas-cli tag update-nodes 99-special-snowflake --add SYSTEM_ID`14:29
w7zplus or minus typos14:30
w7zthe naming scheme is something work mentioning in the docs, if multiple tags match, the last in lexi-order will be used, so number prefixing or a similar obvious scheme should be encouraged14:30
Lele_Hi guys, in 12.10 maas doesnt have the snippets and the maas_proxy file14:45
Lele_were can i setup http proxy for the image installation14:45
Lele_oh i found it :) enlist_userdata14:46
roaksoaxLele_: enlist_userdata is for enlistment, not for installation14:51
Lele_oh ! i see cause didnt work14:55
Lele_where i can configure proxy por installation ?14:55
Lele_roaksoax :)14:56
rbasakroaksoax: I've filed bug 107640914:56
ubot5Launchpad bug 1076409 in MAAS "maas-import-pxe-files fails when run from trunk" [Undecided,New] https://launchpad.net/bugs/107640914:56
roaksoaxrbasak: ack15:03
jtvCode review needed!  https://code.launchpad.net/~jtv/maas/import-from-configured-mirror/+merge/13350516:03
rvbajtv: I'll take it.16:09
jtvThanks.16:09
rvbajtv: I've got a few branches up for review my self if you fancy doing some reviewing ;)16:10
jtvI can get to that pretty soon!16:10
rvbaCool, ta.16:10
=== matsubara is now known as matsubara-lunch
jkordishso the maas on 12.10 (non clobber version - I'm actually pulling from the daily-builds ppa) - where are the preseed files? can't seem to find it in the docs anywhere :/16:44
roaksoaxjkordish: /usr/share/maas/preseeds16:47
jkordishroaksoax: wow. that simple.16:50
roaksoax:)16:50
jkordishroaksoax: feel like an idoit for missing it. I was doing a dpkg -L on all the maas packages and didn't see it :/16:50
roaksoax:)16:51
roaksoaxjkordish: the maas-region-controller package installs them16:51
jkordishthanks roaksoax16:57
roaksoaxjkordish: you're welcome :)17:05
=== matsubara-lunch is now known as matsubara
=== mcclurmc is now known as mcclurmc_away
roaksoax_23:08

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