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

=== freeflying is now known as freeflying_away
=== defunctzombie is now known as defunctzombie_zz
=== defunctzombie_zz is now known as defunctzombie
=== freeflying_away is now known as freeflying
=== defunctzombie is now known as defunctzombie_zz
=== defunctzombie_zz is now known as defunctzombie
freeflyingwhat is the appropriate name of the bootstrap node?06:33
davecheneyfreeflying: that is what we call it06:34
freeflyingdavecheney, bootstrap node?06:35
davecheneyyup06:35
davecheneysometimes it's called the state server06:35
davecheneybut that isn't very accurate06:35
freeflyingdavecheney, cool, no matter its python version or go version :006:35
freeflying:)06:35
davecheneyfreeflying: we did keep _some_ things the same :)06:36
freeflyingdavecheney, nice approach I' d say06:36
freeflyingdavecheney, especially make our lives easier when write documents :D06:37
=== tasdomas_afk is now known as tasdomas
=== defunctzombie is now known as defunctzombie_zz
=== defunctzombie_zz is now known as defunctzombie
=== defunctzombie is now known as defunctzombie_zz
=== defunctzombie_zz is now known as defunctzombie
=== defunctzombie is now known as defunctzombie_zz
=== exekias_ is now known as exekias
=== freeflying is now known as freeflying_away
varudAnybody have experience dealing with the following:        agent-state-info: 'hook failed: "config-changed"'11:40
varudIt's a chronic problem I've been experiencing after reboots on a local juju installation both on precise and raring11:41
marcoceppivarud: yes, it means that a hook was executed but it failed during execution (exited with a status > 0)12:14
marcoceppivarud: you can run `juju resolved --retry <unit>` to re-run the hook again. If it continues to error then you can either ignore it or re-deploy the service (ignore it with `juju resolved <unit>` (without --retry))12:15
varudthanks, trying that out now12:31
rick_hfeatured for flag bearer!14:17
rick_hjcastro: ^14:17
* rick_h is catching up on the video14:17
marcoceppirick_h: thanks!14:18
rick_hmarcoceppi: yea, we've got the manual feature to mark as 'featured' and they're shown at the top of the gui. Great place to put flag bearers14:18
marcoceppirick_h: I think featured and flag bearer are slightly different14:19
marcoceppirick_h: in the end we decided not to display flagbearer in the gui14:19
marcoceppia flag bearer may or may not be featured14:19
jcastroI will certainly feature any charm we flagbear14:19
rick_hmarcoceppi: yea, understood14:19
mattgriffin1#join #ubuntu-uds-servercloud-214:19
=== freeflying_away is now known as freeflying
=== tasdomas is now known as tasdomas_afk
X-warrior'juju -v add-relation postgresql test-charm'... returns me 'error: no relations found'. My metadata.yaml has requires: database: interface: postgresql. What is wrong?14:41
mattgriffin1jcastro: watching video for Hangout for Flag Bearer Charms. sorry i missed it… busy morning. re: percona xtrabackup.. i'm still trying to get internal resources to assist14:52
=== mattgriffin1 is now known as mattgriffin
marcoceppiX-warrior: can you pastebin your metadata.yaml file?14:52
X-warrioryes I can14:52
X-warriorjust a sec14:52
marcoceppiX-warrior: np14:52
=== freeflying is now known as freeflying_away
X-warriorhttp://pastebin.com/WUNCxJfx14:54
jcastromattgriffin: no worries, thanks for the follow up!14:54
marcoceppiX-warrior: if you review the postgresql's metadata file, http://bazaar.launchpad.net/~charmers/charms/precise/postgresql/trunk/view/head:/metadata.yaml, it provides a pgsql interface. You'll need to make sure your interfaces match. So instead of "postgresql" as the interface, use pgsql14:55
marcoceppiX-warrior: charms can provide/require multiple relations over multiple interfaces. Interfaces are the only thing* juju cares about when matching a relation14:55
marcoceppi* unless there's an ambiguous interface match, in which case you'll need to provide the corrosponding relation endpoint14:56
mattgriffinjcastro: np14:57
X-warriordoes database and db the same? or should I change it on my charm to db instead of database?14:59
marcoceppiX-warrior: that naming doesn't matter so much15:01
X-warriorok15:02
marcoceppiX-warrior: you can have it be database, db, one-thousand-suns; it's only used to name hooks within your charm and to potentially remove ambiguousness from relations15:02
X-warriorand to get postgresql working, I MUST add a directory-path to it? I see the requires: persistent-storage: interface: directory-path15:02
stubX-warrior: No, in this case requires is optional :-/ The naming there isn't the best.15:07
marcoceppiX-warrior: no, requires and provides are a bit of a misnomer15:07
marcoceppiX-warrior: all relations are inheriently optional15:07
X-warriorit would be nice to have a distinction from requires and optional... so you could have then separated since there are some relations that probably are mandatory to get the service working (example: mysql to wordpress)15:08
marcoceppiX-warrior: the charm should be able to operate at any time without any or all relations added15:10
marcoceppiany caveats need to be in the README15:10
X-warriorty15:15
X-warrior:D15:15
=== TheRealMue is now known as TheMue
X-warriorHow could I use a private git repository on install? I saw the vanilla example, but if the repository is closed there are some problems with keys and stuff.16:49
marcoceppiX-warrior: you'd have to have config options to provide authentication methods for that repo16:52
marcoceppiX-warrior: so either an SSH key that you can provide, or a user/pass combo for the repo, etc16:53
X-warriormarcoceppi: is it possible to pass parameters on deploy? I mean, the install hook will need this user/pass information... but I don't want to hard code it on charm, so I would like to pass it as parameter. Since the service is not running yet, I can't use 'set' I guess17:10
=== defunctzombie_zz is now known as defunctzombie
X-warriorI can see the deploy --config option, but with that I will need to hard code the user/password on config.yaml file.17:12
=== defunctzombie is now known as defunctzombie_zz
=== defunctzombie_zz is now known as defunctzombie
sidneiX-warrior: this config.yaml you pass to deploy --config is not the config.yaml of the charm itself, but a local .yaml file with a different structure17:19
X-warrioryeap17:19
mrsolohi how do i force destroy a machine?17:22
sidneimrsolo: juju terminate-machine, but it must have no services on it anymore17:22
mrsolohm destroy-unit won't do?17:24
X-warriorsidnei: how could I access this config vars inside a hook? `juju get service name`?17:24
X-warrioriirc destroy-unit is to destroy units created by add-unit17:24
sidneimrsolo: remove-unit removes a specific unit from a service, if that was the last unit in a machine you can then terminate-machine17:29
sidneiX-warrior: config-get name17:29
sidneiX-warrior: the variable *has* to be defined in the service's config.yaml, think of that as the 'schema' for your config, which defines a default value and the type of the config key17:30
mrsolosidnei, thanks..17:30
mrsolojust did remove service, does it take a long time for the service to be removed?17:30
X-warriorhttp://pastebin.com/2sqw4FL417:31
X-warriorlike this?17:31
X-warriorand then git-key=`config-get git-key`  ?17:31
sidneiX-warrior: yup17:32
X-warriorI will try17:33
X-warriorty17:33
=== defunctzombie is now known as defunctzombie_zz
marcoceppimrsolo: does it have an error in juju status?17:34
marcoceppiit doesn't take that long17:34
mrsoloMACscr, no error.. the machine is listed as dying  so i wonder if it got into the state that database entry remove is not possible17:38
mrsolohttps://juju.ubuntu.com/docs/troubleshooting.html#die <- i got into this state.. and that link is broken..hah17:38
mrsolohttp://nopaste.info/6faf012158.html17:39
marcoceppimrsolo: it's in an error state, agent-state-info: '(error: hook failed: "install")'17:40
mrsoloyes how do i correct that.. that instance is totally gone17:41
mrsoloi forced wipe it from ec217:41
marcoceppimrsolo: run `juju resolved jenkins/0`17:41
marcoceppimrsolo: Oh, so you took the neuclear option. Not sure if you'll be able to remove it at this point.17:41
mrsolonice17:42
mrsoloya i did the nuclear option :-)17:43
marcoceppimrsolo: it doesn't hurt anyone/thing at this point, just muddies up the status output17:43
mrsoloya something to know.. so  if i want to wipe the entire lab.. do i need to generate environments.yaml?17:43
marcoceppifor future reference, if it's in an error and you're trying to destroy, running `juju resolved <unit>` will move the hook execution along. When an error is incurred, juju stops and queues all future events (including the destroy events)17:43
marcoceppimrsolo: if you want to remove the environment, just `juju destroy-environment`17:44
marcoceppithat will delete and tear down everything (including bootstrap)17:44
marcoceppibut you won't have to change your environments.yaml17:44
marcoceppiyou can then run juju bootstrap and generate a clean environment to work with again17:44
mrsolookay neat17:44
* marcoceppi records that we need a troubleshooting guide for the docs, with how to destroy a service in error state17:45
X-warriorconfig.yaml18:07
X-warriorops18:07
X-warriorsorry18:07
X-warriorCan I create my keys on config.yaml? I mean, I would like to add a git-key on it but when I'm using git-key: | option, it returns me an error18:21
X-warriorand if I remove the | and use just a regular string I receive this output "error: unknown option "git-key""18:21
sidneiX-warrior: unkown option means the charm's config.yaml doesn't define that key18:22
=== defunctzombie_zz is now known as defunctzombie
sidneiX-warrior: it needs to know that it's a valid option and that its type is 'string'18:22
marcoceppiX-warrior: so you'll have to have git-key in your config.yaml for the charm in the charm directory, but you don'thave to give it a default value, you can leave it as an empty "" for the default. Then you can create a seperate configuration file (maybe call it deployment.yaml) that you can keep outside of the charm and fill in the git-key configuration option18:24
marcoceppiX-warrior: an example, is with the phpmyadmin charm, which requires you to set a password for the user http://bazaar.launchpad.net/~charmers/charms/precise/phpmyadmin/trunk/view/head:/config.yaml however, when I deploy it I have another yaml file in my home folder with the following:  http://paste.ubuntu.com/6037542/ that I call deploy.yaml. So I can do things like `juju deploy --config ~/deploy.yaml phpmyadmin` and it'll get those18:27
marcoceppithree values set at deploy time18:27
marcoceppihttps://juju.ubuntu.com/docs/charms-config.html for additional reference18:29
=== tasdomas_afk is now known as tasdomas
=== tasdomas is now known as tasdomas_afk
=== defunctzombie is now known as defunctzombie_zz
=== defunctzombie_zz is now known as defunctzombie
=== natefinch is now known as natefinch-afk
=== defunctzombie is now known as defunctzombie_zz
=== natefinch-afk is now known as natefinch
adam_gwedgwood, sidnei any objections to merging darwin into lp:juju-deployer?19:30
wedgwoodadam_g: not from me. I've been using darwin exclusively for a while. you should ask mthaddon though19:34
adam_gwedgwood, thanks19:34
adam_gmthaddon, ^^19:35
wedgwoodadam_g: he's EoD, so an email might be best19:35
adam_gk19:35
=== defunctzombie_zz is now known as defunctzombie
sidneiadam_g: +120:13
marcoceppiadam_g: I'd love to see juju deployer in the stable ppa too, if you're going to be making the merge20:18
* marcoceppi thows 2C around20:18
jcastroadam_g: yes please!20:24
jcastrodeployer in the the stable ppa!20:24
sidneic'mon, what's wrong with saucy? :)20:40
sidneijcastro, marcoceppi: which distros you care about precise only or all in between?20:40
* sidnei splashes some commas around20:42
sidneii think i *can* upload to the ppa, but i need someone to tell me if i *should* do it or not20:42
sidneimaybe it should go into ppa:juju/pkgs with amulet and all that?20:44
sidneiin fact, there's a version there, it's just that it's fairly old20:44
marcoceppisidnei: precise raring saucy20:46
marcoceppisidnei: no, it needs to go in to ppa:juju/stable20:46
marcoceppisidnei: per cross team discussion20:46
sidneimarcoceppi: so it's agreed on already?20:50
marcoceppisidnei: correct20:50
sidneimarcoceppi: ok, i'll trigger a backport from saucy then20:51
marcoceppisidnei: thanks20:51
sidneimarcoceppi: no quantal?20:53
marcoceppisidnei: oh yeah, all current release please :)20:53
sidneimarcoceppi: all pending build, starting soonish: https://launchpad.net/~juju/+archive/stable/+builds?build_text=&build_state=all20:59
marcoceppisidnei: thanks20:59
marcoceppisidnei: could you stick the python-jujuclient api thing in there too?20:59
marcoceppiso deployer works20:59
sidneimarcoceppi: i take it taht you haven't looked at the url :)20:59
marcoceppisidnei: what, click on things? nah21:00
sidneiin other words, yes, done21:00
marcoceppisidnei: <3 thanks21:00
sidneimarcoceppi: all done21:24
sidneiwell, 'Binary packages awaiting publication'21:24
marcoceppisidnei: Thank you sir!21:25
=== freeflying_away is now known as freeflying
=== defunctzombie is now known as defunctzombie_zz
=== kentb is now known as kentb-out
weblifecan someone help my figure out why I am getting a error with a mongo shell script on the install hook: http://paste.ubuntu.com/6038371/23:07
weblifewhen I ssh into it I can load the mongo shell23:08
weblifethe service is up and running23:08
weblifeI know the bash script works locally with the same version and install23:09
weblifeThe error response is below the script allso23:10
weblifealso23:10
sarnoldweblife: sudo sudo sudo ... won't this thing run as root?23:10
weblifesarnold: I figured it wouldn't hurt just in case to have it there.  That could be the issue you think?23:12
sarnoldweblife: probably not the issue, you -do- get a mongo attempt to connect after all..23:12
weblifeDO I actualy need to open that port you think?23:13
sarnoldweblife: I think I'd throw a netstat -alp in there before the mongo << EOF ... -- see if the socket is open yet?23:13
weblifesarnold: I wouldn't think so due to it being local but I could be wrong.23:13
sarnoldweblife: 'service' is going to return nearly immediately, the service may not yet be running?23:14
weblifesarnold: looks like were on the same page.  Will try.23:14
=== CyberJacob is now known as CyberJacob|Away
=== CyberJacob|Away is now known as CyberJacob

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