/srv/irclogs.ubuntu.com/2013/07/31/#juju.txt

aimattah intersting00:02
aimattok, thanks for the input00:03
sarnold(you could just have openstack without juju, if that's more acceptable to your operations folks.. :)00:03
sarnoldthen you'd only have one juju in play, and that might be easier to wrap heads around00:03
aimattI want the charms! lol00:03
aimattwe are losing our primary sysadmin, so we are exploring options00:03
aimattand juju is looknig very good00:03
=== defunctzombie is now known as defunctzombie_zz
marcoceppiaimatt: Right, what sarnold described is pretty accurate as far as using Juju to drive both the bare metal and then deployments on the bare metal. I'll dig up a few links for you, but there are video demos of sabdfl having a cluster a machines registered in MaaS, then deploying OpenStack on that in under 15 mins, then deploying services on to the OpenStack environment right after that. It's a little inception-like but a very00:55
marcoceppiinteresting use case00:55
marcoceppiahasenack: ping01:10
jcastroaimatt: another nice benefit of juju is the reusability of charms01:38
jcastroyou don't need to write a memcached charm01:38
jcastrowe have one already01:38
=== axw_ is now known as axw
=== CyberJacob|Away is now known as CyberJacob
=== CyberJacob is now known as CyberJacob|Away
=== CyberJacob|Away is now known as CyberJacob
=== defunctzombie_zz is now known as defunctzombie
=== sputnik1_ is now known as sputnik13
weblifeI just finished a three part tutorial on how to get going with Node.js / MongoDB on Ubuntu and then deploy it to cloud services.  Could I get any interested parties to review it for fixes / ideas on how to improve it?  https://github.com/TheMindCompany/mongonode-app/blob/master/tutorial.pdf07:20
=== defunctzombie is now known as defunctzombie_zz
TantorHello. I'm trying to use juju. However I'm having a problem. I did juju-deploy juju-gui07:33
TantorThen juju added another node as machine #1, however this machine has the agent-state 'not-started'. When I login through SSH to this machine and do sudo restart juju-machine-agent. I get a message that it's restarted, but still no change in the status. Here is the output of juju status: http://pastebin.com/Uv7Zg2qx07:34
=== defunctzombie_zz is now known as defunctzombie
weblifeWhat would be the best way to stress test a web application or better yet possibly have Juju auto scale an application.08:51
=== defunctzombie is now known as defunctzombie_zz
=== freeflyi1g is now known as freeflying
drj11Hmm. I have a problem trying to terminate-machine10:57
drj11I get: $ juju terminate-machine 4010:57
drj11error: no machines were destroyed: container info for machine 40 not found10:57
drj11(I've recently upgraded to 1.11.5-raring-amd64)10:57
drj11the machine exists and has no services running on it (previously ran destroy-service which worked just fine).10:58
drj11is this likely to a recent bug?10:58
marcoceppidrj11: it may be, I've not encountered that error before.12:05
pavelpachkovskijhi12:22
pavelpachkovskijcan someone merge fix for this bug? https://bugs.launchpad.net/charms/+source/memcached/+bug/120649112:22
_mup_Bug #1206491: Memcached service doesn't start <memcached (Juju Charms Collection):Fix Committed> <https://launchpad.net/bugs/1206491>12:22
pavelpachkovskijmarcoceppi, thanks12:30
marcoceppipavelpachkovskij: np12:30
pavelpachkovskijand one more https://code.launchpad.net/~charmers/charms/precise/redis-master/trunk/+merge/17782813:40
marcoceppipavelpachkovskij: it says there are 0 lines to merge13:42
pavelpachkovskijcrap13:42
marcoceppiah, the merge is backwards13:42
pavelpachkovskijmarcoceppi, I did smth wrong?13:43
marcoceppipavelpachkovskij: you're requestion to merge lp:charms/redis-master in to your branch. Resubmit with your branch merging in to lp:charms/redis-master13:43
pavelpachkovskijmarcoceppi, ah13:43
pavelpachkovskijmarcoceppi, one sec13:43
marcoceppipavelpachkovskij: FWIW, I just looked at your commit and it LGTM13:44
marcoceppisurpised that wasn't caught sooner13:44
pavelpachkovskijhttps://code.launchpad.net/~pavel-pachkovskij/charms/precise/redis-master/fixed-open-port-issue/+merge/17784713:44
pavelpachkovskijmarcoceppi, thanks again )13:46
marcoceppinp13:46
weblifeI just finished a three part tutorial on how to get going with Node.js / MongoDB on Ubuntu and then deploy it to cloud services.  Could I get any interested parties to review it for fixes / ideas on how to improve it?  https://github.com/TheMindCompany/mongonode-app/blob/master/tutorial.pdf15:45
weblifelast night not just now :)15:45
weblifeI think I should try and put more detail into using Juju.  Around page 10(beginning of juju lesson) I got tired and lazy.15:50
marcoceppiweblife: I'll take a look in a bit. thanks for the link!15:51
jcastrojuju charmers meeting in ~6 minutes!15:54
jcastroweblife: have you seen the node-app charm?15:55
jcastroit automates pages 1-3 of your tutorial, heh15:55
weblifemarcoceppi Thank you15:57
jcastrohttps://plus.google.com/hangouts/_/b853ceaa631f9a4d4359556e3cbf27ffae3abc81?authuser=0&hl=en15:57
jcastrothe hangout will be there for anyone who wants to participate in the meeting15:57
weblifejcastro I used the node-app charm.  But my revision that installs from source and installs express also15:58
jcastroadding an option to the charm to install from source and do express would be a nice contribution!15:58
weblife<weblife is conflicted (watch Kaptest prep for GRE or charmer hangout)15:59
weblifejcastro I know.  Trying to gain experience so you guys allow me into charmers so I can submit15:59
jcastrooh, you don't need to be in charmers to submit16:00
jcastroyou just can start submitting16:00
jcastrocharmers is for when you want to review etc, later on when you're experienced with juju16:00
weblifepavelpachkovskij from CSU Fullerton??16:00
pavelpachkovskijhello16:02
pavelpachkovskijis there a link to charmers meeting already?16:02
marcoceppiPad: http://pad.ubuntu.com/7mf2jvKXNa16:02
jcastroWe'll be streaming the meeting on http://ubuntuonair.com if anyone wants to follow along16:02
jcastrohttps://plus.google.com/hangouts/_/b853ceaa631f9a4d4359556e3cbf27ffae3abc81?authuser=0&hl=en16:02
jcastroif you want to participate16:02
pavelpachkovskijweblife, no16:02
weblifegood :x16:03
weblifehehe16:03
weblifeyes Brandon Clark is me16:06
marcoceppio/16:07
weblifeexperimental kernel messing up my connection :x16:26
weblifeHmm.  I don't think its my kernel anymore, it could be g-hangouts :x16:42
weblifeTRy one more time to listen in16:42
weblifeOr is it over?? haha16:44
marcoceppiweblife: they're published to youtube so you can always watch post-recording16:44
weblifeI know but want to be able and chime in if I wanted to.  Let you guys know other care your doing it also.16:45
marcoceppiweblife: if you have feedback or questions you can reply to the mailing list email that Jorge sends out every week with the highlights. We're always happy to answer questions and field comments from users!16:46
weblifemarcoceppi Thank you.  Your always a help.16:48
jcastromarcoceppi: hey for local provider16:53
jcastroit seems default-series: precise doesn't work for me16:53
marcoceppijcastro: yaeh?16:53
jcastroideas?16:53
marcoceppijcastro: define "doesn't work" for you?16:53
jcastroit launches saucy containers16:53
marcoceppimachine 0 will always reflect the host machine, each additional machien should be the default-series defined16:53
jcastroah nuts16:54
jcastroso like if I bootstrap16:54
jcastrobut do juju deploy --to 0 wordpress16:54
jcastroerror: cannot assign unit "wordpress/0" to machine 0: series does not match16:54
marcoceppijcastro: you're going to have a bad time16:54
jcastronod16:54
jcastrook so test on a real cloud is what you're saying. :)16:54
* marcoceppi nods16:54
marcoceppiI hear HP is nice this time of year16:55
jcastrojuju switch hpcloud16:55
jcastro:)16:55
jcastroI love this command16:55
jcastroI can just switch from local to cloud in one go16:55
marcoceppiI still haven't used juju switch16:55
jcastro!!16:55
jcastroyou're not doing -eblahblah every time are you?16:56
marcoceppijcastro: I am16:56
marcoceppiold habbits die hard16:56
marcoceppiI'm terrified of not using switch and accidentally destroying ubuntu-discourse instead of local or something silly16:56
jcastrotrue dat16:56
marcoceppiMaybe I'll add a plugin or something that is a safe guard16:57
marcoceppilike juju safe destroy-environment16:57
marcoceppiwhich will just confirm every action you do by telling you current environment, etc16:57
jcastroin pyju there was an env setting you ould set to make it so you could never accidentally blow it away16:57
jcastroIMO juju should always echo the current environment on every command16:58
jcastro"blah blah success/failed on $env"16:58
marcoceppiWell, juju-core gives you just enough rope. Especially since it doesn't offer an ack mechanism16:58
marcoceppijcastro: that doesn't help prevent the issue though, just tells you even sooner that you goof'd16:58
sarnold$PS1 mangling? :)16:58
marcoceppiI think -v offers that too jcastro "2013-07-31 16:58:45 INFO juju.environs.local environprovider.go:32 opening environment "local-core"16:59
marcoceppi"16:59
marcoceppiis the first line typically when using -v16:59
marcoceppianywho, -v could use some work on not being so verbose16:59
stubmarcoceppi: 'juju lock-environment' + 'juju unlock-environment' ?17:06
stubmarcoceppi: ie. a flag that you can set to help protect you from blowing off your foot?17:06
jcastrohttp://ec2-54-211-7-242.compute-1.amazonaws.com/?p=417:07
jcastrohaha man17:07
jcastrothat was --to easy17:07
jcastromarcoceppi: wanna siege up that badboy, see how it performs?17:08
weblifeHmm strange.  Juju status says no instances after I bootstrap AWS.  Haven't had this happen before.17:19
=== andreas__ is now known as ahasenack
weblifeweblife destroy's it to try again.17:20
pavel weblife this happens time to time17:22
pavelI think possible reason may be when you try to bootstrap right after destroy-environment17:23
pavelbut this is just my theory17:23
weblifecan't delete security groups from ec2 console either, grrr.  I'm going to eat them.17:23
weblifepavel: that is what I did.  Makes sense...17:23
weblifenow I know17:24
marcoceppiweblife: it's also "the cloud" in general. Sometimes weird stuff just happens17:25
=== defunctzombie_zz is now known as defunctzombie
=== defunctzombie is now known as defunctzombie_zz
jcastrorick_h: this search result bug where it goes back to the result instead of the readme is killing me17:30
rick_hjcastro: it's landed, there was talk of doing a deploy on wed17:31
rick_hgary_poster: is that deploy on deck for today? ^^17:31
gary_posterrick_h, we can't deploy till benji gets the cache bug landed, and we make a release.  At this point I'm guessing tomorrow, rick_h and jcastro.17:32
rick_hgary_poster: k, thanks for the heads up.17:32
jcastrook guys, so deploy --to is basically awesome17:33
rick_hjcastro: yea, checking our your weekly call video now. I need to test that out and lxc out17:33
weblifemarcoceppi & pavel:  I believe in this case it may have been the AWS region. Used west-1 after a little wait the second time and still happened17:34
weblifeworked on east-1 though17:35
marcoceppigary_poster: Is "--to" support on the roadmap for gui?17:35
gary_postermarcoceppi, yes.  we think it will be actually a place where the GUI can give a significantly better experience than the CLI, including automated searching for available machines based on constraints.  We will be talking about tech plans next week at the manager sprint and work is slated to begin september17:36
gary_posterengineering work, that is17:37
marcoceppigary_poster: awesome news, thanks :D17:37
gary_poster:-)17:37
weblifeQuestion!!  Why would I get: error: no settings found for "mongonode-app".  Here is my config.yaml: http://github.com/TheMindCompany/node-app/blob/master/config.yaml17:38
weblifeIt works if I deploy local with --repository17:38
marcoceppiweblife: what's the deploy command you're using?17:39
weblifemarcoceppi: juju deploy --config config.yaml node-app mongonode-app17:40
weblifeI am operating from ~/17:40
marcoceppiweblife: So, when you deploy with --config there needs to be a filed called config.yaml (or whatever is named in the flag) and it needs to be a key value set of options you want to deploy with preceeded by the service name17:40
marcoceppiLet me give you an example17:41
marcoceppiweblife:17:42
marcoceppihttp://paste.ubuntu.com/5933505/17:43
marcoceppiYou don't need to specify a --config flag during deployment, it's only if you want to preseed config values17:43
marcoceppiweblife: You could just as easily do juju set mongonode-app app-port=80 install_root=/home/ubuntu app_node_env=development17:44
marcoceppiafter deployment17:44
jcastrohttp://ec2-50-19-27-38.compute-1.amazonaws.com/17:46
jcastroless than 10 minutes guys17:46
jcastrolook at that!17:46
weblifejcastro social sign returns json error file17:47
weblifeor fb one did17:48
jcastrogoogle one works17:48
jcastroI think for FB I need an API key17:48
sarnoldjcastro: these guys claim they can have an instance up and running in 55 seconds.. https://www.digitalocean.com/17:48
weblifejcastro I am sure thats it if you haven't registered it17:48
sarnoldjcastro: interesting if true ;) I wonder how much effort it'd be to hook up their API with juju..17:48
jcastro"instance up and running" doesn't count. "service up and running" is what counts.17:48
jcastrosarnold: when we get an SSH provider we'll get digital ocean17:49
sarnoldjcastro: sure, but getting an OS going in 55 seconds is a darn sight quicker than my AWS testing so far :)17:49
jcastrotrue dat17:49
jcastrothat's like having the indy 500 be about who can start their car up faster. That doesn't win the race.17:49
jcastrobut yeah, 55 seconds is nice!17:49
sarnoldjcastro: heh, races can be won or lost on pitcrew performance..17:52
jcastroarosales: do you have the recordmydesktop snippet handy?17:55
jcastroI am going to do a video on this17:55
jcastrotoo cool not to17:55
arosalesjcastro, recordmydesktop --freq=22050 --buffer-size 96000 --width 1024 --height 768 --fps 24 -x 6 -y 96 --delay 3 -o "<juju-scale-name>.ogv"17:56
=== defunctzombie_zz is now known as defunctzombie
arosalesjcastro, the buffer size may not need to be that large but I errored on it being larger just to be safe17:58
jcastronod17:58
weblifemarcoceppi: Thank you this has had me confused.  Now the getting started guide makes sense to me on this.18:00
weblifemarcoceppi:  Have you experienced problems when connecting to your node-app deployments on the first connection after startup?  It seems like I always get a 504 first try, then I refresh and everything is okay.18:10
weblifeMaybe if I ping the localhost site in the startup script after it loads this won't happen.18:13
weblifemy connection hates me today :x18:26
sidneijamespage: around?19:28
marcoceppiweblife: Not that I can recall19:33
adam_gsidnei, he's on holiday19:36
sidneiadam_g: oh. so let me throw this out there and see if anybody cares: https://bugs.launchpad.net/juju-core/+bug/1203816 is about setting up some proxying for the local provider19:37
_mup_Bug #1203816: local provider should support use of local proxy <juju-core:New> <https://launchpad.net/bugs/1203816>19:37
sidneii hacked together something that reads MIRROR from /etc/default/lxc, but i wonder if it would be best to run apt-config dump Acquire::http::Proxy instead19:38
sidneiand accordingly, set 'apt_proxy' in cloud-init instead of 'apt_mirror'19:38
adam_gsidnei, seems sensible. i still hope for someday being able to express some subset of cloud-config via environments.yaml19:50
sidneiadam_g: that's an alternative too, and i think it might not be too hard to implement. for all environments i guess?19:50
jcastroarosales: hey so what do you think about a dedicated review day next week?19:52
jcastrowe need to get out of this hole19:52
adam_gsidnei, yea, i suppose.19:56
arosalesjcastro, marcoceppi and I are talking about it atm20:01
jcastroheya sidnei20:05
jcastrohave you considered becoming a ~charmer and do an occasional review?20:06
arosalesjcastro, all squired away on the ODS submissions?20:19
jcastrowe're good20:20
jcastrohelped adam power through one of his20:20
arosalesjcastro, thx20:20
jcastrostanding by if anyone needs help20:20
weblifegonna test one more thing before I submit my patch to node-app20:22
sidneijcastro: i have *wink*. i also need to polish my 3mo old apache/squid/haproxy branches to the latest charm-helpers.20:54
sinzuiDoes anyone have an example of using nrpe-external-master so that verify I have written a hook properly?20:55
sidneispeaking of which20:57
sidneisinzui: http://bazaar.launchpad.net/~sidnei/charms/precise/apache2/trunk/view/head:/hooks/hooks.py#L257 it's using the old charm-helpers but i think it only needs the imports to be adjusted20:57
sinzuisidnei, I am past that20:57
sidneishould be good then20:58
sinzuisidnei, I have nagios, juju-gui, and nrep deployed. I joined nagios to juju-gui, and I see it monitored.20:58
sinzuisidnei, I joined nrpe-external-master to juju-gui, I saw the hook fire. I do not see it in nagios20:59
sinzuisidnei, I joined nrpe-external-master to nagios, I do not see the the extra checks in nagios21:00
sidneisinzui: nrpe-external-master doesn't talk to nagios, it needs be manually rsync off to an existing nagios or some such21:00
sinzuiI have set the nagios_master property to the ip of nagios, but I still don't see any extra checks21:00
sidneiwedgwood: ^ you know a bit more about nrpe-external-master and how it's rsynced21:01
wedgwoodlooking21:02
sidneisinzui: iirc setting the nagios_master property sets up an rsync entry point so that you can rsync from the nagios host, but that needs triggering manually21:03
sidneisinzui: it's meant only for webops since they manage their nagios outside of juju21:03
wedgwoodsinzui: where's your hook code?21:03
sinzuiwedgwood, https://code.launchpad.net/~sinzui/charms/precise/juju-gui/nagios/+merge/17758821:04
sinzui^ I fixed a typo in my local copy, but it is otherwise the same21:04
weblifeTrying to submit a merge into https://code.launchpad.net/~web-brandon/+junk/node-app but it tells me : This branch is not mergeable into lp:~web-brandon/+junk/node-app.  Anyone understand why?21:11
sinzuiweblife, it is +junk21:11
sinzuipersonal branches are yours.21:11
weblifeokay I think I get it.21:12
sinzuiweblife, merged are supported by shared contexts like a project or a package21:12
sinzuiweblife, when a personal branch (+junk is a bad term) is ready to be shared with others for collaboration, you need to push it to a new or existing project.21:14
sinzuiweblife, I think you want to push your branch to web-brandon/charms/precise/node-app/install-fix21:16
wedgwoodsinzui: I don't see where scripts/update-nrpe.py is called21:19
sinzuiwedgwood, that script is also symlinked as hooks/nrpe-external-master-relation-changed21:21
wedgwoodah21:21
wedgwoodsinzui: ok, sorry, read scrollback more closely.21:26
wedgwoodnrpe-external-master doesn't do anything on its own. I think your nagios server will need to initiate the rsync from /var/lib/nagios/export21:26
wedgwoodthat dir contains the nagios configs to be consumed by the server21:27
sinzuiwedgwood, np. I am the one truly confused. I don't no how to verify my updated charm truly works as it needs to on prodstack21:27
sinzuibugger /no/know21:27
sinzuiThis day is too long21:28
sidneisinzui: if you also implement the nrpe interface then you can use the plain nrpe charm, but it takes a bit more setup.21:28
thumperhi sinzui21:28
wedgwoodI understand. I think it's ... I won't say sufficient... indicative to check whether that directory is populated after the hook fires.21:28
weblifesinzui: that pushed  and I was able to merge.  Thank you very much21:31
sinzuiweblife, great21:31
sinzuihi thumper21:31
weblifehttps://code.launchpad.net/~charmers/charms/precise/node-app/trunk/+merge/17794321:31
marcoceppiweblife: Thanks for the submission, but you've done it backwards :) You want to merge your branch  in to lp:charms/node-app - not the other way around21:49
weblifelol, what did I do? Let me take a look.21:54
arosalesjcastro, marcoceppi had a good point that folks should probably email the juju list when requesting membership to ~charmers21:55
marcoceppiweblife: you had them reversed, if you look at the merge proposal it says no diff output21:55
arosalesjcastro, and then charmers and +1/give feedback on the applicant21:55
arosalesI will email the list so folks can comment there since it is somewhat of a policy change.21:56
weblifehaha,  whoops. weblife is an obvious newbie to launchpad now...21:57
marcoceppiweblife: it's okay, I botched probably the first 10-15 merges on launchpad when I really started using it. I'm very accustomed to the Github pull req interface21:59
arosalesjcastro, is there a link to the charm reviewer calendar?22:04
jcastroarosales: see /topic22:04
arosalesjcastro, I don't see a link?22:04
jcastro Review Calendar: http://goo.gl/uK9HD22:04
arosalesjcastro, sorry I didn't scroll :-/22:05
arosalesthanks22:05
weblifemarcoceppi That seems backwards how they make you do that.  Okay gave it another go.22:08
marcoceppiweblife: much better. I'm not going to be able to get to this today, and the review queue is a bit long, but I'm officially on deck for review next week. So if it isn't reviewed this week, it should be covered by end of next week!22:09
weblifemarcoceppi: No problem, I'm happy with the experience at this point.  Needed to learn how launchpad works because I have been wanting to involve myself in projects like this.22:14
weblifeHelped make node-app better and helped update important documentation.  Good experience.22:15
marcoceppiweblife: LP can be daunting at first, but it's actually pretty intuiative once you start using it22:16
weblifeNow its time to focus on my tutorial and some how-to videos.  Maybe someone will hire me soon. :)22:16
weblifemarcoceppi: yes it was22:17
weblifeI appreciate all your help over the last few22:17
marcoceppiweblife: no problem! Happy to help. Thank you for your contributions!22:18
AskUbuntuIssues with JuJu Bootstrapping | http://askubuntu.com/q/32717722:21
marcoceppiahasenack: Are these two problems similar to what you're experiencing right now?  http://askubuntu.com/q/318970/41  http://askubuntu.com/q/327177/4122:24
=== CyberJacob is now known as CyberJacob|Away
=== CyberJacob|Away is now known as CyberJacob
ahasenackmarcoceppi: let me check22:43
ahasenackmarcoceppi: it is, I don't know to which container/path to upload the json files produced by image-metadata22:44
=== CyberJacob is now known as CyberJacob|Away

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