/srv/irclogs.ubuntu.com/2018/06/19/#juju.txt

anastasiamac_wallyworld: part  1 - https://github.com/juju/juju/pull/8828 (the simplest...)00:05
wallyworldanastasiamac_: will look as soon as i finish talking to vino00:05
anastasiamac_nws, thnx!00:05
wallyworldanastasiamac_: lgtm with a question00:34
anastasiamac_wallyworld: part 2 - api consolidation for cli and worker access - https://github.com/juju/juju/pull/8829 (largely mechanical....)01:45
wallyworldok01:46
veeberswallyworld: query, the resource-get command currently returns, well prints, the file path of the named resource. For docker stuff that doesn't make sense, should we update expectations so it either: 1) prints some json/yaml with the needed details (image, secret) or write a json/yaml file and return the path to that?02:02
wallyworldveebers: it prints the file path brecause it has streamed the content to that location. i think for other hook commands like config-get we print to stdout02:03
wallyworldi'll check02:03
veeberswallyworld: right sorry it does print to stdout02:03
veebersit's the content of that I'm querying02:03
veeberscurrently resource-get only prints the filepath of the resource (after it's been downloaded/cached/whatever) but for the docker bits we don't want a filepath, we want more02:04
wallyworldthe content for a docker inmage resource will be the result of the charmrepo api call02:04
wallyworldwe print a filepath for file resources because that fits the semantic02:05
veeberswallyworld: ok, so the resource-get hook command will change from just ever printing out a file path, to printing out whatever is right for the resource type. filepath for filetype, json for docker-image type02:07
wallyworldveebers: correct02:26
wallyworldalthough i think the output format should be either json or yaml02:27
wallyworlddepending on what the charm asks for02:27
wallyworldanastasiamac_: review done, 1 thing to fix i think02:27
* anastasiamac_ looking02:27
veeberswallyworld: ack, so optional arg for format (for when it's not just a straight string of 'filepath')02:28
wallyworldyup02:28
anastasiamac_wallyworld: i disagree about auth. it is the saem auth is for model migration (and upgrader, I think)02:30
wallyworldhmmm, that's wrong then02:31
wallyworldauth need sto check for correct callers02:31
wallyworldat the very least IsAuthClient() || IsAuthAgent() etc02:31
wallyworldwhich model migration facade?02:32
anastasiamac_yeah, i can do that02:32
* anastasiamac_ digs up the magnifying glass..02:33
wallyworldyou'd want AuthController() || AuthClient()02:33
wallyworldthose other cases just checking for != nil should be fixed02:34
anastasiamac_not authcontroller... it will be a model surely?... and we do not have an equivalent..02:36
anastasiamac_that's why all model-scoped api's auth do that02:37
anastasiamac_i guess, i could check if it's any agent (machine|unit|application) at the very least?... i'll update a PR02:42
anastasiamac_wallyworld: apparently, i was talking nonsense - there is no precedence for just a nil check :D02:47
wallyworldwhew, thought i was going crazy02:47
anastasiamac_\o/ not yet... and hopefully, not from me :D02:47
wallyworldit's AuthClient() || AuthXXXX()02:48
wallyworldwhatever is the agent that makes the call02:48
anastasiamac_well, it's authclient() for one of the api (the one that cli will use, client one)02:49
anastasiamac_and a 3 agent check for the other...02:49
anastasiamac_i've pushed the changes02:49
vinowallyworld: I have pushed a commit addressing ur review comments.02:58
wallyworldlooking02:58
wallyworldvino: just need one more test for truncation as there's a coding error03:05
wallyworldtest would have picked it up03:05
vinook.03:06
veebersbabbageclunk: did you have some emacs bits so you could like all definitions of a function declared in an interface?04:44
babbageclunkveebers: I use go-guru for that04:45
veebersbabbageclunk: would you know what the command is?04:45
babbageclunkveebers: go-guru-implements04:45
veebersbabbageclunk: ack, cheers!04:45
veebersbabbageclunk: ah, that's for a type to list what interfaces it implements right? Can you do the other way around?04:46
veebersI want to find places where a func signature is implemented04:47
babbageclunkIf you point to a method in an interface definition, it will list all of the method defs that implement that interface method.04:47
veebersoh wait, no I think that's done it ^_^04:47
babbageclunkB)04:47
veebersbabbageclunk: ack, yeah I misread something. Thanks! that's really helpful04:48
babbageclunkyeah, it's great - I use it pretty frequently04:48
vinowallyworld: pushed a commit04:49
vinowallyworld: plz ping me once u have reviewed. I can merge and start the next phase05:00
wallyworldvino: looking05:11
vino_just a small correction i am doing now05:13
wallyworldvino: omit empty bit is not quite right05:13
wallyworld`json:"charm-vesion,omitempty" yaml:"charm-version,omitempty"`05:13
vino_yes05:14
vino_thats wat05:14
wallyworldok :-)05:14
vino_i am correcting that now05:14
vino_gimme few mins. I found it in CI05:14
vino_:q05:20
BlackDexKingJ: what does `ip route get <ip-request-comes-from>` tell you? the correct interface/subnet? or a wrong one?05:39
vino_wallywaorld: fixed the status charm-version issues06:03
vino_pushed the commit06:03
vinowallyworld:06:09
wallyworldlooking06:09
wallyworldvino: looks good to land06:12
vinosure.06:13
vinothank u06:13
vino_wallyworld: Can we discuss abt the next phase ? whenever u have time. please ping me.06:24
wallyworldvino: ok, now?06:24
vinosure.06:24
vinostandup HO ?06:24
wallyworldyep06:24
vinowallyworld: i didnt git add the verison file created in testcharms06:46
vinothats the issue06:46
wallyworldah ok06:47
vinoi will commit that and squash06:47
vinothank u06:47
vino:)06:47
wallyworldkelvin: have to run, had a quick look at charmm pr. mostly ok a few small fixes. will check again later06:53
=== frankban|afk is now known as frankban
kelvinwallyworld, thx, just got the keys and back home. looking on it now08:03
stubSpeaking of charm versions, anyone recall when $CHARM_DIR/.juju_charm became a thing?09:04
TheAbsentOnesuddenly every hook gives an error on "subprocess.CalledProcessError: Command '['config-get', '--all', '--format=json']' returned non-zero exit status 1" Anyone have occurred a similar thing? Gonna restart machines and charms but might as well ask12:15
TheAbsentOne+ juju status gives no error it's when I run a hook in debug-hooks12:16
rick_h_TheAbsentOne: hmm, are all the agents up and in the green?12:41
TheAbsentOneat that moment it was like it lost connection to the agents but status showed everything green yeah rick_h_12:52
TheAbsentOnerick_h_: I'm having the same problem now when spinning up a new charm/machine :s I'll show error gimme a sec12:53
rick_h_TheAbsentOne: gotcha, yea I know it pings every so often and it needs to miss X pings before it shows down12:53
rick_h_TheAbsentOne: kk12:53
TheAbsentOne"connection is shut down"12:54
TheAbsentOnehttps://pastebin.com/4zDsica312:54
TheAbsentOneI'm having a feeling it's not my charm but rather something else :/12:55
TheAbsentOnerick_h_: the error is also "insta" so I don't think he is running anything12:57
rick_h_TheAbsentOne: yea, so the agent being down means that it can't ping the API server and get the details about the config-get information12:57
rick_h_TheAbsentOne: might have to restart the agent, check the list of services running for juju related ones12:58
TheAbsentOneand what agent is this? The unit agent on the charm?12:58
TheAbsentOneHow do I check that?12:58
TheAbsentOnerick_h_: I got a juju status where I saw agents being lost (both to new/recent charms as to charms that are already running a longer time), but they are green again13:00
rick_h_TheAbsentOne: sec, otp.13:00
rick_h_TheAbsentOne: oh hmm, maybe the agents came back then13:01
rick_h_TheAbsentOne: and you just need to juju resolved the units13:01
TheAbsentOnebut inside debug-hooks I still get the same error though rick_h13:02
TheAbsentOneis there a log I can consult for more information? show-status-log doesn't give me anything13:04
TheAbsentOneI think the problem lies with the vmware-cluster, sometimes juju status takes a while and I catched 2 machines being down for a few secs. Weird stuff13:09
TheAbsentOnerick_h_: is it correct that if the agent is lost while being in a debug-hooks he won't fix the connection and it is lost?13:10
rick_h_TheAbsentOne: doubtful? I'm not 100% sure on the debug-hooks if it can help with that or not13:11
TheAbsentOnegot it working now rick_h_ think the problem is not caused by me but lies deeper int he infra where I don't have access to, thanks for the help though!13:42
rick_h_TheAbsentOne: ah ok cool. Glad you got around it13:54
=== frankban is now known as frankban|afk
veebersMorning all o/20:38
hmlveebers: morning!20:42
hmlveebers: is quiet today20:42
veebershey hml o/ how's things? Hopefully quiet is a good thing ^_^20:43
hmlveebers: not bad… you?20:44
veebershml: can't complain :-)20:51
wallyworldbabbageclunk: a small +18/-3 PR to fix a regression from yesterday https://github.com/juju/juju/pull/883120:57
TheAbsentOnewhat does a blocked status mean:  "backend relation required" o.O All I did was juju deploy pgbouncer :o21:17
TheAbsentOneahn I guess it was still waiting for postgresql nvm my question!21:17
catbusif it's following this guideline: https://docs.jujucharms.com/2.3/en/reference-status then you probably should take a look to unblock it.21:25
TheAbsentOnethx catbus it's just that it feels like my model/controller is a bit unhealthy. Juju gui keeps loading too :/21:29
TheAbsentOnecan I manually restart juju gui?21:30
wallyworldkelvin: i've had time to do a more thorough review on the charm PR; let me know if you have questions21:40
babbageclunkwallyworld: oops, missed that - looking now21:41

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