=== kadams54 is now known as kadams54-away === anthonyf is now known as Guest33778 === kadams54 is now known as kadams54-away [07:31] charmers o/ [07:31] anyone around? [07:31] I'm thinking of creating a simple subordinate charm that has actions returning various networking settings - iptables, routes, etc. [07:31] So, can a subordinate have actions of its own? [08:00] dimitern: it can [08:01] lazyPower, yeah, I've even found a good example with the chaos monkey [08:01] :) [08:02] +1 for that === mgz is now known as mgz_ [11:05] lazyPower, hey, still around? [11:05] o/ dimitern [11:06] lazyPower, I have a couple of actions questions if you have some time [11:06] surely [11:07] lazyPower, so is there an accepted way to implement an action like "run something and get me the output" ? [11:07] lazyPower, like, should the output be a param? or it could be dumped (without extra YAML) by action do / fetch [11:08] i dont think the output necessarily needs to be a param unless you need dynamic output data. action-set will take care of giving you the data points you care about. [11:08] a really good overview of this can be seen by the benchmark actions marco's team implemented. let me fish up one, 1 sec [11:08] ah, that'll definitely help [11:08] https://github.com/juju-solutions/siege [11:09] notables: siege is paramterized, the output is parsed from json and stashed in the action dictionary for the run [11:09] that should get you a good start w/ how to implement a well-defined action, and have meaningful results available to consume outside of your env. [11:10] thanks a lot! I'll look at that in detail [11:11] dimitern: you should never just dump yaml [11:11] dimitern: use action-set instead to relay data back [11:12] morning marcoceppi [11:12] marcoceppi, but action-set returns YAML (or JSON I guess) - is there a way to dump a given param as-is? [11:13] action-set returns something? thats news... [11:13] lazyPower, sorry, I meant juju action fetch [11:13] dimitern: did you mean juju action fetch? [11:13] ok [11:13] :) [11:13] :) [11:13] i was like "uh oh, what changed" [11:14] yeah, no the fetch aiui returns the full data feed, you cannot narrow it down to specific keys without parsing it [11:14] maybe in a future revision? [11:14] right, well if it does - it does, I'll parse it then :) [11:14] some fancy jq combined with --format=json [11:15] yeah, it'll help to have "juju action fetch [param], returning only that part of the results [11:16] lazyPower, so no concept of "output params", e.g. in that example doing a db backup and taking outfile=foo.tar.bz2 [11:17] this won't actually mean foo.tar.bz2 will be created in the $PWD where you run juju action fetch [11:17] i would suggest you provide fullpath to foo.tar.bz2, that way you can parse that key and pipe that to juju scp [11:18] right [11:18] But i dont think its possible to set file contents like that and have it automagically fetched. its a 2 step process [11:18] run proc, get data, action on data. [11:19] yeah, unless fetch provides the sync-point where the foo.tar.bz2 gets created when fetch is called in a certain way [11:21] lazyPower, the tip about jq is awesome though! [11:21] thanks :) [11:25] np happy to help dimitern :) === kadams54 is now known as kadams54-away [12:39] marcoceppi: silly question, i know how to trigger relations on another host out of band, eg: mysql:17 - but if i'm same host, and in a different relationship context - are there any amenities to help me kick off a *-relation-changed event aside from caching relation data thats missing, and stuffing that in a direct execution to the hook? [12:40] lazyPower: you mean, kick off a relationship on the same unit that you're currently running a hook? [12:41] yeah. I'm in a position to proxy data between hook contexts [12:41] lazyPower: like, service foo has a bar and baz relation, kick off bar from the baz relation? [12:41] yep [12:41] not really, just need to abstract away the underlying code for bar so that it's invokable from baz, like a pyhton method [12:41] when i relation_set(baz, mydata) - it triggers execution on the remote host, not the same host. [12:41] right [12:42] ok, i figured taht would be the case [12:42] * lazyPower snaps [12:43] fg [12:47] bg === anthonyf is now known as Guest64410 === kadams54 is now known as kadams54-away === kadams54-away is now known as kadams54 === zerick_ is now known as zerick === natefinch_ is now known as natefinch === liam_ is now known as Guest13658 === scuttlemonkey is now known as scuttle|afk === ayr_ton is now known as ayr-ton === dmellado_ is now known as dmellado === scuttle|afk is now known as scuttlemonkey === kadams54 is now known as kadams54-away === kadams54-away is now known as kadams54 === kadams54 is now known as kadams54-away === kadams54-away is now known as kadams54 === kadams54 is now known as kadams54-away === kadams54-away is now known as kadams54 [21:08] Is it possible to take advantage of OpenStack security groups when using Juju to deploy services? [21:14] marlinc: to what end? [21:14] Well I would like to setup security groups to firewall off some machine parts [21:15] Like giving a webserver only access to the ports that NFS uses for storage [21:15] And its only possible to for example access the webserver on port 80 [21:18] marlinc: i cannot answer. sorry. [21:19] No problem === kadams54 is now known as kadams54-away === dmellado_ is now known as dmellado === kadams54 is now known as kadams54-away === JoshStrobl is now known as JoshStrobl|afk