=== 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
=== defunctzombie_zz is now known as defunctzombie
=== thumper is now known as thumper-afk
=== defunctzombie is now known as defunctzombie_zz
=== CyberJacob|Away is now known as CyberJacob
=== defunctzombie_zz is now known as defunctzombie
=== defunctzombie is now known as defunctzombie_zz
=== CyberJacob is now known as CyberJacob|Away
=== thumper-afk is now known as thumper
=== thumper is now known as thumper-afk
=== JoseAntonioR is now known as JoseeAntonioR
jamespagemgz, do you happen to know if a change/assignment of a public-address/floating-ip get notified to a charm in some way in the context of the openstack provider?09:14
=== thumper-afk is now known as thumper
yolandahi, i need to trigger some change when i assign a public ip to an instance. Is there any hook i could use for that, or can you give advice on some workaround? I've only thought in setting a config var with that ip, to trigger a config-changed , but i don't see it very usable09:22
henningeWhat's with the "use of closed network connection error" when doing "juju bootstrap"?12:37
henningejuju 1.11.212:38
henningeIt all was working fine on Saturday ...12:38
mgzjamespage: juju is completely ignorant of ip changes currently, it's one of the things I'm working on fixing this cycle12:44
jamespagemgz, urgh12:44
mgzit's also not easy to work around at a charm level, though I think is may have a few magical bits they've done previously12:46
henningeAh the error is gone now. I played around with deleting the control bucket which did not help at first but seems to do now.12:48
=== teknico1 is now known as tekNico
melmothwhen  a unit is added to a service, wich hooks are supposed to be run ? i think i onluy see a relation-changed, i was expecting to see a unit-added hook of some sort13:08
marcoceppimelmoth: you mean when you juju add-unit?13:19
melmothi want soemthing to be trigged in the other units when a unit is added.13:20
melmothmarcoceppi, looks like config-changed is all that is triggered...thats all right... as long as i can get a list of all the units associate with the current service13:24
marcoceppimelmoth: you can use a peer relation, which is fired when a new peer (unit) is added/removed from a service13:25
melmothi dont see any attempt to fire soemthing in the first unit of the service charm.log13:25
marcoceppimelmoth: juju-core?13:26
melmothnope. pyjuju13:26
marcoceppimelmoth: Speculating, as I know the peer relation works on both, but if there's no peer relation listed in the metadata.yml file juju might not even attempt to describe looking for one in the logs13:27
melmothmarcoceppi, indeed, i added a peer definition in the yaml, now when a new unit is fired it try to call peer-relation-joined. Thanks13:48
marcoceppimelmoth: excellent!13:49
melmothhow can i list all unit belonging to a service ? i try related_units() from charmhelpers without success: Calling relation related method without relation context: <class 'juju.state.hook.HookContext'>14:21
rick_h_jcastro: thanks, mysql showing up in the category now.14:26
ahasenackmelmoth: you need to call relation-list in the end. That takes a relation-id argument14:28
yolandahi, i'm writing a charm and i need some event to detect when a public ip has been associated, because some config files depend on it. Is there any hook i could use?14:28
ahasenackmelmoth: the relation-id is between services14:28
ahasenackmelmoth: so to grab all relation-ids for a relation name you call relation-ids first14:28
marcoceppimelmoth: you can't call it from just "any" hook without providing some context either14:28
ahasenackmelmoth: so, call relation-ids <relation-name>, then loop over the result calling relation-list -r <rid> for each one14:29
marcoceppiyolanda: currently there's no way to trap this event in Juju (from my understanding)14:29
marcoceppiyolanda: what you can do instead is create a configuration parameter in config.yaml, say `public-ip` that people can set14:29
yolandamarcoceppi, that's what i thought but i didn't find it very usable... i mean, this can be automatic14:29
yolandayou assign a public ip, and you have to remember to set the config var14:30
marcoceppiyolanda: It can be, if it's not already a bug should be opened in juju-core. The problem is each provider's public ip assignment mechanism varies greatly and not all providers even expose public ip to it's units14:30
yolandai see14:31
yolandamarcoceppi, so should i open a bug to request it?14:34
marcoceppiyolanda: certainly!14:34
yolandaand in the meantime do the config workaround14:34
marcoceppiyolanda: exactly. The config parameter will "just work" for all providers, but it might be more trivial to incorporate public ip address.14:35
marcoceppiyolanda: there is a `unit-get public-address`, but I don't think that gets updated if you assign it a permenant IP, only gets the ip/address you were provisioned with14:35
yolandamarcoceppi, i did a try, and it's updated. But the problem i have, is i don't get any event to detect when the change has been done14:36
marcoceppiyolanda: Oh, I see your problem14:36
yolandaif i trigger a config-changed for example,with some other var, unit-get public-address is ok14:36
yolandabut i need to process the event on time14:37
marcoceppiThere's a bigger bug at play, some kind of provider-state-changed hook14:37
marcoceppiWhere you can trap events outside of juju, like getting a new ip address14:37
yolandamarcoceppi, great, and it's on progress then?14:37
marcoceppiThis might be an iteresting discussion for the juju mailing list instead, to see what people think of a feature like this14:37
marcoceppiyolanda: not that I know of14:37
marcoceppiI mispoke, there's a bigger topic of discussion other than just getting the public ip14:38
marcoceppinot that there's already a bug for this14:38
yolandaoh, i misunderstood :)14:38
marcoceppiI think it could probably exist as a hook, however I'm not sure if everyone would share that opinion. If you mail the idea to juju@lists.ubuntu.com it'll probably spur some good discussion on how to handle events of this nature14:39
yolandasound like a good idea14:41
yolandai already filed a bug anyway14:41
melmothrelated=[u'ntpmaster/2', u'ntpmaster/1'] \o/14:42
jamespageyolanda, mgz said earlier they are looking to improve this in juju-core this cycle14:44
jamespageso I think the public ip approach via config is best for the time being - even if it sucks badly14:44
jamespagemelmoth, nice one!14:44
yolandajamespage, ok, i'll do that workaround, isn't that bad :)14:45
MarkDudejcastro: some good news on my side- I had to doublecheck Juju license would work with Fedora's limitations14:46
MarkDudeIt will. For us to get access to code do we have to sign the Canonical CLA? My guess is no.14:47
* MarkDude was made aware that the license COULD be changed in the future- and at that point we would have to fork14:47
MarkDudeBut we are good, and can see about working on this and getting it INTO the Fedora repos14:48
jcastrothe CLA is for contributing, not using14:50
MarkDudeYep, that was my guess14:50
MarkDudehttp://www.uncuartotech.com/ we plan on trying to use it with these cooll folks14:51
* MarkDude is wondering if we would actually make any code you folks could use- most of what we do would be centered on getting it to work with Fedora14:52
MarkDudeBut, if we create sumthin' you might want, we would of course make it available in the spirit of FOSS14:53
MarkDudeAnd we are cleared on doing that too :)14:53
MarkDudeThe legal thing appears to be a hassle - but I got a response to my question from legal- in less than 5 minutes, sometimes it may even take an hour :)14:54
* MarkDude is a bit sad to be missing OSCON for the 1st time in 8 years or so. I was looking forward to seeing the newest Charm school14:55
MarkDudeWhat is the most recent video or walkthru for creating charms? Im not sure some of my people UNDERSTAND how awesome Juju is in function AND to lower the entrance to getting folks into the concept of being a dev :)14:57
=== dosaboy_ is now known as dosaboy
=== mbarnett` is now known as mbarnett
=== defunctzombie_zz is now known as defunctzombie
marcoceppiadam_g: Do you have any plans to package juju-deployer anytime soon?15:55
marcoceppiI'm trying to figure out if it's best to just wait, or to just embed juju-deployer in what I'm working on now15:55
yolandahi, having this problem suddenly when deploying my charm, without any code changes from the last working version: http://paste.ubuntu.com/5855747/15:56
yolandaany idea?15:56
marcoceppiyolanda: what's the first three lines of hooks/install look like?15:57
marcoceppiJust out of curiosity15:57
yolandaimport os15:58
marcoceppihuh, I'm not sure why you're getting that error16:00
yolandai'll redeploy16:01
JoseeAntonioRhey guys, who's reviewing charms today?16:14
marcoceppiJoseeAntonioR: Mims and I. I've got your charm on my list for reviewing today since I didn't get to it last week16:43
marcoceppi(Though officially mims is on review)16:43
JoseeAntonioRmarcoceppi: great, thanks :)16:43
JoseeAntonioRwanted to know as I'm willing to push another charm that's dependant of postfix being approved16:43
marcoceppiJoseeAntonioR: go ahead and throw it in the queue!16:44
marcoceppijust make sure you mention it depends on postfix16:44
* JoseeAntonioR goes for it16:44
JoseeAntonioRdone :)16:51
* MarkDude <3 cooperation and sharing of code and ideas. 17:03
=== defunctzombie is now known as defunctzombie_zz
=== defunctzombie_zz is now known as defunctzombie
=== defunctzombie is now known as defunctzombie_zz
=== cmagina_away is now known as cmagina
melmothcan i get the up of the hostname of a machine if i know its unit name ? (and nope, it s not the current machine the charm runs on)18:33
melmothgrmblblb, keyboard, ifingres... i meant can i get the IP OR the hostname18:34
marcoceppimelmoth: only if it's called upon in a relation18:35
melmoththen i need to store somewhere the name of all peers in a unit.18:36
melmothi need to get the list of all the peers each time i need to rewrite a conf file18:36
marcoceppimelmoth: you'll probably want to record them to a file then18:36
melmothwich can be when a a unit join in, or out, but also if the config change.18:36
melmothin a file...18:36
=== CyberJacob|Away is now known as CyberJacob
=== koolhead11|away is now known as koolhead17
michaelbI am attempting to upgrade charms I have installed and keep running into the following exception: ERROR 'ServiceRelationState' object has no attribute 'role'21:26
michaelbI found bug filing #1185198, but nothing else.21:27
_mup_Bug #1185198: ERROR 'ServiceRelationState' object has no attribute 'role' <juju:New> <https://launchpad.net/bugs/1185198>21:27
=== defunctzombie_zz is now known as defunctzombie
ahasenackmichaelb: I don't know, but that looks like a py-juju error, not juju-core, which is the current focus of development21:49
=== JoseeAntonioR is now known as j
=== j is now known as JoseeAntonioR
=== JoseeAntonioR is now known as jose
=== CyberJacob is now known as CyberJacob|Away
=== defunctzombie is now known as defunctzombie_zz

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