/srv/irclogs.ubuntu.com/2014/04/18/#juju-dev.txt

* arosales doesn't see wallyworld around . . .00:02
jam1hmm... CI is unhappy06:41
jam1It looks like AMZ is just out of instances06:41
jam1but "hp upgrade" is failing06:41
jam1and has been since r264406:41
jam1I wonder if axw tested upgrade with the bootstrap patch version change06:42
jam1I see this in the logs, which looks worrying: machine-2: 2014-04-17 12:56:26 INFO juju.worker.apiaddressupdater apiaddressupdater.go:58 API addresses updated to []06:46
jam1also weird, all-machines.log only shows machine-2 getting the updated tools. Nothing about machine-0 even noticing that it wanted them.06:47
jam1I do wish we could run in --debug mode...06:47
jam1I wonder if we could log what API's are being called in Info mode, even if we don't log all of the details we would in Debug mode.06:48
jam1anyway, upgrade is borked... :(06:49
=== vladk|offline is now known as vladk
vladkjam1: good morning07:16
dimiternvladk, morning07:58
dimiternvladk, are you working today?07:58
dimiternvladk, jam is usually off on fridays (swapping them with sundays)07:59
dimiternmgz, you around today?07:59
* dimitern will desperately need reviewers today :/08:00
vladkdimitern: morning, I'm working, and you?08:00
dimiternvladk, yes - there was some misunderstanding on my part - i thought i had public holiday on monday and decided to take it, but it turned out it's today.. meh no big deal08:01
vladkdimitern, could you take a look https://codereview.appspot.com/88380044/08:20
dimiternvladk, looking08:20
dimiternvladk, reviewed08:26
vladkdimitern: thanks08:37
vladkwhy do you setupNetworks only if config.HasNetworks?08:37
vladkI think they should setup always, so they setup also on bootstrap and add-machine commands.08:37
dimiternvladk, eventually we'll do that, but for now the requirement is to set them up only when specified explicitly when deploying08:39
vladkdimitern: I told about this with jam, his opinion:08:46
vladkI'm probably happier if we set up everything rather than only the ones the user supplied08:46
vladkas then if you want to deploy another service, in say a container, then we know that we do have that network08:46
vladknow, when we have the NetworkWorker that can do dynamic setup of networks08:46
vladkit matters less08:46
vladkbecause then we can just set up the minimum, and then add ones that we need later.08:46
vladkI thought we were starting all by default.08:47
dimiternvladk, exactly, the worker will give us that08:48
dimiternvladk, but remember we're doing MVP now, so we're taking some shortcuts08:48
voidspacemorning all09:12
voidspacerogpeppe: ping09:12
* rogpeppe is not really here09:13
voidspaceIt's a UK bank holiday today and Monday09:13
voidspacerogpeppe: that's what I was checking09:13
rogpeppevoidspace: indeed it is09:13
* voidspace would like to not really be here as well09:13
voidspacerogpeppe: so I was just checking in09:14
rogpeppevoidspace: i'm just sorting out insurance and packing before going away tomorrow...09:14
voidspacerogpeppe: happy good friday09:14
rogpeppevoidspace: you too09:14
voidspacerogpeppe: have a good weekend09:14
rogpeppevoidspace: you'll be happy to head HA has now landed...09:14
rogpeppes/head/hear/09:14
voidspacerogpeppe: I just saw some emails09:15
voidspacerogpeppe: awesome09:15
voidspacerogpeppe: ah, looks like you're going on a proper holiday09:15
rogpeppevoidspace: have a go - see if you can make it work...09:15
voidspacerogpeppe: enjoy09:15
rogpeppevoidspace: i am!09:15
voidspacerogpeppe: will do, I'll try and break it :-)09:15
jam1vladk: dimitern: I'm "off" today, but if you need something you can ping me.09:15
rogpeppevoidspace: taking advantage of colorado mountain stuff09:15
voidspacerogpeppe: ah, of course09:16
voidspacegophercon09:16
jam1Upgrade is broken, so I might give it a poke, as we can't do any sort of release with that09:16
voidspacerogpeppe: see you in vegas then09:16
rogpeppevoidspace: up09:16
rogpeppeyup09:16
rogpeppevoidspace: aye09:16
jam1hi voidspace, welcome back09:16
jam1(well, welcome back to IRC at least :)09:16
voidspacejam1: hi, and thanks09:16
jam1voidspace: are you back in the UK?09:17
voidspacejam1: yep09:17
voidspacejam1: for a week at least09:17
jam1voidspace: lucky you to get to fly trans atlantic every other week09:17
voidspacejam1: I'm waiting to see how bad the jetlag is09:17
voidspaceit usually lasts me a week09:17
jam1voidspace: just don't change your TZ for this week09:17
voidspaceso I should recover just in time09:17
jam1wake up 6 hours late09:17
voidspacejam1: hah, I did consider it09:17
voidspacejam1: my daughter has other ideas09:17
jam1voidspace: I thought you liked to sleep in and start late anyway09:17
voidspacehah, normally I do09:18
voidspaceBrett Cannon (Python core dev) will be looking for work soon, and has Go experience (by the way)09:19
* voidspace subtly changing topic away from my sleeping habits09:19
voidspacehe's an excellent dev, hopefully we have a slot for him when he becomes available09:20
jam1voidspace: no such luck mr sleepy. I think I've actually met Brett at a pycon a few years ago. Is he the one who was doing importlib stuff?09:20
voidspacejam1: yep, currently a googler - great guy09:21
jam1voidspace: if he's looking, you should get his name in to Alexis, I think our slots are filling up pretty quickly.09:21
voidspacejam1: he's not looking just yet - but planning a move in the next few months09:21
voidspacehe has to wait a bit longer for his options to vest, so I don't think we can tempt him into an early leave09:22
voidspacehe'll get in touch with me though, so we'll see09:22
jam1voidspace: so "a few months" is certainly long enough for things to change. But at least atm the head count should all be filled by then (I think)09:26
dimiternjam1, ah, alright then09:31
jam1dimitern: since you and fwereade are hanging out, can you poke him about Manifest-charm-deployer ? I'm pretty sure I LGTM'd it, and it would be good to have in the next release09:32
fwereadejam1, I'm catching up on email at the moment, and I'll want to run a fresh live test against reality with the latest code, but I'll land that today09:32
jam1fwereade: sounds good.09:32
jam1fwereade: as for "user" all the other files were explicitly checked with ft.File("name") preserveUser is checking the same thing but doesn't *look* the same as the previous N checks.09:33
jam1so ignore me09:33
jam1but I missed it because it wasn't matching the pattern09:34
fwereadejam1, yeah, I worried vaguely that it was less obvious, but thought I'd prefer to stick with the var than dupe the definition09:34
fwereadejam1, maybe I should be putting them allin vars, but that felt inconvenient09:34
jam1fwereade: at this point, we've spent too long discussing it vs just landing it :)09:35
fwereadejam1, quite so :)09:38
jam1fwereade: do you have a take on the "juju bootstrap" should always be exactly pinned discussion?09:38
jam1I feel like the discussion has gotten into bickering, and I'm trying to keep it productive.09:39
jam1I feel like we haven't really come to a consensus09:39
jam1so I'm want to actually change our behavior without having that.09:39
jam1But I don't want to come across as just being petulant or defensive.09:40
jam1I think abentley does have some points we should consider, but I also want us to come up with a strong consensus as I'd rather have consistency in this area, rather than doing it X for 2 releases and then changing our minds again.09:41
fwereadejam1, yeah, just catching up and pondering09:47
jam1fwereade: anyway, I'd appreciate more input in the thread, as I feel like more comments from me isn't productive anymore.09:49
jam1rogpeppe: if you're still here: https://bugs.launchpad.net/juju-core/+bug/130944409:49
_mup_Bug #1309444: peergrouper spins in local/upgraded environment <ha> <logging> <juju-core:Triaged> <https://launchpad.net/bugs/1309444>09:49
jam1local provider doesn't support --replicaset (yet?) so the peergrouper just bounces endlessly09:49
fwereadejam1, do you remember who's been working on the precise/trusty lxc issues?09:50
jam1and I *think* upgraded environments will do the same (today)09:50
jam1fwereade: do you have an issue in particular?09:50
rogpeppejam1: oops, the peergrouper worker should be disabled for local environments09:50
rogpeppejam1: upgraded environments might be ok if axw's branch has landed09:50
jam1rogpeppe: is it sufficient for it to see "not in replicaset mode" and just exit gracefully?09:50
rogpeppejam1: it could check the replica set status and see that there are no members09:51
rogpeppejam1: that would be somewhat more graceful09:51
jam1rogpeppe: well this ends up in the log 2x:09:51
jam12014-04-18 09:45:41 ERROR juju.worker.peergrouper worker.go:137 peergrouper loop terminated: cannot get replica set status: cannot get replica set status: not running with --replSet09:51
jam12014-04-18 09:45:41 ERROR juju.worker runner.go:218 exited "peergrouper": cannot get replica set status: cannot get replica set status: not running with --repl09:51
jam1thats a lot of not-getting the replica set status :)09:51
rogpeppejam1: it can't just exit though - otherwise it'll be restarted (we should perhaps fix that so it's possible for a worker to exit without being restarted)09:52
jam1rogpeppe: I thought we had a way for workers to exit with "I'm finished now"09:52
rogpeppejam1: i don't think so, but we may do09:52
fwereadejam1, see #juju-gui just now09:52
rogpeppejam1: i always thought that just exiting with a nil error should be enough09:52
fwereaderogpeppe, jam1, they were meant to not be restarted if they return nil09:52
fwereaderogpeppe, jam1, not sure what happened if that never landed, I thought we rediscussed that exact issue a few weeks ago09:53
rogpeppefwereade: yeah, we should do that09:53
rogpeppefwereade: (if we don't already)09:53
* rogpeppe is really gone now09:53
jam1rogpeppe: fwereade: "if workerInfo.start == nil { // The worker has been deliberately stopped"09:54
rogpeppejam1: ah, that's cool then09:55
fwereadeexcellent09:55
wwitzel3hello10:03
natefinchmgz, perrito666, dimitern, fwereade: staup?10:50
dimiternnatefinch, coming10:50
natefinchstandup that is10:50
=== psivaa is now known as psivaa-afk
=== vladk is now known as vladk|offline
dimiternfwereade, mgz, vladk|offline, natefinch, i'd appreciate a review on this critical bug fix https://codereview.appspot.com/8926004414:23
dimiternsinzui, when you're about to release 1.19.1, please add this to the release notes https://bugs.launchpad.net/juju-core/+bug/1307513/comments/115:31
_mup_Bug #1307513: Support multiple (physical & virtual) network interfaces with the same MAC address on the same machine <tech-debt> <juju-core:In Progress by dimitern> <https://launchpad.net/bugs/1307513>15:31
sinzuidimitern, Fab!15:33
sinzuiThank you very much dimitern15:33
dimiternsinzui, :) np15:34
=== vladk|offline is now known as vladk
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
=== vladk is now known as vladk|offline
natefinchsinzui: I have a fix for this bug, but I don't think I actually know the area of the code well enough to be confident that it's the right fix.  It sort of looks like it should never have worked before:  https://bugs.launchpad.net/juju-core/+bug/130440718:43
_mup_Bug #1304407: juju bootstrap defaults to i386 <amd64> <apport-bug> <ec2-images> <metadata> <trusty> <juju-core:Triaged> <juju-core 1.18:Triaged> <juju-core (Ubuntu):Triaged> <https://launchpad.net/bugs/1304407>18:43
sinzuinatefinch, I think other rules that forced the local arch were in play18:44
natefinchsinzui: could be.  It looks like the code that picks the image gets a list of matching ones back (one for amd64 and one for 386) and then just takes whichever is first18:45
sinzuiouch18:46
sinzuinatefinch, Isn't the real issue with that bug is that we think amd64 is preferred either because AWS prefers it or because we see our local arch as the preference?18:48
sinzuinatefinch, would setting a large mem constraint also force selection of amd64? (all the i386 instances have small memory)18:50
natefinchsinzui: what I was seeing was that we were passing in the constraints the user had defined (in this case, no constraints), and then filtering the list of images down to the cheapest ones, which leaves m1.small, and there's two versions, 386 and amd64.  Since there was more than one that matched what the user wanted we just picked the first one.  I don't know how it was being restricted to local arch before.18:51
natefinchsinzui: what my change does is that if there's more than one image that matches what the user requested, it prefers to choose the one with the same arch as the local machine18:52
natefinchsinzui: but if such a thing doesn't exist, it just picks whatever is first in the list18:52
sinzuinatefinch, I agree with your solution. I suppose for many people, the arch is not important so ling as the service works18:53
natefinchsinzui: right.  If it were up to me, I'd probably just default to always choosing amd64... it's generally the default these days anyway, and matching the dinky old laptop someone is using to run the client on is not very intuitive to me.... but I'm not sure if other people had a specific reason for matching the local machine18:54
sinzuinatefinch, I agree. I suspect the surprise was we expect the more powerful /better arch to be selected18:55
natefinchsinzui: I can send a quick email to the list about it.  either way is trivial to code.  I'd think most people would presume 64 bit is better, all things being equal.18:56
sinzuiyep18:58
natefinchsinzui: any idea on how to reproduce the upgrading issue?   I just went 1.18->trunk without a hitch19:51
sinzuinatefinch, Your units upgraded?19:52
natefinchsinzui: yep   just standard wordpress/mysql19:53
natefinchsinzui: but 1.19 now19:53
natefinch(1.19.1.1)19:53
sinzuiThe tests all set tool-metadata-url to the testing streams19:54
sinzuiCI is republishing tools now. in 15 minutes there will be tools that are trunk19:55
natefinchsinzui: I did use --upload-tools, that probably skews things19:56
sinzuiYes, users are not supposed to use that19:56
sinzuiI cannot set tools on joyent because several the libs used by precise are tool old19:57
sinzuiand the machines are not allowed to get deps from anywhere other than Lp19:57
* sinzui ponders giving up for the day19:57
natefinchsinzui: I'll take another look without upload-tools19:59
natefinchsinzui: how do I get it to upgrade without if 1.19 hasn't been released20:20
sinzuiset tools-metadata-url to one of the testing streams20:21
sinzuinatefinch, which cloud are you using20:21
natefinchsinzui: aws20:21
sinzuinatefinch, juju-dist.s3.amazonaws.com/testing/tools20:22
sinzuihmm, publication of the latest rev is stalled though20:22
* sinzui looks20:22
natefinchjuju status20:30
natefinchhehh20:30
natefinchman I hate that we have environments.yaml and the jenvs20:32
natefinchI always go edit the environments.yaml first and wonder why it doesn't do anything20:33
natefinchsinzui: I can't make tools-metadata-url work.  I put it in the correct jenv, but I still get no upgrades available20:37
sinzuinatefinch, This is what I have for aws: http://pastebin.ubuntu.com/7278665/20:38
natefinchsinzui: maybe the problem is that I changed it after I bootstrapped20:40
sinzuiI already reported that bug :)20:40
sinzuinatefinch, I think I cannot be changed if it was ever set20:40
sinzuiBut when not set, you can set it once20:40
natefinchsinzui: is there more to setting it than just editing the jenv?20:41
sinzuinatefinch, I would prefer to run the tests by bootstrapping with the released stream,  then change tools-metadata-url to use the testing stream20:41
sinzuinatefinch, I used juju set-env tools-metadata-url=https://juju-dist.s3.amazonaws.com/testing/tools20:42
sinzuiIt works for my joyent env which didn't have that key set20:42
natefinchsinzui: ahh, that worked20:43
sinzuinatefinch, oh was that key set in the env before?20:44
sinzuiI want to update the bug with your experience20:44
natefinchsinzui: no, it wasn't set before20:45
natefinchsinzui: I just thought I could edit the jenv directly, but that doesn't seem to work20:45
sinzuithe jenv is just the pre-state used to bootstrap the env.20:46
natefinchsinzui: I thought that was the environments.yaml :/20:47
sinzuiI think there is a bug reported asking that juju warn when the jenv doesn't match the env20:47
natefinchsinzui: I guess that's the pre-pre-state20:47
sinzui:)20:47
natefinchsinzui: anyway, my upgrade worked fine20:50
sinzuinatefinch, looky http://ec2-54-84-137-170.compute-1.amazonaws.com:8080/job/hp-upgrade/1090/console20:51
sinzuiThat just happened in CI20:51
sinzuiWhat is the lastest revs?20:51
sinzuijoyent is testing upgrade now20:52
natefinchsorry, not sure what you're asking about latest revs20:53
sinzuijoyent just passed20:53
sinzuinatefinch, r2655 works20:55
sinzuidimerrs branch doesn't look related, but it has a positive effect20:56
sinzuinatefinch, local just passed20:57
sinzuiazure and aws are testing now20:57
sinzuiand you effectively did the aws test this hour20:57
natefinchsinzui: yeah, that's cool20:58
natefinchman..... I really don't get how launchpad is organized.  How do I just get a list of commits to trunk? It shouldn't be that hard to find20:58
natefinchahh, I see..  I can't click on trunk, because that's a "Series"20:59
sinzuiI like the qbzr extension locally20:59
sinzuiLp lists the last 10 commits to the branck20:59
natefinchsinzui: huh, never occurred to me20:59
sinzuithe branch is owned by gobot21:00
sinzuihttps://code.launchpad.net/~go-bot/juju-core/trunk21:00
sinzuiI know that since I need to explicitly be that bot to tag the branch.21:00
natefinchsinzui: right21:00
natefinchsinzui: Andrew made a commit this morning that looks like it might have been more likely to fix things.  At least it mentioned upgrade changes.21:01
natefinchsinzui: 265421:01
sinzuiI think so to reading the log, but the hp, joyent, and local upgrade tests failed with that specific rev.21:02
natefinchsinzui: weird21:03
natefinchsinzui: well, EOD for me regardless.  Glad it seems to be upgrading now, whatever the reason21:04
sinzuiHave a nice weekend natefinch21:04
natefinchsinzui: you too21:05

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