/srv/irclogs.ubuntu.com/2018/09/12/#juju.txt

hloeungNickZ: all the configs are exposed to all hooks, you need to use 'config-get' to retrieve the vaules00:10
hloeungNickZ: might want to look at using charmhelpers which helps make writing charms easier00:11
hloeungNickZ: anyways, I think this might help you - https://docs.jujucharms.com/2.4/en/reference-hook-tools#config-get00:12
NickZah hah00:12
NickZthats the one00:12
NickZthanks00:12
veeberswallyworld: FYI https://paste.ubuntu.com/p/XtJPrZzMgN/ just fleshing out a unit test or 2 to make sure the changes are covered properly (and not just tangentially)02:49
wallyworldlooks good02:50
veeberswallyworld: *sigh* I don't see the 'active' status set come through at all on a 'good run', investigating03:13
wallyworldthat would be triggered when container status flips to running03:14
veeberswallyworld: it's not in the collection at all, status is 'Started Container' (i.e. from cloud container status update)03:15
wallyworldthat cloud container status change to "started container" should cause the unit status to be re-evaluated03:16
veebersindeed03:16
wallyworldand written to history03:16
wallyworldkelvinliu_: this PR add constrains support. the actual change is small - the k8s tests add several lines to the diff https://github.com/juju/juju/pull/918703:24
kelvinliu_wallyworld, looking it now03:28
wallyworldty. no rush03:28
kelvinliu_wallyworld, looks awesome! just not sure if the constraint is the max or min?03:39
wallyworldkelvinliu_: it is the max for k8s03:39
wallyworldsimilar to lxd03:39
wallyworldwhereas for clouds it is the min03:39
wallyworldwe haven't sorted out a syntax yet to cover both cases in a way the everyone could agree on03:40
kelvinliu_wallyworld, ic. great thanks03:41
wallyworldkelvinliu_: any luck with the controller.yaml hacking?03:42
kelvinliu_wallyworld, agent.conf is always changing for each run of `jujud machine`/`jujud bootstrap-state`. the changes include controllercert, controllerkey, password,ipaddress, sharedserets, etc03:47
wallyworldkelvinliu_: that's because jujud bootstrap-state re-generates all that stuff (from memory). it is only supposed to be run once to set everything up03:48
kelvinliu_wallyworld, im wondering how to register a 2nd controller.03:49
kelvinliu_wallyworld, im guessing whenever jujud machine starts, it will be a brand new controller?03:49
wallyworldkelvinliu_: "jujud machine-0..." is the start of a configured controller and can be done many times as the systemd server restarts. agent.conf is all set up and the key things like cert etc are fixed.03:51
wallyworldjujud bootstrap is used to initialise things and only runs once03:51
kelvinliu_wallyworld, `var/lib/juju/tools/machine-0/jujud machine --data-dir '/var/lib/juju' --machine-id 0 --debug` always changes the conf file for each run03:52
wallyworldin what way?03:52
kelvinliu_wallyworld, yes03:52
wallyworldwhat changes is jujud machine macking?03:52
wallyworldit might update some things, but not ca cert or api addresses03:53
kelvinliu_it changes  controllercert, controllerkey,ipaddress03:54
wallyworldsomething is wrong then i think. i expected the cert and key to be set up as part of bootstrap and then left alone03:55
wallyworldi have a meeting in a minute, i can look as the code after03:56
kelvinliu_wallyworld, i m going to grab some food, then continue to look into it soon.03:57
wallyworldno worries03:57
wallyworldkelvinliu_: how'd you go, did you need me to look at anything?06:02
kelvinliu_wallyworld, did some hardcode, and fixed a bug at /github.com/juju/juju/utils/scriptrunner/scriptrunner.go, just got `juju status` talked with apiserver successfully.06:06
wallyworldgreat06:06
wallyworldkelvinliu_: so you run jujud bootstrap-state once, and then jujud machine as many times as you want06:07
wallyworldand that specific controller agent works with a hacked controllers.yaml06:07
kelvinliu_wallyworld, yes, the controller key/cert changed still, but I made the apiaddress unchanged by hack the code.06:09
wallyworldhmmm, the key/cert should not change when jujud machine is run06:09
kelvinliu_wallyworld, I added the local controller info into my juju home06:09
kelvinliu_wallyworld, seems we include the current ipadress into the cert06:13
kelvinliu_wallyworld, so now i have to cp the latest cert from agent.conf to ~/.local/share/juju/controllers.yaml to let juju cli working whenever jujud restarted06:16
hmlstickupkid: i moved the pr for changing the v7-unstable to reference itself into the review colomn, that “should” land before the profile changes.   we’ll see after the mtg13:39
stickupkidhml: i've made a few comments, but not approved until after the meeting :D13:51
hmlstickupkid: ty - understood.  i’ll have the other piece up shortly13:53
hmlstickupkid: i’m thinking empty should check for config and devices, i wasn’t going to bother with name or description.  any preference?14:05
stickupkidhml: yeah, that's fine with me, I'm not a fan of name anyway, so config and devices wfm14:05
hmlstickupkid: quick HO?14:54
stickupkidhml: of course14:54
hmlstickupkid: pr updates available for your viewing pleasure.  :-)15:39
stickupkidhml: sweet15:40
stickupkidhml: note we can do this https://play.golang.org/p/YNNbd7jAqCh15:46
stickupkidhml: i.e. we can move between structs without manual conversion, as long as the types align15:47
hmlstickupkid: do the func magic() inside juju?15:49
stickupkidhml: yeah15:49
hmlk15:50
rick_h_kwmonroe: cory_fu bdx magicaltrout zeestrat juju show countdown, 54min to go17:06
rick_h_juju show everyone! refill your coffee, batten down all hatches!17:06
aisraelcory_fu, I noticed charm-tools depends on python3.5 when I try to build, but 3.5 isn't available on bionic. Thoughts on either moving it to 3.6 or build/testing on bionic?17:16
cory_fuaisrael: Yeah, it should work with 3.6.  I didn't know there was a hard req on 3.517:22
cory_fuaisrael: I'm working on the snap build, so I can take a look17:22
aisraelcory_fu: yep, fails w/"ERROR:   py35: InterpreterNotFound: python3.5" when I run `make`17:23
aisraelI pushed a change for review, but haven't been able to test it locally because of that17:24
zeestratrick_h_: sorry, can't make this one. As a suggestion for the next one, it would be cool to have some of the Openstack charmers on to talk about their latest release.17:28
rick_h_zeestrat: I'll ping beisner on that <317:29
cory_fuaisrael: Change tox.ini to have these:17:39
cory_fuenvlist = py27, py35, py36, py3717:39
cory_fuskip_missing_interpreters = true17:39
aisraelcory_fu, ack17:40
rick_h_folks that want to join the juju show and chat can use: https://hangouts.google.com/hangouts/_/vw67fkh53jhurbafbnrohikvfme17:48
rick_h_agenda so far: https://discourse.jujucharms.com/t/juju-show-39-beedy-show-and-tell-and-news/23317:48
rick_h_and those that want to watch the stream: https://www.youtube.com/watch?v=OH1TMQzep1s17:48
beisnerJust a heads up on that skip missing interpreters trick, if the machine has none of those versions, it will exit cleanly and pass without executing any tests.17:48
rick_h_beisner: hah, that sounds less than helpful17:49
beisnercory_fu aisrael fyi ^17:49
aisraelbeisner, sounds about right ^_^17:49
cory_fubeisner: yeah, but I don't know of an alternative17:50
cory_fuaisrael: You could maybe try just using "py3" but I feel like I remember that not working17:51
beisnerpy3 works now17:51
beisnerBut it’s also not a perfect solution as you may want to actually test against multiple py3x’s.17:52
cory_fubeisner: True.17:55
cory_fuaisrael: I do think py3 would be better for the charm-tools case, as we don't have any specific py3.x requirements17:55
beisnerrick_h_  What is the date and time of that session?17:56
rick_h_beisner: so it'd be two weeks from right now17:56
rick_h_beisner: or we could shift it it's helpful for TZs17:56
rick_h_bdx: ping-ping17:56
aisraelcory_fu, makes sense. I'll update tox and see about adding a test for my pr17:57
rick_h_3min warning for anyone else that wants to join in17:57
beisnerrick_h_: should work - can you send me an invite / details?18:02
beisnerfor +2wks18:02
kwmonroehey! you weren't lying.. my jaas models are 2.4.3.  neat!18:04
rick_h_kwmonroe: would I like to you :p18:25
NickZaw18:28
NickZi missed it18:29
NickZwhat's going on in salt lake city?20:32
veebersMorning all o/20:37
thumperNickZ: the next product sprint in october20:58
NickZah hah21:01
veeberswallyworld: we have an issue, if the charm sets status as active before the pods are done we loose that history (status is stored, but not history, so 'juju status' shows the active message once everything is resolved, but show-status-log won't show it as the current active)22:13
wallyworldveebers: when the container status changes state, it is supposed to see if unit status would be different and update history22:59
wallyworldcall probablyUpdateHistory() - that checks the last known historical value and updates if needed23:00
veeberswallyworld: hmm, good point, I think it might be a small tweak then; We're no longer losing that data as I just fixed that (active being overwritten by 'waiting for container' due to timing)23:04
wallyworldperceived unit status = func(unit status, container status).... so when either changes, call probablyUpdateHistory()23:06
veebersaye23:06

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