/srv/irclogs.ubuntu.com/2013/08/29/#juju.txt

weblifesarnold: looks like you were right.  It was the socket.  HAdn't opened yet00:06
sarnoldweblife: I wonder if there's a good / lightweight way to wait until a socket is opened..00:07
sarnoldideally, 'service' wouldn't return until the mongo server is actually running. but if it daemonizes, the child will return very nearly immediately, and the grandchild may not yet be ready..00:08
weblifeI just seperated it into its own function and threw it a little later in the install hook.  I am sure there is something else I could do but I am good with throwing the function later00:09
weblifeThis charm inits a mongodb instance of its own if there is no waiting instance.  Now i can focus on exporting the database if a mongodb instance is added.00:13
jrwrenjuju destroy-environment is my favorite command :)  it reminds me of kill -9 101:00
sarnoldhehe :)01:01
davecheneygary_poster: thank you thank you thank you for juju-gui-7401:32
jrwrentrying this: https://juju.ubuntu.com/get-started/local/01:55
jrwrenjuju is trying to connect to lcoal mongo on 37017 but mongo is listening on 27017 where is the right place to change it?01:55
thumperjrwren: which version are you using? 1.12? or 1.13.2?02:01
thumperjrwren: also, do you have root-dir specified in environments.yaml for the local provider?  if you do, comment it out02:02
thumperknown bug fixed in the dev version02:02
thumpersudo juju destroy-environment02:03
thumperand try again02:03
jrwren1.1202:13
jrwrenno root-dir set02:13
jrwreni just changed mongodb.conf to listen on 37017 now bootstrap just hangs at opening state mongo.02:13
jrwreni don't get connection failed messages like I did before though :(02:14
jrwrenoh... juju-db-$USER-local service.02:15
jrwrenapparently I was impatient on waiting for mongo local to start02:20
thumperjrwren: I found on my SSD, mongodb starts up in about 2 seconds03:13
thumperbut on another's normal laptop, took upto 30s03:13
thumperI was killing the bootstrap thinking it was a bug and hung03:13
thumperbut no...03:13
sarnold30s! ouch.03:18
hazmatthumper, this is with no prealloc option?03:41
thumperhazmat: NFI04:03
davecheneythumper: hazmat we found the same thing on azure04:09
davecheneyhazmat: we arelady use no-prealloc04:10
davecheneymaybe we're doing it wrong04:10
* davecheney reaises an issue04:10
* davecheney lags04:10
davecheneyhttps://bugs.launchpad.net/juju-core/+bug/121817604:12
_mup_Bug #1218176: cmd/jujud: bootstrap may not properly configured mongodb to avoid preallocation <juju-core:Triaged> <https://launchpad.net/bugs/1218176>04:12
kvtdavecheney azure has pretty slow disks.. possibly we also need --smallfiles04:32
davecheneykvt: the idea is it shouldn't allocate anything04:32
davecheneyjust move the file pointer to the end of the file, write a zero, and close the file04:33
davecheneyi'd be quite confident that this is (yet another) mongo bug04:33
kvtdavecheney possibly but i think it does need both04:35
kvtdavecheney prealloc is against db file stores (if the fs supports it will do sparse allocation)04:35
kvtthe smallfiles also adjusts the journal file size04:35
davecheneykvt: it's your bug if you want it04:35
davecheneyi was going to flick it to my friends at 10gen and ask for advice04:35
* kvt makes some notes04:36
kvthmm.. from the bug it looks like we're already passing smallfiles04:37
davecheneyyes04:55
davecheneyi wonder if they are mutually exclusive04:55
=== jam1 is now known as jam
=== thumper is now known as thumper-dinner
melmoth__anyone understand what does the hacluster's charm's corosync_pcm_ver is for ?05:51
melmoth__the install hook does not seems to change the way in install things, just the way it start them based on the value of this conf05:51
=== rogpeppe1 is now known as rogpeppe
=== defunctzombie_zz is now known as defunctzombie
=== thumper-dinner is now known as thumper
=== defunctzombie is now known as defunctzombie_zz
=== defunctzombie_zz is now known as defunctzombie
=== defunctzombie is now known as defunctzombie_zz
=== thumper is now known as thumper-afk
jaywinkhi, just installed stable juju-core, signed up to aws and bootstrapped. It didn't give any errors and I can see a running instance with AWS console. juju status however says nothing there. But new bootstrap attempt says there is an instance, see: http://pastebin.com/c8S7sfTD08:53
jaywinkany ideas?08:53
noodles775jaywink: That sounds like the bootstrap instance hasn't gotten to the correct state. Does the AWS console tell you that everything is fine with the instance?09:10
noodles775jaywink: either way, a more consistent error message there would be helpful. I'll create a bug for it, unless you're already doing so?09:11
jaywinkyeah afaik, first time with juju. same happened with local, bootstrap went fine, then said no instances.. unfortunately the verbose flag didn't bring any more errors than was in the pastebin09:12
jaywinkI ended up already resetting everything and upgrading to devel ppa and now everything works, locally at least09:12
jaywinkso not quite sure what to say in a bug :( should have initially bootstrapped the amazon instance with -v I guess09:13
noodles775jaywink: heh, sorry - I meant that juju providing a more consistent error message would be helpful :)09:15
=== defunctzombie_zz is now known as defunctzombie
jaywinknoodles775, there is this, after I upgraded, before I did an rm -rf .juju and terminated the AWS instance, I ran juju stat: http://pastebin.com/eYWK9SqR .. should I file that as a bug?09:17
noodles775jaywink: I wouldn't think so - it looks like there's confusion over what environment (ec2) you're bootstrapped with. The earlier issue you had in stable is more worrying to me. I'll install stable and see if I can reproduce.09:20
mgzjaywink, noodles775: if bootstrap gives you an instance, but juju doesn't work, it's worth checking the console log/sshing in and looking at /var/log to find the underlying issue09:22
jaywinkmgz, sorry, terminated the instance already - was a bit hasty I know .. :(09:22
noodles775mgz: here's what jaywink pasted before you joined: http://pastebin.com/c8S7sfTD09:24
=== defunctzombie is now known as defunctzombie_zz
noodles775jaywink: actually, your last paste confuses me a bit. It looks like you'd first had the old (python version) of juju installed (0.7), which isn't what you should have had from stable?09:27
noodles775jaywink: Now you should have the new version (juju-core), but I think you'll find that removing the dev PPA and just installing 'juju-core' with from stable should work (https://juju.ubuntu.com/docs/getting-started.html )09:28
mgzthanks noodles77509:29
jaywinkhmm good point, it's possible I installed some version long time ago without trying it - is juju-core a new package after that?09:29
noodles775jaywink: Yeah, you need juju-core instead of juju (confusing I know :/ ).09:30
jaywinkok sorry guys for taking your time, should have cleaned up :) I wonder though when I activated juju/stable repo juju wasn't updated, but when I hit devel ppa it was updated09:30
jaywinkcould have been me though, I followed the tutorial and run update && install as there .. I guess a dist-upgrade should have been done too09:31
noodles775jaywink: which tutorial? It may need updating (if it asked you to do 'apt-get install juju' instead of 'apt-get install juju-core'.09:32
noodles775jaywink: https://juju.ubuntu.com/docs/getting-started.html has the right info, afaict.09:33
jaywinkyes it was juju-core, but since I had an old juju installed I guess I should have done upgrade too. Unless installing juju-core should have automatically done that09:35
mthaddonif I have two juju-core environments on the same provider, would/should they use the same public-bucket-url ?10:27
mthaddonspecifically the AUTH_* part10:28
mgzmthaddon: potentially10:28
mthaddonmgz: what's the implications of sharing that amongst juju envs?10:29
mgzone of the main reasons for providing that config was so that someone else could upload the tools, then you could use those without remirroring from aws yourself10:29
mgzwe're trying to move towards everyone using simplestreams, and cloud providers putting the simplestreams link in their identity service,10:30
mthaddonmgz: ah cool - so yeah, it sounds like in this case I do want to do that - as long as the control-bucket and admin-secret is unique per env things are okay, right?10:30
mgzyup.10:30
mthaddonthanks10:30
mthaddonmgz: hmm, I get https://pastebin.canonical.com/96563/10:33
jaywinksigh ... really stuck with bootstrapping successfully to local .. everything goes fine but services pending forever, over an hour. tried many times. juju debug-log just says "ssh: connect to host 10.0.3.1 port 22: Connection refused" :P10:36
mthaddonmgz: adding --upload-tools seems to do the trick (doesn't error anyway, will check status shortly)10:38
mgzmthaddon: geh, the list is breaking things10:39
mgzso, you don't want --upload-tools10:39
mgzyou want `juju sync-tools` probably10:39
mthaddonmgz: can I undo --upload-tools?10:39
mgzunless you're really trying to use a locally built trunk version of juju for testing rather than a stable release10:39
mgzmthaddon: you can just nuke the container10:39
mthaddonmgz: we're not using a stable release because we need fixes from trunk - we're using 1.13.2-1~1670 (packaged)10:40
mgzmthaddon: the other option here is to generate a simplestreams file in one container which references the tools, and point at that. I'm not sure we have good instructions on how to do this yet though.10:40
mgzmthaddon: you may want `juju sync-tools --source DIR` then10:42
mthaddonwhat's DIR?10:42
mgzthe directory where you have the 1.13.2-1~1670 binaries10:42
mthaddonand will that overwrite what's there now, or do I need to nuke the container first?10:42
mgznuke it to be safe, `swift delete CONTAINER` should do it10:43
mthaddonwhat's the problem with having done --upload-tools? just want to make sure I understand what's going on here10:44
mthaddon(things seem to be working as expected in terms of the bootstrap node now responding to juju status okay)10:45
mgz--upload-tools is a development hack10:45
mgzwhat it does, mostly, is build the copy of juju in your local directory, and upload that10:46
mgzbut, confusingly, it also currently has a hack that searches path for a 'jujud' binary10:47
mthaddonin my case /usr/lib/juju-1.13.2/bin/jujud10:47
mgzwhich in this particular case, might do the same as using sync-tools there, but generally just breaks things in really confusing ways if you get in the habit of using it10:48
mthaddonbreaks what kind of things? we've been doing --upload-tools for our envs so far and have production services running in them, so would like to know if we have a booby trap waiting for us10:49
mgzwell, the most likely breakage is we just remove that bit of code, so then it starts complaining about not having the juju-core source and go compiler10:49
mgzthe breakage devs normally hit is having multiple versions of juju around, and getting the wrong one uploaded10:50
mthaddonok, so the --upload-tools command itself might break, but if it succeeds the env is okay10:50
mgzonly if you're on a clean machine with only one jujud around10:51
mgzwhich should mostly be the case for you guys, but is always breaking us :)10:51
mthaddonwe deploy from one server which will only ever have one version of juju-core installed (as far as I can tell)10:51
mthaddonthanks for the help10:52
mgz`juju sync-tools --source `which juju`` is the sane-ish equivalent, if you can start using that instead10:54
mthaddonmgz: error: unable to select source: specified source path is not a directory: /usr/lib/juju-1.13.2/bin/juju - dirname $(which juju) then says "no tools available"10:57
mthaddonls /usr/lib/juju-1.13.2/bin10:57
mthaddonjuju  jujud  juju-metadata10:57
mgzer... yes, you're better at shell than I :)10:59
mthaddonmgz: right, but now I'm getting "no tools available"10:59
mgzI'll investigate what's up and get back to you10:59
mthaddoncool, thanks10:59
jaywinkanyone know why juju debug-log (and juju ssh 0) give "ssh: connect to host 10.0.3.1 port 22: Connection refused" after a successful local bootstrap? already tried shutting down ufw ... any tips would be greatly welcome .. running juju-core stable on raring11:02
X-warriorWhat is wrong with my configs file? http://pastebin.com/XeSKXzjb when I try to use, I get "command failed: unknown option "git-key"11:24
X-warriorOh, I just find that the config.yaml should have options: on begin of it. So I updated it to http://pastebin.com/1jFpW26H but still doesn't work :S12:25
X-warriorwhat user does run the hooks?13:46
marcoceppiX-warrior: root13:47
jasondotstarnoob here. I'm using ec2. is there a guide to ensuring that I'm using the free tier only?13:48
jasondotstarafraid i might see some hidden charges13:49
jasondotstar:-/13:49
marcoceppijasondotstar: by default you get small instances13:49
jasondotstarmarcoceppi as i understand, t1.micro is the free tier13:50
marcoceppiif you're using Ubuntu as you desktop though you can try juju using the local provider13:50
marcoceppijasondotstar: you get 700 hours a month of free t1.micro on was. however they are not recommended because they are severely underpowered. there is a way to use them though13:51
jasondotstarmarcoceppi ok. so if I simply want to develop charms and use juju to test them, i can use the local provider, which i assume means the charms deploy to my own nodes instead of a specific cloud provider?13:53
marcoceppijasondotstar: you can run `juju bootstrap --constraints "cpu-power=0 cpu-cores=0 men=128"` to get micros with juju. however for developing you can use local provider which turns your machine in to a cloud using LXC13:54
marcoceppimem*13:54
marcoceppiand local provider is free :)13:54
=== kentb-out is now known as kentb
jasondotstarmarcoceppi right. found this: http://askubuntu.com/questions/65359/how-do-i-configure-juju-for-local-usage13:56
jasondotstarmarcoceppi seems like a decent place to start.13:56
=== mattgriffin1 is now known as mattgriffin
=== mattgriffin is now known as mattgriffin-perc
=== mattgriffin-perc is now known as mattgriffin
X-warriorI'm creating my hooks and there is some code that will be the same on more then one file, I would like to create a third script where I add this code. Should I add it to a subfolder inside hooks? Is there any specific name? Or can I just pick any one?14:11
marcoceppiX-warrior: there's no real convention yet, we recommend putting it in a lib directory in the root of the charm (leaving just hooks to be in the hooks directory)14:23
marcoceppibut having common code shared via a common location (lib, etc) is a great way and one we consider a best practice for charms14:23
kurt_Hi All - anyone know why I would get "connection refused" from juju status, but can ssh to juju node direct just fine?15:00
kurt_http://pastebin.ubuntu.com/6040584/15:00
kurt_this is juju 1.1215:00
mhall119smoser: arosales: can you guys start filling in your track summary highlights for today's closing session: http://pad.ubuntu.com/uds-1308-track-summaries15:01
arosalesmhall119, will do. what time does it need to be complete?15:02
smoserarosales, its for http://summit.ubuntu.com/uds-1308/meeting/21888/track-summaries/15:02
smoser(19:00 UTC)15:02
smoserjamespage, if you want to help, that'd be good too.15:03
mhall119arosales: the summary session is at 190015:03
* smoser didn't think about this.15:03
arosalesmhall119, is the plan to have smoser and I present our respective tracks15:03
mhall119also we'll need one of you to be on the hangout15:03
jamespagesmoser, I'll try to15:03
X-warrior`marcoceppi: nice. so if I would like to execute it from hook, could I execute 'sh ../lib/file' or does the hook execute from another 'context'?15:03
arosalessmoser, jamespage: I'll coordinate with you on who does the presenting.15:03
arosalesmhall119, thanks for the link15:04
marcoceppiX-warrior`: hooks are executed from $CHARM_DIR which is the root of the directory15:04
marcoceppiso you'd just `sh lib/file`15:04
X-warrior`oh sweet15:04
X-warrior`:D15:04
=== freeflying is now known as freeflying_away
=== pepper_chico is now known as Vader
arosaleskirkland, hazmat, gary_poster, would love to hear from you guy any really anyone on http://summit.ubuntu.com/uds-1308/meeting/21899/servercloud-s-juju-new-user-ux/15:26
arosaless/guy any/guys and15:27
arosalesIf anyone has any feedback on getting started with Juju, from the web site to charm authoring please join the uds session: http://summit.ubuntu.com/uds-1308/meeting/21899/servercloud-s-juju-new-user-ux/15:28
arosaleswe'll post the hangout url in #ubuntu-uds-servercloud-2 channel, hope to see some folks there15:30
=== Vader is now known as pepper_chico
gary_posterarosales, how do I join hangout?15:34
arosalesgary_poster, be in  #ubuntu-uds-servercloud-2 and i'll post the hangout url shortly15:35
gary_postercool arosales thx, there now15:36
arosalesgary_poster, thank you15:36
=== defunctzombie_zz is now known as defunctzombie
=== defunctzombie is now known as defunctzombie_zz
=== defunctzombie_zz is now known as defunctzombie
=== exekias_ is now known as exekias
=== defunctzombie is now known as defunctzombie_zz
X-warrior`Is it normal to bootstrap logging goes up to 3.3gb of logs in less then a week?16:20
=== defunctzombie_zz is now known as defunctzombie
=== defunctzombie is now known as defunctzombie_zz
sarnoldX-warrior`: I do recall seeing something that said logs were never rotated and running out of disk space was a real problem. I don't know if that's been addressed yet.16:55
X-warrior`sarnold: uhmm16:55
=== defunctzombie_zz is now known as defunctzombie
=== CyberJacob is now known as CyberJacob|Away
=== defunctzombie is now known as defunctzombie_zz
weblifeJuan Negron  in here?17:38
jamespagenegronjl, ^^17:42
weblifenegronjl: I am not that good at reading python.  Have you made a option for mongorestore in the mongodb charm?17:42
weblifejamespage:  thanks I just looked him up on launchpad17:42
mhall119jamespage: smoser: arosales: which of you is going to give the cloud track summary today?17:52
weblifenegronjl: I am trying to see if I could send a mongodump on a joined relationship to the mongodb instance.  My charm runs its spins up its own mongodb service until one has joined.  I also want to send mongodump files over periodically to my charm in case the mongodb instance crashes.  All of this is to minimize instances for the sake of cash savings.17:52
arosalesmhall119, I am17:52
mhall119thanks arosales17:52
arosalesmhall119, sure, np.17:53
* smoser goes to sendbeertoarosales.com17:53
arosalessmoser, +1 and I owe you a few too17:53
weblifelol17:54
kurt_That was a great session "Amazing First 30 min Juju Experience" - good discussion between you guys17:54
marcoceppiweblife: he's in Japan ATM, might not reply right away17:55
weblifemarcoceppi> Thanks I will email him17:57
=== defunctzombie_zz is now known as defunctzombie
adam_ghow do i sync in juju-core tools into a firewalled MAAS cluster?18:51
jcastro2 new bounties on AU for those who can answer these questions19:01
jcastrohttp://askubuntu.com/questions/335720/agent-state-info-hook-failed-config-changed-deploy-wordpress-using-juju19:01
jcastrohttp://askubuntu.com/questions/337075/how-can-i-expose-icmp-ports-in-a-hook19:02
=== CyberJacob|Away is now known as CyberJacob
kurt_Any idea why I cannot "juju ssh 0" in 1.12?  "juju status" also gives "connection refused" Time is in sync, but in UTC on charm node.  This worked previously.  verbose output: http://pastebin.ubuntu.com/6041608/20:17
kurt_And yes, I should have the right mongodb installed20:18
=== sinzui is now known as sinzui_walking
weblifekurt: I maybe you missing '\'  "juju ssh  \0"20:41
weblifethats what i have to do when I ssh into bootstrap20:41
weblifeor perhaps your bootstrap failed20:43
marcoceppiweblife: if you can't get status to give you back information, juju ssh won't work (it has to query juju status to get the address for the 0 machine)20:44
marcoceppierr kurt_ ^20:45
kurt_marcoceppi: I was just putting this all in to ask ubuntu20:45
kurt_do you have an idea already?20:45
marcoceppikurt_: nope, stick it in ask ubuntu and I can take a look at it later20:46
weblifemarcoceppi:  yeah bad help idea.  Read the last part of his message after I responded20:46
kurt_Ok20:46
marcoceppikurt_: but it sounds like either you can't reach that ip address (can you ping it?), or mongodb didn't start up20:46
marcoceppikurt_: you can try to just `ssh ubuntu@172.16.118.12`20:46
marcoceppisome more stuff to try to ask ubuntu20:47
kurt_marcoceppi: that works fine20:47
kurt_marcoceppi: are you aware of any bugs around mongodb not starting correctly on node reboot?20:48
marcoceppikurt_: can you check the two upstart jobs, they start with juju-, are running (`initctl list | grep juju`)20:48
marcoceppikurt_: it's possible20:48
kurt_is this what you are referring to? juju-db stop/waiting20:49
=== CyberJacob is now known as CyberJacob|Away
marcoceppikurt_: yeah, start that20:52
marcoceppithere should be another job, I think, that starts with juju20:53
* marcoceppi checks20:53
kurt_uh oh20:53
kurt_marcoceppi: Thu Aug 29 20:52:56 [initandlisten] ERROR: Insufficient free space for journal files20:53
marcoceppikurt_: df -h should help you out :)20:53
kurt_yeah, just did that20:53
kurt_how much space does the node need?? LOL20:53
marcoceppikurt_: out of disk space?20:53
kurt_si20:54
marcoceppikurt_: this might be a problem with logs not rotating20:54
kurt_'/dev/sda1        18G   17G     0 100% /'20:54
marcoceppiif you track down the large files, and they're juju related, please open a bug20:54
marcoceppiwe had an issue like this back in juju 0.7 where it just would eat disk space via logs not being rotated20:54
marcoceppiI figured this was fixed, but it might not be yet20:54
marcoceppikurt_: to answer your question, yes nodes are designed to survive reboot20:55
kurt_marcoceppi: thanks.20:55
kurt_-rw-r-----  1 syslog adm  13047238656 Aug 29 20:55 all-machines.log20:55
kurt_:D20:56
kurt_that's 12 gigs of space20:56
kurt_wtf20:56
kurt_ROFL20:57
jcastrostay classy juju logger!20:57
kurt_sorry sir20:57
jcastrothis feels like a bug20:58
jcastroit should never do that crap20:58
kurt_I will log it20:58
kurt_file a bug on it20:58
kurt_#2 today for me20:58
kurt_I'm on a roll20:58
jcastro\o/20:58
jcastrokeep em coming20:59
kurt_Dave is going to get to know my name20:59
jcastromail me your tshirt size and address, it's about time we send you something! jorge@ubuntu.com21:00
weblifelol. Stay classy21:04
=== thumper-afk is now known as thumper
kurt_Ok, Bug #1218616 filed for your viewing pleasure.21:05
_mup_Bug #1218616: all-machines.log is oversized on juju node <juju-core> <juju-core:New> <https://launchpad.net/bugs/1218616>21:05
=== defunctzombie is now known as defunctzombie_zz
weblifejcastro: I would like to see a charms school that focuses more on relationships. Just FYI.21:12
weblifejcastro: Of course I just started watching the Best Practices video.  It sounds like this might be covered.21:17
=== CyberJacob|Away is now known as CyberJacob
kurt_I was just thinking of what web life was thinking about in a different way21:30
kurt_juju-gui should have a way to show how its deployed21:31
kurt_with juju-1.x - since I can deploy charms/services on same node, the gui should show me in logical form all services running on a node and how they are related21:32
kurt_or at least give me the ability to arbitrarily draw a circle or box around particular charms21:33
kurt_Is the solution to send logging to /dev/null like the user suggests in https://bugs.launchpad.net/juju-core/+bug/1218199 ? That appears to spike the cpu to 100%21:39
_mup_Bug #1218199: [MAAS] Deploy a charm into machine 0 = log loop <debug-log> <maas> <merge> <juju-core:New> <https://launchpad.net/bugs/1218199>21:39
=== defunctzombie_zz is now known as defunctzombie
=== freeflying_away is now known as freeflying
=== CyberJacob is now known as CyberJacob|Away
=== marrusl is now known as marrusl_afk
=== marrusl_afk is now known as marrusl
weblifeif I am running "mongodb-10gen"(The mongodb recommended deb package)  will this be  problem for juju-local?23:41
thumpermaybe23:42
thumperjuju needs an ssl enabled mongodb23:42
thumperit will fail to connect if this isn't enabled23:42
jcastroweblife: for sure we can do that.23:49

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