/srv/irclogs.ubuntu.com/2016/06/23/#juju.txt

blackboxswbogdanteleaga, it seems in juju2 that behavior has changed from juju1 for the websockets api call to "Action" "RunOnAllMachines". It looked like juju1 would return the synchronous results of the RunOnAllMachines call as the api response complete with Stdout and Stderror for the commands run. It appears that juju2 now returns immediately from a RunOnAllMachines call with a response that lists a bunch of actions still in "pending" s00:55
blackboxswtate. So our responsibility is to sniff action deltas  from the Allwatcher Next queue for action changed deltas. Does that sound about right?00:55
blackboxswI mentioned some misunderstandings I was having with RunOnAllMachines to cherylj a bit earlier today and it sounded like you might have a bit of additional context on what changed in juju2 for the Run* api calls.00:57
blackboxsw... just wanted to queue up the question for tomorrow. Will check in later00:58
=== blackboxsw is now known as blackboxsw_away
=== redir_afk is now known as redir
xbox360pll=D:)=);D =D ;D:P=) :D:D :P :):P :P=D :D;D:>=D;D=D;D=);D:) :D ;D :P =D=) :)=D=D =D;D =) :> ;D=D :>:P =D:) =):P=) :D=D :P :) :)=D ;D:D :P :> :D :) ;D =D :P=):D =) ;D=)04:31
=== urulama|__ is now known as urulama
=== frankban|afk is now known as frankban
=== _thumper_ is now known as thumper
dimiternI'm trying to follow https://jujucharms.com/docs/devel/developer-layers-interfaces and looking at existing examples10:59
dimiternIs the version: significant? Do I need to define both interface.yaml and metadata.yaml (for the 'peers: ...' section), or just peers.py and interface.yaml?11:00
stubdimitern: Just peers.py and interface.yaml. 'version' is only documentation at the moment, but may one day be used for 'juju relation-add' or just flagging charms in need of maintenance.11:18
dimiternstub: OK, less stuff to care about keeping in sync :) thanks!11:19
dimiternstub: can I define config settings in the interface layer somewhere, so they are available in peers.py?11:21
stubdimitern: I don't think so, no. I'm told you are not supposed to put implementation in the interface layer, so you might be overreaching. I think interface layer is just supposed to catch events and set states so the charm or layer providing the real implementation can hook in, and an API for driving the protocol. I'm still somewhat fuzzy on this.11:25
dimiternstub: I see, that makes sense11:27
dimiternstub: I looked at existing examples and most of them just set/clear states.11:28
=== spammy is now known as Guest41987
=== Guest41987 is now known as spammy
=== mthaddon` is now known as mthaddon
bbaqarHey guys. What could be going wrong if i see a unit in an error state in juju status but when I resolve it it gives the error that the unit is not in an error state.12:54
bbaqarall services on the node are configured and running properly12:55
rick_h_bbaqar: is this from the Juju GUI?12:56
bbaqarno from the CLI12:57
bbaqarjuju stat --format=tabular12:57
jcastrowho's in the mood to unpromulgate mediawiki-scalable?13:45
bluetackCan anyone tell me if there is a way for an action to trigger a hook? I can't seem to find anything in the docs14:11
stubbluetack: Your action is running in a hook context, so you could just call ../hooks/whatever14:17
stubbluetack: But probably better to factor out the common functionality into a library, and have both the hook and action call it.14:18
marcoceppijcastro: unpromulgated14:20
bluetackI tried a library (writing in python), but despite may __init__.py files all over the place, I couldn't import a sibling folder. How would I have a common library directory accessible to both actions and reactive dirs?14:20
stubbluetack: If this is for reactive charms, you might want https://github.com/juju-solutions/charms.reactive/pull/6614:20
stubbluetack: Also, if you want imports to work sanely with reactive you want https://github.com/juju-solutions/charms.reactive/pull/5114:20
stubbluetack: $CHARM_DIR/lib is in your reactive hook's PYTHONPATH, so you can put things in there.14:21
bluetackI do and I do, but they're not merged in yet14:21
bluetackstud: I'll give the ../hooks/whatever approach a try for now. thanks14:24
bluetackstub14:24
bluetackmy intentions are purely honourable14:24
stubbluetack: It might be ./hooks/whatever - I think the cwd is $CHARM_DIR14:24
bluetackstub: can I reuse an existing hook?14:25
bluetacki.e. I dont have a hooks folder yet14:25
marcoceppibluetack: you shouldn't need to create any hooks, they're generated during the build process14:27
bluetackunderstood. thankyou14:27
shruthimahi kwmonroe , how can i use "resource-get" option in the python code...? could you please provide links of any charms written in python using resources ..!!14:36
kwmonroeshruthima: check out charm-svg: https://jujucharms.com/u/marcoceppi/charm-svg14:39
kwmonroeshruthima: search resource_get in this source: https://github.com/marcoceppi/layer-charmsvg/blob/master/reactive/charmsvg.py14:39
shruthimathanks kevin :)14:41
shruthimakwmonroe: In IBM_IM charm for amulet testing how resources will be fetched..?14:42
shruthimawe have noticed u have removed 00-setup file and added tests.yaml14:44
shruthimakwmonroe : i have tried to deploy ibm-im charm using amulet but is not fetching resources it is failing at timeout ..14:51
=== fwereade_ is now known as fwereade
cory_fumthaddon: Hey, are you around?14:54
mthaddonyep14:54
kwmonroeshruthima: the ibm-im charm will fetch the placeholder resources from the store when the charm deploys.. it's expected to fail, but i see the status message it was waiting for is incorrect.  fixed here: http://bazaar.launchpad.net/~kwmonroe/charms/trusty/layer-ibm-im/switch-to-resources/revision/19#tests/01-deploy.py14:54
cory_fumthaddon: You're listed as the maintainer of https://jujucharms.com/nrpe-external-master/  I'm looking to merge https://code.launchpad.net/~aluria/charms/precise/nrpe-external-master/donotremove-hostdefs/+merge/290957 since it has been approved, but because we have a new publish / promulgation process, I need it to be pushed & published into the maintainer's namespace (either yours personally, or an appropriate group) from which I can re-promulgate14:56
kwmonroeshruthima: until we can host the real resources (i think we've been calling that "resources phase 2" during our calls), we'll just test that the charms deploy and  we see the right status message for the placeholder resources.14:57
cory_fumthaddon: The end goal of this is to give more power to the maintainers to publish updates directly14:57
shruthimakwmonroe : is it like once the resources are in charm store only we can test amulet?14:57
shruthimaoh k thanks kevin :)14:57
mthaddoncory_fu: we're migrating away from that charm to https://jujucharms.com/nrpe/trusty - is there a reason you'd prefer nrpe-external-master?14:58
kjackalHey marcoceppi do you have any news for me regarding charmers? Thanks14:59
cory_fumthaddon: I don't prefer it.  Just trying to get an approved MP merged in.  Are you to the point where we can unpromulgate nrpe-external-master entirely and get that change applied against cs:trusty/nrpe if applicable?15:00
mthaddoncory_fu: both charms are owned by ~charmers which you're a member of so you should be able to merge and promulgate yourself, no?15:02
cory_fumthaddon: The point is that we're doing away with ~charmers ownership of promulgated charms in favor of ownership by the maintainer (or group, if more appropriate).15:03
cory_fuAnd the one bit that I can't do is push & publish to the new namespace in the store.15:03
cory_fumarcoceppi: Do we have a write-up of this new process somewhere?15:03
mthaddoncory_fu: I'm familiar with the new process, I just wasn't aware you were actively unowning things from ~charmers15:05
rick_h_cory_fu: https://jujucharms.com/docs/devel/developer-getting-started15:09
cory_furick_h_, mthaddon: By new process, I specifically meant the fact that promulgated charms are no longer to be owned by ~charmers and that we are transitioning them as they are touched during review15:11
cory_fuI also believe marcoceppi was working on an email to the mailing list with a full list of charms that will need to be transitioned out of ~charmers ownership15:12
rick_h_cory_fu: ah, yea that's not in the charmstore section or the charmers getting started section15:12
cory_fuAgain, this is what I've been told by marcoceppi, so I'd like to get his feedback, but I think he's on a call and is going to get annoyed at me pinging him.  ;)15:16
rick_h_cory_fu: no, you're correct on the goal and how things are built15:16
rick_h_cory_fu: we want to celebrate the true authors and make it clear it's not all canonical/one team that is responsible for the charms15:16
cory_fuIndeed15:17
mthaddoncory_fu: I'm not sure what to suggest in terms of that specific charm. I may be listed as the maintainer in the charm itself, but we consider it pretty much obsolete at this point. Is there a suggested approach for that case?15:17
rick_h_mthaddon: cory_fu so are they compatible at all? e.g. can we provide a migration math and move over?15:19
cory_fuYeah, if it's consider obsolete, then we should look at deprecating, migrating people off, and unpromulgating15:19
aisraelpetevg: psst, don't forget to check the lock icon in the review queue ;)15:20
cory_fuaisrael: He can't15:20
rick_h_cory_fu: and with the new process you can move what charm is promulgated and it maintains a history so we can look at a true migration path15:20
mthaddonbut we don't have any way of migrating people off do we? surely that's up to them15:20
aisraelcory_fu: how so?15:20
petevgaisrael: yeah. I don't have permission to set the locked status. I think that I'm officially waiting for the new review queue to launch to get it.15:21
mthaddonrick_h_: nrpe supports the functionality of nrpe-external-master, but you need to set some specific config options. Not sure if that qualifies as a migration path15:21
cory_fuaisrael: Locking doesn't work for him or kjackal.  Some bug due to them being newer accounts that was deemed not worth fixing since we're about to move to a new RQ platform anyway15:21
aisraelcory_fu: fair point. I meant to point out that the nagios stuff petevg just reviewed were locked to me, so I could have saved you some time15:22
petevgaisrael: right. I guess I could look at the locked icon :-) Whoops.15:22
aisraeltl;dr, unit tests in the nagios charm in the store are completely busted, so no tests are going to pass15:22
cory_fuaisrael: There is also an issue with the charmhelpers code synced into the proposed branch as well, though15:23
aisraelcory_fu: Yeah, one of many problems with the charm :/15:24
cory_fumthaddon: Are the config options different than the ones you would set with nrpe-external-master?15:24
mthaddoncory_fu: yes, you need to set new config options if you're migrating from nrpe-external-master to nrpe15:25
rick_h_cory_fu: mthaddon so it'd be interesting to see if the upgrade charm hook in nrpe could help manage an upgrade from nrpe-external-master to itself15:25
cory_furick_h_: From the store page, it doesn't look like cs:precise/nrpe-external-master is used in any bundles.  Do we have any other usage stats to see if it's being actively used such that we shouldn't simply unpromulgate it?15:25
stubnrpe-external-master is precise, nrpe is trusty. People need to redeploy to switch anyway.15:26
rick_h_cory_fu: looking15:27
cory_fustub: Good point15:27
cory_furick_h_: I feel like we need a better way of indicating to users that something is no longer recommended without breaking their stuff right away.  Something like a flag we could set on the charm store that would cause Juju to emit a deprecation warning when deploying the charm.  *shrug*  Just a thought15:29
rick_h_cory_fu: so https://api.jujucharms.com/charmstore/v4/nrpe-external-master/meta/stats/ suggests it's getting used twice today, 5 times this week, etc.15:36
rick_h_cory_fu: so it's not a big footprint, but does exist?15:36
cory_furick_h_: Also, I suppose the fact that there's a MP against it means that it's being used15:39
cory_fuSo I'm not sure what the appropriate action to take here is15:39
stubI'd lay money it is entirely Canonical internal, and a decent chance of all that being CI systems.15:39
cory_fualuria: Since this is your PR, care to chime in?15:42
* stub wanders off into the night15:42
aluriacory_fu: hey, I think I don't have perms to merge it15:43
cory_fualuria: :)  Not looking for you to merge it.  Looking for your input on the conversation about it being dropped in favor of cs:trusty/nrpe15:43
cory_fuAnd whether the usage of cs:precise/nrpe-external-master is entirely Canonical IS / CI15:44
cory_fuIf so, it looks like the right approach is to transition15:44
aluriacory_fu: aah sorry... we're using it in several deployments but will start moving to lp:charms/trusty/nrpe in future ones15:44
rick_h_cory_fu: so I think we unpromulgate it, move it to the new namespace, publish it to the juju list and update the readme perhaps15:47
rick_h_cory_fu: and let folks like aluria know, maybe look for any other comitter in the "recent" tree15:47
cory_fualuria: Do you know if that PR is applicable to nrpe as well?15:47
cory_furick_h_: New namespace being ~mthaddon?15:48
aluriacory_fu: it's not.... nrpe-external-master is written in bash while nrpe is in python (but will need to write a MP for nrpe too)15:48
rick_h_cory_fu: if he wants it there, or we had an ~unmaintained, or we can do some ~deprecated-promulgated15:48
cory_fualuria: Yeah, sorry, I meant the fix in general, not the specific patch15:48
aluriacory_fu: issue is very specific, and it also needs to be addressed in nrpe charm --- hacluster charm is a subordinate for OpenStack endpoints, and deploys /var/lib/nagios/exports/service__${hostname}_blabla.cfg and host__${hostname}.cfg15:49
aluriacory_fu: nrpe charm thinks there's only one host definition and removes all to recreate the non-subordinate hostdef one15:50
aluriayou can end up having service defs without host defs --- patch only removes host defs without service defs15:51
* mthaddon is +1 to moving it to a team with a name like ~unmaintained or something15:51
cory_fualuria: Ok, I opened it as a bug on nrpe: https://bugs.launchpad.net/charms/+source/nrpe/+bug/159561215:53
mupBug #1595612: Be more selective in deleting host__*.cfg files <nrpe (Juju Charms Collection):New> <https://launchpad.net/bugs/1595612>15:53
aluriacory_fu: ta15:53
cory_furick_h_, mthaddon: I'm also +1 to moving it to ~deprecated or ~unmaintained.  I wonder if we should promulgate it from there for a short period to give people like aluria a chance to transition15:54
cory_fuThe short-term transition could just be adding the namespace, of course15:54
cory_fuAlso, the question remains about merging this PR.  I assume we need to get that fix in during the move.15:55
arosaleskwmonroe: do you know if there are docs on how to use the docker box?15:57
aluriacory_fu: I ran into this bug which I think it's already solved -- https://bugs.launchpad.net/charms/+source/nrpe/+bug/147320516:00
mupBug #1473205: nrpe charm creates checks with _sub postfix, breaking compatibility with nrpe-external-master <canonical-bootstack> <nrpe (Juju Charms Collection):New> <https://launchpad.net/bugs/1473205>16:00
cory_fuarosales: https://github.com/juju-solutions/charmbox16:02
cory_fuThe README is pretty good on it16:03
cory_fuThat one is designed for dev & testing.  If you want a Docker image for just deploying using Juju, you can use the lighter-weight jujubox: https://github.com/juju-solutions/jujubox16:04
cory_fuarosales: ^16:04
=== frankban is now known as frankban|afk
=== zz_CyberJacob is now known as CyberJacob
marcoceppicory_fu: I've gone a bit off the deep end, but I think it's for the best19:53
marcoceppicory_fu: https://github.com/juju-solutions/layer-apache-php/pull/5/files19:54
marcoceppicory_fu: what I'd like to do, is build a layer tactic that merges apache.yaml to layer.yaml prior to validation19:55
cory_fumarcoceppi: +1 I've been meaning to update the apache-php layer to use layer.yaml for some time but never use it so didn't have the time or motivation20:03
cory_fuI suppose a custom tactic would be one way to handle migrating.  How many charms are using that layer currently?  Maybe we can submit patches against them all?20:04
magicaltroutoooh look at that20:06
magicaltroutyou can spy on charm summit submissions  in google forms :)20:06
* magicaltrout bookmarks that page20:07
magicaltroutmarcoceppi: out of interest excluding merlijn's uploading issues, are their restrictions on resource sizes ?20:51
marcoceppimagicaltrout: not that I'm aware of20:53
marcoceppimagicaltrout: probably around the 50 GB size we have to start asking hard questions20:53
marcoceppilike "why" and "what"20:53
magicaltroutlol okay20:53
marcoceppimagicaltrout: wait20:59
marcoceppiyou can see the submissions?20:59
marcoceppimagicaltrout: eheh, not anymore ;)21:00
magicaltrout:(21:03
magicaltroutdidn't think that was on purpose :P21:03
marcoceppiGoogle forms comes with, by default, "allow users to see summary" which is follish21:14
marcoceppifoolish, even21:14
magicaltrouthehe21:14
magicaltroutwell i didn't notice the first time21:14
* magicaltrout should pay more attention21:14
* magicaltrout has plans afoot to transfer all of his data center ops to DC/OS and Juju... because..... why not... 22:09
magicaltroutreap what you sow and all that22:09
magicaltroutmarcoceppi: you guys need to get 2.0 out so I can deploy without fear! ;)22:09
=== urulama is now known as urulama|__
marcoceppimagicaltrout: that sounds awesome22:14
marcoceppimagicaltrout: yeah, I'm pumped for 2.0 landing, we're really close to RC's which means we'll be upgradability between releases22:14
magicaltroutwoop22:14
magicaltroutoh also on a slightly different note22:14
magicaltrouthttp://www.darpa.mil/news-events/2016-06-17 with my NASA hat on I should be working on this soon22:15
magicaltroutnow I have no idea about what will actually happen, but most of the Darpa stuff gets open sourced22:15
marcoceppibad ass!22:15
magicaltroutso automatic model discover over juju big data sounds pretty cool22:15
magicaltroutso if they do make is ASL I'll make sure we can stand up whatever is produced22:15
magicaltroutthere's a bunch of the last darpa/nasa project I'm slowly working with some of the JPL guys on bringing to Juju, dark web crawling and stuff22:16
=== thumper is now known as thumper-afk
=== mwhudson is now known as mwhudson__
cholcombeanyone around that knows mojo?23:21
=== alexisb is now known as alexisb-afk

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