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

wallyworldthumper: everyone is busy fixing CI issues, or away on leave... i'd love to land this today https://github.com/juju/juju/pull/1105800:09
thumperwallyworld: I'll look01:20
thumperwallyworld: I've got a question for ya01:41
thumperapiserver/facades/agent/uniter/uniter.go:147801:42
thumperif err is nil, we still log01:42
thumperwe got a lot of those error logs during my scale testing01:42
thumperit seems that we should log if err != nil, but not if there is no error01:42
thumperdoes that sound right?01:43
wallyworldthumper: looking at code02:00
hpidcockwallyworld: looks like the jujud-versions.yaml works fine with build number https://www.irccloud.com/pastebin/aCgSCcrp/02:05
wallyworldthumper: so in theory, we should always know the address of the machine the unit is running on, so we should always be able to set the address info. for k8s, that's not always the case. for iaas, we either use the public address for cmr or fall back to the private one if needed. so if we are logging that we need to understand why02:06
thumperwallyworld: I saw it a huge number of times in my scale testing02:07
thumperthere was no error02:07
wallyworldwhich i think means we don't have a unit private address whic seems weird02:07
wallyworldwe could drop to debug but we'd want to understand what's happening, hence it was done a sa warning02:08
thumperwell, the message gives us no info02:09
thumperit just says : can't do it: <nil>02:09
wallyworldit can't - all it knows is that there's no unit address02:09
thumperso not really useful02:09
wallyworldit may be that the unit enters scope before the address is know02:10
wallyworldin which case the default relation data will be unpopulated02:10
wallyworldit may be that only old charms relay on that default data02:11
wallyworldas new charms should be using network-get02:11
wallyworldso dropping the severity may be ok02:11
wallyworldhpidcock: it looks like you created a build yaml by hand with the correct sha?02:12
hpidcockyeah, testing what the snap would do02:13
wallyworldlook ok then02:14
wallyworldi think02:14
hpidcockyep, just testing without build number as well now02:14
wallyworldthumper: so charms should be resiliant to delayed address info - they need to handle it when the address info is not known up front, especially for k8s charms. it's just that historically they haven't catered for this and expected  juju to always seed the relation data with private-address02:15
wallyworldso i think we can  consider this as not something worth a warning02:15
wallyworldand if charms break that's on them to fix02:15
thumperhmm, ok02:15
wallyworldi mean, it is possible a relation can be formed and the address info is not yet known02:16
wallyworldthere's not much we can do about that02:16
wallyworldespecially for say k8s charms like gitlab02:16
wallyworldwhere the relation comes up and then that triggers the pod starting02:17
wallyworldand then we get the address02:17
wallyworldthumper: ta for review. were you going to drop the warning to a debug or something given for many k8s charms it will just be noise, and even for iaas charms, they could aguably not expect to rely on that info02:25
thumperwallyworld: I'm just prepping the PR02:26
thumperwallyworld: https://github.com/juju/juju/pull/1106402:27
wallyworldlooking02:27
wallyworldthumper: lgtm, we have found in a few places stuff hitting not found during teardown. whack-o-mole02:36
thumperwallyworld: yeah02:36
thumperwallyworld: I keep filing bugs thinking tlm could fix this...02:43
wallyworldperhaps he could, tag them as bitesize or something02:44
tlmI only want big ones :)03:43
wallyworldhpidcock: have you managed to check all the build num fix scenarios?04:17
hpidcockwallyworld: I've found a snag, the versioned tools dir04:18
hpidcocktesting just having SharedToolsDir return the dir without buildnumber04:19
wallyworldah yes04:19
hpidcockI'm not sure how the uploaded tools are unpacked. Does the bootstrapping client scp them over and untar it?04:21
wallyworldessentially yeah04:21
hpidcockincluding simplestreams?04:22
hpidcockor does simplestreams just get wget'd onto the machine?04:22
wallyworldsee github.com/juju/juju/cloudconfig/userdatacfg_unix.go04:23
wallyworldline 34604:23
wallyworldthat's where the dir is first created04:23
wallyworldand just underneath is where the tools are downloaded04:24
wallyworldthe url in the tools struct is i think streams.c.c04:24
wallyworldat bootstrap anyway04:25
wallyworldafter that the controller caches them04:25
stickupkidmanadart, https://github.com/juju/description/pull/7012:29
stickupkidmanadart, this should prevent the panic when migrating consumers12:29
manadartstickupkid: Looking.12:30
stickupkidta12:33
stickupkidThis is blocking me from testing the migration error, so hopefully I'll be able to see what's the cause soon12:33
Laneyhey jujuers13:39
rick_hhey Laney13:40
Laneygot a question for you!13:40
LaneyIs there a way to check if an application has an upgrade available? I've got a `set -e` shell script which is running `juju upgrade-charm` over all of them, but it bails out if there is no update available because that causes an exit 1.13:40
rick_hLaney:  juju status shows that there's an upgrade available13:41
rick_hLaney:  the controller checks once a day13:42
Laneyah, can I make it check in that script then?13:42
rick_hyea, I'm just trying to dbl check where that shows up13:42
Laneyit's usually that I release a new version of the charm and want to run this upgrade-all-the-things script to roll it out13:42
Laneyonce a day wouldn't be great given that :-)13:43
Laneyor maybe there's a better way of doing all of this13:43
rick_hLaney:  so juju status --format=yaml and     can-upgrade-to: cs:haproxy-5513:43
rick_hLaney:  so I'd update your script to run that once a day, iterate the applications in the YAML, and check for the "can-upgrade-to"13:44
Laneyalright, thanks!13:46
rick_hLaney:  no problem, let me know how it goes maybe if you've got a cool script drop it in discourse for folks to see13:47

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