/srv/irclogs.ubuntu.com/2012/05/14/#juju.txt

=== hspencer[afk] is now known as hspencer
SpamapSjames_w: any service period, but it only monitors SSH and PING right now03:54
SpamapSjames_w: I am working out host groups, and then I will flesh out some ideas for monitoring things more deeply.03:55
james_wSpamapS, ah, that sort of ping :-)04:03
james_wSpamapS, I was talking to marcoceppi and m_3 about deeper monitoring last week04:03
james_wI'm very interested in getting that working04:03
SpamapSjames_w: I was thinking that to really be effective there needs to be some abstract ways to say "Monitor me like this"04:04
SpamapSjames_w: so that we don't lock in to nagios04:04
james_wSpamapS, yeah, to a point04:04
james_wI think an interface for "here's a nagois plugin, run it" is important too04:04
SpamapSmeh, thats what the nrpe subordinate is for04:04
james_wabstract is fantastic, but we can't abstract everything04:05
SpamapSoh you want to feed the whole thing back to nagios?04:05
james_wthen my use case might be solved already :-(04:05
james_werr :-)04:05
james_wwe have some application-specific plugins that we would want to expose if the admin was using nagios04:05
SpamapSno I misunderstood who would be handing out plugins04:05
SpamapSbut to that point, a 'myapp-nagios-plugins' subordinate *would* work04:06
james_w"run this plugin every 5 minutes if the admin wants to monitor"04:06
james_wyeah, I think subordinates will be the answer04:06
james_wwith some nagios-plugin interface maybe04:06
james_wI don't know nagios well enough04:06
james_wI've never used it, just written plugins04:07
SpamapSI'm underoing a personal refresher .. it was the core of things for me for a long time, but I got it down to the point where I didn't have to do anything with it ;)04:07
SpamapSjames_w: I think its fair to have a 'monitoring' interface which passes back abstract plugin names.. and then nagios will just make a best effort to monitor what it can.. and you can extend its capabilities with a subordinate04:08
james_wthat sounds reasonale04:09
SpamapSso a website would say things like  'http;url=foo http;url=foo2'04:09
james_wreasonable04:09
=== almaisan-away is now known as al-maisan
SpamapSalright, my nagios charm now groups all machines into a hostgroup named after the service07:16
SpamapSOk since the old nagios charm was basically completely broken, just went ahead and pushed mine into the store.07:30
SpamapSihashacks: nagios is now infinitely more useful.. though still needs a lot of work to be able to do full monitoring.07:30
imbrandonmorning all08:40
=== daker__ is now known as daker
=== al-maisan is now known as almaisan-away
=== TheMue_ is now known as TheMue
=== almaisan-away is now known as al-maisan
melmothhow to investigate what is going on if a juju status show a mysql service in "pending" state for more than 30 mn after deploying it (lxc) ?14:18
marcoceppimelmoth: it'd be a good idea to see if the master container has been created or not. If you're on a slower internet connection it can take sometime to create the first image14:20
melmothi can connect to the console of the mysql service with lxc-console14:21
marcoceppithere's a machine-agent.log file in your data-dir path for your local provider14:21
melmothso yes, it is14:21
marcoceppimelmoth: well, what does /var/log/juju/mysql-service-0.log show?14:21
koolhead17melmoth, aah thats what i was writing :)14:22
koolhead17marcoceppi, hey there14:22
melmothhello koolhead17 :)14:22
* koolhead17 has lost his sleep14:22
marcoceppio/ koolhead1714:22
koolhead17:P14:23
melmothhttp://pastebin.com/8bQ6dq7R14:23
melmoth(the log file is elsewhere, but it match this machine)14:24
melmothlast time i checked when i had a problem, the last line was this "lxc_start - invalid pid for SIGCHLD" stuff14:24
=== al-maisan is now known as almaisan-away
melmothso, i try to destroy my environment, starting again15:00
melmothstill stuck15:00
melmoth(to summarise, i cannot launch a mysql service on precise, lxc. The service keeps being on pending state)15:00
melmothany help appreciated. cause i have no idea what to change or where to look15:01
m_3melmoth: wow, haven't seen that error for lxc15:13
m_3melmoth: I almost always recommend clearing your lxc cache when there are problems15:13
melmothi did15:13
m_3melmoth: `sudo rm -Rf /var/cache/lxc/`15:14
melmothi m now re trying again,with the ppa15:14
m_3melmoth: ah, yeah... check juju version, and your libvirtd group membership15:14
melmothi m in libvirtd group15:15
melmothjuju was the latest official one available in precise, now tryng with 0.5+bzr535-1juju5~precise115:15
m_3melmoth: after that it might be networking... `virsh net-list --all` should show only a default network that's active15:16
melmothwich i think is a new one (got a juju update after adding the ppa for chamrs-tools)15:16
m_3melmoth: but give it time to try to come up with the new version15:16
melmothwell, it show another network that is active, and i sort of need it for other purpose15:16
m_3melmoth: make sure the `default` libvirt network is on 192.168.122.0 (you can do this with `ps auwx | grep dnsmasq`)15:17
m_3melmoth: also that 192.168.122.0 is on `virbr0` (via `ip addr show`)15:18
m_3unfortunately, that's pretty picky at the moment (known problem... bugs are filed)15:19
melmothseems ok15:19
melmoththe only stuff i changed on te default network is to disable dhcp on it15:19
melmoth(wich i also need for some other purpose)15:19
m_3melmoth: hmmmm.... well that will be a problem for the juju local provider15:22
m_3melmoth: two possibilities, depending on your setup:15:22
m_3melmoth: a.) move your custom stuff up to a different libvirt network so juju can have `default/virbr0/192.168.122.0`15:23
m_3(I know that totally sucks)15:23
m_3melmoth: b.) perhaps you can spin up the juju local provider in a VM on that machine?15:24
balloonsis there a video walkthrough that explains juju at all? Something like setting up juju and deploying wordpress? I don't want a long video, just something to "show" the power and purpose of juju15:24
m_3melmoth: b might be easier... it won't necessarily perform as well as on the bare metal, but... it'd at least get up15:24
melmothi think i might give b a try if i fail with the current test15:24
* balloons is trying to share juju with others15:24
melmothso at least i m sure i m using all vanilla stuff and can break everything without caring about my desktop :)15:25
m_3balloons: yeah, I think we've got a good one up on juju.ubuntu.com... I'd have to look15:25
m_3melmoth: yeah, sorry... we're pushing to get this particular problem with lxc fixed15:26
balloonsm_3, ahh.. thanks, I see the demo links @ the top15:26
balloonshmm, they do all seem to be older though with a focus on ensemble15:26
m_3melmoth: b should be fine if you can get the vm to think it's using something called `virbr0`15:27
nathwillyou can change the network device in the lxc container config...15:28
m_3balloons: yes, so much has changed recently with the charm store landing too... it's a much easier story... `juju deploy mysql` deploys directly from the store instead of having to download charms and specify local repos15:28
m_3nathwill: can you answer some of the askubuntu questions on this?  haven't a clue what to recommend as the best workaround for when you have existing libvirt networks15:30
balloonsm_3, yes.. sounds like an opportunity for someone to update :-)15:30
balloonsthanks15:30
m_3nathwill: I think the code's actually looking for the literal `virbr0` though... and not the lxc default :(15:30
nathwillright15:30
nathwillif you want to change that, you can15:30
m_3balloons: oh please!  that'd be awesome15:31
nathwillin the container config... and probably in the template container to affect new units15:31
nathwillthough i haven't tested that15:31
nathwillbut i went through doing the same thing in my lxc instances to make sure they're all on the same network (192. vs 10.)15:32
m_3nathwill: imo correct fix is for juju cli to a.) use lxc networking instead of libvirt (in precise), and b.) add a new dedicated lxc network for juju that doesn't conflict with any address spaces in use at the time15:32
nathwillm_3, i agree that would be spiffy15:34
m_3nathwill: cool... let's capture that b/c I think lots of people would benefit from your tests15:34
m_3imo currently the biggest issue people have with juju... and it's often during their _first_ experience with it... it's a huge priority15:35
* m_3 coffee15:35
LemU_Hi! I would need help... I was following this guide https://help.ubuntu.com/community/UbuntuCloudInfrastructure#Deploying_Ubuntu_Cloud_Infrastructure_with_Juju     Im almost end of guide but cloud-publish-tarball ubuntu-11.10-beta1-server-cloudimg-amd64.tar.gz images ain't working.15:36
LemU_It just gives me: Unable to run euca--describe-images.  Is environment for euca- set up?15:36
negronjl'morning all15:40
m_3negronjl: morning15:40
negronjlm_3: 'morning ... Ubuflu in full swing over here :/15:41
m_3LemU_: looking at the doc now... euca-tools is pretty common for all kinds of ec2-api-based clouds15:41
m_3negronjl: ouch15:41
m_3bummer man15:41
nyr0xhey, what's the purpose of 'machine 0'? i figured out that it is some kind of management node of the environment. i want to deploy a local environment with orchestra and i have 10 compute nodes that juju will take care of. but i don't want to lose one of the nodes doing almost nothing... so how much power does this 'machine 0' need? could i setup a small vm handling this task?15:42
LemU_m_3 yeah I know, I was able to use euca-tools when I did manually install openstack cloud sometime ago, and I thought that I did understand how it works, but seems I'm missing something..15:42
m_3LemU_: I'd make sure you're following MaaS-based docs... the docs might have changed over the past month with 12.04 landing with Maas15:43
m_3nyr0x: juju refers to `machine 0` as the bootstrap node... it runs zookeeper and some agents that juju depends on15:44
LemU_m_3 I have everything else working here, I just cant add images on my cloud.15:44
m_3nyr0x: one thing to watch out for... `orchestra` has been deprecated and the juju bare-metal provider is called MaaS (metal as a Service) now15:45
LemU_or to be more specific I can't reach my euca tools or something like that15:47
m_3LemU_: euca-upload-bundle is out-of-band from juju... and my experience with it is stale.  perhaps somebody on #ubuntu-server or #ubuntu-cloud can help debug?15:48
LemU_m_3 Ok, I'll try that, thanks for help !15:49
m_3nyr0x: really small VM would work great for the juju bootstrap node btw15:50
m_3nyr0x: the only real requirement is that zookeeper is java-based... maybe one-cpu, 256M?  maybe 512M? dunno... you won't be stressing it with 10 nodes15:50
m_3LemU_: sure thing15:51
nyr0xm_3: thx than i can use the sever handling the login node etc. (playing around to deploy a hpc-cluster)15:52
m_3nyr0x: cool... keep us posted about progress15:53
nyr0xm_3: once everything is running i will publish a series of blogposts about the setup15:54
m_3nyr0x: cool... check out the minimum requirements for the `maas server` in the docs... it'll need cobbler, dhcpd, zookeeper, juju agents.  MaaS in much easier to get working than the old `orchestra` docs15:57
m_3nyr0x: iirc it's a bootup option from the standard server iso15:57
SpamapSm_3: 512M minimum.. zk keeps *everything* in RAM16:07
SpamapSnyr0x: ^^16:08
m_3SpamapS: thanks16:09
SpamapSI think the t1.micro is a decent guide for what works as the tiniest possible node 016:10
SpamapSm_3: back home and ready to rock?16:12
m_3SpamapS: only time I've looked was 130M used by zk for quite a bit more nodes... but then elbow room for other processes would imply at least 512 to be safe16:12
m_3SpamapS: well back home at least :)... wrote part of a blender render-farm charm last night just to get away from it all16:13
SpamapSHah nice16:13
SpamapSm_3: yeah I entertained myself by bringing nagios into the 21st century last night. ;)16:13
m_3I saw that16:14
m_3SpamapS: james_w and I were discussing over breakfast Saturday16:14
nyr0xis it possible to bootstrap 2 environments to handle 2 different sets of machines?16:15
nathwillnyr0x, yeah, from what i've seen, you use -e envname to specify the environment for your commands.16:16
m_3nyr0x: yup16:16
melmothjust to be sure: on precise is it better to use the ppa version of juju or is the default one suppose to be "good enough" ?16:16
m_3nyr0x: I have like 12 different environments set up... maybe 4 running at any given time16:16
SpamapSthough that may require 2 separate maas's16:18
nyr0xm_3: how do you specify which environment uses which machines? different management classes? because i have 2 kinds of machines in my network... compute nodes and I/O nodes they are made of different hardware16:19
m_3nyr0x SpamapS: yes, mine are all ec2/openstack... no maas setups yet16:19
SpamapSnyr0x: the ability to "tag" machines is feature #1 that maas needs to add soon16:19
SpamapSI'm actually quite shocked it wasn't added first.16:20
m_3nyr0x: but constraints can be specified now in juju (http://fewbar.com/2012/04/juju-constraints-unbinds-your-machines/)  I think that works with MaaS now16:22
SpamapSm_3: constraints only allows *name* :(16:22
SpamapSfor maas16:22
m_3bummer16:27
SpamapSnyr0x: you can control which nodes are available at what time by only accepting/commissioning nodes right before you give them to juju16:28
SpamapSnyr0x: in the very near future maas will have classification features that will make that permanent16:28
nyr0xSpamapS: sounds promising16:30
tobin_win 217:14
JarmoMy team has been setting up Cloud with MAAS and Juju, we did get openstack environment running, but we can't add images...  cloud-publish-tarball ./ubuntu-11.10-beta1-server-cloudimg-amd64.tar.gz images , gives us only this: Unable to run euca--describe-images. Is environment for euca- set up?17:21
SpamapSJarmo: I'm not sure I understand what you're even trying to do..17:29
SpamapSJarmo: it sounds like cloud-publish-tarball needs you to have your environment variables setup to access openstack via the euca-* tools17:30
SpamapSJarmo: that means setting env variables like EC2_URL, EC2_ACCESS_KEY, EC2_SECRET_KEY, probably S3_URL too17:31
JarmoSpamapS check end of this guide: https://help.ubuntu.com/community/UbuntuCloudInfrastructure17:35
JarmoI think those cred files are setting variables?17:35
SpamapSJarmo: yes the '.ec2rc.sh' bit should set those17:37
SpamapSJarmo: if you can't run 'euca-describe-images' then something is wrong w/ your OpenStack setup17:37
Jarmohmmm, ok...17:37
SpamapSJarmo: you may want to ask in #ubuntu-server and #ubuntu-cloud too. Lots of the devs who work on Ubuntu Cloud hang out in there17:38
JarmoIt's like this: i have used openstack manually and I think I know how to use eucatools etc.... I just dont find is there way to use manually way on maas + juju environment too.... I'll try ubuntu-cloud next :) THX :)17:39
Jarmoor no: #ubuntu-cloud Cannot join channel (+i) - you must be invited17:40
SpamapSwha?!17:40
SpamapSOh17:42
SpamapSit was shut down17:42
SpamapSwhich makes sense17:42
Jarmoahaa :D17:42
SpamapSJarmo: ok, yeah so just try #ubuntu-server17:42
Jarmook, thanks17:42
m_3SpamapS jcastro: we're getting quite a bit of action on the homebrew-juju osx cli... what criteria do we use to give someone the rights to merge Pull Requests into trunk?17:47
m_3that's not charm-contributors or charmers... it's more juju itself17:47
jcastrothat's a good question17:47
m_3s/quite a bit of action/action/... but still17:48
SpamapSm_3: Its up to Brandon IMO.17:48
SpamapSm_3: unless we want to start dedicating hardware and time to it.17:48
m_3SpamapS: kinda think we should... (it's important to juju overall)17:48
m_3I'll send something to the list17:49
jcastroyeah this sounds important enough to get list-wide buy in17:51
JarmoBTW, Would love if there would be charm for creating images for openstack, or if there would be button "add image" on openstack-dashboard...17:52
JarmoI'll think ill try to do it after I get my system working perfectly.. just need to understand what goes wrong atm17:54
m_3Jarmo: We do have http://cloud-images.ubuntu.com/ which includes openstack images17:54
Jarmobut those images need handling with eucatools manually, would love if there would be way to put them in just by clicking button and telling "use this image"17:56
JarmoMy team has been working for setting up Cloud with MAAS & juju, only thing we have problems is adding images17:58
Jarmoor reaching eucatools, not 100% sure what excatly goes wrong17:58
Jarmomaybe authenticating (damn that is hard word)17:59
Jarmobut must say that I love charms, makes setting up openstack much easier & faster...18:00
Jarmo..but it is harder to tell what goes wrong at the moment18:01
SpamapSm_3: well if we're going to pull it in.. we need to move it to launchpad so we don't have to maintain 2 teams.18:01
SpamapSm_3: then all of ~charmers can own it like all the rest of these tools18:01
* SpamapS braces for the flame of bzr hate18:02
Jarmo:D18:02
SpamapSJarmo: there's an active effort to have an external glance server which hosts the Ubuntu images, and then a feature to point your openstack at said glance server.18:03
marcoceppiSpamapS: tbh it needs to be in LP because that's where the Juju core is stored18:03
SpamapSmarcoceppi: yeah. It gets complicated spreading out between github and launchpad18:04
SpamapSif nothing else we need a project page so we can track bugs that are caused by the brew packaging18:04
Jarmothere is guide : https://help.ubuntu.com/community/UbuntuCloudInfrastructure wich says EC2 API  To begin using the EC2 API, select Settings-> EC2 Credentials -> Download EC2 Credentials in the Openstack dashboard. Save the file (eg, /home/adam/openstack/"). We can then unzip these and begin using our cloud... Does this mean when I use those files on any computer wich is on same network I should have access for eucatools? or how you unde18:05
SpamapSJarmo: well you have to source the ec2env.sh or whatever it is called, but then yes18:06
Jarmook, then I did understand right...18:06
SpamapSJarmo: note that the 12.04 OpenStack dashboard also has an option in there for downloading a juju environments.yaml18:06
Jarmo(have been working 11+ hours so im not anymore so sure where I do my mistakes :P )18:06
JarmoSpamapS about downloading juju environments.yaml: i didn't find how this would be useful/how this feature should be used? can you lighten me where this helps?18:08
SpamapSJarmo: download it, put it in ~/.juju and type 'juju bootstrap' and you should get a working juju18:09
SpamapSJarmo: instead of having to figure out all the config options for juju like ec2-uri, access-key, etc. etc.18:09
Jarmoahaa, I have to give that a try tomorrow :)18:10
m_3SpamapS: sent 'osx client' to the list18:23
Jarmohmmm, if I follow this "guide" I dont find too many spots where I could have done wrong...18:28
Jarmohttps://help.ubuntu.com/community/UbuntuCloudInfrastructure18:28
ihashacksSpamapS: tyvm for your attention to the issues I send here. I bzr branch'ed your nagios/trunk but I don't know how to tell juju to use it as a local repository18:28
ihashacks... or do I zip it up as a .charm and stick it in ~/.juju/cache ?18:30
SpamapSihashacks: juju deploy --repository ~/charms local:nagios18:31
SpamapSihashacks: you need a dir under ~/charms with the release of ubuntu (precise) and put nagios in there18:31
SpamapSihashacks: also you can set $JUJU_REPOSITORY and drop the --repository ~/charms (I put this in my .profile so I never have to use --repository)18:32
SpamapSm_3: woot thanks18:32
ihashacksI did --repository= ... needed to get rid of the = ... derp!18:32
SpamapSJarmo: hopefully the people in #ubuntu-server will have more insight into your issue18:32
SpamapSihashacks: no, the = is optional18:32
SpamapSihashacks: though I think it won't work with --repository=[space]dir18:33
Jarmowas hoping that too, but they were kinda silent guys :D Was so hoping that cloud channel would have been open :D18:33
Destreyfihashacks: i had issues with local repositories, my workaround was --repository=. local:<charm name>18:34
m_3SpamapS: btw, those're just packaging formulas... they pull the cli itself from lp18:34
SpamapSm_3: Yeah I know. I'm fine with leaving them there, but its going to be harder and harder to support split-admin of teams who might want to help w/ both.18:36
SpamapSm_3: can cross that bridge when we come to it.18:36
SpamapSbut IMO, this is a fail from Debian that we don't want to repeat. they have 19 ways to maintain packaging in git/svn/bzr .. even heavy divergence between teams that use git.18:37
SpamapSSo, the more diversity in tools, the greater the barrier there is to contribution.18:37
ihashacksWait, it wasn't the = either. It didn't like "local:nagios" had to use just "nagios"18:38
SpamapSihashacks: using just 'nagios' will deploy from the main charm store18:39
SpamapSihashacks: which, actually, is now my charm ;)18:39
SpamapSbecause that old one was.. well.. just that.. really old.. clearly hadn't been used ever18:39
ihashacks...clearly :)18:41
ihashacksOk that must have happened in the last hour then because I tried earlier and it still showed nagios0 instead of (now) nagios118:41
DestreyfSpamapS: i ran across some references on LaunchPad regarding Machine specific deployment, the last post talks about a Go Port?18:42
DestreyfSpamapS: https://bugs.launchpad.net/juju/+bug/806241 <- to be specific18:43
_mup_Bug #806241: It should be possible to deploy multiple units  to a machine (unit placement) <production> <juju:Confirmed> < https://launchpad.net/bugs/806241 >18:43
SpamapSDestreyf: right, there is a rewrite of juju underway to the go language.18:43
SpamapSDestreyf: bzr branch lp:juju/go  to check it out18:43
SpamapSihashacks: that number has nothing to do with the charm version18:44
Jarmothat sounds really smart idea!18:44
SpamapSihashacks: you should see revision 20 if you have mine, or 2 if you have the old one18:44
Destreyfthat is the Unit number in the enviroment.18:44
Destreyfso if you have done "add-unit" you'd see another.18:44
DestreyfSpamapS: i shall look at juju/go thanks!18:45
SpamapSDestreyf: its quite a ways off. What is it that you want to run two of on one machine?18:49
SpamapSDestreyf: there are ways of deploying extra things, called subordinates.. that usually handles most of the cases that people want.18:50
DestreyfWe have a 4 Node 2U server, that we're going to use as the center of our cloud, and we're wanting to deploy openstack across it using juju to allow for easier configuration and setup of the nova-compute nodes18:50
* negronjl is back from lunch18:50
SpamapSDestreyf: keep in mind that with VMs and the cloud, there's not so much of a point in running two primary things on a box as there were when we had only discreet servers18:51
DestreyfOpenStack setup requires 8 servers for its operation, which is more than i have at this moment.18:51
SpamapSDestreyf: so you want to put mysql, rabbit, etc. on one box?18:51
DestreyfSpamapS: Basically i'm wanting to have MySQL and Rabbit on one box, and also on each "Compute" node having the nova-volume as well as we're wanting to offer a backup solution to some of our clients as well.18:52
Destreyfwhoo, almost closed my IRC window18:53
m_3balloons: ah.. just saw that the videos I was pointing you to were commented out.  They were BrightTalk webinars and required an account to watch.  as such, they don't belong as-is on the front page of juju.ubuntu.com18:54
ihashacksNot the unit nubmer but the number in the actual charm cache (at least that's what I think it is) http://paste.ubuntu.com/987680/18:54
SpamapSDestreyf: yeah I think juju is going to remain weak for small bare metal deployments for the near term future.18:54
SpamapSihashacks: when you use local: there is no charm cache18:54
m_3balloons: http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CFMQtwIwAA&url=http%3A%2F%2Fwww.brighttalk.com%2Fwebcast%2F6793%2F39309&ei=5VSxT9eqKuTq2QWGrLzpCA&usg=AFQjCNG9kG4AGdC45c6tql-e3xEpb8iXng18:54
balloonsm_3, I don't think I found the brighttalk videos18:55
DestreyfSpamapS: He didn't use local18:55
SpamapSihashacks: oh right but you used the store.18:55
Destreyfihashacks: the _1 vs _0 is referencing the unit number18:55
SpamapSihashacks: juju status should show the charm: for the service.. if it says it is version 20 then you have the new one.18:55
balloonsinteresting18:55
balloonsyour having a webcast?18:55
ihashacksI question that because in that directory I only have a 0 for wordpress but I have 6 units for wordpress in the current test I'm running.18:55
Destreyfihashacks: if you issue juju status, you'll see a nagios/1 that's the unit number, you'll notice you probably have 2 of them18:56
m_3balloons: we'll try to get it either signup-free or redo them as pure screencasts18:56
Destreyfthe cache directory probably has 2 versions cached for nagios, and only 1 for Wordpress18:56
balloonsm_3, yes, definitely looks cool.. but a big silly to have to register to view the old talks18:57
ihashacksRight, so the number relates to versions, not units. What I was infering was that I saw a new version in the cache and therefore got the new Nagios version.18:57
m_3balloons: here it is without all the tracking crap http://www.brighttalk.com/webcast/6793/3930918:57
ihashacksI think we're all on the same page and just don't realise it. :)18:57
Destreyflol probably18:58
SpamapSihashacks: indeed we are :)18:58
SpamapSDestreyf: back to your questions. There *are* ways around your problem with current juju. But none of them involve deploying the stock charms. You have to make some minor tweaks.18:59
SpamapSDestreyf: the simplest thing you could do would be to fork the current charms and add 'subordinate: true' and a 'requires: { local-relation: { interface: juju-info, scope: container } }' to the metadata.19:00
balloonsm_3, interesting container they have on that page19:01
DestreyfI have no problems forking the Charms :P19:01
SpamapSDestreyf: then you would deploy the 'ubuntu' charm and add-relation to put those services together on one box. "juju deploy ubuntu rabbit-and-mysql ; juju deploy mysql-subordinate ; juju deploy rabbitmq-server-subordinate  ...19:02
SpamapSDestreyf: we have a problem encouraging you to fork the charms, because we'd like to encourage collaboration, not forking. :)19:02
SpamapSDestreyf: the second step of that is 'juju add-relation rabbit-and-mysql mysql-subordinate ; juju add-relation rabbit-and-mysql rabbitmq-server-subordinate'19:03
koolhead17melmoth, around19:04
Destreyfso mysql-subordinate is the charm?19:05
Destreyfand the rabbit-and-mysql is a reference name to a machine?19:05
SpamapSDestreyf: not a machine, a service19:06
SpamapSDestreyf: but yes, the others would be the names of the -subordinate forked charms19:06
SpamapSIMO we should give you the option to do this at runtime, since its so simple, but for the moment, we don't.19:07
DestreyfOkay, i think i have an understanding now.19:07
SpamapSDestreyf: so the 'ubuntu' charm is a special empty charm19:07
DestreyfSpamapS: its been great talking to you, i had wondered if i'd run into you directly after seeing you post on launchpad19:07
SpamapSDestreyf: did we meet?19:07
SpamapSI lose track. :-/19:08
DestreyfNo, just your posts are always very well done, and full of useful information.19:08
Destreyf:P19:08
SpamapSI try. ;)19:08
Destreyfi've been working through getting the MAAS setup for the better part of 2 weeks, after dealing with some hardware issues i've gotten alot more working, i've only had one other problem, which nukes juju out of the box, for some reason, when the MAAS provisions a box, when it boots for cloud-init, the apt sources are ubuntu-mirror.localdomain19:09
Destreyfand juju/zookeeper and others are unable to install19:10
Destreyfbut that's a 30 second fix with ssh after the MAAS provisions :P19:10
jorge___hi! just to confirm, if I want to use a mirror in the instances created by juju, there is no support yet? I have to use some ppa?19:11
SpamapSjorge___: right, there are some tricks you can do but ultimately you're stuck with whatever cloud-init chooses for your mirror.19:12
DestreyfSpamapS: i've got to run, i'll be playing with Subordinates, thank you very much for your time, if i get a chance, i'll see what i can contribute back to the community once i get up and running.19:13
SpamapSjorge___: on EC2 thats an S3 based mirror.. outside EC2 it will usually just be archive.ubuntu.com19:13
jcastroSpamapS: hey I noticed you've been promulgating while we were away, nice!19:13
jcastro78 charms!19:13
SpamapSDestreyf: your interest is a *great* start. :)19:13
SpamapSjcastro: Yeah I promulgated a few of the charm contest entries.19:13
jcastrowell done!19:14
melmothkoolhead17, i m back (got mysql started at least)19:14
koolhead17melmoth, cool. because i see SpamapS here :)19:15
koolhead17jcastro, hello sir19:15
jcastrohi!19:15
jorge___SpamapS: hum, ok! I was using 11.10 and now I'm using 12.04, in a private cloud. Before, I modified the image to point to my mirror. So, I have to do it again. I've read next releases are going to bring some features as apt-mirror, proxy and parameters to cloud-init, as when we call nova boot -f <file>. Am I right?19:18
SpamapSjorge___: https://launchpad.net/juju/+milestone/galapagos  That is the current milestone's bugs.. and I see bug 897645 is there with a branch awaiting review...19:20
_mup_Bug #897645: juju should support an apt proxy or alternate mirror for private clouds <cloud-init:Fix Released> <juju:In Progress by hazmat> < https://launchpad.net/bugs/897645 >19:20
SpamapSactually my bad, its got a branch, but not proposed for merge just yet19:23
jorge___SpamapS: ok! Thanks. I've written a description about a specific problem here. Maybe it can be helpful ... I don't know if it is a bug. Someone in openstack list told this. I dont know. http://pastebin.com/SnC4GLEi19:24
SpamapSjorge___: I saw your issue on the openstack list. I think its because juju over-uses groups and openstack isn't quite able to keep up with the way juju is abusing groups ;)19:25
SpamapSanyway, lunch time19:26
koolhead17is someone participating or already registered juju charm session for LISA12>19:26
koolhead17https://www.usenix.org/conference/lisa12/call-for-participation19:26
koolhead17https://www.usenix.org/conference/lisa12/workshops-training-program-and-bofs#training19:26
jcastrohazmat is registring lisa1219:26
SpamapSkoolhead17: we are submitting talks, and I hope we'll do a full charm school19:26
koolhead17looks place for charm school19:26
koolhead17hazmat, few more days left :)19:27
SpamapSyeah its close to me too, so I can give one ad-hoc in the hallway if they say no ;)19:27
* SpamapS goes to lunch19:27
marcoceppihazmat: good luck at LISA - land of neck beards, perl, BOFH, and 1990's Linux Guy19:29
koolhead17marcoceppi, i saw some of them at uds too :D19:29
SpamapSmarcoceppi: according to Robbie W, the crowd from LISA11 was super excited about juju19:29
marcoceppiSpamapS: wow, I guess it's changed a lot from LISA0819:30
SpamapSmarcoceppi: they're a great target, as they're not interested in "learning" the cloud, but they're going to get dragged into it anyway19:30
SpamapSbest that we be the grease in those old squeaky wheels19:31
SpamapSmarcoceppi: I thought the same about it too, but Robbie found that the crowd was realizing they can't just keep buying boxes ... the cloud is coming :)19:31
marcoceppiCool, that's a great audience to target then19:31
koolhead17SpamapS, i read on the site with mention of term "Cloud" which was kind happy feeling :P19:32
jcastroSpamapS: m_3: hangout invite incoming!19:42
DestreyfSpamapS: sorry to pop back in, on the requires, i see a JSON string, but in MySQL the requires statement is straight YAML, do i need to just convert the JSON to YAML?19:44
SpamapSDestreyf: heh.. json is a subset of yaml ;)19:44
Destreyflol hadn't ever thought of it that way.19:45
thomiHi - I've been writing a juju charm to deploy quassel-core, and I'd love someone to take a look at it and give me a few pointers. What's the recommended way to do this? Just push a branch to launchad?19:45
SpamapSthomi: https://juju.ubuntu.com/Charms has some pointers19:46
jcastrothere are steps there to follow ^19:46
thomiahhhhh, those steps aren't in the "create a charm" tutorial...19:47
thomiswesome, thanks.19:48
thomi*awesome even.19:48
DestreyfSpamapS: sorry, that was a stupid question on my part :P19:49
Destreyfwhen i bootstrap my server, i get "agent-state: not-started" and it doesn't change.19:55
Destreyfjust that just mean i need to deploy or?19:56
SpamapSDestreyf: your servers may be busy doing stuff19:56
Destreyfit shouldn't be, its a fresh box that had been setup last week and hasn't been touched yet.19:56
Destreyfi'm getting an error that occurrs every minute in juju debug-log19:59
Destreyfhttp://pastie.org/private/lw3emg4ygqdznfi1ozs9q19:59
Destreyfand just so it can be seen: http://pastie.org/private/q69fcgvfnt498sgmifu3a <- that's the provision.py just in case.20:01
SpamapSDestreyf: that means you don't have enough nodes in maas20:01
SpamapSDestreyf: make sure they're 'accept and commission'ed20:01
Destreyfhttp://i47.tinypic.com/2ykj1ap.png <- 3 nodes all say ready20:02
Destreyfi did try the PPA of juju at one time, however i reverted back, maybe something related?20:03
Destreyfhmm, i tried to do a cloud-init by hand on the node, and am getting a 401 back from the instance-id, something else must be going on.20:16
_mup_Bug #999338 was filed: juju should complain/error on unknown charm metadata <juju:Confirmed> < https://launchpad.net/bugs/999338 >21:08
ihashacksSpamapS: all works well with the add-relation for the nagios charm unless you have two units for a service22:02
ihashacks"members" are separated by a newline then a , instead of just a ,22:03
ihashacksI'm thinking an rstrip is needed somewhere around line 74 of /var/lib/juju/units/skymon-0/charm/hooks/common.py22:11
koolhead17jcastro, ping22:16
SpamapSihashacks: thanks, I'll fix that22:20
ihashacksnp. You keep updating, I'll keep testing. :)22:23
DestreyfSpamapS: Working on a fresh install of ubuntu 12.04. :P22:29
DestreyfSpamapS: off i go to the server room again. :D22:31
SpamapSDestreyf: no remote kvm?22:31
SpamapSihashacks: Hmm.. its working fine for me..22:36
SpamapS    members ip-10-252-6-67.us-west-2.compute.internal,ip-10-252-85-84.us-west-2.compute.internal22:36
SpamapSHrm.. I'm starting to think that internal hostname is not as useful as service unit..22:41
SpamapSmysql-0 looks better than ip-x913481590122:41
imbrandonheh22:41
ihashacksmembers skysql-022:44
ihashacks,skysql-122:44
ihashacksthat is how my "members" look in the generated hostgroup files22:44
SpamapSihashacks: weird22:45
ihashacksisntead of members skysql-0,skysql-122:45
SpamapSihashacks: are you using local provider? maas?22:45
ihashacksI get that if I 1) add-relation to a single-unit service (works) and then add-unit a second (fails) or 2) add-relation to a new service that already has two units (fails)22:45
ihashackslocal provider (which I understand to be the red-headed step-child right now) :)22:46
SpamapSihashacks: I added a unit to a working service. Got no newlines in there.22:46
SpamapSihashacks: I actually did most of my dev on the local provider22:46
SpamapSbut I didn't test add-unit22:46
* SpamapS tries it in local provider22:49
* SpamapS lands changes in charm-tools to set a 'maintainer' field.22:55
ihashacksManually removed newline in the hostgroup, Nagios starts up. juju add-unit a 3rd unit and the original newline plus a second new one is there.22:57
ihashacksmembers skysql-022:57
ihashacksgrrrr22:57
ihashacks,skysql-122:57
ihashacks,skysql-222:57
SpamapSihashacks: I'm debugging now23:03
=== zirpu is now known as zirpu-away
SpamapSihashacks: ok, confirmed this only happens on local provider.. now to figure out why23:45
SpamapSI think I know23:45
SpamapSihashacks: ok, fix pushed to lp:charms/nagios23:48
SpamapSihashacks: it takes a while for that to make it to the live charm store23:49
ihashacksI've noticed, http://jujucharms.com/charms/precise/nagios still shows the notes from 2011/10/12 even though I know you fixed it. :)23:50
ihashacksTHANK YOU for the help. When this shows up in the store I'll beat on it again and let  you know what else I find.23:50
SpamapSihashacks: unfortunately, they are not linked..23:55
SpamapSihashacks: so sometimes the store has stuff that is not in jujucharms.com23:55
SpamapSand vice-versa23:55
SpamapShazmat: ^^ note that this charm is woefully out of date on jujucharms.com .. any ideas?23:56
Destreyf_Hola23:57
* hazmat pokes around23:57
Destreyf_SpamapS: Hey, i had a question in regards to the deploy command you listed earlier.23:57
Destreyf_"juju deploy ubuntu rabbit-and-mysql" is ubuntu an actual charm, or do i use any charm in its place?23:58

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