/srv/irclogs.ubuntu.com/2014/01/20/#juju.txt

=== timrc-afk is now known as timrc
=== CyberJacob is now known as CyberJacob|Away
joselazypower: hey, thanks for reviewing! I was checking and don't see a MP on the branch atm06:44
joseoh, there we go06:51
lazypowerYeah, I was still composing :)07:09
lazypowerThere's a few things I had to do to bring it up to spec for continued review, most of which was mentioned previously by Ben07:09
lazypowerIf you like i can include those in the MP for you to use as a baseline for the fixes07:10
joselazypower: what are those? I can try and fix them now07:12
jose(already merged the branch)07:12
lazypowerin config-changed you compare using =! instead of -n07:14
lazypowerit should read if [ -n "$SSL" ]; then07:14
josefixed that07:14
jose(fixed everything that's on the comment already)07:14
lazypowerand your PWDIR variable is unbound07:14
lazypowerah then you should be up to snuff for the charm-run completing, just validate the intent is being performed :)07:14
joselemme check then :)07:15
lazypowerI'm going to head out and get some sleep. I'll be around closer to 9AM EST for a review update if its ready07:16
josesure, I should be pushing in a minute :)07:17
=== CyberJacob|Away is now known as CyberJacob
noodles775rogpeppe: Hi there. RE you question last Friday, yes requests is a python library you'd need to install. Sorry, I didn't mention that in my paste. I saw you were able to repro the issue in the end though...(with the other persons steps). Great!09:59
rogpeppenoodles775: the issue should be fixed in trunk now10:00
noodles775woot :)10:00
=== timrc is now known as timrc-afk
eagles0513875_hey all :)10:29
eagles0513875_hey fwereade10:29
eagles0513875_fwereade: are you around?10:38
fwereadeeagles0513875_, yeah, but meeting in a mo10:38
eagles0513875_fwereade: ok hit me up when you return then it can wait.10:38
fwereadeeagles0513875_, better to ask10:39
eagles0513875_fwereade: just a quick question for using lxc containers or using juju on my vas i need to use manual provisioning right10:39
fwereadeeagles0513875_, I might see and answer, so might someone else10:39
fwereadeeagles0513875_, those are different things really -- you can experiment locally with lxc/kvm in the local provider, you can experiment on arbitrary machines with manual provisioning10:40
eagles0513875_ok fwereade but is it going to be a bit tricky though to ensure that even though I'm using manual provisioning that it won't spawn another instance?10:41
eagles0513875_or want to spawn another instance10:41
fwereadeeagles0513875_, if you're using a manual environment juju never provisions any other instances itself10:46
fwereadeeagles0513875_, you have to add-machine them manually10:46
eagles0513875_fwereade: ahh ok10:46
eagles0513875_so basically if i need to deploy another instance of lets say wordpress on a different vps i would need to add the machine but then would it ask me which machine I would like to put it on?10:47
=== timrc-afk is now known as timrc
fwereadeeagles0513875_, if you care in detail about placement, you should probably specify it by hand with --to10:48
fwereadeeagles0513875_, otherwise we'll put new units onto clean empty machines hat match the service/environment constraints10:49
eagles0513875_got it10:49
eagles0513875_fwereade: it should i think allow you to specify which machine you want to deploy it on even if you already have an instance on it10:50
eagles0513875_hey all is it possible to install juju on debian?10:59
jamespagemarcoceppi, not having 'default' config is no longer acceptable?11:02
fwereadeeagles0513875_, there's a --to param for deploy/add-unit11:03
eagles0513875_fwereade: ?11:03
eagles0513875_oh ok11:03
fwereadeeagles0513875_, that's how you specify what machine to deploy a unit to11:03
eagles0513875_ahh ok11:03
bloodearnestheya all, finally figured out my local lxc issuesm in case anyones interested: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/120508611:04
eagles0513875_fwereade: you can't really do that from the web interface can you11:04
_mup_Bug #1205086: lxc-net dnsmasq --strict-order breaks dns for lxc non-recursive nameserver <libvirt (Ubuntu):Expired> <lxc (Ubuntu):Expired> <https://launchpad.net/bugs/1205086>11:04
eagles0513875_fwereade: also is it possible to work with juju on debian11:04
fwereadeeagles0513875_, yeah, I don't think that's exposed there11:04
eagles0513875_fwereade: which is a shame tbh11:04
fwereadeeagles0513875_, work on machines in the gui is ongoing11:04
eagles0513875_everything you do on the command line imho should be exposed and usable on the web interface11:04
fwereadeeagles0513875_, they're separate projects, they don't completely lockstep11:05
eagles0513875_btw fwereade  sorry if I'm interrupting your meeting11:05
fwereadeeagles0513875_, but yeah I understand that position and generally support it ;)11:05
eagles0513875_fwereade: what would be interesting to see is if juju would become platform agnostic meaning will work on debian or ubuntu11:05
fwereadeeagles0513875_, depends which bits tbh11:05
fwereadeeagles0513875_, you can currently only deploy to ubuntu, but can deploy *from* from win/mac as well11:06
fwereadeeagles0513875_, you never know, the `juju` binary might just work unmodified on debian11:06
eagles0513875_fwereade: what the person I'm talking to is interested in knowing is if we can deploy stuff to debian based machines.11:11
eagles0513875_it would be great if that could be done11:11
eagles0513875_tbh11:11
fwereadeeagles0513875_, it can surely be done, but not without some work11:12
eagles0513875_fwereade: would be  more then willing to help out with that but i guess i should get familiar with the code first11:12
eagles0513875fwereade: what would be the best and first steps to get things goign with contributing plus working towards joining your team11:32
fwereadeeagles0513875_, I would start by dpeloying an environment and fiddling with the charm11:33
eagles0513875fwereade: regarding the above as i just saw this would you recommend I do it with the local provider?12:29
eagles0513875fwereade: out of curiosity to get juju to work on an ubuntu private cloud12:30
eagles0513875ubuntu server would need to be setup as MAAS right12:30
eagles0513875fwereade: i think there is an issue with the documentation for the local provider12:36
eagles0513875getting an error when i try to bootstrap to the local provider about an ssh key12:36
eagles0513875and there in the documentation there is no mention of generating an ssh key there12:37
eagles0513875fwereade: https://juju.ubuntu.com/docs/config-LXC.html12:37
fwereadeeagles0513875, https://juju.ubuntu.com/docs/ has it right at the top12:51
fwereadeeagles0513875, but fwiw the trunk version generates one for you if it can't find one12:51
eagles0513875in terms of the juju site where would i file a suggestion12:52
eagles0513875getting started the way it is i wouldnt think to click it as it seems to be a section name for the menu12:52
eagles0513875i would put getting started as a first menu12:53
eagles0513875fwereade: brb12:53
marcoceppijamespage: yes, if you want a "null" default just use a empty string `default: ""`13:17
marcoceppijamespage: It's a W so it's not a critical Juju error, but rather it affects juju tools (ie: GUI, deployer, etc)13:17
* marcoceppi should document what each level of error is for proof13:17
jamespagemarcoceppi, that does not work13:43
jamespage"" != None with config-get --format=json13:43
jamespagemarcoceppi, btw do you have a mysql charm for trusty yet? we're still using a butchered one in the openstack test lab13:47
eagles0513875fwereade: i find it a bit strange if one is using a local provider an SSH key is required14:05
eagles0513875fwereade: it make sense if you are testing on a remote server but in my case i am not14:06
eagles0513875i guess it should be presented as an option to the user when setting up the local provider14:06
eagles0513875hey guys is it possible if im running the local provider on my laptop to bypass the need for ssh keys14:28
fwereadeeagles0513875, it's not really -- every difference between the local provider and the others is a source of potential nastiness, and adding a special case to allow people not to use ssh isn't worth it14:36
fwereadeeagles0513875, is there a problem with just running ssh-keygen, or setting authorized-keys[-path] directly?14:37
eagles0513875fwereade: non no i just find it a bit useless if im running the local provider on the same laptop im on now14:37
eagles0513875here is the use case im thinking of14:37
eagles0513875fwereade: what im trying to get at is why not provide users the ability if they are using the local provider to use local host which doesntn require ssh14:38
eagles0513875and if they want to use the local provider obviously they would need ssh there14:38
fwereadeeagles0513875, because you're not sshing tolocalhost? you're sshing to the containers14:38
eagles0513875ahhh ok14:39
eagles0513875that isnt that clear in the documentation14:39
fwereadeeagles0513875, "you need a keypair" is pretty clear, I think14:39
eagles0513875sorry for the confusion14:39
fwereadeeagles0513875, no worries :)14:39
eagles0513875fwereade: what isnt clear is what its used for. it just says generate a key pair14:39
=== freeflying is now known as freeflying_away
fwereadeeagles0513875, the reasons could be better explained, but IMO that's not really appropriate for step-0 introduction14:40
eagles0513875just have to figure out a way to keep my production private key seperate from the one im going to be generated14:40
fwereadeeagles0513875, what's the concern there?14:40
eagles0513875with the id_rsa file be appended to?14:41
fwereadeeagles0513875, I don't follow -- you have a private key set up already but haven't got the public key there?14:41
eagles0513875i think my mind is just out to confuse me today14:41
fwereadeeagles0513875, is it that you have id_rsa in ~/.ssh, but not id_rsa.pub14:42
fwereade?14:42
eagles0513875fwereade: correct14:42
fwereadeeagles0513875, hmm, why would you do that?14:42
eagles0513875fwereade: i have my private key in there so when i ssh into the vps's i have in production i just have to give the key's password14:43
fwereadeeagles0513875, sure, but where do you get the public key from when you're setting up one of those machines?14:43
eagles0513875i have the public key saved in a secure location so i then upload it to the server14:43
fwereadeeagles0513875, it's the public key14:44
fwereadeeagles0513875, you can hand it out willy-nilly14:44
eagles0513875fwereade: ok i have my mind in knots today lol14:44
fwereadeeagles0513875, it's the private key you need to take care of ;p14:44
eagles0513875id_rsa the private key14:44
fwereadeeagles0513875, yeah14:44
eagles0513875ok14:44
eagles0513875i have one of those already in there the public key is on the servers14:44
eagles0513875if i generate another one will it apend the new private key to the already existing id_rsa14:45
fwereadeeagles0513875, no, I would recommend sshing into one of your servers and extracting your pubkey from authorized_keys14:45
fwereadeeagles0513875, I don't think it's very meaningful to have a private key appended to another?14:46
eagles0513875fwereade: ok i have both my public and private key pair for my prodcution servers in a secure location14:48
eagles0513875let me see what happens14:48
fwereadeeagles0513875, so you've got an id_rsa.pub right next to the matching id_rsa now? cool14:48
eagles0513875ya14:49
fwereadeeagles0513875, note: first time you spin up a local provider will take a long time14:49
eagles0513875fwereade: whats not making much sense for me is that with out it and just the private key on my laptop ssh keys work fine im just trying to understand why i should have the .pub key there14:49
eagles0513875especially if i have two private keys in .ssh14:49
fwereadeeagles0513875, I can't see a reason offhand *not* to keep your public key alongside your private one14:50
eagles0513875fwereade: i dunno why im worrying it gives you a default but also allows you to specify a different file name for the private key when generating14:50
eagles0513875good point14:50
eagles0513875also fwereade14:51
eagles0513875im an idiot lol14:52
eagles0513875i didnt notice the path when generating the key from within .juju is that it creates the pair in .juju14:52
eagles0513875and not in .ssh14:52
fwereadeeagles0513875, oh, did we already release a version that creates a keypair?14:52
eagles0513875fwereade: seems like it14:52
fwereadeeagles0513875, hmm, in that case we ought to be using it14:53
eagles0513875fwereade: its 1.1614:53
* fwereade grumbles a bit14:53
eagles0513875fwereade: Installed: 1.16.5-0ubuntu1~ubuntu13.10.1~juju114:53
eagles0513875thats whats showing up in my apt-cache policy14:53
eagles0513875fwereade: probably because im using the ppa14:53
fwereadeeagles0513875, weird, I'm sure that was before we added that, let me take a look14:53
eagles0513875and installed from the ppa instead of directly from the repo14:53
eagles0513875anyway i gave it a name to differentiate between the two anyway if it did land in .ssh14:53
fwereadeeagles0513875, just a mo, what did you do? didn't you just get the pubkey from your servers?14:54
eagles0513875fwereade: no no i was just worried of the key being overwritten when i generated the key for the juju local provider14:55
fwereadeeagles0513875, sure, I'm just wondering why you'd need to generate a new one when you have one already14:56
eagles0513875good point just like keeping my testing and production stuff seperate14:56
eagles0513875fwereade: there is something missing in the documentation14:58
eagles0513875fwereade: do i need to add the pub key to the environments.yaml file for local cuz im getting this error ERROR error parsing environment "local": no public ssh keys found14:59
fwereadeeagles0513875, please tell me exactly what you did15:00
eagles0513875sudo juju bootstrap15:00
eagles0513875it doesnt seem to pick up the keys15:00
fwereadeno, what you did to your ssh setup15:00
eagles0513875fwereade: for juju15:00
eagles0513875fwereade: when generating the keypair should it end up in .juju if you dont use the default path to .ssh15:02
fwereadeeagles0513875, AFAICT you should not be generating a keypair at all15:03
eagles0513875ok15:03
fwereadeeagles0513875, you should have got your pubkey and saved it in ~/.ssh/id_rsa.pub15:03
eagles0513875ok15:03
eagles0513875fwereade: when one learns to untangle their complex mind setting up juju as the local provider is very very simple15:09
lazypowerI managed to remove my lbox authentication from launchpad in haste, and I'm not positive where it caches its copy of the oauth token. Can someone point me where I need to look to clear its cached authorization?15:10
fwereadelazypower, I think it's ~/.lpad_oauth?15:11
fwereadeeagles0513875, glad it worked out -- I hadn't considered the private-key-only situation15:11
lazypowerthat was it, thank you15:11
fwereadelazypower, yw15:11
eagles0513875fwereade: should i file something on launchpad15:12
fwereadeeagles0513875, yes please, that would be very helpful15:12
eagles0513875fwereade: under juju core?15:12
fwereadeeagles0513875, please15:12
eagles0513875ok fwereade also any bugs i can help or work on in terms of fixing?15:12
eagles0513875fwereade: should i run a test on what we just discussed15:16
eagles0513875and maybe its something i could be mentored in fixing15:16
eagles0513875fwereade: if you are interested in following this bug https://bugs.launchpad.net/juju-core/+bug/127085815:16
_mup_Bug #1270858: possibility of .ssh not having a public key with the private key <juju-core:New> <https://launchpad.net/bugs/1270858>15:17
fwereadeeagles0513875, so, I think the fix is to scan for files with/without .pub suffixes, ignore the ones that don't, and complain about the lack of a keypair (rather than just of a public key)15:18
eagles0513875fwereade: wouldnt it be good i test with out having the public key first15:18
eagles0513875to see if it works or does not work cuz right now the issue i filed seems rather vague and not useful15:18
lazypowerfwereade, if lbox fails to propose due to a non existant [branch|repository] is this a sign of a larger problem?15:19
fwereadeeagles0513875, well, the ideal bug report is generally along the lines of "what I did; what I expected; what actually happened"15:19
eagles0513875fwereade: ok will get more information when i relocate for my ccna class15:20
fwereadelazypower, hmm, nothing really springs to mind there15:20
eagles0513875anyway im out for now just deploying wordpress to try things out :)15:20
fwereadelazypower, is it saying the source or the target doesn't exist?15:21
eagles0513875fwereade: i have any idea for a really good charm setup. how can I see lets say what the apache charm installs for the web server as apache has about 4 different versions15:21
lazypowerfwereade, http://paste.ubuntu.com/6786390/15:21
lazypowereagles0513875, that would be in the install hook of the charm you're looking at.15:22
fwereadelazypower, hmm, I'm not completely sure there -- marcoceppi, have you ever seen that?15:22
fwereadeeagles0513875, lazypower: or more generally inferrable from a variety of hooks, and/or from the config file15:22
eagles0513875ok15:22
lazypowerFair enough :)15:23
eagles0513875fwereade: lazypower not to but in here but could it be the directory /charms/ was moved and the path you are looking for doesnt exist anymore15:23
fwereadeeagles0513875, lazypower: several charms let you choose  different versions to run15:23
lazypowerIts complaining about the remote. My charm is still here locally, but i believe its trying to push to the wrong remote.15:24
eagles0513875lazypower: check which branch you are on15:24
fwereadelazypower, hmm, should you be pushing to ~lazypower/charms/mediawiki/trunk perhaps?15:24
lazypoweryeah, i've got an open MP that I was trying to get on codereview15:25
fwereademarcoceppi, do yu have an immediate answer for lazypower by any chance?15:25
lazypowerthats why i include the parent branch in the config, and i think marco is afk for now.15:25
lazypowers/config/output listing on pastebin15:25
eagles0513875fwereade: i have some enhancement suggestions but will need to discuss those with you when i return15:25
fwereadelazypower, ah, hold on, surely you just need to push to that branch before you first lbox propose -- right?15:27
lazypowerfwereade, https://code.launchpad.net/~lazypower/charms/precise/mediawiki/tests15:27
lazypowerah ok, now i've got additional legwork. My MP branch and local copy have diverged15:29
fwereadelazypower, ok, that's pretty unambiguous :)15:29
lazypowersarcasm? :)15:29
lazypowerand i apologize for my ineptness, i'm still getting comfortable with the toolchain15:30
fwereadelazypower, no, not at all, the existence of your branch is 100% clear15:30
fwereadeeagles0513875, if I was digging at anyone it was myself ;)15:30
lazypowerhaha15:31
fwereadelazypower, er^15:31
lazypowerYou get my seal of approval gustavo15:31
fwereadelazypower, I'm not gustavo, but I do observe that your error message doesn't include the "precise" I'd expect15:31
niemeyerlazypower: Heya15:31
fwereadelazypower, and I was just about to direct you towards the man himself :)15:32
lazypowerO_O15:32
niemeyerlazypower: Thanks, I suppose :)15:32
lazypowermind=blown15:32
lazypoweri ran across a post somewhere from you that referenced gustavo and made the mental note it was you... whooops!15:32
lazypowerclearly i need to go back downstairs and not return until i've finished my first cup of coffee15:33
lazypowerniemeyer, gustavo i presume?15:34
* marcoceppi reads scroll back fwereade lazypower15:38
marcoceppilazypower fwereade use the -for flag15:39
marcoceppilazypower:  lbox propose -cr -for lp:charms/mediawiki15:39
lazypowermarcoceppi, lbox propose -for lp:~blah blah15:39
niemeyerlazypower: Yeah :)15:39
lazypowerooohh15:39
lazypowerand good morning15:40
* marcoceppi still has reservations about using lbox for charm reviews, but those are on hold15:40
fwereadehuh, I hadn't read that paste as a problem with the target15:40
marcoceppilazypower: can you run bzr info as well?15:41
joselazypower: hey, got to fix the postfix charm15:41
marcoceppifwereade: I re-read it looks like it's trying to push to lp:~lazypower/charms/mediawiki instead, so maybe the -for flag isn't the issue15:42
marcoceppimaybe he doesn't have a push branch in bzr yet?15:42
lazypowerjose, great news. Did you put it back in the rev queue? I'll fish it out after i've solved my lbox issue.15:43
joselazypower: yeppers! marked it as new15:43
lazypowermarcoceppi, http://paste.ubuntu.com/6786495/15:43
marcoceppilazypower: okay, looks good to me. did the -for flag fix this? If not just do `bzr lp-propose lp:charms/mediawiki` and we'll look at lbox for charm reviews tomorrow15:44
lazypowermarcoceppi, i'm working on getting my branch undiverged from whats open as the MP - one moment. Reading up on bzr15:45
eagles0513875fwereade: will ping you veyr soonn15:46
eagles0513875i have some nutty but useful ideas :)15:46
eagles0513875hey fwereade im back16:10
teknicohi all, got a problem with 1.17 and MAAS, br0 isn't being brought up by Juju when adding a new MAAS machine16:28
marcoceppiteknico: is the juju agent running on these new machines though?16:44
teknicomarcoceppi, at the end I got this: https://pastebin.canonical.com/103229/16:54
marcoceppiteknico: is that from cloud-init log?16:57
teknicomarcoceppi, nope, it's the end of the output from trying to start the container manually with "sudo lxc-start --name juju-machine-1-lxc-0"17:00
teknicoin the log there was nothing more than the original error itself17:01
teknicowhich was: agent-state-info: '(error: error executing "lxc-start": command get_init_pid failed to receive response)'17:01
teknicowhich in turn was caused by br0 missing, at least according to bbcmicrocomputer :-)17:02
marcoceppiteknico: makes sense, can you paste the cloud-init log file?17:03
marcoceppiit should be done during lxc install tbh17:03
teknicomarcoceppi, the whole of cloud-init.log? it's 45KB, it'll take a while pasting it :-)17:05
dpb1marcoceppi: I had a question on that swap charm before I proceed with fixing the review feedback.  You want me to document config options in the readme *and* in the config.yaml?  Seems like I would just be cut-and-pasting descriptions?  Or am I missing what I should be doing there?18:07
marcoceppidpb1: config.yaml should have a brief description, readme should have a more detailed explaination as to what the config options does and provide example values18:33
dpb1marcoceppi: OK18:37
dpb1thx18:37
=== zz_mwhudson is now known as mwhudson
=== mwhudson is now known as zz_mwhudson
=== zz_mwhudson is now known as mwhudson
dpb1marcoceppi: in amulet, how do I make use of an existing deployer file?19:52
mgzdpb1: you can load a deployer config in your script19:53
mgzit's something like... sec19:53
dpb1mgz... thx.19:53
* dpb1 waits19:53
mgzd = amulet.Deployment()19:54
mgzwith open(path):19:54
mgz  script = yaml.safe_load(f.read) # as f above, whoops19:55
mgzd.load(script)19:55
mgzd.setup()19:55
mgzdpb1: hope that helps19:55
dpb1mgz: thx, trying now19:59
joselazypower: hey, did you get to review the charm?20:54
lazypowerjose: I did not, i was sidetracked upvoting on askubuntu and their rowdy crowd. Let me promote this in my queue and have a look20:57
lazypowerapologies for not getting to it sooner20:58
josesure :)20:58
joseno worries20:58
lazypowerGreat work on the revisions jose, I'm going to add my +1 to this charm and place it in another charmers rev queue21:53
joseawesome, thanks!21:54
lazypowerhey thats good info to have handy mgz, that loads a deployment yaml, ergo a bundle, into amulet?21:59
marcoceppilazypower: yeah, if you have a deployer file already in your tests dir, you can bypass all the d.add() stuff and just do d.load()22:05
lazypoweramazingness22:05
josehey marcoceppi, if you could also take a look at the postfix charm it'd be great22:05
josethere you pop up :P22:05
lazypowerI'm writing up my +1 review right now, give me another 5 and i'll have it complete22:05
josecool!22:06
marcoceppijose: technically a day off today, I'll be in th queue still since lazypower is +1 reviewing it as a "jr charmer"22:06
marcoceppiso someone from ~charmers will cycle on to it sometime this week22:06
josecool thanks!22:06
lazypowerDoes juju/maas use a special configuration for DHCP IP Assignment? I know that the local provider allows me to assign a network interface in the environments.yaml if i've opted into configuring my own bridge device.22:48
marcoceppilazypower: maas has it's own DHCP server22:54
=== freeflying_away is now known as freeflying
=== timrc is now known as timrc-afk

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