/srv/irclogs.ubuntu.com/2013/10/14/#juju-dev.txt

axwhey thumper, have a nice break?01:11
axwanything I can help with on the maas thing?01:11
thumperaxw: yeah, nice to get that mental break01:12
thumperaxw: I'm trying to work out why maas is having bootstrap issues, and ec2 and openstack not01:13
axwthumper: I guess I won't be of use without maas knowledge, but give me a yell if there's something I can do.01:14
thumpersure01:14
bigjoolsthis is a bit of a critical problem01:14
thumperbigjools: right01:14
bigjoolsthumper: forwarding you another email01:14
thumperbigjools: do you have any logs of a failed bootstrap?01:14
bigjoolsno, I am going to start poking soon01:15
thumperin particular, I want everything related to the cloud-=init01:15
bigjoolsdid rvb's email not cover it?01:15
bigjoolssend you two emails01:15
bigjoolssent*01:16
bigjoolsthere's two problems I see at the moment01:16
thumperbigjools: the pastebin (http://paste.ubuntu.com/6226420/) had  two lines but I don't know what from01:16
bigjools1. bootstrap failing as per rvb01:16
bigjoolsit's the QA lab environment01:16
bigjools2. destroy-env gets its knickers in a twist01:16
bigjoolsI reckon the pastebin shows an invalid command line quite frankly01:17
bigjools--constraints is not getting any arg01:17
thumperlocally, it gets '' if not set01:17
thumperI'm not sure how it ends up getting missed on the command line01:17
thumperI can submit a fix *right now* for the empty one01:17
thumperbut I was really wanting to know why we didn't see issues on the ec2/openstack side01:18
bigjoolsNFI01:18
thumperyeah01:18
thumperme neither01:18
* thumper bootstraps an ec201:18
bigjoolssomething is causing --constraints to get passed in with no arg, but I don't know what would do that01:19
bigjoolspassed in to jujud that is01:19
thumperhmm...01:19
thumperwell,01:19
thumperwhen we generate the cloudinit01:19
thumperit makes" --constraints ''   " if empty01:20
thumperso01:20
* thumper shrugs01:20
bigjoolsok I am going to recreate locally01:20
thumperwhy is the version of in lp:juju-core/1.16 1.15?01:20
bigjools?01:21
bigjoolsI have a sneaking suspicion that the tools are mismatched somewhere01:21
thumpernah01:21
thumperwell...01:21
thumperactually01:21
thumperhmm...01:23
thumperah...01:23
thumpernope, my fault there01:23
* thumper bootstraps again01:24
thumperbigjools: got time for a hangout?01:24
thumperbigjools: is your shitty connection up to it?01:24
bigjoolsyeah it's ok now01:24
bigjoolsI finally plugged in my ADSL filter and it's better :)01:25
thumperhaha01:25
thumperbigjools: hangout?01:25
bigjoolsyea just call me01:25
thumperkk01:25
axwthumper: re maas vs. ec2/openstack, I *suspect* it's due to https://codereview.appspot.com/13802045/patch/36001/3700201:27
axwsee IsEmpty01:27
* thumper looks01:27
axwand parseTags01:27
axwbit of a wild guess tho01:27
axwhmm tags= shouldn't be in the string tho, so maybe not01:29
thumperthis isn't about tags, but constraints01:41
axwthumper: yeah... there's tags in constraints now. was thinking it might've affected whether the constraints are considered empty or not01:43
bigjoolsthumper: https://bugs.launchpad.net/juju-core/+bug/123949602:48
_mup_Bug #1239496: Packaged 1.16 juju has oauth errors talking to maas <juju-core:New> <https://launchpad.net/bugs/1239496>02:48
bigjoolsrather critical02:48
bigjoolsthumper: http://pastebin.ubuntu.com/6234274/02:52
bigjoolswallyworld_'s fault you say?02:52
wallyworld_wot02:52
bigjoolshang on02:53
wallyworld_you are trying to bootstrap using a 1.9 client?02:54
bigjoolstrying to work out what TF I am building02:54
bigjoolsI rebuilt and it said I am using 1.902:54
wallyworld_pbkac02:55
bigjoolstrunk branch moved ...02:55
bigjoolsold checkout02:55
thumperaxw: you could look at this https://codereview.appspot.com/1449405403:05
axwthumper: will do03:06
thumperhang on03:06
thumperthat's bollocks03:06
thumperWTF went on there then03:06
thumperI branched from 1.1603:06
thumperand proposed to trunk03:06
bigjoolsok oauth in latest core is bollixed03:09
bigjoolshttps://bugs.launchpad.net/juju-core/+bug/123949603:09
_mup_Bug #1239496: 1.16 juju and above has oauth errors talking to maas <juju-core:New> <https://launchpad.net/bugs/1239496>03:09
davecheneybigjools: which series are you running03:16
davecheneyi wonder if this is 'compiled against an old versino of go' again03:16
bigjoolssaucy03:16
davecheneyhmm03:16
davecheneynope, not that the03:16
davecheneythen03:16
thumperdavecheney: bigjools says the package version is poked03:16
bigjoolspackage in saucy itself is bollixed03:17
davecheneybigjools: ok03:17
davecheneywhat if you build from the 1.16.0 tarball03:17
davecheneydownload it03:17
davecheneyset yoru GOPATH to the root of the tar03:17
davecheneygo install ./...03:17
davecheneythat is the litmus test03:17
bigjoolswhere is it again?03:17
davecheneygotta go to the 1.16 series03:17
davecheneyhttps://launchpad.net/juju-core/1.16/1.16.0/+download/juju-core_1.16.0.tar.gz03:18
bigjoolsta03:18
thumperaxw: https://codereview.appspot.com/14494054/ diff is now right03:18
axwthumper: ta, reading03:18
thumperbut still need to target one against 1.1603:19
axwok03:19
axwbigjools: did you also notice that the realm is different in the working/non-working tests?03:19
bigjoolsaxw: yes03:19
bigjoolsmaas has a log entry saying "invalid consumer"03:19
thumperaxw: is the realm used in anyway to change the header values?03:20
bigjoolssrc/code.google.com/p/go.net/ipv6/sockopt_rfc3542_linux.go:33: too many errors03:21
bigjoolsnice03:21
axwthumper: not that I've noticed so far03:21
axwthumper: I mean, apart from the "realm" part in the HTTP header03:21
axwone has realm="", one has realm="MAAS+API"03:22
bigjoolsdavecheney: still got a 401 with that tarball03:22
axwwhich is URL-encoded (in code it's "MAAS API")03:22
bigjoolsdavecheney: it prompts another question - why did Mark's package work03:23
* bigjools grabs food03:25
davecheneybigjools: is he using saucy ?03:26
axwthumper: lgtm03:26
thumperaxw: ta03:26
bigjoolsdavecheney: yes from what I can tell, his juju --version showed 1.16.0-saucy-amd6403:47
davecheneyok03:51
davecheneyjust checking03:51
davecheneyin case he was running precise03:51
bigjoolsthumper: did you end up uploading a new binaryu for me?03:53
thumperbigjools: yes, I copied the one I build into the ~/tim dir03:53
bigjoolsok ta let's try it03:53
bigjoolsit gets the 401 too03:54
thumperwtf?03:55
* thumper goes to do some bzr magic to see the changes to the maas provider between 1.14 and 1.1603:56
thumperbigjools: could it be gomaasapi?03:56
thumperdavecheney: do we know which revisions of gomaasapi were used for 1.14?03:56
thumperdavecheney: we have tarballs, right?03:57
davecheneythumper: it's encoded in the release-tarball script on the 1.14 branch03:57
bigjoolsthumper: not sure it changed.  Oauth stuff is handled in Go's library03:57
davecheneythere will also be a tag on gomaasapi03:58
* thumper grabs both release tarballs03:58
thumperbigjools: wondering why sabdfl didn't hit that problem...03:58
bigjoolsthumper: exactly03:59
bigjoolsthumper: nor in the lab03:59
bigjoolsis it only on my box?  if so why does an old version work03:59
thumperbigjools: yes, very weird04:05
thumpernothing oauth related has changed in gomaasapi nor provider/maas in the 1.14.1 -> 1.16 change04:05
thumperwe need another maas to test against04:05
bigjoolsI was gonna say04:05
bigjoolseasy for you to do that04:06
bigjoolsyou don't need nodes04:06
thumperbigjools: how?04:06
bigjoolsrun it from a branch or a package; all you need to do is "juju destroy-environment"04:07
bigjoolsand if buggered you get a 40104:07
bigjoolsyou can even do it on canonistack04:07
thumpersay what?04:07
thumperaxw: and now the 1.16 branch version, with other bug references: https://codereview.appspot.com/14516056/04:20
axwthumper: just lgtm'd04:20
thumperta04:20
axwthanks for logging the bugs04:20
thumpernp04:21
=== thumper is now known as thumper-afk
bigjoolsjuju is now an easier interface to openstack than the other command line tools05:05
davecheney:)05:07
davecheneyjuju deploy -n 1000 ubuntu05:07
bigjoolswell even for adding arbitrary instances05:07
bigjoolsI just use bootstrap and abuse it, or add-machine05:07
bigjoolsdavecheney: on that note, how do I force a particular distroseries with add-machine?05:10
bigjoolsoh --series ... duh05:11
=== Guest99228 is now known as amithkk
bigjoolsdavecheney: so for some odd reason that oauth problem is only on my maas test box at home06:04
davecheneydoes oauth use the hostname of the server ?06:22
bigjoolsno idea06:24
bigjoolsthe server is called "maas" so if that's causing problems I think we can all quit now06:24
* davecheney packs his bags06:25
bigjoolsaxw, davecheney: if you can think of anything, anything at all, why the Auth header would be screwy only one one system.... I would be rather grateful.06:34
axwbigjools: what's the diff in Auth header with the same juju, in the two envs?06:39
bigjoolsaxw: https://bugs.launchpad.net/juju-core/+bug/123949606:39
_mup_Bug #1239496: 1.16 juju and above has oauth errors talking to maas <juju-core:New> <https://launchpad.net/bugs/1239496>06:39
bigjoolsolder juju binaries work fine06:40
bigjoolsso something that is compiled into it, possibly from the stdlib, is behaving differently because of some environmental difference06:40
axwbigjools: do you have a capture of the auth header from an older juju?06:41
bigjoolsI'll get one hang on06:41
bigjoolsoh crap overwrote the old binary06:42
bigjoolsI'll grab a tarball and rebuild06:42
axwbigjools: you didn't happen to edit environments.yaml after bootstrapping, did you?06:43
bigjoolsnope06:43
axwk06:43
axwjust asking because environments.yaml gets cached in these .jenv files now06:43
bigjoolsO_o06:44
axwe.g. ~/.juju/environments/maas.jenv06:44
bigjoolswhat's that for?06:44
axwso we can auto generate stuff like admin-secret06:44
axwnot sure what else tbh06:44
axwdid you say you got this error when you did a destroy-environment, without first bootstrapping?06:45
axwor did I imagine that06:45
bigjoolsyeah06:48
bigjoolsan easy way to test06:48
bigjoolsit tries to list nodes and gets a 40106:48
bigjoolsbut any command gets the same response06:48
bigjoolsaxw, davecheney: so I can recreate with the 1.15 release, 1.13 does not have  the problem, let me just find the header06:52
bigjoolsaxw: I updated the bug06:54
axwta06:54
axwbigjools: the only thing that jumps out at me is the non-empty realm in 1.1606:56
axwboth others have realm=""06:56
bigjoolsaxw: see the latest one06:56
axwok06:57
bigjoolsaxw: ah sorry ignore the realm=""06:58
bigjoolsI posted the wrong request on the comment06:58
axwok, no worries06:59
bigjoolsthe ones that don't work use completely the wrong token07:00
bigjoolsaxw: how do I clear that jenv?07:01
bigjoolsaxw: because I can see from examining it the oauth is different ...07:02
axwbigjools: it gets created when you bootstrap07:02
bigjoolsso it looks like I did change the envionments.yaml at some point07:02
axwok, that would explain it07:02
bigjoolsthis is a bug in juju IMO - I should be able to change the credentials07:02
bigjoolsif my maas server was compromised, I need to change them07:02
axwyeah, I'm not sure what the supported method of doing that is07:03
axwyou'd need to update the state db I think, via set-environment07:04
axwwhatever's in the .jenv should just be used for connecting to the API server or state server I think.07:05
bigjoolsI hacked the jenv07:05
bigjoolsworks that w3ay07:05
bigjoolsnot ideal if you don't know about it :/07:05
axwyeah, I was banging my head against that for a while when dev/testing the null provider :)07:05
axwperhaps we should check contents of environments.yaml and .jenv, and make sure there's no changes07:06
bigjoolsgood idea07:07
axwI'll log a new bug07:07
bigjoolsthank you07:07
bigjoolsand thanks for the help07:08
axwno worries07:08
rvbathumper-afk: I'm testing your fix for the empty constraints stuff in the lab now.07:09
bigjoolsI am re-creating that here as well07:10
rvbathedac: Looks like the fix for that worked (no empty --constraints any more) but jujud is still not starting properly: http://paste.ubuntu.com/6234820/07:11
rvbaarg, sorry thedac, I meant thumper-afk.07:12
bigjools--upload-tools seems to cause bootstrap to break, at least on maas07:37
bigjoolshttp://paste.ubuntu.com/6234893/07:37
davecheneybigjools:  i don't see anythig in that log that it is actually uploading anything07:39
davecheneythat would be the problem07:39
rvbafwiw, I've this error (EOF) happening from time to time, sometimes when fetching the tools from aws.  But it was always transient.  Any idea?07:39
bigjoolsdavecheney: the problem is that bootstrap has not done anything!07:39
bigjoolsgetting that EOF error every time07:39
=== thumper-afk is now known as thumper
* thumper looks at rvba's pastebin07:42
rogpeppemornin'07:42
rogpeppethumper: hiya07:42
rvbathumper: see my most recent email to the ML to have all the logs.07:42
rvbaMorning rogpeppe.07:42
thumperrvba: ack07:42
thumperhi rogpeppe07:42
rogpeppervba: yo!07:43
davecheneyi thin that eof indicates it ran off the end of whatever it was asking maas to list07:43
bigjoolshttps://bugs.launchpad.net/juju-core/+bug/123955807:43
_mup_Bug #1239558: --upload-tools failure preventing bootstrap completing <juju-core:New> <https://launchpad.net/bugs/1239558>07:43
thumperrvba: do you have access to the userdata.txt for the cloud image boot?07:43
thumperrvba: on ec2 found it in /var/cloud/... somewhere07:43
thumpersorry07:43
thumper/var/lib/cloud07:43
rvbathumper: sure, let me get that for you…07:44
davecheney/var/lib/cloud/instance/07:44
davecheneyone of those is the text07:44
thumperrvba: also, log for mongod07:44
thumperrvba: the one that is the juju one07:44
* thumper looks for the init script name07:45
bigjoolseek, why are tools for quantal getting uploaded by default07:45
rvba/var/lib/cloud/instance/cloud-config.txt: http://paste.ubuntu.com/6234904/07:45
rvba/var/log/mongodb/ is empty (!)07:45
* bigjools heading out to eat, back later07:46
rvbaps aux | grep mongo → zero07:46
thumperWTF?07:46
thumperrvba: it seems that we have jujud trying to start before mongod, that would certainly be an error :)07:46
rvbahttp://paste.ubuntu.com/6234911/07:46
rvbaMongodb is not installed07:47
thumperrvba: what about mongodb-server07:47
rvba1:2.0.4-1ubuntu2.1 is installed07:47
thumperhmm..07:48
thumperthat is the wrong version07:48
rvba sudo service mongodb status → mongodb stop/waiting07:48
thumperthe cloud-init has removed the stable ppa that has the mongodb-server package07:48
thumperrvba: what is the install source of the mongodb server package07:49
thumper?07:49
rvbathumper: http://paste.ubuntu.com/6234922/07:50
thumperrvba: the juju mongo service is "juju-db"07:50
rvbaarg, one sec…07:50
rvbathumper: http://paste.ubuntu.com/6234924/07:50
rvbathumper: ah ok07:50
thumperrvba: but it will be trying to start with ssl07:50
thumperand failing07:51
rvba$ sudo service juju-db status → juju-db stop/waiting07:51
davecheneyrvba: did you see my reply ?07:51
davecheneyGet:17 http://archive.ubuntu.com/ubuntu/ precise-updates/universe mongodb-clients amd64 1:2.0.4-1ubuntu2.1 [16.5 MB]07:51
davecheneyGet:18 http://archive.ubuntu.com/ubuntu/ precise-updates/universe mongodb-server amd64 1:2.0.4-1ubuntu2.1 [4167 kB]07:51
davecheney^ ppa:juju/stable is missing from this bootstrap node07:51
davecheneyit will never bootstrap properly07:51
thumperrvba: and it seems to be logging to syslog07:51
thumperdavecheney: agreed07:51
rvbadavecheney: ah ok07:51
* thumper looks at the 1.16 cloud-init work07:51
davecheneydid someone try to remove ppa:juju/stable from our cloud-init scripts again ?07:52
davecheneyi recall a change recently07:52
thumperyeah, me too07:52
thumperthat was to add the cloud archive07:52
thumperI wonder if they removed the old07:52
* thumper greps the bzr logs07:52
* davecheney flips a table07:53
davecheneyjamespage: is the mongodb update available in the cloud tools pocket ?07:53
thumperok found the change07:53
thumperaxw: ping07:53
axwthumper: yo07:54
thumperhey07:54
thumperaxw: r1948 where you added cloud-tools07:54
thumperyou modified the apt-repository bit for the ppa/stable07:54
* axw brings up the diff07:55
davecheneythumper: axw just get the mongo depdency installed into the cloud-tools pocket07:55
davecheneythat'll fix it today07:55
davecheneyno release required07:55
axwlast I checked, mongo was in cloud-tools07:56
jamespagedavecheney, its already in the cloud-tools pocket07:56
jamespagebut the cloud archive is just for 12.0407:56
thumperaxw: http://paste.ubuntu.com/6234904/07:56
thumperaxw: the cloud-init userdata doesn't add ppa:juju/stable07:56
thumperaxw: also, it uses mongodb-server07:56
thumpernot mongo07:56
TheMuemorning07:56
thumperhmm...07:57
thumpermongodb-server is there07:57
axwthumper: I tested this live07:58
axwit's in  both ppa and pocket07:58
* thumper wonders what was booted with maax07:58
thumperjamespage: it appears to be precise07:59
* thumper ponders07:59
thumperah...07:59
thumperhere it goes07:59
thumperW: Failed to fetch http://ubuntu-cloud.archive.canonical.com/ubuntu/dists/precise-updates/cloud-tools/main/binary-amd64/Packages  403  Forbidden07:59
thumperE: Some index files failed to download. They have been ignored, or old ones used instead.07:59
axwyeah just saw that07:59
jamespagethumper, some sort of proxy blocking access?08:00
axwwhat's up with that?08:00
thumperrvba: can the machine see it?08:00
* rvba tests.08:00
thumperjamespage: qa lab is firewalled off I think08:00
thumperrvba: you'll need to get a hole blased to that location08:00
rvbathumper: that machine can access the file all right.08:00
rvba(i.e. wget http://ubuntu-cloud.archive.canonical.com/ubuntu/dists/precise-updates/cloud-tools/main/binary-amd64/Packages works)08:01
thumperrvba: can you do an update, upgrade?08:01
thumperintermittant blockage?08:01
rvbahum, apt-get update → Failed to fetch http://ubuntu-cloud.archive.canonical.com/ubuntu/dists/precise-updates/cloud-tools/main/binary-amd64/Packages08:02
thumperyeah... that'll bit it :)08:02
thumperjamespage: do you know what has changed with the cloud-init process?08:02
* rvba wonders why wget works.08:02
thumpersomething has changed to how it executes the scripts08:03
thumperin particular the --constraints '' used to work08:03
thumperand now it doesn't08:03
thumperthe empty two single quote param was getting dropped somewhere08:03
thumperhmm...08:04
thumperor perhaps...08:04
thumperit is just how it is logged out08:04
thumperand copying that got a different problem08:04
thumperthat would kinda explain it08:04
jamespagethumper, sorry - no I don't08:04
rvbaHere is goes, apt is configured to use the region's squid as a proxy and that is failing to fetch things from ubuntu-cloud.archive.canonical.com.08:04
thumperjamespage: doesn't matter, I think I explained it to myself08:05
rvbathumper: okay, I fixed the proxy in the lab, let's try again to bootstrap a node…08:13
rvba(with your empty constraints fix)08:13
thumperrvba: I'd be curious to see it without my fix08:14
thumperbut lets try with first :)08:14
rvbathumper: node got bootstrapped okay.08:20
bigjoolsI recreated it without any fix08:22
thumperrvba: \o/08:22
thumperbigjools: did you say you got one bootstrapping without the fix?08:24
bigjoolsthumper: I recreated the bug08:24
bigjoolsie. fail08:24
thumperoh08:24
bigjoolsI can retry with the fix08:24
thumperbigjools: recreated the bug locally?08:24
rvbathumper: testing again without your fix, just to confirm.08:25
bigjoolsthumper: yes08:25
thumperbigjools: is it the same? no access to the cloud-tools ?08:25
thumperor the bad command line parsing?08:25
thumperI'm confused as to how the command-line parsing is different08:25
bigjoolsthumper: the command line thing with the --constraint08:25
thumperreally?08:25
thumperwow08:25
thumperhow does the cloud-init get run in the maas environment?08:26
bigjoolssomething is arsed in the core08:26
bigjoolsit runs as part of the image08:26
bigjoolstakes params from kernel cmd line08:26
bigjoolsthen downloads stuff from the metadata service08:26
thumperbigjools: no, the cloud-init data is good08:26
thumperbigjools: something has changed in how it is run08:27
thumperbigjools: for the failing bootstrap with the constraint error, can I see the cloud-init userdata file?08:31
bigjoolsthumper: we're on our call, hang on08:32
rogpeppethumper: what's the problem here?08:32
thumperrogpeppe: it seems that the maas execution of the cloud-init user data was dropping an empty string param08:33
thumperrogpeppe: causing the jujud bootstrap-state command to fail08:33
thumperrogpeppe: I'm gathering data08:33
thumperrogpeppe: landed a fix for it by not passing constraints where there are none08:34
rogpeppethumper: this doesn't happen on ec2?08:34
thumperbut I'd like to know why it is happening08:34
thumperno, ec2 is fine08:34
rogpeppethumper: hmm, odd.08:34
thumperyeah08:34
rvbathumper: the node bootstrapped okay *without* your fix this time… I'm pretty confused…  maybe the wrong juju was used somehow…08:35
thumperhmm…08:35
thumpereven more curious about bigjools's cloud-init issue now08:35
rogpeppeit's a pity that set -x doesn't print quoted commands correctly08:35
thumperyeah08:36
rogpeppethumper: still, you should see an extra space in the log08:36
rogpeppethumper: if the command was really there08:36
rogpeppethumper: actually, another possible fix: use --constraints=foo rather than --constraints foo08:37
rogpeppethumper: well, it would be interesting to see if that made any difference, anyway08:37
* thumper shrugs08:37
thumperslightly cleaner not to pass through nothing IMO08:37
rogpeppethumper: and therefore where it was a quoting issue or not08:37
* thumper nods08:38
thumperI'm hesitant to think it is a quoting issue08:38
thumperI'm thinking user error, but want more data :)08:38
rogpeppethumper: why do you think the problem was a dropped empty string param?08:39
thumperrogpeppe: because I didn't read the email properly08:40
thumper:)08:40
rogpeppethumper: heh08:40
thumperperhaps not enough coffee08:40
thumperor alcohol08:40
thumperor something08:40
rogpeppethumper: what kind of user error do you think might have caused the problem?08:41
bigjoolsthumper: ok sorry I destroyed-env before you asked :(08:45
thumper:(08:46
thumperbigjools: do it again :)08:46
bigjoolscan do, will leave it running while I deal with kids bedtime08:46
thumperta08:46
bigjoolsbloody annoying that I get that EOF when using --upload-tools08:46
bigjoolscan you fix that too, kthxbai08:47
thumperwallyworld_: ^^08:47
bigjoolsat least is there a way to stop it downloading the world's tools?08:48
bigjoolsI only need one set08:48
wallyworld_reading backscroll, what's the issue?08:57
wallyworld_EOF uploading tools?08:58
wallyworld_that usually means the source tools can't be found09:00
wallyworld_which means the compile failed perhaps09:00
wallyworld_i'd need to see some logs etc09:00
bigjoolswallyworld_: https://bugs.launchpad.net/juju-core/+bug/123955809:03
_mup_Bug #1239558: --upload-tools failure preventing bootstrap completing <juju-core:New> <https://launchpad.net/bugs/1239558>09:03
bigjoolsthumper: ok where's the file you want?09:04
wallyworld_bigjools: it's not upload tools per se - it;s the maas storage provider returning an EOF when a file is requested09:05
wallyworld_sorry, i mean a list() is performed09:06
wallyworld_the expected behaviour for ec2/openstack etc is to return an empty list if there are no such files09:06
wallyworld_i guess maas is different :-(09:06
bigjools\o/09:06
bigjoolsmaas itself returns an empty list09:07
bigjoolsso I guess the provider needs changing09:07
wallyworld_i'll have to look a little closer into it09:07
wallyworld_upload-tools han't changed really09:07
wallyworld_i wonder how it worked before09:08
bigjoolspixie dust09:08
wallyworld_the main change is that upload-tools runs automatically if tools cannot be found09:08
bigjoolsand tears drawn from the cheeks of juju developers09:08
wallyworld_bigjools: you running this against your local maas?09:09
bigjoolswallyworld_: Yes. I just wanted to avoid the long wait while it downloads 8 sets of tools09:09
bigjoolsthumper: speak to me!09:09
wallyworld_bigjools: maybe you can slip me some creds and i'll try against that too?09:10
bigjoolsslip you what?09:10
wallyworld_whatever creds i need to add to my env.yaml09:10
wallyworld_so i can try bootstrapping on your maas09:10
bigjoolsthat's not going to help, you need ssh access to my server09:10
* thumper looks up at bigjools09:10
thumperbigjools: the user data from /var/lib/cloud09:11
bigjoolswhich I can give you, I'll add your ssh key in one moment once I've given thumper my load09:11
thumperI don't know exactly where it is09:11
wallyworld_bigjools: so i need to ssh in and run juju from there?09:11
bigjoolswallyworld_: yep09:12
wallyworld_ok, so any debugging, i need to checkout juju src etc without my lovely ide :-(09:12
bigjoolsthumper: the actual data has this:09:12
bigjools--constraints '' --debug09:12
thumperright09:13
bigjoolsthumper: so I call cloud-init bug09:13
thumperbigjools: but cloud-init fails when running it?09:13
bigjoolshowever I suggest you use --constraints=''09:13
bigjoolsthumper: yeah the '' is lost09:13
bigjoolswallyworld_: fraid so09:13
thumperbigjools: I just don't set --constraints now if empty09:13
wallyworld_ok09:13
bigjoolswallyworld_: ha apparently I already gave you access once before09:14
wallyworld_lookslike i never used it :-)09:14
wallyworld_bigjools: are there live tests for the maas storage provider (save me looking up the code)09:15
wallyworld_bigjools: cause i need to discover why it's giving an EOF09:15
bigjoolswallyworld_: define live09:15
bigjoolsit's all against a crappy mock IIRC09:15
wallyworld_tests which are run against a live maas instance rather than a test double09:15
bigjoolsonly place is the QA lab where we run stuff daily09:16
wallyworld_bollocks09:16
wallyworld_looks like i'll need to figure out how to get that all set up09:16
wallyworld_or i may just experiment on your maas09:17
thumperbigjools: can I get you to email me the cloud-init and the log output for the cloud-init?09:17
bigjoolsthumper: one sec09:18
bigjoolsthumper: logs are in your "tim" directory on my server09:23
thumperbigjools: ta09:23
bigjoolsthumper: I want to destroy env now, ok?09:23
bigjoolslog and cloud-data is there, I mean09:23
thumperbigjools: gimmie a minute09:23
thumperbigjools: you don't have a problem with --constraints either09:26
thumperbigjools: your problem is: 2013-10-14 08:58:18,294 - cc_apt_update_upgrade.py[WARNING]: Source Error: deb http://ubuntu-cloud.archive.canonical.com/ubuntu precise-updates/cloud-tools main:failed to get key from keyserver.ubuntu.com09:26
thumperbigjools: when the commandline is echoed in the log file09:27
thumperbigjools: it doesn't quote the parameters09:27
thumperbigjools: not a cloud-init bug09:27
bigjoolshahaha09:27
rvbathumper: yeah, the --constraints stuff is not a bug… I thought it was because I copied the output I found in cloudinit's log.09:28
thumperrvba: bigjools copied you too09:28
bigjoolsthumper: so if the keyserver is down, we can't deploy ...09:29
bigjools\m/09:29
thumperbigjools: seems a bit weird huh09:29
thumperI wonder if there is a way to encode the key in cloud-init09:30
bigjoolsmy nodes don't have internet access BTW09:30
bigjoolscan just talk to the proxy on the maas host09:30
bigjoolsthumper: that was only a warning, it's not fatal09:31
bigjoolsthumper: I still think the error is the --constraints09:31
bigjoolsbecause of the error text09:31
bigjoolsthumper: also the connection failed thing09:33
thumperbigjools: no09:33
thumperbigjools: it isn't09:33
bigjoolsmongo is not running09:34
thumpercorrect09:34
thumperbecause you have the wrong version of mongodb-server09:34
bigjoolsthat seems to fairly fatal09:34
thumperso it isn't running with ssl09:34
thumperso the client can't connect09:34
bigjoolshurray!09:34
bigjoolswhy is it wrong?09:34
thumperbecause it didn't get the mongodb-server from the cloud-tools archive09:34
bigjoolsthis is all installed from the archive....09:34
thumperit got the default one, which is old09:34
bigjoolsI thought the ssl-based on was in the ubuntu archive now?09:35
bigjoolsone*09:35
thumperit is, for saucy and raring09:35
thumperbut not precise09:35
thumperhence the cloud-tools archive09:35
thumperwhich it didn't use09:35
thumperbecause it wasn't authorized09:35
thumperanyway09:35
thumperI have my iom-maas group access now09:35
thumperwill test in the morning09:35
thumperit is 22:35 here now, and I'm going to have a cuppa09:35
thumpernight all09:36
bigjoolsso bootstrapping on precise is basically borked09:36
bigjoolsrvba: ^09:37
rvbabigjools: I didn't get the logs… can you send them to me?09:37
bigjoolsrvba: no need - read scrollback09:37
rvbabigjools: I just got a node bootstrapped with precise in the lab.09:37
bigjools!09:37
bigjoolsrvba: in cloud-init-output.log, where is it downloading mongodb-server from ?09:38
bigjoolsrvba: I see Get:18 http://archive.ubuntu.com/ubuntu/ precise-updates/universe mongodb-server amd64 1:2.0.4-1ubuntu2.1 [4167 kB]09:38
rvbabigjools: No, it was downloading it from the right place (I don't have the logs handy, I'm recreating the env right now).09:40
bigjoolsrvba: so it means that the cloud-archive was not added to cloud-init....09:41
davecheneybigjools: what does /etc/apt.d/sources.list.d/ say ?09:41
bigjoolsno cloud archive09:42
davecheneywell, shit09:42
rvbabigjools: can you share the cloudinit config?09:43
bigjoolsand I see this in cloud-data09:43
davecheneyis that 'cos of the proxy issue ?09:43
bigjoolsapt_sources:09:43
bigjools- source: deb http://ubuntu-cloud.archive.canonical.com/ubuntu precise-updates/cloud-tools09:43
bigjoolsOct 14 08:58:18 gxx4a [CLOUDINIT] cc_apt_update_upgrade.py[WARNING]: Source Error: deb http://ubuntu-cloud.archive.canonical.com/ubuntu precise-updates/cloud-tools main:failed to get key from keyserver.ubuntu.com09:44
bigjoolsnot sure if relevant09:44
davecheneybigjools: yup09:44
rvbaIt is!09:45
bigjoolsnot necessarily09:45
davecheneyyou need to setup the proxy to allow keyserver.ubuntu.com09:45
bigjoolsit can continue w/o the key09:45
davecheneyit could09:45
davecheneybut it doesn't09:45
bigjoolsbut I guess you fixed this already rvba?09:45
rvbabigjools: In the lab, I fixed it yes.09:45
bigjoolsrvba: squid-deb-proxy?09:46
rvbabigjools: yes.09:46
bigjoolsdiff please? :)09:46
bigjoolsrvba: we need to fix this in the release packaging09:46
rvbabigjools: hang on, this is only related to the lab's config.09:46
rvbabigjools: I fixed the config of the lab's proxy.09:47
rvbabigjools: I'm not talking about the proxy installed on the region, I'm talking about the proxy (installed on the lab's machine) that the region's proxy is setup to use.09:48
rvbabigjools: does that make sense.09:48
rvbabigjools: in short, my issue was completely specific to the lab's setup.09:48
bigjoolsrvba: we also have a proxy on the region that will disallow access to both the keyserver and the cloud archive09:48
rvbabigjools: well, apparently not because I didn't have to tweak that at all.09:49
bigjoolsactually the latter is ok because of ".archive.canonical.com"09:49
* bigjools bootstraps again09:50
axwbigjools: is there a session agenda somewhere I can see?10:22
axwfor next week10:22
axw(just saw your email)10:22
* TheMue => lunch11:22
* rogpeppe is now really quite damp11:23
mgzrogpeppe: you were going *on* the roof?11:31
rogpeppemgz: just out in the rain to look at the roof with the potential contractor11:31
rogpeppemgz: it was absolutely chucking it down11:31
rogpeppeprompted by thumper's remarks this morning, a change to environs/cloudinit tests: https://codereview.appspot.com/1466504312:43
rogpeppemgz, TheMue, wallyworld, davecheney: ^12:45
rogpeppemattyw: did you get any further with your issues?12:46
TheMuerogpeppe: nice one. one question: in case of multiple non-continuous lines I'm interested in, can I use patterns there?12:59
rogpeppeTheMue: i'm not sure what you mean12:59
TheMuerogpeppe: e.g. I'm expecting foo \n something uninteresting \n bar \n13:05
TheMuerogpeppe: foo and bar is interesting, but not the part in the middle13:05
rogpeppeTheMue: yes, sure, that works13:05
TheMuerogpeppe: ah, fine, expected nothing else, but wanted to get sure13:05
rogpeppeTheMue: (i tried to say that in the comment on inexactMatch, but i guess i didn't succeed)13:05
rogpeppeTheMue: the logic in the function should make it fairly clear that that works too13:06
rogpeppeTheMue: assertScriptMatch, that is13:06
rogpeppeTheMue: thanks for the review, anyway13:07
TheMuerogpeppe: yeah, seen the func and thought I mostly got it, but not in total13:09
TheMuerogpeppe: missing some commments ;)13:09
rogpeppemgz: ping13:17
rogpeppemgz: ping13:21
mgzrogpeppe: hey13:21
rogpeppemgz: fancy doing some stuff on addresses?13:21
mgzrogpeppe: lets, give me five then I'll join the hangout13:22
rogpeppemgz: tell you what, gimme 15 mins and i'll have a bite to eat first13:22
mgzrogpeppe: sure13:24
mattywrogpeppe, same again, http://paste.ubuntu.com/6235841/ I was looking at other stuff this morning, looking again now13:41
rogpeppemattyw: i'm just about to start on some other stuff, but it would be good to find out more about what's going on.13:49
rogpeppemgz: https://plus.google.com/hangouts/_/b9aefae7756c493cf05ba17f092adfe125b6305d?authuser=113:50
mgzrogpeppe: ta13:51
rogpeppemattyw: perhaps tomorrow morning?13:54
mattywrogpeppe, sounds good, I'm going to see if I can get it going on my main machine so I can carry on, but I'll leave that vm as it is and sure, let's look tomorrow morning13:55
mattywrogpeppe, is william on holiday?13:56
mgzmattyw: for a few days, yeah13:56
mattywrogpeppe, trying it out on my main machine I get similar errors - not exactly the same, but lots of sockets left open15:52
rogpeppemattyw: that's, erm, good15:53
mattywrogpeppe, it's certainly "information" but I don't know what it means :)15:56
hazmatanyone ever tried juju with gccgo?17:44
rogpeppehazmat: i haven't tried gccgo period...17:47
rogpeppehazmat: i'd like to know what happens :-)17:47
hazmatrogpeppe, yeah.. it seems  more than a little flakey17:47
hazmatrogpeppe, i'm trying with just a single go file, and the resulting exec is tossing up errors17:48
hazmatthe question came up wrt to juju portability17:48
rogpeppehazmat: hmm. what errors are you seeinG?17:48
sidneihazmat: is that related to the arm thread?17:48
hazmatsidnei, not arm17:48
sidneik17:48
hazmatrogpeppe, http://pastebin.ubuntu.com/6236943/17:49
hazmatlooks like it got to upstream.. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5719417:50
sidneihazmat: first hit on google: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5719417:50
sidneiaha17:50
hazmat:-)17:50
hazmatlooks like it barfs on compiling juju (gccgo 4.8) http://paste.ubuntu.com/6236975/17:56
hazmatsome sort of inter-package dep issue17:56
rogpeppehazmat: how are you trying to compile juju there?17:59
hazmatare we still targeting go 1.0? or have we moved on to go1.117:59
hazmatrogpeppe, go install -compiler=gccgo launchpad.net/juju-core/...17:59
rogpeppehazmat: we've moved on to 1.1.217:59
rogpeppehazmat: where did you get your gcc from18:04
hazmatrogpeppe, saucy pkg .. apt-get install gccgo == 4.8.118:06
rogpeppehazmat: i think you'll need to use 4.8.218:06
hazmatrogpeppe, it feels like it might be a tool issue.. but i'll give it a whirl18:07
rogpeppehazmat: you'll probably need to compile from source18:07
rogpeppehazmat: 4.8.1 doesn't support go1.118:07
hazmatrogpeppe, sure.. but its only the inter-pkg links that barfs.. 1.1 has prelim support18:08
rogpeppehazmat: (i just confirmed that with iant on #go-nuts)18:08
hazmatin go 4.8.118:08
hazmatk18:08
hazmatrogpeppe, i'll give it a whirl, thanks18:08
hazmatrogpeppe, is 4.8.2 released?18:09
rogpeppehazmat: very soon, apparently18:09
* rogpeppe wonders if he's got enough resources on his laptop to build gcc18:10
rogpeppe /me is done for the day18:16
rogpeppeg'night all18:16
rogpeppemgz: quite a few test errors from that branch (not really surprising)18:17
thumpermramm2: do we have a chat today?21:01
mramm2I can chat on the phone or skype21:01
mramm2or on IRC21:02
mramm2but am traveling today21:02
mramm2(driving to florida -- national holiday here)21:02
thumperah21:02
thumperwell, I don't have anything too urgent I suppose21:03
mramm2I am currently not driving21:03
thumperI didn't think you would be21:03
mramm2my only big thing is making sure we are ready to go for the NYC and SF sprints21:03
thumpernot on irc :)21:03
mramm2haha21:03
* thumper nods21:03
thumperI've been looking into the maas issues21:04
thumperwe have one clear deficiency21:04
thumperand that is if we fail during startup of the bootstrap node21:04
thumperwe have no error reporting mechanism21:04
thumperlike not getting the right mongodb-server21:04
thumperwhich means we can never status21:04
thumpernor destory21:04
hazmatdavecheney, ping22:30
hazmatdavecheney, trying out gccgo (per roger got 4.8.2) but the fundamental issue is the tooling seems to be broken for multi-package compilations22:30
hazmataha.. got it22:35
hazmatneeded  a pkg symlink22:35
davecheneyhazmat: i don't know what you're doing22:46
davecheneybut i don't think a symlink is the solution22:46
davecheneyhazmat: rogpeppe related, http://gcc.gnu.org/ml/gcc/2013-10/msg00085.html22:46
hazmatdavecheney, i'm using that fwiw22:48
davecheneycool22:48
hazmatdavecheney, gcc took forever to compile22:48
hazmatdavecheney, my underlying issue was the way inter package lookups were being done22:48
hazmatfor linking purposes22:49
hazmatdefault compilation was dropping them into $GO_HOME/lib/gccgo but lookup had an architecture suffix22:49
hazmata simple symlinked fixed it22:49
hazmatrunning through the core test suite atm22:50
davecheneyi rememver seeing a patch about that recently22:50
hazmatdavecheney, i'm on golang trunk also re tooling22:50
hazmatgetting an env to bootstrap on this might be a bit tricky.. haven't tried the static compilation options yet22:51
davecheneyyup, from what I know22:53
davecheneygccgo binaries need libgo.a on the target22:53
thumpertime to go hit something22:54
* thumper -> gym22:54
hazmatdavecheney, it can be statically linked but running into some issues with that22:55
hazmatdavecheney, ala -gccgoflags '-static -static-libgo'22:55
bigjoolsthumper (or anyone): how do you deal with bootstrap failures on other providers then?22:57
davecheneybigjools: we don22:57
davecheneydont22:57
bigjoolscloud-init's failure to add the cloud-archive and then silently install the wrong mongo is pretty shite22:57
bigjoolsdavecheney: ok22:57
davecheneybigjools: i think this would be the 4th time it's broken22:58
davecheneyi cant break for other reasons, including when cloud-init is setup properly22:58
davecheneyrvba hit one with his proxy22:58
davecheneyif the mongo we needed was SRU'd into precise22:59
davecheneythis would solve the problem22:59
bigjoolsdavecheney: indeed.  I've no idea why why setup won't install the cloud archive - it can't get to the keyserver for some reason.  Perhaps the apt proxy doesn't get used for that.22:59
* bigjools experiments...again23:00
bigjoolswallyworld_: are you using my maas server?23:00
wallyworld_not yet23:00
hazmatdavecheney, bigjools we should be doing the cloud-archive by hand per cloud-archive instructions instead of using the ppa facility of cloudinit23:00
hazmatthat will fail more obviously23:01
hazmatand also remove duplicate work against manual provider for the cloud archive install23:01
hazmatsince its not using cloudinit23:01
davecheney127673423:02
davecheneylp#127673423:02
hazmatbug 127673423:02
davecheneyno mup ?23:02
hazmatmup.. where'd you go23:02
davecheneycanonistack strikes again23:02
bigjoolswallyworld_: ok let me know when you might as I am doing some experimentation on it23:03
wallyworld_ok23:03
kurt_Hi Guys23:03
kurt_I discovered bug 1276734 was actually not fixed in 1.16.0 as it said it was.  I noted this in the bug tracker, but no one has responded.  What can I do about this?23:04
bigjoolshazmat: it's using the apt sources directive of cloud-init - what do you mean "by hand"?23:04
kurt_Oh, I see its the topic du jour already23:05
hazmatbigjools, use the script part to install the archive23:05
bigjoolsadd-apt-repo?23:07
hazmatbigjools, yeah23:19
hazmatbigjools, see cloud archive install instructions23:19
bigjoolsok ta23:19
hazmatits not just a ppa23:19
hazmatnp23:19

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