/srv/irclogs.ubuntu.com/2016/09/22/#juju.txt

valeechNot sure if anyone is around. I blew away juju beta 18 since I need to try the fixes in rc1. I have bootstrapped the controller on a maas 2.0 instance. I am trying to enable-ha with 2 additional controller nodes. The nodes get deployed by maas but they never get started in juju. they just stay at pending forever.01:31
=== valeech_ is now known as valeech
=== natefinch-afk is now known as natefinch
=== rmcall_ is now known as rmcall
gennadiyhi, we have private openstack cloud and we want to use different subnetworks for deployed software. is it possible to do it with juju 2.0 ?05:23
=== frankban|afk is now known as frankban
stubthedac: https://github.com/stub42/layer-apt has an example07:40
=== braderhart is now known as techntoke
=== techntoke is now known as braderhart
=== braderhart is now known as techntoke
zeestratHey, what happened to juju set-model-config and get-model-config in rc1? I guess it's replaced by just juju config, however that seems to just work for applications.08:49
Laneyhi!08:51
LaneyWhat's the right way to re-run a relation-changed hook if there's no error state? (1.25)08:51
LaneyI'm trying to deploy a website as a subordinate of apache2 and I want to do some iterating on the relation-changed thingy08:52
Laneyok, juju run works09:17
=== rogpeppe1 is now known as rogpeppe
=== mup_ is now known as mup
SimonKLBanyone here could tell me how to wait for a hook to finish using amulet? right now I'm testing setting a new config value and want to wait for that to finish before doing anything else, sentry.wait() doesn't seem to do the trick10:55
RAJITHHello, while doing bootstrap I am getting ERROR failed to bootstrap model: cannot start bootstrap instance: Error calling 'lxd forkstart juju-a0744c-0 /var/lib/lxd/containers /var/log/lxd/juju-a0744c-0/lxc.conf': err='exit status 1'11:27
beisnerhi SimonKLB - the best way is to have your charm set juju status when it knows it's ready.   then your amulet test can wait/block until it sees that status.11:54
SimonKLBbeisner: i tried that too, the problem is that it doesn't have time to change to the "unready" status before i run the wait_for_status/wait_for_message function, so it thinks it's already done11:55
SimonKLBbeisner: i also have the opposite problem where i'm testing unrelate->relate and the relate complains about the relation still existing because the unrelate doesn't have time to complete, in that case i tried waiting for the status as well, but it seems like the actual remove-relation operation isn't complety done before the status is set12:02
SimonKLBor at least the relation isn't cleaned up so that it's possible to add the same relation again12:04
beisnerSimonKLB, could there be a bug in the charm's status updating logic?  ie. is it unsetting the status immediately when things start to shift?12:05
SimonKLBbeisner: the status is set when the relation interface is no longer accessable, in this case: @when_not("identity-admin.available")12:06
SimonKLBcould that be too early, and if so, what should i look for instead?12:07
beisnerSimonKLB, in the openstack charms, we wait and check for all expected running processes on the units.  but that might not translate to every type of application.12:09
SimonKLBbeisner: could you show me an example?12:10
beisnerSimonKLB, the aodh charm is one reactive example.  https://github.com/openstack/charm-aodh/blob/master/src/reactive/aodh_handlers.py   which leverages a library: https://github.com/openstack/charms.openstack/blob/master/charms_openstack/charm.py#L76812:14
SimonKLBbeisner: right, so i guess the difference is that you're not really basing your statuses on charm relations but rather on the actual services running on the machine?12:23
beisnerSimonKLB, no not really. things like @reactive.when('shared-db.connected') trigger status to be reassessed12:53
SimonKLBbeisner: i don't seem to find a when_not('shared-db.connected'), how do you handle the case where the relation is lost?12:59
SimonKLBor you want to change to a different database charm perhaps13:00
SimonKLBisn't it always going to think it's connected after it's been connected once?13:00
beisnerSimonKLB, it looks like that charm doesn't handle that case.  probably because operationally it doesn't make sense to ever disconnect the service's database.13:01
beisnerSimonKLB, but i think the principle illustrated there is:  you should re-assess status and set it, in nearly, if not all events.13:02
SimonKLBbeisner: i guess not, perhaps im testing a case that actually isn't an issue, but i'm trying to fill the test requirement from the docs "Adding, removing, and re-adding a relation should work without error."13:03
SimonKLBbeisner: yea, I agree, i think im not really taking the actual services into regard as much as you guys do though, im more looking at the state of the charm rather than the state of the services13:04
SimonKLBand that might be the issue13:04
aisraelIf a deployed unit has two network interfaces, how does Juju select which one is the public and which one is the private?13:40
jcastroheya balloons13:56
jcastroI'm having a problem with adding credentials in a snapped juju13:57
jcastroactually, it all works, the question is semi-related13:57
jcastrodo I need to mess with any of the juju bits in ~/snap13:57
jcastroor is .local/share/juju still the place to be?13:58
balloonsjcastro, it's in the snap14:01
jcastrook so let's say I add creds but then I want to manually mangle the file14:01
jcastroI would search in ... ?14:01
=== saibarspeis is now known as saibarAuei
balloonsjcastro, you would use juju cli commands ;-)14:03
balloonsjcastro, I'm not sure off the cuff exactly where it is actually.14:03
jcastroright, but that's not what I am asking14:04
jcastroI was just thinking of adding it to the docs14:04
jcastroso like, yes, use the CLI obviously, but for reference we write config to foo, bar, baz, was my idea14:04
jcastroballoons: hah, everyone is going to make fun of me for filing this: https://bugs.launchpad.net/juju-core/+bug/162657614:13
mupBug #1626576: credential v. credentials is confusing <juju-core:New> <https://launchpad.net/bugs/1626576>14:13
jrwrenjcastro: I did the same thing with controller v. controllers yesterday, but I thought it was just because I was tired.14:15
rock_Can't we remove published charm from store completely?14:16
jcastroyou'd be surprised how worthless I am with juju now without bash-completion14:16
lazyPowerrock_: You can set the ACL's of the charm as restricted, but i don't beleive there is a way to wholesale remove something, no.14:19
lazyPowerrock_: eg: charm revoke14:20
rock_lazypower: oh. Thank you.14:21
rock_Can anyone please provide me detailed info of  juju networking.14:23
rick_h_rock_: what are you looking for in particular?14:25
rock_rick_h_: I am looking for basic juju netwoking model.14:28
rock_rick_h_: how juju manage networking inside and outside containers?14:30
jrwrenrock_: other than what you see here: https://jujucharms.com/docs/stable/network-spaces  I think the answer is that it doesn't. It all depends on the provider. (aws, gce, azure, etc)14:31
beisnerrick_h_, can you point me back to that bug about the home url not rendering on the cs side bar?14:31
beisnersearch foo is failing me ;-)14:31
rock_jrwren: ok. thank you.14:39
balloonsjcastro, ~/snap/juju/*/.local/share/juju14:48
jcastroso ... ~/snap/juju/current/.local/share/juju should always just work then I figure14:48
balloonsjcastro, I wouldn't make fun of you14:48
balloonsjcastro, I don't seem to have current myself, so no..14:49
balloonsit's a bit odd actually14:49
jcastrohuh, none of mine do either14:49
jcastrodid something change?14:49
pwestonhello, does any one have a clear link for setting up juju to work with a pre-existing openstack15:39
pwestonthe simplestreams are killing me15:39
=== frankban is now known as frankban|afk
hmlhi! i just bootstrapped juju2.0 to an private openstack cloud - the controller instance appears to be working okay, but when i deploy a charm, i end up with a unbuntu instance with no juju tools on it.  anyone else seen this?  know what to do?17:55
rick_h_hml: hmm, is there internet access to get the tools? is there anything in the debug-log on the controller (juju switch controller && juju debug-log)17:56
hmlyes - i did a wget of a outside web page onthe charm instance17:57
hmldidn’t see anything in the debug-log17:57
rick_h_hml: maybe check the log on the unit then. look for logs in /var/log/juju/unit*****17:57
hmlthere is no /var/log/juju on the unit :-)17:57
hmlnor a /var/lib/juju17:57
rick_h_hml: oh hmm, makes sense if you never got the agents installed.17:58
hmlrick_h_: i went thru some debugging yesterday with thedac, he was thinking the tools didn’t get installed and sent me here17:59
rick_h_hml: so how about juju logs in that directory on the controller unit17:59
hmlrick_h_: let me double check17:59
hmlrick_h_: i found the place in the machine-0.log that the new charm was deploy18:03
hmlrick_h_: nothing is jumping out as a big error etc - is there a better log file to look at?18:04
kwmonroehey #juju.. shilpa asked about an nginx charm, and i could have sworn we had a recommended version in the store... but i can't find it.  does such a thing exist?18:12
kwmonroei only see nginx-passenger when searching (https://jujucharms.com/q/nginx), though i do see 10 other community charms when i deliberately 404:  https://jujucharms.com/nginx/18:16
rick_h_hml: no, maybe try debug-log with --replay to get everything?18:16
kjackalIs there a way to tell a controller (local in my case) to setup a IPv4 network instead of IPv6?18:18
hmlrick_h_: looking18:20
hmlrick_h_: this has happened 2 of 2 times so far - if i deploy another charm - what would be the best way to watch for errors as it goes?18:26
=== hml_ is now known as hml
lazyPowerkwmonroe: no nginx charm itself, we have layernginx though21:22
lazyPower(hours later)21:22
lazyPowerhttps://github.com/battlemidget/layer-nginx  just fyi21:22
kwmonroegratis lazyPower21:24
kwmonroei think that url is https://github.com/battlemidget/juju-layer-nginx21:25
=== zz_CyberJacob is now known as CyberJacob
petevgcory_fu: do you have time to jump into the hangout? Zookeeper is misbehaving, and I'd like a second set of eyes on it.21:39
cory_fuSure21:39
=== CyberJacob is now known as Guest3251
cory_fuGive me 1 sec21:39
cory_fupetevg: I'm in dbd21:41
lazyPowersure, whichever doesn't 404 :P21:44
arosalesmbruzek: does the latest kubernetes charm set workload version?22:34
mbruzekarosales: you bet22:34
arosalesor does anyone have a charm handy that setes workload version22:34
arosalesah ok22:35
arosalesmbruzek: thanks22:36
lazyPowerarosales: several22:36
lazyPower:D22:36
lazyPowerhttps://jujucharms.com/u/lazypower/canonical-kubernetes22:36
mbruzekhttps://github.com/juju-solutions/kubernetes/blob/master-node-split/cluster/juju/layers/kubernetes-master/reactive/kubernetes_master.py#L12122:36
lazyPowerevery charm in this bundle thats not a beats charm sets workload version22:36
lazyPower(oh and kibana because kibana)22:36
arosaleslazyPower: thanks22:38
arosalesand mbruzek thanks for the line ref22:38
mbruzekarosales: lazyPower did all the work, I just found the line he added22:39
* lazyPower flexes22:39
marcoceppiarosales: the ubuntu charm sets workload version ;)23:26
arosalesmarcoceppi: ah, that may be a simple enough charm to take a look at23:53
arosalesthanks marcoceppi23:53
arosalesman I did a charm helper sync and now "get_platform" and now charmhelpers.osplatform module is not found23:53
arosales. . . and no results at http://pythonhosted.org/charmhelpers/search.html?q=get_platform&check_keywords=yes&area=default#23:54
arosalesor http://pythonhosted.org/charmhelpers/search.html?q=platform&check_keywords=yes&area=default#23:54
* arosales sigh23:54
marcoceppiarosales: wtf are you doing charmhelper-sync for23:57
marcoceppiarosales: it's also probably because you need to change your charm-helpers.yaml definitions23:58
arosaleslooking at adding workload status to the mariadb23:58
marcoceppiarosales: i already did23:59
arosalesmarcoceppi: which charm23:59
marcoceppimariadb23:59
marcoceppirev 523:59
* arosales looking at cs:~bigdata-dev/mariadb23:59
marcoceppihttps://api.jujucharms.com/charmstore/v5/mariadb/archive/hooks/start23:59

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