/srv/irclogs.ubuntu.com/2012/03/21/#juju.txt

_mup_juju/relation-id r490 committed by jim.baker@canonical.com03:59
_mup_Comments, PEP8, tests03:59
_mup_juju/relation-id r491 committed by jim.baker@canonical.com03:59
_mup_Merged trunk03:59
_mup_juju/subordinate r523 committed by kapil.thangavelu@canonical.com04:38
_mup_revert04:38
shazzner_hello06:08
shazzner_had a quick question: when I deploy my charm, it works but I always get an "install_error" for the state when I run juju status06:09
shazzner_any ideas on what could cause that?06:09
shazzner_or what it even means :p06:10
=== almaisan-away is now known as al-maisan
shazzner_ok nevermind, it was something that really was an error :p07:10
_mup_juju/relation-hook-context r492 committed by jim.baker@canonical.com08:00
_mup_Initial commit08:00
roubihi09:07
AlanBellroubi: if you have a question about juju ask it in the channel09:20
roubiit's my first time09:22
roubion freenode09:22
roubiso09:22
roubiam 'i09:22
roubiin the rong way?09:22
=== zyga is now known as zyga-afk
roubiis there any one who have tried juju on an ovh server09:36
AlanBellroubi: I have not tried juju at all, but some others have, do you have a question you want answered?10:14
roubiyes i've10:16
roubido you know some one who've tried it using an ovh server10:17
arashbmHi!10:46
arashbmI have a question about charm development.10:46
arashbmI'm developing a ruby on rails charm,10:47
arashbmthe problem is that not all units provide the same relations10:47
arashbmbut they all require the same relations with db and so on10:47
arashbmshould I spit it to two charms, one for those having http inteface and one for others (workers)?10:50
=== zyga-afk is now known as zyga
=== al-maisan is now known as almaisan-away
jamespagearashbm, its possible todo that through a single charm with multiple personalities11:02
arashbmThanks jamespage. I looked trough the docs at juju.ubuntu.com/docs but I couldn't find any information about it.11:06
jamespagearashbm, its not really a juju feature per-say11:11
jamespagebut you can write charms that behave in this way11:11
* jamespage looks for a good example11:11
jamespagearashbm, what are you writing your hooks in?11:12
arashbmyou mean the scripting language?11:12
arashbmI'm using bash for some11:13
arashbmand ruby for the others11:13
jamespagearashbm, OK11:13
jamespagearashbm, does the http interface do anything without the workers?11:14
jamespagei.e. would that be a valid deployment?11:14
arashbmyes, there could be apps consisting only of web-server (simple apps not doing anything in background)11:17
arashbmit could be a worker-only (like spiders and so on)11:17
arashbmand it could be a mixture of both (some web and some workers)11:17
jamespagearashbm, is this a generic ruby on rails charm or is it targetting a specific application?11:34
arashbmIt's generic11:34
bbcmicrocomputerhmm... I seem to wait forever sometimes for a new charm to deploy on EC211:46
bbcmicrocomputerthe EC2 instance itself is up, I can ssh into it11:46
bbcmicrocomputerbut the juju machine/unit agents seem to take a long time to deploy11:46
bbcmicrocomputerany idea if this is known or being investigated?11:47
bbcmicrocomputerhmm.. that's interesting, the machine agent process 'python -m juju.agents.machine' seems to be in a loop launching itself on this particular instance11:54
bbcmicrocomputerkeeps relaunching every second or so with a new pid11:54
Tribaalhey folks, I'll be making a short presentation about juju to a local python user group tonight, any tips?11:56
jamespagebbcmicrocomputer, is that upstart managed? it might have a respawn config11:57
bbcmicrocomputerjamespage: yeah, I think so11:57
bbcmicrocomputerjamespage: it appears the new instance has an old version of juju on it, only 0.5+bzr457-0ubuntu1 and the error of its relaunching is 'machine.py: error: unrecognized arguments: --nodaemon --session-file /var/run/juju/machine-agent.zksession'11:58
bbcmicrocomputerjamespage: any idea how newer version of juju are supposed to propagate to instances?11:58
bbcmicrocomputerjamespage: I assumed the instance was meant to use the same juju repository as what deployed the charm11:59
jamespagebbcmicrocomputer, in your ~/.juju/environments.yaml file you can specify an origin:  ppa11:59
jamespageI think by default it will use the version in Ubuntu rather than PPA11:59
jamespageI think*11:59
bbcmicrocomputerjamespage: hmm... how have I got away with not specifying ppa in my environment before then.. I'm sure the other instances have used ppa when I've deployed them from a ppa'ed client12:00
bbcmicrocomputerjamespage: 'If this option is not set, juju will attempt to detect the correct origin based on its run location and the installed juju package.'12:05
bbcmicrocomputerjamespage: it does seem to happen everytime a new juju ppa gets released12:05
bbcmicrocomputerjamespage: so I guess it's something with my version being out of sync when that happens12:05
bbcmicrocomputerjamespage: ok, thanks, I'll specify ppa in the environment12:06
=== Guest10799 is now known as tobin
=== tobin is now known as Guest70213
arashbmIs anyone  using local provider or providers other than ec2 for testing?14:06
jamespagearashbm, I use the local provider for most of my dev/test work14:07
arashbmI have problems setting up local provider on 12.04:14:09
arashbmerror: Failed to start network default14:09
arashbmerror: Cannot open network interface control socket: Operation not permitted14:09
arashbmI tried sudo-ing bootstrap but no hope14:10
jamespagearashbm, can you check a few things for me14:11
arashbmsure!14:11
jamespagearashbm, sorry - trying todo multiple conversations14:19
jamespageas your normal user:14:19
jamespageoutput from 'groups'14:19
jamespageapt-cache policy juju14:19
jamespageyou should not sudo bootstrap - juju will call sudo as required.14:20
arashbm$ groups14:20
arashbmarashbm adm cdrom sudo dip plugdev lpadmin sambashare14:21
arashbm$ apt-cache policy juju14:21
arashbmjuju:14:21
arashbm  Installed: 0.5+bzr457-0ubuntu114:21
arashbm  Candidate: 0.5+bzr457-0ubuntu114:21
arashbm  Version table:14:21
arashbm *** 0.5+bzr457-0ubuntu1 014:21
arashbm        500 http://ir.archive.ubuntu.com/ubuntu/ precise/universe i386 Packages14:21
arashbm        100 /var/lib/dpkg/status14:21
jamespagecouple of things todo there14:22
jamespage1) stick your user in the 'libvirtd' group and then do a 'newgrp libvirtd'14:22
jamespageat the moment your user can't see the local virtual network OR create it14:23
jamespage2) Upgrade to the latest version of juju from the PPA14:23
jamespage'sudo add-apt-repository ppa:juju/pkgs'14:23
jamespagearashbm, ^^14:23
jamespagethen give it another spin14:23
arashbmThanks :)14:24
=== almaisan-away is now known as al-maisan
jamespagenegronjl, tomcat charm looks good14:37
jamespagenegronjl, a few bits don;t work tho - how do you want feedback?  can't help but feel a merge proposal would make this easier14:43
roubi_hi every body15:28
roubi_is there  here any one who have tried working with servers from ovh15:29
jcastrom_3, how's your thing coming along?15:39
=== al-maisan is now known as almaisan-away
roubi_Hi,  We are trying to install and test orchestra and juju on two physical machines,  we have a problem with juju status. Could you help please15:45
negronjljamespage:  thx for taking the time to check it out.  regarding feedback:  merge proposal works ... or email or message pigeons too :)15:47
m_3jcastro: hw issues atm... haven't done any real work yet today :)15:48
jamespagenegronjl, MP please15:48
hazmathi roubi_ so is orchestra by itself able to launch a machine?15:49
negronjljamespage: let me know the specifics of the things that don't work or, if you have time, you can fix them as well :)15:51
roubi_Hi Hazmat, orchestra is not able to launch a machine15:52
hazmatroubi_, figuring that out, independently of juju is a good first step15:52
roubi_orchestra seems to be installed correctly but can not control power on/off the client15:56
=== almaisan-away is now known as al-maisan
jamespagehi roubi_: still no luck?15:59
roubi_yes jamespage15:59
jamespageroubi_, have you managed to establish whether the required integrations are supported by your hosting provider (ovh)?16:01
jamespageroubi ^^16:03
roubi_I don't know how to do it16:05
roubi_I mean this verification16:05
roubi_:/16:05
jamespageroubi: I remember you have two servers - one running orchestra16:06
jamespageroubi: have you registered the second server in the orchestra/cobbler install on the first one?16:07
roubiyes it is16:07
jamespageroubi: and if you reboot the second server does it network boot from orchestra and re-install itself?16:09
roubiwhen I allocated this 2nd server, it  has  ubutnu server 11.10 as OS16:11
=== al-maisan is now known as almaisan-away
=== almaisan-away is now known as al-maisan
jamespageroubi: yes - but your setup needs to allow orchestra to perform an automated install on this server16:13
roubi_jamespage :do you think that the 2nd server must be with out OS16:19
roubi_?16:19
jamespageroubi_, whether it has an existing OS is irrelevant - it needs to be able to network boot and install from orchestra16:20
roubi_Yes but Even when I tried this between two pc16:23
hazmatadam_g, btw the openstack charms are looking really nice16:29
hazmati pulled them out yesterday to show off during a presentation16:30
adam_ghazmat: oh cool :)16:30
hazmatjamespage, i pulled out yours to show some nice bash charms as well16:34
jamespagehazmat, sweet - hope they went down OK16:34
jamespageits quite hard to decide when bash is not enough and you should switch to something like python16:35
hazmatjamespage, they did.. although there was  some skepticism over going from dsl back to shell scripts, it was sort of a devops thunderdome deathmatch..  http://www.meetup.com/DevOpsDC/events/46606602/16:36
hazmatthe audience was pretty savy  and saw the overall benefits16:36
jamespagehazmat, 'Four frameworks will enter, one framework leaves' - hope we won!16:38
jamespage'we' as in 'juju'16:39
hazmatjamespage, not quite, but there's a always a round two.16:40
jamespagelol16:40
zirpuwho won?16:41
hazmatzirpu, probably chef, their were also some folks from the cfengine company, which was nice.. puppet had some usage but not as much love.16:45
=== al-maisan is now known as almaisan-away
robbiewhazmat: m_3 might want your slides as he's been placed in a thunderdome for the DevOpsDays event in Austin :P16:53
hazmatrobbiew, i put mine together under the gun mostly from your lisa slides and some of SpamapS , ie. simple rehash, didn't really have time for anything new.. but i could definitely share some of my cage technique ;-)16:54
robbiew"cage technique"...lol, nice16:55
m_3hazmat robbiew: definitely wanna talk beforehand16:58
m_3it'll be fun16:58
robbiewm_3: I'll have shirts to win over folks ;)16:58
m_3short intro though... so gotta pick a very few apropos slides16:58
m_3robbiew: awesome16:58
robbiewpuppetlabs is sponsoring a damn happy hour :/16:58
m_3yikes16:58
m_3goes along with the puppet shirt tho16:58
* robbiew has the canonical credit card...just sayin16:59
m_3:)16:59
robbiewtbh, we'd probably do better by staying above the fray...maybe even showcase a charm with puppet (they're in main)16:59
robbiew...chef isn't in Ubuntu 12.0417:00
robbiewat the request of OpsCode (for those reading this)17:00
m_3right... planning on a charm pulling chef from gems though17:00
m_3I'm thinking of framing it as we're staying _below_ the fray... underlying coordination/eventing framework... etc etc17:01
robbiewm_3: well, "above" would support our devopsolution meme...but whatever :P17:24
m_3robbiew: yeah, true17:25
mplso what's the best  way to communicate between python and Go nowadays? net/jsonrpc ?17:32
mplsorry, wrong chan17:32
=== Guest70213 is now known as tobin
_mup_juju/relation-hook-context r493 committed by jim.baker@canonical.com17:54
_mup_Fix failing tests17:54
=== koolhead17|away is now known as koolhead17
jseutterquestion: does juju talk to maas or cobbler?19:01
jaaapcould someone help me with my local charms, i have setup an ubuntu server with lxc and juju. I can deploy charms from the examples installed on the system, but not from my downloaded charms folder. I'm trying to # juju deploy --repository charms/ local:mysql19:23
jaaapbut this responds in19:23
jaaap2012-03-21 19:21:30,033 INFO Searching for charm19:23
jaaapInvalid value for force_https: False19:23
jaaap2012-03-21 19:21:30,278 ERROR Invalid value for force_https: False19:23
marcoceppijaaap: this is due to a bug in older charms19:23
marcoceppi*looks for bugs*19:24
jaaapi just tried mysql, wordpress and munin all fails, loaded my charms with # charm getall ~/charms/oneiric19:24
jaaapit's very weird, i just copied the munin charm from ~/charms/oneiric/munin into /usr/share/doc/juju/examples/oneiric and did # juju deploy --repository /usr/share/doc/juju/examples local:munin which works, but not with # juju deploy --repository charms/ local:munin19:30
marcoceppijaaap: right, juju checks all charms in the repository. If one has an error then juju will fail19:34
marcoceppiit's been fixed in the latest ppa version19:34
jaaapmarcoceppi: i'm running Version: 0.5+bzr486-1juju3~oneiric1, did # sudo add-apt-repository ppa:juju/pkgs ; sudo apt-get update && sudo apt-get install juju charm-tools apt-cacher-ng zookeeper libvirt-bin lxc19:37
jaaapi'm not sure if there is another way to get the latest juju19:37
marcoceppithat's the latest, I believe. One second19:37
ninjixSpamapS: doing some mysql-mmm installs today I got some ideas on creating a mysq-mmm charm19:43
_mup_juju/relation-hook-context r494 committed by jim.baker@canonical.com19:44
_mup_Flush any additional relation hook contexts that are read, then possibly written19:44
_mup_juju/relation-id r492 committed by jim.baker@canonical.com19:44
_mup_Remove unused function19:44
ninjixSpamapS: thinking along the lines of having relation go  mysql-mmm-service << mysql-server19:45
_mup_juju/relation-hook-context r495 committed by jim.baker@canonical.com19:45
_mup_Merged upstream19:45
SpamapSninjix: sweet, I've heard good things about mmm19:49
krondoranyone know what might be causing ERROR invalid value force_https: False when I juju deploy mysql?22:21
m_3krondor: yes, check the config.yaml file of all the charms in your repo22:23
m_3krondor: strict-typing just landed for this file... if it uses a string field like "False" you need to change it to boolean _and_ False (no quotes)22:24
krondorm_3:  thanks found it, roundcube apparently.22:24
m_3there're a host of them... I'd recommend only keeping the charms you need in your repo atm22:25
m_3at least until we have this problem fixed22:25
krondorm_3:  no worries, moved to just what I need and all is good for testing again.22:26
m_3krondor: awesome22:27
jcastrom_3, are the inprogress charms also mirrored on github?23:05
m_3jcastro: nope23:13
m_3only charms that have lp:charms aliases23:13
m_3i.e., for oneiric23:13
* jcastro nods23:14
jcastrois it hard to include the others?23:14
jcastrojust thinking outloud23:14
jcastroif people want to github prior to submitting is what I was thinking23:15
m_3jcastro: no, it wouldn't be hard... just was eliminating noise23:15
m_3we'd have to figure out a good naming scheme23:15
m_3I'll test out some stuff23:15
jcastrook23:16
m_3jcastro: someone could fork one of the official repos into their own acct, then submit a pull request onto the main branches23:20
m_3alternatively, they could start a charm on a repo in their acct23:21
m_3then let us know it's ready for review23:21
m_3it'd still be manual for now, but we could automate stuff if we get lots of interest in that channel of submission23:22
* jcastro nods23:23

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