/srv/irclogs.ubuntu.com/2014/03/06/#juju.txt

=== CyberJacob|Away is now known as CyberJacob
=== CyberJacob is now known as CyberJacob|Away
=== CyberJacob|Away is now known as CyberJacob
erkulesIs there a way to manage lxc containers on different hosts? afaik local is on on machine only07:54
=== Tribaal is now known as Tribaal_
dpb1What am I missing here? http://paste.ubuntu.com/7043455/10:48
=== Tribaal_ is now known as Tribaal
gnuoy`Hi I'm using 1.16.5-0ubuntu1~0.IS.12.04 and I cannot coerce juju into honouring machine constraints.11:21
gnuoy`juju add-machine --constraints="cpu-cores=2 mem=5120M root-disk=51200M"11:21
gnuoy`nova show d80fe489-1431-4615-bc86-0f4d0f1af0d4 | grep flavor11:21
gnuoy`| flavor                 | cpu2-ram2-disk50-ephemeral20 (1114)                                               |11:21
davecheneygnuoy`: so it's chosen the flavor based on the root disk size, not the memory ?11:23
gnuoy`davecheney, Hi, I'm only reaslly interested in memory, so I can drop the root-disk and retry11:23
davecheneygnuoy`: that was going to be my suggestion11:24
mgzgnuoy`: I'm looking at something like this atm11:25
mgzgnuoy`: please do retry with just the mem= constraint11:25
gnuoy`It looks like its still given me 2Gb of RAM11:25
gnuoy`mgz, will do11:26
gnuoy`I've got a vague memory of sidnei reporting a bug awhile ago on this but I couldn't find it11:26
davecheneymgz: they aren't order dependent are they ?11:27
davecheneyconstraints, that is11:27
jamespagehazmat, this is the other bug I've seen with 1.17.x11:27
jamespagehttps://bugs.launchpad.net/juju-deployer/+bug/128868511:27
gnuoy`mgz, I have even less memory this time11:28
gnuoy`mgz, http://pastebin.ubuntu.com/7043620/11:29
davecheneygnuoy`: ram1 == 1gb ?11:31
davecheneyram2 == 2gb11:31
davecheneyetc ?11:31
mgzdavecheney: nope, if any are not satisfied it should refuse to start a machine11:31
davecheneymgz: /me strokes beard11:31
davecheneymine, not yours11:31
gnuoy`davecheney, I'll grab you our flavor list for completeness11:31
gnuoy`(we only have 300)11:32
gnuoy`http://pastebin.ubuntu.com/7043635/11:32
davecheneygnuoy`: right, so it shuld create a ram5 machine11:34
gnuoy`thats certainly what I was hoping for.11:35
* davecheney returns to stroking beard11:35
gnuoy`does this flavor decision making process get logged anywhere ?11:36
davecheneynot currently, not in a ssh -vvv way11:39
mgzgnuoy`: think I have your bug11:52
mgzgnuoy`: and a workaround11:53
gnuoy`mgz, like in a "heres a workaround sense" >11:53
gnuoy`\o/11:53
mgztry --constraints="cpu-cores=2 mem=5119M root-disk=51199M"11:53
* gnuoy` does so11:53
gnuoy`mgz, looks like its still giving me 2Gb of ram11:55
gnuoy`cpu2-ram2-disk50-ephemeral2011:55
mgzokay. I may need to give you a binary with some debugging stuff in to run, I can base it on 1.1611:55
mgzthe issue it, add-machine ends up with the work done on the state server11:56
mgzand I guess you don't want a funky version there11:56
mgzcan you repo with `juju bootstrap` in a fresh environment name on the same deployment?11:56
mgzas in pass a reasonable mem constraint there and it bootstraps a random machine with less mem.11:57
mgzas that would be less intrusive for you to test.11:57
gnuoy`mgz, I'll find  a env to work in which is less live11:57
gnuoy`thanks11:58
mgz(this is also likely resolved in some manner on trunk - as constraints on trunk will actually refuse to pick a machine when they don't match)11:58
mgz(so, the bug likely has two parts, one being the constraint not being correctly matched to a flavour for some reason, the other being we boot a machine anyway)11:59
gnuoy`I think that is sensible behaviour fwiw11:59
gnuoy`( the refusing to deploy bit I mean)11:59
mgzgnuoy`: rethunk12:11
* gnuoy` is on tenterwhatever hooks12:12
mgzon that deployment, do `nova --debug flavor-show 1004`12:13
mgzI may need --debug on the flavor-list too, but hopefully now12:13
mgz*not12:13
gnuoy`mgz, you've got it I think12:14
gnuoy`lamont raised a bug about the flavors being inconsistent, let me find it12:15
mgzI think the name of the field we need to look at has changed from "ram"12:16
gnuoy`mgz, https://bugs.launchpad.net/nova/+bug/118325912:17
gnuoy`https://pastebin.canonical.com/106001/12:18
mgzyeah, ram 1 would not be useful12:19
gnuoy`mgz, https://pastebin.canonical.com/106002/12:19
mgzodd that show flat out misses the memory_mb field or whereever the list is getting that value12:22
mgzI'm assuming `nova --debug flavor-list` and picking out the 1004 bit of the real json output would have the 5120 value in some field we don't know to look at12:23
rick_h_jcastro: http://comingsoon.jujucharms.com/sidebar/search/?text=bundle 5 minutes later, but loads your promulgated bundle correctly.13:22
rick_h_jcastro: so you guys can favorite those in manage now to populate the default featured section of the sidebar13:23
gnuoy`mgz, these are the 1004 references I see in nova --debug flavor-list https://pastebin.canonical.com/106020/13:35
mgzgnuoy`: hm, so there we have "ram": 512013:41
gnuoy`err, so we do13:41
mbruzekGood morning #juju.  I have a question about juju hooks and logging.13:43
gnuoy`do flavor list and flavor show >id> don't agree13:43
gnuoy`s/do/so/13:43
mbruzekIs there a way to disable the logging of the relation-set hook logging?13:43
mbruzekA charm contributor asked this question.  He is relation-set(ting) ssh keys and does not want them in the log file.  Is there a way to turn off logging for relation-set in the hooks?13:45
mgzgnuoy`: something very odd seems to be going on13:46
gnuoy`mgz, the flavor list v flavor show is consistent with lamonts bug I think13:46
vilahi there13:47
viladeployment borked with a unit in error state and 'juju resolved <unit>' tells me: ERROR cannot set resolved mode for unit "ppa-postgres/0": already resolved13:47
vilawhat can I try before 'nova delete' (and is that a good idea anyway) ?13:47
mgzit's not a good idea, you can do `juju terminate-machine --force MACHINE_OF_UNIT` though13:48
vilamgz: bingo, thanks, didn't know about that one !13:48
mgzbefore that, you can look at the unit logs of that13:49
mgz`juju ssh ppa-postgres/0` and look in /var/log/juju/13:49
mgzthe unit log should show the resolve, and whatver caused the errors13:49
vilamgz: I did, that was a fallout from a fallout from <you don't want to know>13:49
vilamgz: in a nutshell, fallout from another error on a different unit both errors being unrelated to my current hunt13:50
marcoceppimbruzek: change the verbosity of juju? What charm is it they user is working with?13:51
mbruzekThe HPCC charm author asked me this question.13:52
lamontmgz: the bug is that nova show et al totally ignore the 'deleted' field in the database table13:52
mbruzekCan you set --log-level to OOFF?13:52
mbruzekmarcoceppi, I believe he just wants to not log the ssh key.  How would a hook set the verbosity level of juju?13:53
marcoceppimbruzek: the hook doesn't the user does for the deployment13:53
rick_h_mbruzek: is there a better way to exchange the key that's not logged?13:53
gnuoy`lamont, if nova show is fibbing does that mean the resulting machine might actually be the spec I requested ?13:53
rick_h_mbruzek: can the hook trigger a functoin/call to the other service to fetch it for instance?13:54
* marcoceppi bootstraps and env13:54
mbruzekHe is passing the key on relation-set which seems legitimate to me?13:54
lamontgnuoy`: nova flavor-list| grep 1101 (or whatever) is truth, the other is lies13:54
lamontflavor-list honors deleted, so does boot13:54
* lamont reconfirms that13:54
mbruzekGood ideas rick_h_ I can send him some alternatives like that in an email.13:55
gnuoy`lamont, yes, but if nova show says cpu2-ram2-disk50-ephemeral20 can I be confident the resulting machine really does have 2gb ?13:55
rick_h_mbruzek: yea, I mean I think it's simpler for him to work around than to do things like break logging13:55
mbruzekWell he was just asking if we could turn off logging for a hook or a few commands.13:56
mbruzekBut if this key is used for authentication to the other system I don't know how they could copy it securely without the key, chicken and egg.13:56
mgzlamont: I'm still pretty confused by the behaviour here13:56
marcoceppimbruzek: more than one way to get a file across the system13:57
mgzjuju-core is looking at the "mem" field in the json output from flavors/detail13:57
mbruzekIs there an established pattern for charms to exchange keys that I can read/look at?13:58
mgzbut somehow not matching reasonable looking constraints gnuoy is supplying to a correct flavor13:58
mbruzekDoes anyone know a charm that does this well?13:58
marcoceppimbruzek: everyone uses relation-set/get because that's the purpose of the command13:59
hazmatbut rel get/set could take values from a file to resolve.14:00
marcoceppihazmat: true, or a URL where the file is being served14:00
hazmatmbruzek, there are other charms that do the same fwiw re ssh key pass14:01
mbruzekhazmat, so he has to expose a service to transfer keys?14:01
hazmatmbruzek, huh.. no14:02
lamontgnuoy`: what constraints are you giving it?14:03
marcoceppimbruzek: he he's worried about it, he shouldn't be shipping private keys, and just have a private key per unit and only ship the public key via the relation14:03
mbruzekI would have to look again, but I believe the use case is, if the user provides ssh keys it uses those and passes them to the other units in the cluster.  If no keys exist, the master generates them and passes the keys to the other units in the cluster14:05
gnuoy`lamont, mgz, ok, Juju it the one true light in a sea of lies. It is doing what I ask despite novas best attempts to derail it http://pastebin.ubuntu.com/7044246/14:05
gnuoy`mgz, thanks for looking at it with me.14:05
marcoceppimbruzek: if the user is supplying the keys, it should be via configuration if they want the keys to be on all the units14:06
marcoceppimbruzek: or embeded in the charm itself, in which case no need to distribute14:06
marcoceppimbruzek: I think there are more ways to solve this problem then the route they've chosen, and are unhappy with14:06
mbruzekAll good suggestions, I will write him back.14:06
lamont| flavor                 | cpu2-ram2-disk40-ephemeral20 (1113)                                               |14:06
lamontthe name is a lie, the id is truthg14:07
gnuoy`lamont, what I didn;t realise was that the lies weren't just in  nova flavor-show, but nova show <instance> as well14:07
lamontgnuoy`: the lies are _EVERYWHERE_ except flavor-list and boot14:08
lamontISTR it's a common routine that everyone calls, and boot and flavor-list are different functions14:08
lamontor something like that14:08
mgzokay, so it looks like we've lucked out14:08
mbruzekThanks marcoceppi and rick_h_14:08
mgzflavor-list does not lie, juju only looks at flavor-list14:08
gnuoy`mgz, but I'm a happy customer14:09
gnuoy`juju is doing what I want14:09
lamontgnuoy`: I keep threatening to go do the sql surgery to force the names on the deleted flavors to match the undeleted names, just so that we quit getting wrapped around a pole14:09
mgzso, the name and show of what you get for the machine looks wrong... but you have what you asked for14:09
gnuoy`absolutely, fingers in my ears lalalala14:09
gnuoy`mgz, fwiw juju status reports the correct machine spec14:10
dpb1Hi all -- Is this a known issue? http://paste.ubuntu.com/7043455/14:32
marcoceppidpb1: I think it is, let me check the tracker14:57
dpb1marcoceppi: just found it: https://bugs.launchpad.net/juju-core/+bug/128590114:58
_mup_Bug #1285901: error starting unit upgrader on local provider <local-provider> <lxc> <regression> <juju-core:Fix Committed by wallyworld> <https://launchpad.net/bugs/1285901>14:58
pkis there anyone in here that is familiar with the rabbitmq charm source?15:38
jamespagepk, yes15:41
pkjamespage, I'm getting a permision denied error on the broken hook because there are 2 users, 'nagios' and 'naigos'. I searched the code, and both are present all over the place. Why?15:47
jamespagehmm15:51
jamespagepk, I noticed that - we're just going through a tidy of that codebase and some improvements to active-active HA15:52
=== Ursinha is now known as Ursinha-afk
jamespagepk, do you have the log from the permission denied error?15:59
pkjamespage, I just reset my local environment for the name change. I'll stash and try to reproduce in a minute16:03
=== Ursinha-afk is now known as Ursinha
ghartmannI am planning to buy a new server to have it set up as MASS/juju .. I wonder what would be critical to keep in mind when choosing the parts16:04
ghartmannsorry if here is not the proper channel to discuss this16:04
pkjamespage, after replacing naigos with nagios, I still get permission denied errors on the relation broken. It is possible that this is specific to my codebase16:11
pkHere's the rabbitmq unit log http://pastebin.com/UM0QarW516:11
pkI spun it up, added a relation to my own flask charm, and then destroyed that relation16:11
pkthe charms I'm using are here https://github.com/peterklipfel/firesuit/tree/master/charms16:12
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
marcoceppighartmann: if you're just getting one, that's probably not going to be enough for MAAS unless you're doing virtual maas16:23
noodles775Hi! Does anyone know how a dying-but-error-state service can be killed with juju 1.16.5, which doesn't support the --force option with destroy-service?16:30
noodles775Related to: https://bugs.launchpad.net/juju-core/+bug/116815416:30
_mup_Bug #1168154: Destroying a service in error state fails silently <destroy-service> <juju-core:Triaged> <https://launchpad.net/bugs/1168154>16:30
noodles775But we tried resolving the unit, but apparently it's still in an error state.16:31
marcoceppinoodles775: keep running resolved, hope for the best?16:31
ghartmannmarcoceppi: thanks, I will try reading about virtual maas see if clarifies it a bit for me16:51
pkmarcoceppi, I'm having issues with my hooks. I can stand up the charms without errors, but when I try to relate them, my hooks are not running. However, juju status recognizes them as related. If I destroy the relation, there is a permission denied error. Do you have any thoughts or suggestions?16:58
marcoceppipk: what does your charm look like and what version of juju are you using?16:59
pkmarcoceppi, 1.16.6-precise-amd64 in local mode16:59
marcoceppipk: what does your charm look like? is it published anywhere? I'd like to try on 1.16.6/1.17.4 to replicate the issue17:00
pkand I'm tryint to relate rabbitmq and a flask charm that I wrote. The rabbitmq relation doesn't seem to be running either17:01
FunnyLookinHatjcastro, ping ?17:01
pkmarcoceppi, my charms are here17:02
pkhttps://github.com/peterklipfel/firesuit/tree/master/charms17:02
marcoceppipk: cool, all are having issues?17:02
pkI'm working on rabbitmq + flask right now. I haven't tried storm+rabbitmq yet17:02
marcoceppipk: let me spin up rabbitmq + flask and see if I can replicate this17:03
lazyPower_Hey, I just wrote a blog post on developing Juju Charms on OSX with Vagrant. Incoming screencast as soon as i'm done editing and recording the voiceover: http://blog.dasroot.net/writing-juju-charms-on-osx/17:07
lazyPower_jcastro: ^17:07
pklazyPower, your header is taking up most of the page. It does not change when scrolling http://i.imgur.com/xESQMXP.jpg17:11
pkI'm using chrome on kubuntu 12.0417:12
lazyPower_well thats obnoxious :|17:13
lazyPower_if you reload does it still exhibit the same behavior?17:14
lazyPower_its got a parralax scroll on the header.17:14
pklazyPower, the parallax is present, but the image is still sitting on top of everything except the navbar and the orange circle17:15
marcoceppilazyPower_: does precise-server-cloud-im-juju have the updated kernel?17:15
bloodearnestlazyPower_: that header looks like ansible output to me :)17:16
lazyPower_bloodearnest: ansible coming from a juju charm17:20
lazyPower_marcoceppi: it does17:20
lazyPower_pk: ok, i'll take a look. can i ping you later when i've updated the theme and think i have a fix?17:21
bloodearnestlazyPower_: preach it bro. We use ansible for all our charms17:21
pklazyPower_, sure. I have a meeting at 11, but I'll be back around noon17:23
lazyPower_pk it wont be that soon17:23
lazyPower_my work queue takes priority17:23
=== pk is now known as peterklipfel
peterklipfellazyPower_, absolutely17:26
lazyPower_peterklipfel: chromium or google chrome?17:30
peterklipfellazyPower_, google chrome17:32
lazyPower_ta17:36
mbruzekIs there a way to create an ssh tunnel to a service deployed on juju?17:39
lazyPower_mbruzek: like poor man vpn style?17:39
=== lazyPower_ is now known as lazyPower
mbruzekssh -L 10001:localhost:10001 -L 10002:localhost:10002 <public unit address>17:39
mbruzekI tried juju ssh -L ... and I got an unrecognized -L option17:40
lazyPoweri would think you' want to pull the ip from a juju status listing17:40
lazyPowerinstead of trying to retrofit that into a juju ssh command17:41
mbruzekI used the public IP of the unit.17:41
lazyPoweris it exposed?17:41
mbruzekBut normal ssh does not know where the key is to connect to juju units.17:41
mbruzekIt is .17:41
lazyPoweroh wait, right. ssh is always open17:41
lazyPowerduh17:41
mbruzekNo that is a fine question17:41
lazyPowerwell. i know that juju keeps the keys in ~/.juju/ssh17:42
mbruzekBut when I ran ssh -L 10001:localhost:10001 -L 10002:localhost:10002 10.0.3.11917:42
lazyPowerso maybe add -i ~/.juju/ssh17:42
mbruzekI got:  Permission denied (publickey)_17:42
maxcangood morning17:42
lazyPower~/.juju/ssh/juju_id_rsa  -- rather.17:42
lazyPowermaxcan: buenos dias17:43
maxcanthats one issue we have lazyPower .. juju always opens 22 to the world even if its unnecessary17:43
mbruzekssh -L 10001:localhost:10001 -L 10002:localhost:10002 ubuntu@10.0.3.119  worked for me17:43
mbruzekThanks lazyPower17:43
lazyPowersure! happy to try to help :)17:44
maxcanis rackspace/openstack still unsupported?17:45
lazyPoweryou can use the manual provider...17:45
maxcanhm.. thanks17:46
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
peterklipfelmarcoceppi, have you had a chance to run the flask and rabbitmq charms?18:15
=== CyberJacob is now known as CyberJacob|Away
danobhi all21:56
themonki am trying to deploy in amazon but getting this error: ERROR TLS handshake failed: x509: certificate signed by unknown authority21:59
themonkmarcoceppi: hi22:00
=== CyberJacob|Away is now known as CyberJacob
marcoceppihi themonk, that's an odd error. Is this the same computer that your originally bootstrapped the environment?22:03
marcoceppiwhat version are you running again? 1.17.4?22:03
themonkmarcoceppi: i am in rackspace vm, first bootstrapped for local, now switched to amazon, then tyring to deploy mycharm to amazon22:06
marcoceppithemonk:  and you bootstrapped from that rackspace vm?22:06
themonkmarcoceppi: yes22:06
marcoceppithemonk: so, what it sounds like is the cert that was created for the bootstrapping process isn't being loaded properly. While I've never seen this error before, I suspect that's what's going on. Could you run deploy again with --show-log --debug and pastebin the output?22:07
themonkmarcoceppi: ok :)22:08
themonkmarcoceppi: mu juju is 1.1622:08
marcoceppithemonk: ah, I've been using 1.17 for so long I'm not sure if this is a known bug or not. What version exactly are you on (`juju version`)22:08
themonkmarcoceppi: 1.16.6-saucy-amd6422:09
marcoceppithemonk: cool, that's the latest22:09
marcoceppiwell, not cool, sorry you're running in to this22:09
themonkmarcoceppi: i want to ugrade in 1.17.422:10
themonkmarcoceppi: will i stay with this version?22:10
themonkmarcoceppi: i mean 1.16.6-saucy-amd64?22:11
marcoceppithemonk: well, lets get the debug output first. If you're putting things in production right now I recommend staying on 1.16 as we dont' really guarentee upgrade paths for devel releases22:11
themonkmarcoceppi: ok :)22:12
marcoceppiif you're just playing around and can wait a few weeks, when 1.18 is released, then I'd recommend using 1.17 since it's got a lot more features22:12
themonkmarcoceppi: no i am creating a production charm22:17
marcoceppithemonk: cool, so 1.EVEN releases are our stable releases, and 1.ODD are considered development. So 1.16.6 is current stable, 1.18.0 is next stable release due out soonish22:18
themonkmarcoceppi: my charm is created but now i need amazon deployment22:18
marcoceppithemonk: so, run the deploy command with --show-log and --debug flags and pastebin the output, see if I can't help you get this unblocked22:18
themonkmarcoceppi: cool :) i am looking forward to 1.18 stable22:19
marcoceppithemonk: me too, the core team has been fixing a lot of bugs and creating a ton of cool features22:19
themonkmarcoceppi: running this $juju deploy --show-log --debug --repository=localcharms local:precise/mycharm22:21
themonkmarcoceppi: http://pastebin.com/x1n6wvtb22:32
marcoceppithumper, since I saw you rumbling around earlier, andy idea bout this TLS handshake failed: x509: certificate signed by unknown authority ?22:33
marcoceppithemonk: the only advice I have at this point is to destroy the environment and bootstrap again, see if it persists22:33
themonkmarcoceppi: there is a x.509 section in amazon security credential page22:33
sarnoldthat dumped the admin secret?22:33
sarnoldwhat access does the admin secret get you?22:34
marcoceppisarnold: ugh, it gives you access to the juju bootstrap API22:34
sarnoldthat thing also dumps the RSA private key?22:34
sarnold.. and "secret-key", I'm also curious about that..22:34
marcoceppisarnold: yeah, each bootstrap generates a new ca cert22:35
marcoceppioh shit22:35
marcoceppithemonk: I'm going to PM you in a second22:35
sarnoldmarcoceppi: will you file bug report or would you like me to file it?22:35
themonkmarcoceppi: ok22:36
marcoceppisarnold: well I want to go poke someone with a sharp stick first, then file a bug22:36
* sarnold hands marcoceppi his stick sharpener22:37
sarnoldmarcoceppi: thanks :)22:37
thumpermarcoceppi: no, sorry22:38
marcoceppithumper: also, is --debug or --show-log dropping the jenv file to console?22:39
thumper--debug by the look of it22:39
marcoceppis/dropping/outputing/22:39
marcoceppithumper: is --debug even relavent or should I have people just run --show-log ?22:39
thumperby default, --show-log just shows the log, not change the logging setting22:40
thumper--debug == "--show-log --logging-config=juju=DEBUG"22:40
marcoceppithumper: so, DEBUG probably shouldn't dump sensative information to terminal, or else that's going to make helping people troubleshoot a lot harder22:41
* thumper nods22:41
marcoceppiI mean, I understand dumping the jenv file22:41
marcoceppito verify settings, but either a scrubbing or something else22:41
* marcoceppi files22:41
thumperthere is no version shown there22:42
marcoceppioh,t hat would probably be a lot more useful22:42
marcoceppithumper: this is 1.16.6 though22:42
thumperok, still not sure about the tls handshake error though22:43
marcoceppithumper: ack, I've told themonk to change his credentials then to just try to teardown/rebootstrap22:43
* thumper nods22:43
themonkmarcoceppi: i did not sow that my amazon secret was printed i have deleted those keys. yes juju should not dump those :)22:47
themonkmarcoceppi: trying again22:56
themonkmarcoceppi: ERROR The AWS Access Key Id you provided does not exist in our records. i inserted new keys22:59
themonkmarcoceppi: if old env fole is present in here .juju/environments/amazon.jenv then it gives this ERROR The AWS Access Key Id you provided does not exist in our records. after removing that file it bootstrapped23:06
=== dannf` is now known as dannf

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