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

=== defunctzombie_zz is now known as defunctzombie
marcoceppikurt_: pong00:59
marcoceppiZonkedZebra: still having issues with sharing code between hooks?01:00
ZonkedZebratook a break. settled on sourcing a file with common functions. Yay/Nay?01:01
kurt_marcoceppi: are you familiar with the ceph deployment stuff on charms?01:02
kurt_that is my next project01:02
kurt_add ceph to openstack01:02
marcoceppiZonkedZebra: that works fine, are you writing those in bash or another language?01:02
ZonkedZebrabash01:03
marcoceppikurt_: I have pretty much very little experience. I've deployed ceph and ceph-osd as part of a demo openstack setup, but didn't dig very far01:03
marcoceppikurt_: I'm happy to field any questions I can though01:03
kurt_marcoceppi: ok.  I'm just in the research stage.  if you have any cliff notes or anything you wish to share short of jamespage's cephaloid thing, I'd be appreciative.01:04
kurt_the RTFM stage if you will01:04
marcoceppiZonkedZebra: cool, so you can't explicitly call relation-* commands out-of-band (IE, during hooks that aren't relation hooks). This is because Juju sets extra environment variables to make those tools work. Mainly JUJU_RELATION_ID. So if you wanted to call relation-get say during a config-changed hook, you can, but you need to record the JUJU_RELATION_ID somewhere and call `relation-get -r $JUJU_RELATION_ID <unit> <key,>`01:05
ZonkedZebramarcoceppi: Alright, thanks01:05
ZonkedZebraIs writing charms in other languages discouraged at all?01:06
marcoceppiZonkedZebra: what I recommend instead, as that can get complicated, is during the relation-(joined,changed) hooks, when you get values you need write them to dot files in the $CHARM_DIR, for instance, the wordpress charm does with when it gets NFS data it puts it in a file in $CHARM_DIR then runs hooks/config-changed which checks for that file then sources it for the values http://bazaar.launchpad.01:07
marcoceppinet/~charmers/charms/precise/wordpress/trunk/view/head:/hooks/nfs-relation-changed01:07
marcoceppiZonkedZebra: not at all, the beauty of charms is they can be written in any language. To my knowledge we have bash/dash, python, ruby, and chef charms. Someone tried writting a charm in php but I think they gave up01:07
marcoceppiUse whatever language you/people deploying the service are comfortable with01:08
ZonkedZebraAm I responsible for installing the required interpreter during the install hook?01:08
marcoceppiZonkedZebra: at this time, yes01:08
marcoceppiZonkedZebra: there's discussions of having pre-required packages described in the metadata.yaml file, but for the time being you'll need to use a language available on all ubuntu machines (pretty much python or bash) to set up your dependencies01:09
ZonkedZebraSo what envs are possible with the install hook? (What is install on the base image)01:09
ZonkedZebraAlright. For the record I vote reps in metadata.yaml01:09
ZonkedZebradeps*01:09
ZonkedZebraI hope NSA monitoring can handle typos01:10
marcoceppiZonkedZebra: I'm a little against that, personally, I'd rather see hooks/setup or something similar. A hook that is only run once, but the decision isn't up to me :)01:10
ZonkedZebraWhat is the best way to install something on all machines? I had to do a bit of hacking to get mosh running properly.01:11
marcoceppiZonkedZebra: a subordinate would be one way01:11
marcoceppiZonkedZebra: you mean within juju or just in general?01:12
ZonkedZebraIn general. Built in would be cool. juju mosh unit/0. I like how that felt01:13
ZonkedZebraWhere can I find the list of things that are set during the hooks, like CHARM_DIR and HOME?01:15
ZonkedZebraI guess I can just debug-hooks and dump it01:19
marcoceppiZonkedZebra: debug-hooks is the way to go, it might be in the docs though01:19
marcoceppiZonkedZebra: juju has plugins, so you could totally do a mosh plugin01:19
ZonkedZebraWhere is the docs on the plugin system?01:20
marcoceppiZonkedZebra: drafted on my computer, but they're pretty straight forward, you just put a file called juju-<plugin> in path01:20
marcoceppiZonkedZebra: there's a juju-plugins project on LP that I started which will eventually pacakged a lot of common plugins together you could add it to01:21
marcoceppiZonkedZebra: I really thought we had the environment variables documented :\01:22
ZonkedZebraNope :(01:22
ZonkedZebraa couple of them are, randomly :)01:22
* marcoceppi makes notes to fix this01:22
ZonkedZebramarcoceppi: is there a functioning example somewhere in the juju-plugins repo?01:27
marcoceppiZonkedZebra: yeah, I wrote it in Python, so it's structured a little differently since I wanted to be able to test it like a python app01:28
marcoceppiZonkedZebra: http://bazaar.launchpad.net/~charmers/juju-plugins/trunk/view/head:/plugins/juju_test.py01:28
marcoceppiit's actually the worst example ever, because it's a really involved plugin01:29
marcoceppibut it's the only one I've written so far01:29
ZonkedZebrainteresting, looked like part of the testing harness at first glance01:30
marcoceppiZonkedZebra: it's seperate, it basically just runs all the files in tests/01:30
marcoceppithe testing harness, amulet, was designed to be independent of the test plugin, so people arent' forced to use it for writing tests01:31
ZonkedZebraYep, figured it out when I hit __name__ == '__main__'01:31
* marcoceppi disappears for a while01:34
alexrockzHey guys!04:24
alexrockzHi04:49
alexrockzHow is everybody04:49
alexrockzI'm bored04:57
=== defunctzombie is now known as defunctzombie_zz
alexrockzHi guys06:10
=== CyberJacob|Away is now known as CyberJacob
marcoceppialexrockz: hello06:53
=== CyberJacob is now known as CyberJacob|Away
=== CyberJacob|Away is now known as CyberJacob
alexrockzHi everybody08:52
alexrockzAnyone like Ubuntu here?08:54
alexrockz'cause i do08:55
alexrockzI used to have it on my Windows 7 laptop08:55
alexrockzThen i un-installed it 'cause it was taking up my memory08:55
alexrockzDidn't use it anymore08:55
alexrockzSo i got a new laptop08:56
alexrockzIt runs Windows 808:56
alexrockzI was hope for a big computer with 500 GB08:57
alexrockz(Giga-Bytes)08:57
alexrockzNo comment huh?09:08
alexrockzok09:08
=== defunctzombie_zz is now known as defunctzombie
Diegonathi?..18:04
Diegonati have this error while trying to use openstack caused by: the configured region "RegionOne" does not allow access to all required services, namely: compute, object-store18:04
marcoceppiDiegonat: does your user have access to compute and object-store? Can you launch instances from the dashboard?18:11
Diegonatyes i can18:29
Diegonatmarcoceppi, sto usando18:29
Diegonatadmin18:29
Diegonatfixed18:39
Diegonatno not really18:39
paulczar_how do delete the environments cache of a charm that I'm developing?   getting tired of doing an environment-destroy every time I change something18:40
alexrockzHi everybody!18:48
=== defunctzombie is now known as defunctzombie_zz
=== defunctzombie_zz is now known as defunctzombie
_mup_Bug #1232547 was filed: When Trying to Deploy on ec2 I get "no instances found" <juju:New> <https://launchpad.net/bugs/1232547>20:41
AskUbuntuJuju errors when trying to deploy to ec2 | http://askubuntu.com/q/35126920:46
=== CyberJacob is now known as CyberJacob|Away

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