/srv/irclogs.ubuntu.com/2019/07/12/#juju.txt

timClickswhat's the easiest way to debug the apiserver? I want to know what's on the other side of the facade call03:09
timClicksended up using this: juju debug-log -m controller --replay --include-module juju03:39
babbageclunktimClicks: for more detail you can turn logging in the apiserver up to trace using `juju model-config -m controller logging-config="juju.apiserver=TRACE"`03:59
timClicksanastasiamac: I think that this change might be harder than expected04:20
timClicksthe code is all fine on the server-side, but the client-side API is lossy04:21
timClicks(c *Client) FindTools(majorVersion, minorVersion int, series, arch, agentStream string) (result params.FindToolsResult, err error)04:21
timClickswe loose the alpha/beta/rc and build number when we look for tools04:21
timClicksbecause c.AgentStream is "", the server defaults to released04:22
hpidcockIf I'm adding a new field to a facade request params struct, should I bump the facade version?04:58
babbageclunkhpidcock: yes, particularly for a client facade (where there are other clients than just the juju CLI)05:00
timClickshpidcock: in particular, the juju gui and pylibjuju also rely on that version number05:01
timClicksbabbageclunk: btw your panic debugging method is pretty effective05:04
hpidcock+1 panic is great for debugging05:04
babbageclunkcheers! even more fun than printf debugging05:10
hpidcockmore fun because it yields better results ;)05:15
babbageclunkwho doesn't love a stack trace?05:16
anastasiamactimClicks: m happy to discuss further ur monday since m guessing u r eod now05:52
anastasiamacat eow even :D05:53
hmlmanadart: there’s something odd about what we’re doing with providerID for spaces.    will look more.14:22
hmlmanadart:  we’re adding spaces with an undefined name and -1 providerID.14:23
rick_hhml:  so I think that's the MAAS "undefined" space14:25
manadarthml: Got a ref in code? We have the default space + MAAS undefined space.14:25
manadartWhat rick_h said.14:25
rick_hhml:  manadart just for reference https://bugs.launchpad.net/juju/+bug/178531414:26
hmlmanadart:  no code ref, i was looking at the DB14:26
mup_Bug #1785314: maas spaces are mis-translated <track> <juju:Incomplete> <MAAS:Incomplete> <MAAS 2.3:Incomplete> <MAAS 2.4:Incomplete> <https://launchpad.net/bugs/1785314>14:26
hmlrick_h: is the “undefined” space the default or something?14:28
hmlthere can be only 1?14:28
rick_hhml:  yea, I think so. I have to refresh my brain14:28
rick_hhml:  +1 to there being only 114:28
rick_hhighlander space14:28
hml:-D14:28
hmlrick_h: time to play queen14:29
rick_hwfm!14:29
manadartrick_h hml: I am leaning towards ignoring "undefined" when loading spaces and making the juju default space the unifying concept for the no/default/undefined/whocares space.14:33
pmatulisis not providing accurate information by default for the 'controllers' command really a good thing (need --refresh option to do that)? don't people always want to ensure they are getting accurate information?18:36
rick_hpmatulis:  the issue is that controllers pulls a list and that info doesn't change much so a cache is usually ok18:38
rick_hpmatulis:  otherwise calling each one (and timing out on ones you can't reach for say behind a vpn/etc) makes controllers risky to use18:38
pmatulisrick_h, if a client has a controller registered shouldn't we assume the client can reach it? anyway, implementing a short timeout doesn't seem too bad18:41
=== markthomas_ is now known as markthomas
pmatulisanyway, i just upgraded a controller model and couldn't see the results. until i finally reached for the --refresh option. seemed like an odd UX moment is all18:42
rick_hpmatulis:  no, again because it could be over a vpn, on a user's laptop and they can only reach it on the work network, etc18:44
rick_hpmatulis:  yea, I wish we had a way to push from controller to clients like "you've just connected, I've got news for you"18:45
rick_hthat would be a nicer way to handle stuff like that18:45
pmatulisrick_h, i see, ok18:51

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