/srv/irclogs.ubuntu.com/2014/02/20/#juju-dev.txt

mwhudsondavecheney: \o/00:09
davecheneymwhudson: got local provider *almost* working yesterday00:10
mwhudsondavecheney: on ppc64el?00:10
davecheneymwhudson: ya00:13
=== hatch___ is now known as hatch
hazmatwhat version of juju started using jenv file01:04
hazmatsinzui, abentley there's a separate bug on manual provider trunk, that needs --uploads-tools01:05
hazmathmm.. although it looks like it found 1.17.0 there01:06
hazmatsinzui, the traceback on that bug is the same as i reported previously in https://bugs.launchpad.net/juju-core/+bug/128067801:07
_mup_Bug #1280678: manual provider fails to get tools (1.17.2) <manual-provider> <juju-core:Triaged> <https://launchpad.net/bugs/1280678>01:07
hazmatthe first pastebin has the cli output with --debug01:08
wallyworld__waigani: did you want to do the stand up now?01:16
waiganiwallyworld__: yep 1min01:18
wallyworld__axw: it appears the reason local upgrade fails from 1.16 is because the /usr/lib/juju/tools directory is owned by root and so can't be read when running juju upgrade. do you know how we deal with 1.16->1.17 upgrades in other places where 1.16 stuff was written as root?01:54
axwumm. why does it matter? the agents run as root?01:55
wallyworld__i'm not sure, i can check01:56
wallyworld__ha, 1.16 deploy fails error: symlink /var/lib/lxc/ian-local-machine-1/config /etc/lxc/auto/ian-local-machine-1.conf01:56
wallyworld__yes, the local jujud for machine 0 does run as root. the required file is there, i'll look further to see why it can't be read01:58
wallyworld__but gotta get a unit deployed first01:58
axwhurm, that looks like something that might've changed to support trusty?01:59
axwthe auto thing01:59
wallyworld__yeah, i had to manually make the auto directory02:02
wallyworld__i thought we fixed that02:02
wallyworld__sigh02:03
wallyworld__local on trusty is buggered02:03
wallyworld__"lxc-start": command get_cgroup failed02:03
axw:\02:11
=== mwhudson is now known as zz_mwhudson
axwah, that's better. phone point was dodgy. bet the bloody ants have gotten into the wires... last time they made a home in our phone03:59
wallyworld__axw: better bugs in your phone wires than your code04:03
axwheh04:04
axwit was pretty horrific. I picked up the phone, and they were swarming around under the screen04:05
wallyworld__\o/04:05
wallyworld__axw: i've given up getting the local provider working in trusty for now - i'll ask tim about it next week and/or raise it in the group meeting. but the root cause issue was that i was using the wrong data dir and so have a fix up for that04:06
axwokey dokey04:06
* axw looks04:06
axwwallyworld__: reviewed04:09
wallyworld__thanks :-)04:09
axwjust writing a test for mine now... sorry, I was being lazy04:10
wallyworld__np :-)04:11
wallyworld__given the nature of the issue, i think a test is crucial04:12
dimiternrogpeppe, https://codereview.appspot.com/66540044 - a relatively easy review?09:28
rogpeppedimitern: only 1200 lines, trivial :-)09:29
rogpeppedimitern: actually i'm on another review currently, will look after that09:29
hazmatis thumper on vacation?09:30
dimiternhazmat, yep, this week09:30
dimiternrogpeppe, cheers :) it's not that bad really09:30
rogpeppewallyworld__: hiya09:34
rogpeppewallyworld__: i was just looking at https://codereview.appspot.com/6654004409:35
rogpeppeoops, wrong URL!09:36
rogpeppehttps://codereview.appspot.com/65740048, of course09:36
jamfwereade: just to let you know, I'm trying to get into the hangout, but the google talk plugin crashed, and Trusty wants to do a dist-upgrade that is about a hundred megs, so I should be there *soonish* but I can't guarantee when10:01
jamrogpeppe: wallyworld__ ^^10:01
fwereadejam, no worries :)10:02
wallyworld__lol10:02
rogpeppejam: ok10:02
mgzI'm having fun with 2fa/hangouts atm so may take some struggling to get into the meeting10:06
mgzokay, backup otps generated, lets try10:14
rogpeppewallyworld__: here's the kind of thing i'm thinking about for the upgrade-waiter worker: http://paste.ubuntu.com/6965038/12:04
wallyworld__thanks, will look12:05
rogpeppewallyworld__: the SimpleWorker implementation is in one of nate's in-progress branches12:05
wallyworld__ok12:05
rogpeppenatefinch: can you make that branch available, so wallyworld__ can use it? (it doesn't seem to be in https://launchpad.net/~natefinch/juju-core/030-MA-HA any more)12:08
natefinchrogpeppe: launchpad's URL schema has to be the most inscrutable thing I've ever worked with.  I don't know what it's doing most of the time.  The code should still be there, I certainly didn't do anything to it.  This link works for the website at least: https://code.launchpad.net/~natefinch/juju-core/030-MA-HA12:20
rogpeppenatefinch: oh yeah, *code*.launchpad.net12:21
rogpeppenatefinch: thanks12:21
dimiternrogpeppe, review poke?12:25
rogpeppedimitern: thanks, i needed it :-)12:25
sparkiegeekhi guys. I'm having trouble bootstrapping a precise environment using MAAS provider on 1.17.212:39
sparkiegeekhttp://paste.ubuntu.com/6965180/12:39
sparkiegeekif I manually run that wget command on the maas provider (same network/firewall etc. as bootstrap node) I get a certificate error12:40
sparkiegeekhttp://paste.ubuntu.com/6965187/12:40
rogpeppethis machine has become unusable12:54
rogpeppeam rebooting to see if it helps12:54
natefinchrogpeppe: time to upgrade12:55
rogpeppenatefinch: to what?12:55
natefinchrogpeppe: new laptop12:55
rogpeppenatefinch: ha ha. it was fine before12:56
rogpeppenatefinch: i'm not doing anything different12:56
natefinchrogpeppe:  just take the excuse ;)12:56
rogpeppenatefinch: i'm waiting until september...12:57
natefinchrogpeppe: what's in sept?12:57
rogpeppethree years at canonical = new laptop12:57
natefinchrogpeppe: ahh nice12:57
wrtpnatefinch: so, it looks like my laptop has died13:02
=== wrtp is now known as rogpeppe
rogpeppenatefinch: when i tried to reboot it, i got a kernel panic (something about a thermal_notify call)13:03
rogpeppenatefinch: and now it just says "Fan Error" when i try to switch it on13:04
rogpeppethis is unfortunate13:04
rogpeppei'm going to let it cool down for a bit and cross my fingers13:04
natefinchrogpeppe: ouch13:04
rogpeppeit is very hot underneath13:05
natefinchrogpeppe: that sounds really bad13:06
natefinchrogpeppe: maybe it is time for a new laptop?  I think you get a payout at 3 years regardless of whether you actually purchase a laptop...13:07
rogpeppenatefinch: i've only had this for two years. i can't believe that's the expected lifetime of a laptop13:08
rogpeppenatefinch: i don't know whether to blame trusty for thrashing it, or the laptop for not coping13:09
rogpeppeanyway, hopefully in a few minutes it will have cooled down and everything will be back to normal13:09
natefinchrogpeppe: 2 years shouldn't kill any reasonable laptop13:09
rogpeppenatefinch: indeed - and it was a decent one13:10
rogpeppeanyway, i guess i can continue with dimitern's review, from this apple laptop that's been rock solid for 4.5 years :-)13:11
hazmatrogpeppe, what kind of laptop?13:14
rogpeppehazmat: lenovo x2113:14
rogpeppehazmat: sorry, x22013:14
rogpeppedammit, it's cooled down a reasonable amount, and i still get "Fan Error"13:15
hazmatrogpeppe, odd.. i've got the same model.. its held up pretty well for me.. i had one logic board replace (under warranty), i've tricked it out with an extra msata and 16gb of ram. .. what's the issue?13:15
hazmatrogpeppe, hmm.. i had some thermal issues when i had the logic board replaced.. are you still under warranty?13:16
rogpeppehazmat: no, not for some time noe13:16
rogpeppenow13:16
rogpeppehazmat: (it's 2.5 years old)13:16
hazmatrogpeppe, bummer.. not sure you have many options.. the docking station helped me not sure why.. it only do the random shutdown on thermal when unplugged i'd recommend picking up a 2|3 year warranty your next go around.. laptop's get abused13:17
rogpeppehazmat: everything was running very jerkily, and the fan was coming on. i decided to reboot. i saw a kernel panic when i did so. did a hard power off. now i can't even get into the bios menu.13:18
rogpeppehazmat: seems like it might be bricked :-\13:19
hazmatrogpeppe, hmmm.. you can still get service from lenovo its just pay as you go on labor parts.. might be cheaper to investigate a new laptop and yank the hd for an external enclosure to save data13:19
hazmatrogpeppe, the xps 15 / m3800 looks pretty nice albeit a bit pricey.13:19
rogpeppehazmat: i really wanted to wait until my 3 years :-)13:19
hazmatyeah.. understood and the x220 is the last lenovo with a real (non-chicklet) keyboard13:20
rogpeppehazmat: i do have a docking station. maybe i'll try that.13:20
* rogpeppe googles for chicklet keyboards13:20
hazmatrogpeppe, if works at all with the docking station, its almost 100% a logic/motherboard replace..13:20
hazmatrogpeppe, its what standard keyboards on new laptops look like..13:20
natefinchhazmat, rogpeppe: the XPS 15 is pretty slick, btw13:21
hazmatrogpeppe, you can order just about any part from lenovo if your up for diy, although on  motherboard replace i'd go for a service  tech.13:22
rogpeppehazmat: docking station (finally found it!) doesn't seem to make a difference, sadly13:45
rogpeppei suppose it might actually be that the fan has gone13:47
dimiternnatefinch, mgz, anyone? simple review https://codereview.appspot.com/66550044 to fix bug 128255314:00
_mup_Bug #1282553: maas provider can't bootstrap on precise with 1.17.2 <landscape> <juju-core:In Progress by dimitern> <https://launchpad.net/bugs/1282553>14:00
bachi jamespage, i was asked to check in with you regarding getting juju-quickstart into main rather than universe.  what's the status?14:01
rogpeppedimitern: i was reviewing that when my machine died14:07
rogpeppedimitern: i'm not sure about the agent config approach14:08
rogpeppedimitern: but i need to think about it some more14:08
rogpeppeha, actually my laptop *is* still under warranty14:11
mgzdimitern: reviewed14:11
mgzdimitern: I'm pretty sure curl has always been in the base cloud image, did you find you needed to install it?14:14
dimiternrogpeppe, it's the least intrusive approach imo14:15
dimiternthanks for the review mgz14:15
dimiternsinzui, do you know about the cross-team meting? when does it start?14:16
dimiternmgz, looking in #juju on canonical it seemed safer to add it14:16
sinzuidimitern, in 15 mintutes14:16
dimiternsinzui, ok, so because fwereade is not feeling well, i'd like to go in his place as he asked, can I have a g+ link in privmsg?14:17
mattywrogpeppe, got time for another quick question?14:21
sinzuidimitern, https://plus.google.com/hangouts/_/calendar/bWFyay5yYW1tLWNocmlzdGVuc2VuQGNhbm9uaWNhbC5jb20.bbjh6akgumv8n4suee7li8mrfc?authuser=114:22
dimiternsinzui, thanks14:22
sparkiegeekdimitern: if you were basing the need to install curl on my aptitude why trick then I think that's a mistake. http://cloud-images.ubuntu.com/precise/current/precise-server-cloudimg-amd64.manifest shows it's in the base image. I'm +1 on mgz's comment that you don't need to install it14:33
dimiternsparkiegeek, ok, i can remove addpackage then14:35
=== BradCrittenden is now known as bac
mrammhey, any juju core members available to join the cross team meeting?14:40
mrammhttps://plus.google.com/hangouts/_/calendar/bWFyay5yYW1tLWNocmlzdGVuc2VuQGNhbm9uaWNhbC5jb20.bbjh6akgumv8n4suee7li8mrfc14:40
dimiternmramm, i'm there :P14:40
mrammok14:40
mrammcool14:40
rogpeppemattyw: sure14:52
rogpeppemattyw: sorry, didn't see your question - i'm on a different machine 'cos my laptop has died :-(14:53
mattywrogpeppe, no problem - I've just submitted my second part of the juju id stuff for review - there's definately more stuff to do - but I wanted to get it started - rather than finish everything and then have to redo parts...14:54
mattywone of the things I haven't done yet is the cacheAPIInfo stuff - taking out the user stuff and doing it only on bootstrap14:54
rogpeppemattyw: ok14:55
mattywrogpeppe, there's an example in the current code of how I think the function should look - but I don't think I can call it directly from the bootstrap command without jumping through some hoops (I don't have an apiInfo in the bootstrap command)14:56
mattywrogpeppe, also it breaks a few tests by not doing it - so I guess the cacheuser function will need to be called somewhere where the tests can invoke it as well14:57
rogpeppemattyw: i'm just downloading the code so i can have a look14:57
mattywrogpeppe, ok thanks - there's no particular hurry - but thanks :)14:58
dimiternrogpeppe, another review poke? :)14:59
rogpeppedimitern: sorry, i've been busy trying to get my machine repair scheduled14:59
mattywrogpeppe, you're the 3rd person I know who's had to send a laptop for repair this week15:00
rogpeppemattyw: i wonder if it's anything to do with trusty thrashing things15:00
rogpeppemattyw: i know that the fan never *needed* to come on before today15:01
mattywfans always need to come on - it's their purpose in life15:01
rogpeppe6 working days until i get it back, darn it15:12
* rogpeppe wonders what he should do now. i guess i could get an enclosure for the SSD and try to access the disk drive from my macbook, and develop on that15:14
dimiternrogpeppe, try sticking it in the fridge :)15:31
mgzdimitern: got a mo to help me out?15:38
dimiternmgz, sure15:39
mgzI want to test a new (old) api command I've added in state/apiserver/client/status.go15:39
mgzthis isn't used in real code, but I want to exercise the function in a unit test15:40
mgzwhere should I add that?15:40
mgzthe existing testing in that package is confusing me15:40
dimiternis it one of these things where a CodeNotImplemented is involved?15:40
mgzwell, that too15:40
mgzbut this particular test isn't for that behaviour, though I should *also* have a test for that15:41
mgzI just want to call the apiserver function from a sensible test to make sure it does things, on the off chance the old 1.16 code was being relied on15:41
dimiternif you want to test the branch where a 1.16 fallback code should be run, what I usually do is go in api/client and change the name of the called method (in st.Call(...)) to something else, like adding "1" at the end, so the server will return not implemented15:44
dimiternit's otherwise hard (if not impossible currently) to write a unit test for that15:44
mgzmoo, so, second test probably not possible15:45
dimiternam I making sense?15:45
mgzI'm sure the first is though15:45
mgzit's just like I've added a new api call that's not used anywhere and want to write a test for the server side15:46
mgzdimitern: I'll put up an mp so far, may be clearer15:46
dimiternmgz, looking at the code will help me understand better15:46
rogpeppemgz: you can use Call directly if you need to15:52
dimiternrogpeppe, that's a bit over the edge I think15:53
mgzdimitern: https://codereview.appspot.com/66590043/16:04
dimiternmgz, looking16:06
dimiternmgz, reviewed16:14
mgzmerci16:14
mgzdimitern: responded to comments will have another look at finding a sane test to emulate16:19
dimiternmgz, cheers16:19
natefinchdimitern, mgz: review please?  It's pretty small: https://codereview.appspot.com/66230043/16:30
dimiternnatefinch, looking16:30
wrtpdimitern: i actually think that's ok - it's a public API. we're allowed to use it if others are.16:40
=== wrtp is now known as rogpeppe
* rogpeppe has just sent his laptop off for repair16:41
natefinchrogpeppe: boo.  That sucks.  good luck getting it back quickly16:41
dimiternnatefinch, reviewed16:42
dimiternrogpeppe, what's that?16:42
rogpeppenatefinch: yeah, it's a bummer. i've just got a 2.5" enclosure to see if i can talk to the hard drive from my macbook16:45
rogpeppenatefinch: it may require me running an ubuntu VM, i guess16:46
rogpeppecan't remember what fs type i was using16:46
hazmatrogpeppe, ext4 if you have deafults16:50
rogpeppehazmat: probably16:50
* rogpeppe goes to look for an ext4 fs for macos16:51
hazmatrogpeppe, i wouldn't  bother..  you'll need a linux machine.. a vm might do depending on enclosure type (usb3) and if you can pass it through to the vm.16:51
hazmatrogpeppe, actually it does look like there are some commercial products for ext4 access from osx16:52
rogpeppehazmat: that's actually what i'm doing right now - just upgrading my VMWare installation16:53
rogpeppehazmat: perhaps i can boot the vmware directly off my laptop hard drive16:53
hazmatrogpeppe, if you encrypted your home drive.... things get trickier..16:54
rogpeppehazmat: it's a usb2 enclosure, unencrypted16:54
rogpeppei'm not paranoid  :-)16:54
hazmati'm not either, but i encrypt ;-)16:54
mgzdimitern: pushed up an attempt at some tests, are they sane enough?16:54
rogpeppehazmat: ok, let's just say i'm hopelessly naive :-)16:55
dimiternmgz, will look in a moment16:55
rogpeppedimitern: i'm afraid i'm not going to finish your review today16:57
rogpeppedimitern: i've got to stop a little early today, unfortunately16:57
rogpeppedimitern: i was referring to your "member:rogpeppe, that's a bit over the edge I think" comment about my "just use Call directly" remark16:58
dimiternrogpeppe, no worries16:59
dimiternrogpeppe, i'll have to stop soon as well16:59
* dimitern needs to pack for a 5 am flight this morning16:59
rogpeppe"You have Mac OS X 10.6.8. The application requires Mac OS X 10.7 or later."16:59
rogpeppebugger16:59
dimiternmgz, I'm looking at your CL, could you look at mine? https://codereview.appspot.com/6634004517:00
mgzdimitern: sure thing :)17:00
dimiterncheers :)17:01
mgzdimitern: just looking at Andrew's change that introduced it to see if we're going to be borking anything in reverse, change itself looks fine17:04
mgzah, eg:17:04
dimiternmgz, I also looked and couldn't find a sane reason for the change - ssh does not support -- neither does --17:04
mgz=== modified file 'cmd/juju/debughooks.go'17:04
dimiterns/does --/does scp/17:05
mgz-       args := []string{"--", fmt.Sprintf("sudo /bin/bash -c '%s'", innercmd)}17:05
mgz+       args := []string{fmt.Sprintf("sudo /bin/bash -c '%s'", innercmd)}17:05
mgzdoes that then want reverting?17:05
mgz(looking at `bzr diff -c2116`)17:05
dimiternmgz, I'll try running debug-hooks with the test17:05
mgzthinking about that bit, it's *probably* fine if we got our shell quoting correct17:07
mgzone string, should be quoted and interpreted as a command regardless17:07
mgz=== modified file 'cmd/juju/ssh_test.go'17:08
mgz-               sshArgs + "dummyenv-0.dns\n",17:08
mgz+               sshArgs + "ubuntu@dummyenv-0.dns\n",17:08
mgzer.. not that hunk17:08
mgzbut some later bits, changed to add --17:08
arosales1mgz: fwereade_ you guys available for a sync on the joyent provider17:09
mgz=== modified file 'environs/sshstorage/storage.go'17:09
mgzagain, that change should be fine if we get our quoting right17:10
dimiternarosales1, fwereade_ is not i'm afraid - a bit ill and resting17:10
mgzarosales1: alas, I need to go get a bus in a sec17:10
arosales1fwereade_: ?17:10
mgzarosales1: you may need to rope in dimitern, it's his day of getting roped in :)17:10
arosales1ah dimitern :-)17:10
mgzhave been doing a fair bit with daniele this week, he should be able to report most of it17:11
dimiternarosales1, :) hmm17:11
dimiternarosales1, I have no knowledge on joyent or its progress though17:11
mgzdimitern: utils/ssh/ssh.go has an interesting bit17:12
mgz-       args = append(args, host, "--", command)17:12
mgz+       args = append(args, host)17:12
mgz+       if len(command) > 0 {17:12
mgz+               args = append(args, "--")17:12
mgz+               args = append(args, command...)17:12
mgz+       }17:12
hazmatanyone know which version of juju started using jenv files?18:09
* hazmat thinks it was 1.1618:10
natefinchhazmat: that sounds right, but I don't know for sure18:13
hazmatis there any way in the api to tell which machines are 'dirty'?19:00
hazmatafaicr.. no19:00
hazmatfiled a bug19:07
natefinchhazmat: in the API?  Possibly not19:07
natefinchhazmat: I know we have that information, but not sure if it's exposed.  It should be.19:08
hazmatnatefinch, doesn't appear to be any api for machines outside of create/destroy and sidecar via status19:08
hazmatwell and inject/provisioning  scriptfor manual19:08
natefinchhazmat: I'd love a juju status <machine> that gives more details about the machine19:08
hazmatnatefinch, yeah.. i think that's the intended direction for extended info19:09
=== zz_mwhudson is now known as mwhudson
=== mwhudson is now known as zz_mwhudson
hazmatchris38, btw that go get -u -v launchpad.net/juju-core/.... needs a go install launchpad.net/juju-core/... as well to get the latest binaries.20:46
=== zz_mwhudson is now known as mwhudson
=== andrewsmedina__ is now known as andrewsmedina_
sinzuinatefinch, do you think you will merge this by your morning tomorrow? https://code.launchpad.net/~natefinch/juju-core/034-juju-mongo/+merge/20732022:07
=== cmars` is now known as cmars
=== allenap_ is now known as allenap
=== lazyPower_ is now known as lazyPower
=== hazmat` is now known as hazmat

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