/srv/irclogs.ubuntu.com/2013/11/04/#juju-dev.txt

thumperaxw, wallyworld_: I'm prepared to trade review for review... mine is trivial01:20
wallyworld_ok01:20
thumperaxw: and I'm replying to the maas-allocated one01:20
axwthumper: okey dokey01:20
thumperenfixorating it took longer than expected01:20
axwthumper: sorry, couldn't remember if we were doing a bug or blueprint for the API stuff.. thanks for fixing01:37
thumpernp01:49
thumpergives me something to do and feel important :)01:50
axwthumper: did you mean to repropose the maas MP?02:56
axwthere's a bunch of unrelated stuff in there now02:56
thumperno...02:56
thumperyes I know02:56
thumperI'll fixit02:56
axwk02:56
thumperdammit02:56
thumperaxw: I'm trying to work out wtf happened03:10
thumperI had branched from 1.1603:10
thumperugh03:11
thumperI know03:11
* thumper goes to uncommit several03:11
axwthumper: when you're not busy, can you please take a look at https://codereview.appspot.com/14775044/03:43
axwa fix for one of the manual provisioning bugs03:43
thumperbigjools: can I get you to cast a quick eye over https://code.launchpad.net/~thumper/juju-core/maas-allocated/+merge/19109003:44
thumperbigjools: just to make sure I'm not doing something dumb?03:44
thumperaxw: ack03:44
bigjoolsthumper: out of interest,  why the change to name the returned values?03:48
bigjoolsline 38 on diff03:48
thumperI was assigning to them before03:49
thumperbut refactoring took it out03:49
thumperagain03:49
thumpersometimes it is easier to have the named params03:49
thumperthan to have empty declarations in the code03:49
thumperthey are effectively function local variables03:50
bigjoolsyeah03:50
bigjoolssheesh, I don't remember enough Go already to see what this is doing without looking stuff up03:52
bigjoolsdid my best to banish it from my mind03:52
thumperaxw: var allSeries = [...]string{"precise", "quantal", "raring", "saucy"} <- why the dots in [...] ?03:52
* axw reminds himself03:52
thumperbigjools: it was more just the filter I cared about03:52
thumperbigjools: the rest of it I understand03:52
bigjoolsfilter is fine03:53
axwthumper: why I did that instead of a slice... *shrug*, it's a little less overhead03:53
bigjoolsthumper: having said that03:53
axw[...]{...} is syntax for an array literal with the size taken from the number of elements03:53
bigjoolsthumper: it would be better to have the filtering done in gomaasapi03:53
bigjoolsas an optional state param03:54
thumperbigjools: agreed, but I felt that it was more work, and I think gomaasapi should give juju-core higher level objects to work with03:54
thumperrather than thin wrappers on a ReST api03:54
thumperaxw: I just wasn't familiar with the syntax03:55
thumperbigjools: why exactly do we filter out unallocated ones?03:57
bigjoolslol03:57
thumperI'll update the comment if you give me the reason03:57
bigjoolsthumper: nodes can be owned by the same user but not necessarily in use by juju03:57
bigjoolsjuju just assumes it owns the world03:57
bigjoolsthis change is not actually strictly necessary after the other work we did03:58
thumperby not strictly necessary...03:58
thumperdo you mean it isn't needed at all?03:58
bigjoolswell, no :)03:58
thumperif it isn't, then we could flag it03:58
bigjoolsthe agent_name work marks nodes that juju allocated03:58
thumperalthough I wish I knew that before I spent a day trying to massage it into shape03:58
bigjoolsI didn't know you were working on it, sorry03:59
* thumper sighs03:59
thumperI'll strip the filter, but commit the changes because it makes the code more "correct"03:59
thumperand tweaks the tests03:59
bigjoolsok03:59
axwwallyworld_, thumper : bot sez "no space left on device"04:14
axwdo either of yo uhave access?04:14
wallyworld_i do04:14
wallyworld_which device?04:15
axwwallyworld_: /tmp04:15
wallyworld_ok04:15
axwthanks04:15
wallyworld_axw: try now04:16
axwfixed, ta04:29
axwwallyworld_: do you have any thoughts on this thread, before I land my change? https://lists.ubuntu.com/archives/juju-dev/2013-October/001651.html05:19
=== thumper is now known as thumper-afk
wallyworld_axw: just a sec, otp05:20
wallyworld_axw: i'm in 2 minds - i can see the need to keep the current behaviour. but seems like there's enough support to land it. especially now there are validation tools so they can verify the image id they will be getting.05:27
axwwallyworld_: how do the validation tools help? you mean, people can just set the image id explicitly to prevent unexpected images from being provisioned?05:28
axwah never mind, I get it05:29
wallyworld_one source of confusion in changing the behaviour is: people will set up metadata to use precise image 1234 (to override the stock abcd)05:29
wallyworld_and if we fall back to abcd cause they stuffed up, that's bad05:30
axwyep05:30
axwand validation tools can help prevent that05:30
wallyworld_yeah, if people use them :-)05:30
axwheh :)05:30
wallyworld_so i'm sorta -0 on it05:31
axwwe can add an option on datasources to prevent fallback05:31
wallyworld_yes. let's land this first as is i guess and do more work later if it comes up as an issue05:32
axwok, sounds like a plan05:32
wallyworld_i still get a bit nervous about doing it, but oh well05:32
wallyworld_so long as it's documented and in the release notes05:33
axwgood point, I don't think there's a card for it.. will create one05:35
wallyworld_main issue is it's a change in behaviour. and i'm not sure how upstream is set up to handle such things; ideally we'd be consistent but if not, double the need for doco05:37
wallyworld_jam: https://codereview.appspot.com/20730043/06:41
jammorning all07:35
axwmorning jam07:37
=== tasdomas` is now known as tasdomas
rogpeppemornin' all08:02
axwmorning rogpeppe08:04
rogpeppeaxw: hiya08:04
mgzmornin' all10:06
dimiternmgz, morning10:08
rogpeppemgz, dimitern: yo!10:17
rogpeppejam: i just posted a review of this: https://codereview.appspot.com/21000044/10:17
dimiternrogpeppe, hiya10:18
rogpeppefwereade_: ping10:21
fwereade_rogpeppe, pong, sorry10:32
rogpeppefwereade_: just wanted to point you at the HA doc that nate and i put together on friday. i imagine you'll have some comments to make: https://docs.google.com/a/canonical.com/document/d/1hGa2PNz6JyGFc7FjA-gX2_UnXRUGAZbS8O9TiS51bl8/edit10:33
fwereade_rogpeppe, sweet, tyvm10:33
jamrogpeppe: fwereade_: standup?10:47
jamhttps://plus.google.com/hangouts/_/calendar/am9obi5tZWluZWxAY2Fub25pY2FsLmNvbQ.mf0d8r5pfb44m16v9b2n5i29ig10:47
jamnatefinch: ^^10:47
jammgz: https://plus.google.com/hangouts/_/72cpj1004s1il9ggm12bsqttpg11:17
mattywfwereade_, you remember a few weeks ago I was working on the mp for adding the owner to the addservice function? It just occured to me I never submitted it for review, I'm just doing it now, I have a feeling there's still lots to be done on it, but thought I'd submit it as a way of getting it moving again11:30
natefinchjam: ahh crap, daylight savings time. Sorry.11:32
fwereade_mattyw, ah, great, thanks, about to lunch but I'll take a look this pm11:53
jamnatefinch: I expected as much11:54
jamI knew it was extra early for you, and wasn't sure if you'd be there. We should sort something out for you11:54
natefinchjam: I expected better of myself :)11:54
mattywfwereade_, thanks. no hurry - I have plenty to keep me busy  (as I'm sure you do as well)11:55
=== gary_poster|away is now known as gary_poster
=== rogpeppe1 is now known as rogpeppe
rogpeppe1natefinch: ping13:45
abentleymarcoceppi: Is it considered bad style to do apt-get upgrade in a charm?14:54
marcoceppiabentley: not nessisarily14:56
abentleymarcoceppi: It seems to me that upgrading all the packages on your system should be an admin decision, not one that your charms make.14:57
marcoceppiabentley: charms are extremely opinionated encapsulation14:57
marcoceppiabentley: if the author thinks that's the best course of action, then so be it14:58
abentleymarcoceppi: So the situation is that wordpress does apt-get upgrade.  This attempts to install cgroups-lite.  But I am running the local provides, so installing cgroups-lite fails (I assume because nested lxcs aren't permitted).  So the charm can't install.15:00
abentleys/provides/provider.15:00
marcoceppiwhat in the chain of deps requires cgroups-lite?15:00
abentleymarcoceppi: None.  It's part of the base install.15:01
natefinchrogpeppe1: hey, sorry, kids got up late today.  What's up?15:01
marcoceppiwell, that seems like a bigger problem tbh15:01
abentleymarcoceppi: What's the bigger problem?  That the Ubuntu base install has cgroups-lite in it?15:02
marcoceppiabentley: yeah, that cgroups-lite isn't installing properly on lxc15:02
abentleymarcoceppi: Yes, that's certainly a bug.  I just wondered whether it's also a bug that wordpress is trying to upgrade cgroups-lite.15:03
abentleymarcoceppi: It's clearly irrelevant.  I was able to remove it, and the charm installed fine after that.15:03
marcoceppiabentley: there's an argument to make that it shouldn't as package versions could become mismatched between units, but the same can happen for long running deployments and updates to the simplestream data for images15:04
abentleymarcoceppi: right.15:06
abentleymarcoceppi: I figure charms are cannot by themselves ensure packages are in sync, and if juju changes to be able to ensure packages are in sync, it probably won't be necessary to do it in the charm.15:10
rogpeppe1natefinch: we should have another chat about the HA stuff15:22
natefinchrogpeppe1: cool, whenever is good for you15:24
rogpeppe1natefinch: https://plus.google.com/hangouts/_/calendar/am9obi5tZWluZWxAY2Fub25pY2FsLmNvbQ.mf0d8r5pfb44m16v9b2n5i29ig?authuser=115:25
=== teknico1 is now known as teknico
=== gary_poster is now known as gary_poster|away
=== gary_poster|away is now known as gary_poster
=== dstroppa_ is now known as dstroppa
rogpeppe1fwereade_: ping16:48
rogpeppe1natefinch: i've added some notes to the end of the HA document with some thoughts about HA failover and liveness18:21
natefinchrogpeppe1: cool18:22
natefinchrogpeppe2: you around?19:19
thumper-afkmorning19:27
=== thumper-afk is now known as thumper
thumperhi natefinch19:27
abentleythumper: morning.  Can we chat about local provider when you're free?19:27
thumperabentley: sure, I need to kick the kids out shortly19:28
thumperafter that?19:28
natefinchthumper: hi19:28
abentleythumper: great.19:28
natefinchthumper: finally had daylight savings over here... nice to have an extra hour of overlap with you.  Makes my afternoons less lonely :)19:35
thumper:)19:35
thumperI noticed that too19:35
thumpernow if we could just hire someone on the west coast too19:36
natefinchLast I saw we had an opening for someone that they specifically wanted to have near San Fransisco for some reason.19:36
natefinchniemeyer: you around?19:38
thumperabentley: did you want irc or hangout?20:09
abentleythumper: Let's hang out.20:09
* thumper waits20:10
abentleythumper: https://plus.google.com/hangouts/_/72cpiquo8sjrmfhcnqpq31pdi0?authuser=1&hl=en20:10
=== rogpeppe2 is now known as rogpeppe
thumperabentley: that fixed the install problem21:02
thumperabentley: just testing something else21:02
abentleythumper: Cool.21:02
thumpernatefinch: https://codereview.appspot.com/2174004321:15
natefinchthumper: looking21:15
thumpernatefinch: I initially wanted to move in the direction of nested lxc support21:20
thumperbut I couldn't get lxc-start to work with the apparmor profile21:20
thumperso I gave up and went with the simple solution21:20
thumperabentley: no sinzui today?21:24
abentleythumper: No, he's taking the day off.21:25
thumperhmm...21:25
thumperwe may want to release 1.16.321:25
thumperto fix the local provider21:25
natefinchthumper: yeah, just disabling nested LXC seems like the best idea.  I doubt it'll be a big problem21:26
thumperabentley: can you do your CI dance with the trunk branch again once I get the fix landed?21:33
abentleythumper: Sure, but I need to leave in ~30 minutes.21:34
thumperack21:34
thumperit may have to wait then...21:34
thumpernatefinch: and if you can, the same for 1.16 https://codereview.appspot.com/2142004521:40
natefinchthumper: done21:41
thumperta21:41
natefinchthumper: welcome.  If you get a chance, I'd like to get the code I wrote for specifying EC2 instance types as constraints in... since the code is slowly bitrotting.   https://codereview.appspot.com/14523052/21:45
thumperI looked at it at the end of last week, but I couldn't remember what we decided about landing the instance type from our burlingame conversations21:46
thumperdo you recall?21:46
natefinchthumper: we decided to land it.  I asked specifically at the time21:49
thumperok, I vote for landing and cleaning up the mess :)21:50
* thumper goes to do a proper review21:50
natefinch:)21:50
thumpernatefinch: why type and not instance-type?21:53
thumperI guess it doesn't matter21:54
thumperjust wondering21:54
natefinchthumper: I thought instance type was too specific to EC2, but if it's more common than that, that's fine21:55
thumperI think that type should be fine21:55
thumperabentley: trunk now has lxc fix21:56
abentleythumper: okay.21:56
natefinchthumper: once nice bonus that code gives is that you see the type of the machine in juju status, instead of having to try to infer it.  So you'll see like "hardware: arch=amd64 cpu-cores=1 cpu-power=100 mem=1740M root-disk=8192M type=m1.small"21:57
abentleythumper: build started at http://162.213.35.28/job/juju-core-ci/97/console21:57
thumpernatefinch: yep, noticed that21:57
thumperabentley: ta21:57
natefinchthumper: actually tempted to put type first in the printout, since it sorta defines the rest of the line21:58
thumpernatefinch: well, line is alphabetical no?21:58
thumpereye naturally tracks to the end21:58
natefinchthumper: I think it's in the order we define, which happens to be alphabetical21:59
thumpernatefinch: what happens with the mongo doc21:59
thumperand output21:59
thumperfor environments that exist already?21:59
natefinchthumper: it should just default to empty.  admittedly I haven't tried it22:00
* thumper nods22:00
thumpernoticed the bson serialization code22:00
thumperomitempty *should* be fine22:00
natefinchthumper: yeah22:00
* natefinch also said *should* ;)22:01
* natefinch covers his ass22:01
natefinchCool.   I'll do an upgrade test in the morning to double check,  and then merge it in.22:02
* natefinch has reached end of day.22:03
thumpernatefinch: ack22:03
natefinchthumper: thanks for the review22:03
abentleythumper: It errored.  Sorry, I don't have time to look at whether it's the same error as before.22:04
thumperabentley: kk22:08
bigjoolsgood moaning22:26
thumpero/22:27
marcoceppiCan someone in here help out in #juju with a botched upgrade from 1.14 -> 1.16.2j23:04

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